Display progress of Optimizer doesn't work

3 ビュー (過去 30 日間)
Gabriele
Gabriele 2025 年 3 月 5 日
回答済み: praguna manvi 2025 年 3 月 10 日
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?

採用された回答

praguna manvi
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 件)

カテゴリ

Help Center および File ExchangeGet Started with Optimization Toolbox についてさらに検索

製品


リリース

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by