The workshop's optimal plan — ten tables, twenty chairs, £1000 — was computed from numbers that are all slightly wrong. The £40 table profit is an estimate; the 30 carpentry hours might be 28 next week; a supplier's price could drift. A brittle answer that only holds for one exact set of inputs would be useless to a real manager. Sensitivity analysis asks the grown-up question: how much can the data change before my decision changes? It draws a comfort zone around the optimum, and it is where linear programming earns its keep in the boardroom.
Same workshop as before —
Suppose the profit on a table isn't really £40. As we nudge it, the iso-profit line tilts. For a while
the same corner
For the table coefficient the range is
The other lever is a resource limit. A shadow price is the slope of optimal profit against a
right-hand side, and it stays constant only while the same set of constraints stays binding — that span
is the RHS's allowable range. For carpentry, the £20/hr shadow price holds over
| Change | Current | Allowable range | Rate while it holds |
|---|---|---|---|
| Table profit | £40 | £30 – £60 | plan fixed at (10, 20) |
| Chair profit | £30 | £20 – £40 | plan fixed at (10, 20) |
| Carpentry hours | 30 | 20 – 40 | shadow price £20/hr |
| Finishing hours | 40 | 30 – 60 | shadow price £10/hr |
So renting up to 10 extra carpentry hours reliably earns £20 each; the eleventh may earn less, because beyond 40 hours finishing becomes the binding bottleneck and carpentry's shadow price collapses.
Now imagine a third product — a stool — needing 1 carpentry hour and 1 finishing hour, earning £25. Should the workshop make any? Its reduced cost compares its profit to the shadow-price value of the resources it would eat:
Negative, so a stool destroys £5 of profit versus using those hours on tables and chairs — leave it out (its optimal level is zero). The reduced cost also tells you the fix: the stool's profit would have to rise by £5, to £30, before it is worth making. For any product actually in the plan the reduced cost is zero — it exactly pays its way. Reduced cost is to variables what shadow price is to constraints.
Every range above is one-at-a-time: it assumes all other data stay put. Change two coefficients together and the ranges can interact. The 100% rule is the safe test:
Example: raise the table profit by £10 (that's
A bare optimal plan says "do this." A sensitivity report says "do this, and here is how robust it is": which numbers you can ignore small errors in, which are on a knife-edge, what an extra hour of each resource is worth, and which idle product is closest to becoming worthwhile. That is the language of actual decisions under uncertainty — budgeting overtime, negotiating a supplier price, deciding which estimate is worth refining. Solvers print this report for free alongside the solution, and seasoned analysts read it first. The optimum tells you what to do today; the sensitivity report tells you how nervous to be about it.
The single commonest sensitivity-analysis blunder is treating each allowable range as independent and changing several inputs to the edges of their ranges at once. Each range is computed holding all other data fixed; simultaneous changes can knock the optimum off its corner even when every individual change looks "in range." Use the 100% rule for combined changes — and if the fractions add past 100%, don't guess, re-solve. Likewise, never push a right-hand side beyond its range and keep applying the old shadow price: past the boundary a different constraint binds and the marginal value has changed.