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

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개)

카테고리

도움말 센터File Exchange에서 Surrogate Optimization에 대해 자세히 알아보기

질문:

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