Why does my optimization solver return a solution that violates constraints when it ends prematurely?
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on Solver Outputs and Iterative Display in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!