Skip to content

Complementary Slackness

Definition

For an inequality constraint written as ci(x)≤0c_i(\boldsymbol{x})\le 0 (for example ci=gi−bic_i=g_i-b_i for a constraint gi(x)≤big_i(\boldsymbol{x})\le b_i) with multiplier λi≥0\lambda_i\ge 0, complementary slackness is the condition

λici(x∗)=0.\lambda_i c_i(\boldsymbol{x}^\ast)=0.

Equivalently, either the constraint is binding or its multiplier is zero.


Interpretation

Complementary slackness says that a constraint can matter through its multiplier only when it is actually tight.

Two panels. Left: the optimum lies on the boundary of the feasible region, the constraint is active and its multiplier is positive. Right: the optimum lies inside, the gradient of f is zero and the multiplier is zero.

On the left, the binding constraint holds back the maximum, with ∇f=λ∇c\boldsymbol{\nabla} f=\lambda\boldsymbol{\nabla} c, λ>0\lambda>0, and c=0c=0. On the right, the optimum lies in the interior and the multiplier is zero. The grey curves are objective level sets and the blue region is feasible.

The inequality fixes the sign of the slack. A strictly negative constraint value forces its multiplier to zero because their product must vanish; equality permits a nonzero multiplier.


Key Results

  • If ci(x∗)<0c_i(\boldsymbol{x}^\ast)<0, then λi=0\lambda_i=0.
  • If λi>0\lambda_i>0, then ci(x∗)=0c_i(\boldsymbol{x}^\ast)=0.
  • The condition is part of the Kuhn-Tucker system for inequality-constrained optimization.

Examples

  • If x≤4x\le 4 is written as x−4≤0x-4\le 0 and the optimum has x=3x=3, then the multiplier must be 00.
  • If a multiplier for x≤4x\le 4 is positive, then the optimum must satisfy x=4x=4.

Prerequisites

Sources

Aliases: complementary slackness condition, kt slackness, complementarity condition Keywords: slackness condition Symbols: lambda, nabla gradient

Last updated: 17 October 2026 21:53