i am using fmincon to optimize f:
[X,f]=fmincon(@(X) obj_function(X,P,Pd,intervalotiempo),X0,A,B,Aeq,Beq,LB,UB,nonlin);
I would like to use the output of this operation in a way that if the solution converged to an infeasible point the program stops. How could I make this possible?
Best Answer