Display progress of Optimizer doesn't work

4 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

praguna manvi
praguna manvi il 10 Mar 2025
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:

Più risposte (0)

Categorie

Scopri di più su Get Started with Optimization Toolbox in Help Center e File Exchange

Prodotti


Release

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by