How to understand if my optimization getting stuck in local optima

6 views (last 30 days)
HI i am new bie in matlab optimization . I am optimizing 944 variable using fmincon and algorithm sqp. I am bit concerned if my program is getting stuck with local optima. How can i determine if i have problem with my result? I am attaching the output form fmincon of the iterative display
thanks in advance for the support

Accepted Answer

Alan Weiss
Alan Weiss on 17 Aug 2017
Your objective function or nonlinear constraints might be nonsmooth, or at least very sharply curved, because the first-order optimality does not seem to be decreasing. fmincon is decreasing the objective function, and maintaining feasibility, but does not seem to be converging to an optimum as far as the first-order optimality measure.
This is different than the question you asked, which is about multiple local solutions. You cannot tell if there are multiple local solutions by one run of the solver. To check for multiple local solutions, start fmincon from multiple initial points.
Alan Weiss
MATLAB mathematical toolbox documentation

More Answers (0)

Community Treasure Hunt

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

Start Hunting!