Why does my optimization solver return a solution that violates constraints when it ends prematurely?
이전 댓글 표시
I am using an optimization solver with the active set algorithm and in most cases I see it correctly return a vector subject to all constaints, as it should.
However, I see several cases where one of the coefficients disobeys one or more constaints.
This is surprising as I believe the solver should guarantee that all constraints are met when it finds a solution.
Can you please help me understand the conditions when a solver would return one or more coefficients that disobey my constaints? Possibly due to the iteration count being exceeded or the solver exiting prematurely?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Choose a Solver에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!