Model extensions framework with interface for constrained optimization