필터 지우기
필터 지우기

When solving the global optimal solution with MATLAB fmincon function, is it to find several local optimal solutions and then compare them to choose the optimal solution?

조회 수: 4 (최근 30일)
When solving the global optimal solution with MATLAB fmincon function, is it to find several local optimal solutions and then compare them to choose the optimal solution?

채택된 답변

Walter Roberson
Walter Roberson 2022년 3월 15일
fmincon() does not do that automatically. fmincon() stops at the first local minima it finds that satisfies the constraints -- but the process of determining whether it is a local minima involves probing other locations to see if it can find an improvement.
If you need to have several local minima compared automatically then you would use the Global Optimization Toolbox, probably using multistart() or similar.
  댓글 수: 3
Walter Roberson
Walter Roberson 2022년 3월 15일
Yes, that code would automatically generate multiple starting points and would compare the results to select the best of them.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by