How do I know which constarints are active at the optimum, while using the functions from the Optimization Toolbox?
22 views (last 30 days)
Show older comments
I would like to know which constarints are active at the optimum, while using the functions from the Optimization Toolbox.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
At the optimum, all the active constraints (exactly satisfied) are listed as numbers. These numbers correspond to constraints (numbered by some rule). This is explained in the Related Solution listed below.
One way to determine which constraints are active is to check the Lagrange multipliers specified in the LAMBDA output parameter of FMINCON. Any nonzero component of LAMBDA indicates an active constraint (not strictly, see below).
Unfortunately, there can be active constraints with zero multipliers (in theory, this situation is described as "violation of the strict complementary slackness"). Hence you must check your constraints directly in order to be sure that this does not occur.
0 Comments
More Answers (0)
See Also
See Also
Categories
Find more on Nonlinear Optimization in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!