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!