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 , writeand use the optimization LagrangianA candidate satisfies the KKT conditions exactly when all four requirements hold:
- Primal feasibility: and , so is a feasible point.
- Dual sign feasibility: . The equality Lagrange multipliers are unrestricted real numbers.
- Stationarity: the gradient of the optimization Lagrangian in the decision variables vanishes,
- Complementary slackness: for every inequality optimization constraint.[ref]Lecture 7: Lagrange Multipliers and KKT Conditions. Lecture 7, §L7.1.1, Definition L7.1, printed p. 3: the four KKT requirements
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]
Convex Optimization by Stephen Boyd and Lieven Vandenberghe. Chapter 5 bibliography, printed p. 272, and bibliography entries KT51 and Kuh76
Shadow price of an inequality constraint 2026-10-14
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]
Convex Optimization by Stephen Boyd and Lieven Vandenberghe. §5.6.3, printed pp. 251–252, equation (5.58): local sensitivity
In the quadratic minimization with a moving upper bound, direct differentiation givesThe 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.
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 givesAt 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.
