Display progress of Optimizer doesn't work
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Gabriele
le 5 Mar 2025
Réponse apportée : praguna manvi
le 10 Mar 2025
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 commentaires
Réponse acceptée
praguna manvi
le 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:
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Get Started with Optimization Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!