fmincon save each iteration information

32 visualizaciones (últimos 30 días)
Guanfeng Gao
Guanfeng Gao el 13 de Mayo de 2015
Comentada: Daniel Frisch el 7 de Oct. de 2020
I am using the fmincon, and I want to save the fitting value for each iteration automatically. What I can do is to display the fmincon information when the process is done using the optimset('display','iter'). But I could not find a way to save the value of obj function input in each iteration. Could anyone help to solve this problem?

Respuestas (1)

Alan Weiss
Alan Weiss el 13 de Mayo de 2015
Editada: Alan Weiss el 13 de Mayo de 2015
Use an output function to record whatever you like. This example records the history of the locations and the objective function value; modify it as you like.
Alan Weiss
MATLAB mathematical toolbox documentation

Categorías

Más información sobre Solver Outputs and Iterative Display en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by