Does fmincon do any scaling?
이전 댓글 표시
I have an unconstrained minimization problem. I can solve it using fminunc; however, when I try to solve it using fmincon or knitromatlab I get the following message after the second iteration:
"Optimization terminated: first-order optimality measure less than options.TolFun and maximum constraint violation is less than options.TolCon."
Why does fminunc work while fmincon stops at the second iteration (the tolerance parameters are the same)? I'm thinking fmincon does some sort of scaling and this is causing problems, but it's just a guess
답변 (1개)
Alan Weiss
2016년 8월 15일
0 개 추천
What makes you think that fmincon did not solve the problem? The exit message you report indicates that it found a solution. Perhaps fminunc found a better solution, but that doesn't mean that fmincon didn't find a local solution. See When the Solver Succeeds.
By the way, the exit message also indicates that you have a fairly old version of MATLAB. The exit messages were rewritten for clarity in R2009a.
Alan Weiss
MATLAB mathematical toolbox documentation
카테고리
도움말 센터 및 File 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!