Definition · The economic order quantity modelOne item is drawn from stock at a constant demand rate D per unit time. Replenishing costs a fixed ordering cost K per order, whatever the size, and arrives all at once the moment stock reaches zero. Carrying stock costs a holding rate h per unit per unit time.
The decision is the order quantity Q. Orders are placed every Q/D units of time, so the cost per unit time is C(Q) = K·D/Q + h·Q/2: the first term is the ordering bill, the second is the holding bill.
Read the two terms rather than the sum. K·D/Q is D/Q orders per unit time at K each, and it falls as the batch grows. h·Q/2 is the holding rate times the average stock, and it rises. Neither can be made small without making the other large, which is why there is an answer at all: a cost with only one of those terms in it is minimised by ordering everything at once, or by ordering nothing, and neither is a decision.
K = 100 per order, D = 1200 a year, h = 6 per unit per year
Q ordering K·D/Q holding h·Q/2 total
100 1200 300 1500
150 800 450 1250
200 600 600 1200 equal halves
250 480 750 1230
300 400 900 1300
400 300 1200 1500
the total is least where the two columns meet, and only there
The panel samples that curve on exact rationals and draws the three lines together, because the crossing IS the optimum and a reader should watch the two halves meet rather than be told they do. Underneath it the sawtooth redraws at whatever Q you pick, so the cycle length Q/D and the average level Q/2 move while you look at them.
Where the two halves cross
Theorem · The economic order quantityK·D/Q = h·Q/2 rearranges to Q² = 2KD/h, so the crossing is at Q* = √(2KD/h). The cost there is C* = √(2KDh), and the two halves are each √(2KDh)/2.
That the crossing is the minimum rather than merely a landmark is the content of the discriminant argument, and it is done in the next lesson rather than asserted here.
Nothing above was differentiated. This path does not have calculus and does not need it: the sibling lesson turns “is there a quantity costing at most T” into a quadratic inequality and reads the minimum off its discriminant, which is the same argument Algebra makes in “The Discriminant” and “Quadratic Inequalities”, applied to a cost.
Example · A workshop whose answer is a whole numberAt K = 100, D = 1200, h = 6 the panel reports Q* = 200 and C* = 1200, split as 600 of ordering and 600 of holding. Both are rational here — 2KD/h = 40000 and 2KDh = 1440000 are perfect squares — so the panel says so and every digit it prints is exact.
This is the only kind of instance on which a reader can check the whole page by hand, which is why it is the one the lab opens with. It is also, in the arithmetic sense, a coincidence.
Example · A bench whose answer is notSwitch the worked example to K = 50, D = 600, h = 5 and 2KD/h = 12000, which is not a square. The panel now prints Q* = 20√30 and C* = 100√30, tags both as irrational, and puts 109.5445 and 547.7226 beside them with the sentence that names the rounding and the method — four places, from the exact surd, by integer square root with three guard digits.
The cheapest WHOLE quantity there is 110, and the panel finds it by pricing every whole quantity rather than by rounding: 109 really does cost more than 110, 119405/218 against 6025/11, and that is a comparison of two fractions with no decimal in it.
How flat is flat
“The cost curve is flat around the optimum” is the sentence every account of this model contains and almost none of them measures. It is measurable. Order t times the best quantity and the cost is (t + 1/t)/2 times the minimum — substitute t·Q* into C(Q) and every one of K, D and h cancels. The penalty for being out by a factor is a property of the factor alone.
t C(t·Q*)/C* on K = 100, D = 1200, h = 6: Q = t·200, cost
1/2 5/4 100 1500
3/4 25/24 150 1250
1 1 200 1200
6/5 61/60 240 1220
2 5/4 400 1500
t and 1/t give the SAME ratio, so half the batch and twice the batch
cost the same 25% extra — the curve is symmetric in t, not in Q
So “within a fraction e of the minimum” is (t + 1/t)/2 ≤ 1 + e, which is t² − 2(1 + e)t + 1 ≤ 0: a second quadratic, with a second discriminant 4e(2 + e), whose roots are (1 + e) ± √(e(2 + e)). At e = 1/100 the discriminant is 201/2500 and the ends of the band are 101/100 ± √201/100. Those are irrational, and the panel prints that exact form beside the decimals rather than only the decimals.
In quantities, on the worked instance, the band runs from 173.6451 to 230.3549: you may order 13.2% too little or 15.2% too much and still be within one per cent of the best cost there is. Those two percentages are the same on every instance the panel can be given, because they come from t and t has no K, D or h in it. The two decimals are the midpoints of rational brackets under 10⁻¹³ wide, so every digit shown is a digit of the true number — a statement about the printing, not a hope about it.
Widen the tolerance and the band widens the way the ratio says it must: 5% of the minimum allows 145.9688 to 274.0312, and 25% allows exactly 100 to 400. That last one is the one case where the ends come out rational, and the panel switches its wording to say so: at e = 1/4 the roots are 1/2 and 2, which is the same 5/4 seen from the other side.
What the model left out is a list worth keeping. Demand is constant and known; the order arrives complete and instantly; nothing is ever short; the price per unit does not depend on how much is bought, so it is a constant D·price that no choice of Q can change and it is left out of C(Q) altogether. The three lessons after this one put the last three of those back, one at a time, and each one changes the answer.