Storing no.of iterations taken by optimization algorithm in a variable automatically.
2 次查看(过去 30 天)
显示 更早的评论
How to store number of iterations taken by optimization algorithm in a variable automatically inside a script file. I am aware that there is a way to display number of iterations using options but don't know how to save it in a variable in side the script itself without manually entering.
1 个评论
Torsten
2022-12-21
output.iterations returns the number of iterations.
Look at what the structure "output" contains under
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Optimization Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!