Add a progress bar to nonlinear solver
2 次查看(过去 30 天)
显示 更早的评论
Hi, All
I am using matlab nonlinear solver 'fminunc' to solve one pretty big nonlinear program. The whole solving progress takes about 1 min. I want to display one progress bar/waitbar during the process without taking too much resources from calculation. Something similar to the optimoptions/Display/iter but with a gui bar. Is there any good way to do this? Thanks in advance
0 个评论
采纳的回答
Walter Roberson
2016-9-7
You can use an options structure that invokes a plotfcn; see http://www.mathworks.com/help/optim/ug/fminunc.html#inputarg_options
2 个评论
Walter Roberson
2016-9-7
At the init stage you would create the waitbar. As the iterations progress you would update the waitbar. At the final stage you would remove it.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dialog Boxes 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!