trust-region reflective algorithm in lsqnonlin and fmincon: same behavior for "unconstrained" optimization"?

조회 수: 3 (최근 30일)
Say I provide constraints to lsqnonlin and fmincon. For both, I will choose trust-region-reflective algorithm
Do both fmincon and lsqnonlin behave identical in case the constraints are not active (unconstrained optimization)?
By identical, I mean is the same variant of trust-region-reflective algorithm implemented in fmincon and lsqnonlin, or are they different?

채택된 답변

Matt J
Matt J 2023년 2월 15일
편집: Matt J 2023년 2월 15일
No, they are not the same. They both take steps in a 2D subspace, but for fmincon, the basis vectors for the subspace are determined from the exact Hessian (see equations (3,4) here), whereas for lsqnonlin, they are determined from the Jacobian (see equation (6) here).
  댓글 수: 4
SA-W
SA-W 2023년 2월 16일
Interestingly, the three solutions differ only by a constant. Would you consider the solution "FMINCON - ONLY GRADIENT" to be the worst of the three solutions?
I obtained very good results with lsqnonlin (trust-region-reflective), but now my problem has both bounds and inequality constraints, which is why I have to switch to fmincon. If both bounds and inequality constraints are present, I can not use trust-region-reflective algorithm anymore. Which of the algorithm in fmincon resembles the trust-region-reflective algorithm most closely?
Matt J
Matt J 2023년 2월 16일
편집: Matt J 2023년 2월 16일
Interestingly, the three solutions differ only by a constant.
Because [1;1;1] is in the null space of A.
Would you consider the solution "FMINCON - ONLY GRADIENT" to be the worst of the three solutions?
They all achieve the same resnorm so how could it be worse than any of the others?
Which of the algorithm in fmincon resembles the trust-region-reflective algorithm most closely?
I don't think a comparison can be drawn. Inequality constraints are going to change the algorithm a lot.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by