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.
0 个评论
回答(1 个)
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulated Annealing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!