Karush-Kuhn-Tucker conditions Created 2026-09-24 Updated 2026-10-14
The Karush-Kuhn-Tucker conditions combine membership of the feasible set with a balance of gradients and complementary slackness. For a minimization problem with differentiable functions on an open subset of , write
and use the optimization Lagrangian
A candidate satisfies the KKT conditions exactly when all four requirements hold:
The sign of each inequality Lagrange multiplier follows the chosen convention : on the feasible set, makes the optimization Lagrangian a lower bound on the objective function. An equality contributes zero on the feasible set for either sign of its Lagrange multiplier. Complementary slackness says an inequality with must have , while implies an active constraint. An active constraint can still have zero Lagrange multiplier; the quadratic minimization with a moving upper bound below gives an explicit example.
The name records William Karush's 1939 master's thesis and the 1951 work of Harold W. Kuhn and Albert W. Tucker.[ref]
A shadow price measures the marginal improvement from relaxing an inequality optimization constraint. Use for in a minimization problem. With strong duality and a differentiable optimal value function, .[ref]
In the quadratic minimization with a moving upper bound, direct differentiation gives
The derivative at is zero from both sides, although has different one-sided derivatives there. The value of additional room has faded continuously to zero just as the active constraint stops restricting the optimizer.
At , , and . Raising the bound to lowers the value to : the first-order prediction is a change of , while the exact change is . At , the same relaxation leaves and . At , tightening by costs , a second-order effect despite the zero Lagrange multiplier.
Figure 1.
The derivative of the optimal value is the negative inequality multiplier
. Details.
There is also a global statement in this example. Keeping the Lagrange multiplier at the value associated with , the Lagrange dual function changes by . Weak duality therefore gives
At this is , the supporting tangent shown in the diagram. This bound remains valid for large changes, whereas the derivative predicts only the first-order effect. If the value function is not differentiable, an optimal Lagrange multiplier can instead supply a supporting subgradient, rather than a unique marginal rate. This is the same idea used in sensitivity analysis in convex perturbation duality.