fmincon exitflag=5
Show older comments
"Optimization terminated: magnitude of directional derivative in search direction less than 2*options.TolFun and maximum constraint violation is less than options.TolCon."
got this error (exitflag=5) when i tried to optimize my problem with fmincon. Does this mean the value obtained is not the optimum solution??
I have tried optimizing the same problem in Excel and it actually gave the same answer as that obtained MATLAB.
Accepted Answer
More Answers (0)
Categories
Find more on Solver Outputs and Iterative Display in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!