Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Why fmincon cannot find the local minumum back when it is supplied as initial point

조회 수: 1 (최근 30일)
cebum
cebum 2017년 5월 29일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi all,
I'm using fmincon to solve a contrained optimization problem. Fmincon finds different local minima for different initial points, which is normal given that it's not a global technique. However, I'm confused why it cannot find the same local optimum once I supply it as the inital point. It says it converged to an infeasible point, with exitflag -2, which is the local optimum that it found before. Any idea why?
Many thanks!

답변 (1개)

Nachiket Katakkar
Nachiket Katakkar 2017년 6월 1일
The error message indicates that the given set of constraints are impossible to solve due to an inconsistency. To troubleshoot this, it is helpful to remove these constraints one at a time to get a general idea of where the problem may originate.
Some other things to check:
  1. If the local optimum (supplied by the first optimization) is actually a feasible point according to the set of constraints
  2. The number of iterations does fmincon runs in both cases. You may need to increase the number of iterations.
  3. The tolerance values might need to be changed using optimoptions
Have you considered global searching algorithms like "ga" or "patternsearch", considering that the problem you wish to solve is non-convex?

Community Treasure Hunt

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

Start Hunting!

Translated by