How to change the MaxSQPIter in the fmincon solver options?

조회 수: 2 (최근 30일)
Gaetano
Gaetano 2020년 8월 25일
댓글: Gaetano 2020년 8월 25일
Hi,
In the display of my optimization problem:
"Optimization stopped because the maximum number of iterations of the quadratic programming subproblem, options.MaxSQPIter, was reached but the maximum constraint violation exceeds options.ConstraintTolerance." (exit flag = -2).
So how I can change the MaxSQPIter? I don't find this parameter in the solver options (only MaxFunctionEvaluation or MaxIteration).
Thanks for the help
Gaetano

채택된 답변

Alan Weiss
Alan Weiss 2020년 8월 25일
If you look in the fmincon documentation of options you fiind that MaxSQPIter is a hidden option for the active-set algorithm.
I don't know why you are using this algorithm. I would try the sqp algorithm instead, which is similar in many ways, but more modern and robust.
And the problem might not be with the algorithm or options, but might be that the problem is truly infeasible. See When the Solver Fails, particularly the section on Converged to an Infeasible Point.
Alan Weiss
MATLAB mathematical toolbox documentation
  댓글 수: 1
Gaetano
Gaetano 2020년 8월 25일
The sqp algorithm fails many times to solve my problem, I don't know why.
Now I found the way to change the MaxSQPIter:
C:\Program Files\MATLAB\R20xx\toolbox\shared\optimlib\nlconst.m "line 252"
Thanks anyway

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Nonlinear Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by