how to stop fmincon

I am currently using fmincon (I have used it in the past) and am experiencing a problem. I am currently testing a problem and I start with the solution x such that f(x)=0 is minimized (I am minimizing the sum of squares). However, the "line search steplength" is equal to 1 at every iteration, and fmincon does not stop even though f(x) is on the order of 10e-17. I have to manually stop it or set MaxIter to a small number so it stops on its own.
First, is there any reason why this would happen?
Second, Is there anyway to terminate when the function value f(x) is then than some threshold instead of relying on TolX and TolFun conditions?
Thanks.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Problem-Based Optimization Setup에 대해 자세히 알아보기

태그

질문:

2012년 2월 8일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by