Skip to content

Shadow Price in Constrained Optimization

Definition

In a constrained optimization problem, a shadow price is the marginal change in the optimal value when a constraint is relaxed slightly. Under the usual regularity assumptions and sign conventions, this marginal change is represented by the associated Lagrange multiplier.

For a constraint written as g(x)=bg(\boldsymbol{x})=b, one commonly has

dVdb=λ\frac{\mathrm{d}V}{\mathrm{d}b}=\lambda

or the corresponding sign-adjusted version determined by the Lagrangian convention.

For a linear program the same quantity is the shadow price in linear programming, read off the optimal simplex tableau and valid over a right-hand-side range.


Interpretation

A shadow price measures how valuable a little extra room in a constraint would be at the optimum: the rate at which the optimal value changes when the right-hand side bb increases.

Concave value function V(b) of the resource level b, with its tangent at b0. A step of one unit in b raises the tangent by its slope, the shadow price mu.

The curve is the value function V(b)V(b), the optimal value for each resource level bb, and the red line is its tangent at b0b_0. The slope of the tangent is the shadow price, written μ\mu in the figure and λ\lambda in the Definition. A step Δb=1\Delta b=1 raises the tangent by μ\mu, while VV, which bends downward here, rises a little less: the shadow price is a rate, exact only for small changes of bb.

Change cc: the optimal value V(c)V(c) (right) rises with slope μ\mu, the value of one more unit of the constrained resource.

To see why the multiplier gives this rate, take one equality constraint g(x)=bg(\boldsymbol{x})=b with the convention L=f+λ(b−g)L=f+\lambda(b-g), and suppose the optimizer x∗(b)\boldsymbol{x}^\ast(b) depends differentiably on bb. The chain rule gives V′(b)=∇f⊤dx∗/dbV'(b)=\boldsymbol{\nabla} f^{\top}\mathrm{d}\boldsymbol{x}^\ast/\mathrm{d}b. The Lagrange condition ∇f=λ∇g\boldsymbol{\nabla} f=\lambda\boldsymbol{\nabla} g turns this into λ ∇g⊤dx∗/db\lambda\,\boldsymbol{\nabla} g^{\top}\mathrm{d}\boldsymbol{x}^\ast/\mathrm{d}b, and differentiating g(x∗(b))=bg(\boldsymbol{x}^\ast(b))=b shows that ∇g⊤dx∗/db=1\boldsymbol{\nabla} g^{\top}\mathrm{d}\boldsymbol{x}^\ast/\mathrm{d}b=1. So V′(b)=λV'(b)=\lambda, as in the envelope theorem.

The sign depends on how the constraint is written: with L=f+λ(g−b)L=f+\lambda(g-b) the same derivative is −λ-\lambda. For an inequality g(x)≤bg(\boldsymbol{x})\le b in a maximization problem the multiplier is nonnegative, because extra room can never lower the maximum, and a slack constraint has shadow price 00, as in linear programming.

A common slip is to differentiate the objective with the decision variables held fixed. For max⁡xy\max xy subject to x+y=bx+y=b, the objective xyxy does not even contain bb; the shadow price V′(b)=b/2=λV'(b)=b/2=\lambda, from V(b)=b2/4V(b)=b^2/4 at x=y=b/2x=y=b/2, comes from reoptimizing.


Key Results

  • A positive shadow price means relaxing the constraint raises the optimal value under the chosen convention.
  • A zero shadow price often corresponds to a nonbinding inequality constraint.
  • The sign depends on whether the constraint is written as a resource, residual, or equality condition.

Examples

  • If one more unit of a resource increases maximum profit by 33, the shadow price of that resource is 33.
  • If a budget constraint is slack, its shadow price is typically 00 because a small increase in the budget does not improve the optimum.

Prerequisites

Sources

Keywords: shadow price, marginal value of a constraint, multiplier interpretation Symbols: delta, lambda, mu, nabla gradient

Last updated: 20 October 2026 03:02