Storing no.of iterations taken by optimization algorithm in a variable automatically.

How to store number of iterations taken by optimization algorithm in a variable automatically inside a script file. I am aware that there is a way to display number of iterations using options but don't know how to save it in a variable in side the script itself without manually entering.

1 件のコメント

Torsten
Torsten 2022 年 12 月 21 日
output.iterations returns the number of iterations.
Look at what the structure "output" contains under

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeProblem-Based Optimization Setup についてさらに検索

タグ

質問済み:

2022 年 12 月 21 日

コメント済み:

2022 年 12 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by