exitflag=0 in fmincon accepted as accurate?

24 次查看(过去 30 天)
I use the interior-point algorithm in fmincon when doing the optimization. The exitflag corresponding to most of my outcome are 1 and 2 but I also got a few 0 as the exitflag. I know I should accept positive exitflag and reject negative exitflag, but how about 0? Can it be accepted as a stable convergence? Or should I tolerate on result which delivers 0?
Many thanks!

采纳的回答

Alan Weiss
Alan Weiss 2014-11-18
Take a look at what exitflag 0 means:
Number of iterations exceeded options.MaxIter or number of function evaluations exceeded options.MaxFunEvals.
So as far as fmincon is concerned, it did not reach a solution, it just exceeded a limit on the number of iterations or function evaluations. I would not accept this as a solution.
Alan Weiss
MATLAB mathematical toolbox documentation

更多回答(1 个)

Naresh Nandakumar
Naresh Nandakumar 2017-7-26
Hi! I got a few exitflag = 0's. Does a value get generated and stored when this happens? Even if it isn't the exact answer? Thanks

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by