How to see at each iteration the results of fmincon
20 次查看(过去 30 天)
显示 更早的评论
Hello,
I am using a Non linear MPC formulation for my problem, but I would like to check the results of fmincon at each iteration or generally see the "under the hood" options of the Non linear MPC solver.
How could I do that?
0 个评论
采纳的回答
rubindan
2020-6-16
The options OutputFcn and PlotFcn (which you specify using optimoptions) allows you see what happens in each iteration online.
I for exmaple once written a custom OutputFcn to save each iteration data in a log file.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Refinement 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!