I am trying to solve a non linear constrained optimization problem with fmincon. I am able to provide analytical gradients for the objective function, the non linear equality constraints and for a subset of the non linear inequality constraints. The matter is that the other subset of the non linear inequality constraints is very complex and I am not able to obtain an analytical expression of its gradient.
Is there a way to tell fmincon for what subset of constraints an analytical gradient will be passed and for the other subset not?
PS: I want to pass an analytical gradient of the first subset because when the other constraints are not considered, computation is much more faster and reliable.
Best Answer