Error message of fminsearchbnd

1 回表示 (過去 30 日間)
alpedhuez
alpedhuez 2020 年 8 月 3 日
コメント済み: alpedhuez 2020 年 8 月 3 日
I go the error message
Exiting: Maximum number of function Evaluatoion has been exceeded
Increase MaxFun Evals Option
Current function value: NaN
Why does this problem occur? What iis the next step?

採用された回答

Walter Roberson
Walter Roberson 2020 年 8 月 3 日
fmincon is an iterative process. There is a built in limit on the number of steps that it will take. Sometimes that is not enough to find the minimum to within flatness criteria. You can increase the amount of searching.
https://www.mathworks.com/help/optim/ug/current-and-legacy-option-name-tables.html
optimset or optimoptions with appropriate option name and pass that to fmincon
Note: one of the ways that fmincon can run out of steps is if it is following an asymptotic curve. When that happens it is not uncommon that the region is exploring is quite a distance from the actual minimum. fmincon just sees that the value keeps decreasing (asymptotic), and does not know that it could do better by looking in a different area. Therefore you do always want to let it run for thousands of iterations.
  1 件のコメント
alpedhuez
alpedhuez 2020 年 8 月 3 日
Will work on it.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNonlinear Optimization についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by