MaxFunEvals fmincon default option
Ältere Kommentare anzeigen
Good evening to everyone, I would like to know how I can chang the MaxFunEvals number using fmincon. Before calling the optimization algorithm I use:
options= optimoptions(@fmincon,'Display','final','MaxIter',1000,'MaxfunEvals',5000,'TolFun',1e-4,'TolCon',1e-6,'TolX',1e-6);
and then in fmincon I use options, but when I run the code I get the following message:
fmincon stopped because it exceeded the function evaluation limit,
options.MaxFunctionEvaluations = 3000 (the default value).
Thank you so much,
Alesandra
2 Kommentare
Star Strider
am 17 Jun. 2019
When I run the line you posted, it definitely shows that 'MaxFunctionEvaluations' has been set to 5000.
We would have to see the rest of your code (or at least the relevant parts of it) to see if we can detect tthe problem.
Alessandra Costa
am 18 Jun. 2019
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Optimization Toolbox finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!