Display progress of Optimizer doesn't work
3 ビュー (過去 30 日間)
古いコメントを表示
Hi, I'm using Matlab's optimizer toolbox (version 2024a) and I would like to plot the graphs in the "Display progress". Despite having inserted the option to display the graphs at each iteration, the toolbox after starting still does not show anything. I tried to reduce the number of plots, to change the "Text Display" option, I removed the simulink plots (the optimizer works by acquiring data from a simulink model), but nothing.
Have you also had this error? Are there any particular options to set that I am not considering at the moment?
0 件のコメント
採用された回答
praguna manvi
2025 年 3 月 10 日
As I see you are looking to plot the progress of the solver execution. Here's a reference example to achieve this:
openExample('optim/UseAPlotFunctionExample')
To plot the progress, the "PlotFcn" parameter in "optimoptions" must be set with function handles. For a given solver, you can either use a predefined set of functions or define a custom plot function.
For more information, refer to the "Plot Functions" documentation at the link below:
0 件のコメント
その他の回答 (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!