How to show optimvar in optimization iterations?

Hello,
I am using fmincon to solve an optimization problem. The program found a local minimum value, but I do not like the output optimvar. I want to see what is the optimvar that generates the second smallest value, and the third smallest value, so on. Maybe I can use those. Adding 'iter' in 'options' only gives me the objective values in each iteration. Is there a way to see the corresponding optimvar in the iterations? Thanks for helping.

Answers (0)

Categories

Find more on Simulink Design Optimization in Help Center and File Exchange

Asked:

on 9 Dec 2020

Community Treasure Hunt

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

Start Hunting!