order of nonlinear inequality constraints when using fmincon

조회 수: 1 (최근 30일)
Stephane Eisen
Stephane Eisen 2020년 8월 26일
편집: Matt J 2020년 8월 26일
When using fmincon, I have found that the order in which I build up the nonlinear inequality (cIneqVec) constraint vector impacts the resulting value of the objective function.
Is the order in which I build up cIneqVec important?
Does fmincon somehow prioritize the constraints based on their element position in the vector?

답변 (1개)

Matt J
Matt J 2020년 8월 26일
편집: Matt J 2020년 8월 26일
The order of the constraints would probably cause their gradients and Hessians to be summed in a different order, which in turn would introduce small differences in floating point approximation errors into the results. My guess is that the differences you see are due to that.

카테고리

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by