Display progress of Optimizer doesn't work
조회 수: 5 (최근 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!