fmincon save each iteration information

34 ビュー (過去 30 日間)
Guanfeng Gao
Guanfeng Gao 2015 年 5 月 13 日
コメント済み: Daniel Frisch 2020 年 10 月 7 日
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?

回答 (1 件)

Alan Weiss
Alan Weiss 2015 年 5 月 13 日
編集済み: Alan Weiss 2015 年 5 月 13 日
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

カテゴリ

Help Center および File ExchangeSolver Outputs and Iterative Display についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by