Mental Playbooks
Mental Models

Shadow Price

In a constrained optimization problem, a shadow price is the marginal change in the optimal objective as a constraint is relaxed, under the model's local conditions.

A scarce hour can be worth more than its wage when releasing that hour changes the best feasible plan. The value depends on the current plan and its next constraint.

Two market stalls serve queues of different lengths.

How much would our best achievable outcome improve if this limit moved by one small unit?

A repair bench has parts and staff for twelve jobs but permits for only ten. Ten selected jobs each contribute $50. The next eligible job contributes $35 and the twelfth contributes $10. An eleventh permit is worth up to $35 in this discrete example. A twelfth adds only $10. Do not multiply the first figure across a large expansion.

  1. 1.Identify the binding resource and define the objective.
  2. 2.Re-optimize after a small relaxation while holding other assumptions fixed.
  3. 3.Check when the original constraint stops binding or the mix of work changes.
  • ·A market price and an internal marginal value need not match.
  • ·In an integer problem the value of one whole additional unit can differ from a continuous model's shadow price.

What if the resource has slack?

A small increase in a slack bound generally leaves the optimized outcome unchanged, giving it zero marginal value under that model.

Why calculate it before buying more capacity?

It gives an upper bound on what a small increment is worth to this particular plan, before purchase and implementation costs.

SciPy reference, linprog and marginal values of constraints