Final report for fminunc

4 ビュー (過去 30 日間)
Mohamed Abdalmoaty
Mohamed Abdalmoaty 2017 年 3 月 21 日
コメント済み: Matt J 2017 年 3 月 21 日
I'm using the optimization function fminunc. I'd like to generate a final report that includes: number of function calls, total time of optimization, (maybe time of each call?) and the path of the optimization variables (the values that they take: starting from the initial point, then for each iteration, until the value that Matlab returns.
How can we do this? The Display option of the optimization toolbox does not show these. I would like to have then stored as a result that I can read and manipulate.
  1 件のコメント
Matt J
Matt J 2017 年 3 月 21 日
Some of this information is returned in the 4th output argument of fminunc.

サインインしてコメントする。

採用された回答

Alan Weiss
Alan Weiss 2017 年 3 月 21 日
Create an Output Function to record whatever information you like.
Alan Weiss
MATLAB mathematical toolbox documentation

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProblem-Based Optimization Setup についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by