Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

fmincon stopping criteria problem

Asked by Minghua Li on 30 Jan 2013

Hi all,

I got a problem when use fmincon-sqp algorithm. After constraint violation has been minimized less than Tolcon, the program has stopped. However, there are better objective value nearby, and the solver failed to search the optimal. Is there any method to user-define stopping criteria? I only want the program stopped when fval is less than Tolfun, not based on Tolcon.

Thanks Minghua

0 Comments

Minghua Li

Products

No products are associated with this question.

1 Answer

Answer by Shashank Prasanna on 30 Jan 2013

When it stops for TolCon, it mostly means there may be an optimal solution nearby but you can't reach it because the value at that point violates the constraints you have specified and the optimization stops. Your options would be to completely remove the constraints if you want it to keep searching till fval < TolFun regardless of what the tolerance on constraint is or to decrease TolCon to a very small number and try your luck.

0 Comments

Shashank Prasanna

Contact us