Error message of fminsearchbnd

1 vue (au cours des 30 derniers jours)
alpedhuez
alpedhuez le 3 Août 2020
Commenté : alpedhuez le 3 Août 2020
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?

Réponse acceptée

Walter Roberson
Walter Roberson le 3 Août 2020
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 commentaire
alpedhuez
alpedhuez le 3 Août 2020
Will work on it.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Nonlinear Optimization dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by