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

I am writing aMatlab code whish should use fminunc during it. After runing my code, this error appear, how can solve it?

Answers (1)

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

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.

Categories

Find more on Language Fundamentals in Help Center and File Exchange

Asked:

on 15 Sep 2014

Commented:

on 16 Sep 2014

Community Treasure Hunt

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

Start Hunting!