MATLAB: How to manually change MaxFunctionEvaluations in fmincon

changeevaluationsfminconmanuallymaxfunctionevaluations

I would like to manually change the number of evaluations from 3000 to something bigger. Is it possible that with more evaluations I could increase the chance of finding global minimum of given function fun? How can I change this in script?
Thank you for your help:)

Best Answer

I think that the short answer to your question is to set the MaxFunctionEvaluations option to a higher-than-default value. See Set and Change Options. You might also want to increase the MaxIterations option.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation