How to see at each iteration the results of fmincon

17 visualizaciones (últimos 30 días)
patr chri
patr chri el 16 de Jun. de 2020
Comentada: patr chri el 16 de Jun. de 2020
Hello,
I am using a Non linear MPC formulation for my problem, but I would like to check the results of fmincon at each iteration or generally see the "under the hood" options of the Non linear MPC solver.
How could I do that?

Respuesta aceptada

rubindan
rubindan el 16 de Jun. de 2020
The options OutputFcn and PlotFcn (which you specify using optimoptions) allows you see what happens in each iteration online.
I for exmaple once written a custom OutputFcn to save each iteration data in a log file.
  1 comentario
patr chri
patr chri el 16 de Jun. de 2020
Thank you very much for your answer.
I will give it a try.

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by