Shadow prices: what is extra capacity worth?
The question
How much more can a workshop earn when it gets more time and can reassign both presses?
- 1 SeeGuess the gain from extra workshop time.
- 2 TryMove the budget and test the estimate.
- 3 ProveDerive the slope of the best value.
- 4 ApplyPrice changes to resource limits.
Before you start · 3 quick checks on constraints, slopes and Lagrangian signs
Two ideas before you start
2 ideasA budget gives a menu of splits
A line segment joins the splits that use the whole budget.
Each point on the segment uses the whole block. Moving the budget changes which splits you can choose.
Exact definition
Let \(x\) and \(y\) be nonnegative real hours assigned to the two presses and let \(c\) be the total number of hours. With the whole block assigned, the feasible set is the segment \(x+y=c\), \(x,y\ge0\). The ends give the full block to one press.
The workshop scores a split with a function \(F(x,y)\). For each \(c\), the value function \(V(c)\) gives the largest score across the feasible set for that \(c\).
Compare two best values
An example value line with two budgets marked. A vertical segment measures the change in value.
The solid line is a separate example with a constant rate. The vertical segment measures a signed change between two best values.
Exact definition
Write the new budget as \(c+h\), where \(h\) is the signed change in hours. The exact change in the optimum is \(\Delta V=V(c+h)-V(c)\). It can include the effect of changing both choices.
When \(V\) is differentiable at \(c\), the derivative \(V'(c)\) measures the rate of change per unit of budget there. In this setting that marginal rate is called the shadow price. The finite change in score is measured in points. Its derivative is measured in points per hour.
Fine print on the multiplier convention
For an interior solution of \(x+y=c\), use \(L=F+\lambda(c-x-y)\), where \(L\) is the Lagrangian and \(\lambda\) is its multiplier. The partial derivatives with respect to \(x\) and \(y\) are taken with the other variables held fixed. Stationarity gives \(F_x=\lambda\) and \(F_y=\lambda\). The lesson on Lagrange multipliers explains why these slopes agree when a feasible transfer can go either way.
With the residual \(x+y-c\) added to \(F\) instead, the multiplier has the opposite sign. The value of an extra hour, \(V'(c)\), does not depend on this choice: under that convention it equals \(-\lambda\).
Quote the gain from more workshop time
- Choose how many hours to add to the current block.
- Enter your guess for the change in the best score. Check it to see both the new optimum and the multiplier estimate.
What the estimate holds fixed
The estimate takes the slope at the old budget and extends it across the entire move. The exact comparison solves the allocation problem at each budget and subtracts the two optimal scores. Each endpoint can have a different allocation of hours.
The gap in the picture is vertical. Both endpoints of that gap are evaluated at the new budget. Subtracting the old score from each endpoint turns the gap in levels into the same gap in changes.
Move the starting budget
- Answer the question, then use the sliders to vary the starting budget and the signed move separately.
The plot and its goals open after you check your answer.
How to compare a cut with an increase
Read the two changes as signed numbers. On a cut, an estimate above the true change can mean the actual loss is larger than the estimated loss. Changing the starting budget moves the point of tangency. Changing only the step moves the endpoint where you compare the two scores.
This problem assigns all the hours by assumption. If an extra block must be used even after both presses reach their best individual assignments, the optimal score can fall. When the hours are an upper limit and unused time is allowed, an increase in the limit keeps every previously feasible choice available.
Derive the multiplier and the finite change
Let \(a\gt b\gt0\) be fixed and let \(F(x,y)=ax+by-\tfrac{x^2+y^2}{2}\). Maximize \(F\) over nonnegative real \(x,y\) with \(x+y=c\). For \(c\gt a-b\), both choices at the unique optimum are positive. Write them as \(x^*(c)\) and \(y^*(c)\). Use the convention \(L=F+\lambda(c-x-y)\).
For a nonzero real \(h\) with \(c+h\gt a-b\), the change in the optimum obeys
\[\Delta V=\lambda(c)h-\frac{h^2}{4}.\]The shadow price is \(V'(c)=\lambda(c)\), and the finite error is determined by the squared step.
Build the argument from one feasible variable. The theorem states the result. The choices ask how to get it.
Why the argument extends beyond the workshop
Suppose an objective \(F(z)\) has no explicit dependence on \(c\), and a differentiable path \(z^*(c)\) of interior maximizing choices satisfies a differentiable equality \(g(z^*(c))=c\). Assume stationarity in the form \(\nabla F=\lambda\nabla g\) along this path. Here \(z\) collects the decision variables and gradients are evaluated at the maximizing choice.
The chain rule gives \(V'=\nabla F\cdot(z^*)'\). Differentiating the constraint gives \(\nabla g\cdot(z^*)'=1\). Substitution leaves \(V'=\lambda\). The derivative of the optimizer appears in both expressions and cancels through the constraint.
A change in the binding constraints can change which derivative formula applies. An optimum value can even have a kink, where the left and right slopes differ. The lesson on KKT conditions connects unused capacity with a zero multiplier for an inequality. In linear programming, a resource price can stay constant over a range and then change when another limit takes over. The last problem gives one example.
Problems
Enter a signed number. Decimals and fractions are accepted, along with a dollar sign and US thousands separators for amounts. Each problem states when rounding is allowed.
Further reading
- S. Boyd and L. Vandenberghe, Convex Optimization, “Perturbation and sensitivity analysis.”
- D. Bertsimas and J. N. Tsitsiklis, Introduction to Linear Optimization.