How to follow the progress of fminunc

조회 수: 3 (최근 30일)
Gurra
Gurra 2021년 6월 30일
댓글: Gurra 2021년 6월 30일
I would like to follow the progress of fminunc is some suitable way. What I can see, there seems to be something called "PlotFcns" in the fminunc.m. Can it be used to plot the progress in some way, like for instance the cost vs nbr iterations, continuously updated during the optimization?
If so, how do I activate the PlotFcns, when calling the fminunc?
If not, is there any other good way to follow the progress? Can I access the final cost in some way aswell?
Thanks.

채택된 답변

Alan Weiss
Alan Weiss 2021년 6월 30일
See the Plot Functions topic.
Alan Weiss
MATLAB mathematical toolbox documentation
  댓글 수: 1
Gurra
Gurra 2021년 6월 30일
Thanks! I found the solution following the link by @Alan Weiss
For the sake of other users: I simply added 'PlotFcn', @optimplotfval to the options structure (in my code using optimset).
options = optimset('MaxIter', 100,'PlotFcn',@optimplotfval);

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by