How can I solve this error : fminunc stopped because it exceeded the function evaluation limit, options. MaxFunEvals = 100 (the default value).

3 views (last 30 days)
I am writing aMatlab code whish should use fminunc during it. After runing my code, this error appear, how can solve it?

Answers (1)

Matt J
Matt J on 15 Sep 2014
Edited: Matt J on 15 Sep 2014
It is not an error. It is a message letting you know the code has finished running. But, you could try increasing MaxFunEvals with optimset() or optimoptions() to see if the solution improves.
  1 Comment
sherrysherry
sherrysherry on 16 Sep 2014
Thanks for your attention ... But I need to see decreasing while I see increasing and goes to NAN. I tried options and optimset, but didnt get good results and same message appeared.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!