i am using simulated annealing optimization toolbox matlab and i want to display current function value,best function value and best iteration so far at each iteration of my program.

1 次查看(过去 30 天)
I want all these parameter to display on command window.

回答(1 个)

Alan Weiss
Alan Weiss 2017-6-14
Write an output function that returns optimvalues.bestfval (the best function value found so far), optimvalues.fval (the current function value), and you will have to create a persistent variable bestiter that maintains the value of the best iteration. See, for example,
edit saplotbestf
Alan Weiss
MATLAB mathematical toolbox documentation

类别

Help CenterFile Exchange 中查找有关 Simulated Annealing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by