The "Current Function Value" plot ?

Hello, How can i get "current function value" giving by Optimization tool using only the command line?
Thanks !

 採用された回答

Walter Roberson
Walter Roberson 2016 年 7 月 11 日

0 投票

Construct an options structure that includes PlotFcn and give an option value of @optimplotfval . The options structure can be constructed using the new optimoptions or the older optimset .
The options structure must be passed as the 10th parameter to fmincon(), so if you do not need some of the parameters, pass [] in their place.

3 件のコメント

amine&&
amine&& 2016 年 7 月 11 日
Hello Roberson, based on your instructions i established this snippet of code that works perfectly :
>> options = optimset('PlotFcns',@optimplotfval);
>> [y,fval] = fmincon(f,x0,[],[],[],[],[0,0],[1,1],[],options);
what do you think?
Walter Roberson
Walter Roberson 2016 年 7 月 11 日
That looks okay.
amine&&
amine&& 2016 年 7 月 11 日
Thanks for your efforts Roberson.

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

その他の回答 (0 件)

カテゴリ

質問済み:

2016 年 7 月 10 日

コメント済み:

2016 年 7 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by