フィルターのクリア

i used "active set" algorithm in fmincon and got exit flag 5, is this answer should be considered right or not?

2 ビュー (過去 30 日間)
Options=optimset('Algorithm','active-set','Display','Iter','TolFun',1e-12,'MaxFunEvals',1000, 'TolCon',1e-12,'TolX',1e-15);
[Q,fval,exitflag,output] = fmincon(@simple_fitnessa,Q0,An,bn,Aeq,beq,lb,ub,nonlcon,options)

回答 (2 件)

Matt J
Matt J 2018 年 1 月 25 日
It's always good to check the first-order optimality measure, if the exitflag is anything but 1.
  2 件のコメント
Aimen Mujahid
Aimen Mujahid 2018 年 1 月 27 日
then how can i solve the issue to get exit flag 1?
Matt J
Matt J 2018 年 1 月 27 日
I don't think there is necessarily a problem. Check the first-order optimality measure and see how small it is compared to where it started.
However, you could also try some different initial starting guesses for the iterations and see how that affects both the result and the exitflag.

サインインしてコメントする。


Alan Weiss
Alan Weiss 2018 年 1 月 30 日
You can check the documentation for suggestions.
Alan Weiss
MATLAB mathematical toolbox documentation

カテゴリ

Help Center および File ExchangeSolver 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