The Classical Approximation, and Service Targets

Manuel D. Rossetti, PhD P.E.

Agenda

  • The classical approximation: its assumptions, its cost model, its conditions
  • The approximation on a fast mover and on a slow mover, priced against the exact optimum
  • The cycle service level and the fill rate, derived, and why “95%” means two things
  • The constrained program a target poses, and the cost a target asserts
  • The safety factor, and why it is not a normal table

The Classical Approximation

The exact model is not the one most textbooks give first. The classical treatment, from Hadley and Whitin, is what nearly every spreadsheet and planning package implements. It rests on twelve stated assumptions and one it leaves unstated; four do the damage.

Assumption What it does
(h) \(D(L)\) is a continuous random variable replaces the distribution
(i) Never more than one order outstanding \(D(L)\) never exceeds \(Q\)
(k) \(r \ge 0\), reached while \(I(t) > 0\) no backorders when \(r\) is reached
(l) Expected backorders very small against expected on hand \(E[B] \approx 0\)
(m) The position treated as continuous on \([r, r + Q]\) \(Q/2\) in place of \(\tfrac{1}{2}(Q + 1)\)

Also: shortage cost \(\pi\) per unit short (c), and a fixed lead time (f).

Notice that (i), (l) and (m) drop terms from a cost the exact model computes, and (h) replaces the distribution. Those are separate errors, and they can run in opposite directions.

The Cost Model, One Term at a Time

Ordering. Orders are placed at the rate demand consumes them: \(k\lambda/Q\).

Shortage. By (k), \(I = r\) when the reorder point is reached, so a cycle is short exactly when \(D(L) > r\), by \(D(L) - r\):

\[ \frac{\text{units short}}{\text{cycle}} \times \frac{\text{cycles}}{\text{year}} \times \frac{\text{dollars}}{\text{unit short}} = G^{1}(r) \times \frac{\lambda}{Q} \times \pi \]

Holding. By (l), \(E[I] \approx E[\mathit{IN}]\). The safety stock \(r - \theta\) remains when an order arrives and \(Q\) arrive with it, so the level cycles between \(r - \theta\) and \(r - \theta + Q\):

\[ C(r, Q) \approx k\frac{\lambda}{Q} + h\left(\frac{Q}{2} + r - \theta\right) + \pi\frac{\lambda}{Q}G^{1}(r) \]

Notice that this is the EOQ cost with two terms added, and the \(Q/2\) is the deterministic cycle stock unchanged. The uncertainty has been pushed entirely into \(r\).

Two Conditions, Solved Together

\[ \begin{aligned} \frac{\partial C}{\partial Q} &= -\frac{k\lambda}{Q^{2}} + \frac{h}{2} - \frac{\pi\lambda G^{1}(r)}{Q^{2}} = 0 &&\text{differentiate in } Q\\ Q &= \sqrt{\frac{2\lambda\left[k + \pi G^{1}(r)\right]}{h}} &&\text{solve for } Q\\[4pt] \frac{\partial C}{\partial r} &= h - \frac{\pi\lambda}{Q}G^{0}(r) = 0 &&dG^{1}/dr = -G^{0}(r)\\ G^{0}(r) &= \frac{Qh}{\pi\lambda} &&\text{solve for } G^{0}(r) \end{aligned} \]

The first is the EOQ with the ordering cost inflated by \(\pi G^{1}(r)\), the expected shortage cost per cycle. Uncertainty raises \(Q\) by making each cycle more expensive to begin.

The second makes the stockout probability per cycle \(Qh/(\pi\lambda)\), so for a given \(Q\), \(r\) is a quantile. Neither solves alone: start at the EOQ, solve for \(r\), put it back, repeat.

One Pass of the Iteration

The compression connector: \(\lambda = 6{,}000\), \(k = \$27.50\), \(h = \$0.85\), \(\pi = \$8.50\), \(\theta = 230.77\), a gamma with \(\alpha = 230.77\) and \(\beta = 1\). Each pass has four steps.

\[ \begin{aligned} Q &= \sqrt{2(6000)(27.50)/0.85} = 623.09 &&\text{1. start from the EOQ}\\ G^{0}(r) &= \frac{Qh}{\pi\lambda} = \frac{623.09(0.85)}{8.50(6000)} = 0.010385 &&\text{2. the stockout probability for that } Q\\ r &= 267.33 &&\text{3. the quantile, from GAMMA.INV}\\ G^{1}(r) &= (\alpha - r)\,G^{0}(r) + r\,g(r) &&\text{4. the gamma's loss function}\\ &= (-36.56)(0.010385) + 267.33(0.0016446) = 0.05995 &&g(r) \text{ from GAMMA.DIST}\\ Q &= \sqrt{\frac{2(6000)\left[27.50 + 8.50(0.05995)\right]}{0.85}} = 628.83 &&\text{pass 2 starts here} \end{aligned} \]

A Fast Mover: the Compression Connector

\(\lambda = 6{,}000\) a year, \(c = \$3.40\), \(k = \$27.50\), \(h = 0.25(3.40) = \$0.85\), \(\pi = \$8.50\), two weeks: \(\theta = 6000 \times 2/52 = 230.77\), Poisson, so the gamma has \(\alpha = 230.77\), \(\beta = 1\).

Pass \(Qh/(\pi\lambda)\) \(r\) \(G^{1}(r)\) new \(Q\)
1 0.010385 267.33 0.0599 628.83
2 0.010481 267.28 0.0606 628.89
3 0.010481 267.28 0.0606 628.89

Starting at \(Q = \sqrt{2(6000)(27.50)/0.85} = 623.09\).

At \((267, 629)\), with \(G^{1}(267) = 0.0635\) recomputed after rounding:

\[ \begin{aligned} C &= 262.32 + 298.12 + 5.15\\ &= \$565.59 \text{ a year} \end{aligned} \]

The exact evaluation gives $565.14: 0.08% high. A full search puts the best policy at $565.14 too. The policy penalty is zero.

The Transformer’s Iteration

\(\lambda = 45\), \(k = \$220\), \(h = \$950\), \(\theta = 7.5\), \(\pi = \$5{,}700\) per unit short. Pass 1 starts from \(Q = 4.5653\): \(G^{0}(r) = 4.5653(950)/256{,}500 = 0.016909\), \(r = 14.4156\), \(G^{1}(r) = 0.02711\), and the new \(Q\) is \(\sqrt{90\left[220 + 5700(0.02711)\right]/950} = 5.9567\).

Pass \(Q\) in \(G^{0}(r) = Qh/(\pi\lambda)\) \(r\) \(G^{1}(r)\) new \(Q\)
1 4.5653 0.016909 14.4156 0.0271 5.9567
2 5.9567 0.022062 13.9611 0.0359 6.3434
3 6.3434 0.023494 13.8522 0.0384 6.4480
4 6.4480 0.023882 13.8238 0.0391 6.4761
5 6.4761 0.023986 13.8163 0.0393 6.4837
6 6.4837 0.024014 13.8143 0.0393 6.4857

The pair is heading for \(r = 13.81\) and \(Q = 6.49\), so the recommendation is \((14, 6)\). Each pass closes about three quarters of the distance that remains, where the connector’s first pass closed 99% of it.

A Slow Mover: the Transformer

An emergency purchase costs $9,500 against $3,800, so \(\pi = \$5{,}700\) per unit short. At the recommended \((14, 6)\), with the loss function recomputed at the rounded reorder point, \(G^{1}(14) = (7.5 - 14)(0.021569) + 14(0.012519) = 0.03507\):

\[ C = \underbrace{220\tfrac{45}{6}}_{1{,}650.00} + \underbrace{950\left(\tfrac{6}{2} + 14 - 7.5\right)}_{9{,}025.00} + \underbrace{5700\tfrac{45}{6}(0.03507)}_{1{,}499.25} = \$12{,}174.25 \]

The exact evaluation gives $11,922.90, so the report is 2.11% high. Is a 2% error a sign the approximation works here?

Cost Against the truth
Exact $11,922.90
What (i), (l) and (m) alone would report $11,448.30 \(-3.98\%\)
What the gamma then adds \(+\$725.95\) \(+6.09\%\)
What the approximation reports $12,174.25 \(+2.11\%\)

A small net error is hiding two large errors of opposite sign.

Where Each Piece Comes From

Source Term Cost
(m), the position treated as continuous \(h \times \tfrac{1}{2}\) \(-\$475.00\)
(l), backorders negligible \(h \times \bar{B} = 950(0.0022)\) \(-\$2.06\)
(i), \(D(L)\) never exceeds \(Q\) the \(G^{1}(r+Q)\) term \(+\$2.46\)
(h), a gamma in place of a Poisson the tail of the shortage term \(+\$725.95\)

(h) is the largest. One unit is \(1/2.74 = 36.5\%\) of a standard deviation here, against 6.6% on the connector. No continuous family can represent a count that small.

(m) is next, because \(Q\) is small: the half unit is \(1/Q\) of the cycle stock, 0.16% on the connector and 17% here.

(i) barely registers, although \(\theta/Q = 7.5/6 = 1.25\) says it is violated. The reorder point landed high enough that \(G^{1}(r+Q)\) is nearly zero.

Three Diagnostics Before Trusting It

Ask Tests Connector Transformer
One unit as a fraction of \(\sigma\) (h), a continuous family for a count 6.6% 36.5%
\(1/Q\) (m), the half unit of cycle stock 0.16% 17%
\(\theta/Q\) (i), at most one order outstanding 0.37 1.25

Use the approximation to choose a policy. Evaluate the policy you chose with the exact formulas before quoting a cost or a service level to anyone.

When all three diagnostics are small the two answers converge and the second step is a formality. When any of them is not, the second step is the only one that is true, and the exact model costs no more to run.

Type 1: the Cycle Service Level

Let \(\alpha\) represent the probability that a replenishment cycle passes with no stockout.

\[ \begin{aligned} \alpha &= P\{\text{no stockout in a cycle}\} &&\text{definition}\\ &= P\{D(L) \le r\} &&\text{by (k), on hand is } r \text{ when } r \text{ is reached}\\ &= G(r), \qquad r = \min\{r : G(r) \ge \alpha\} &&\text{discrete rule} \end{aligned} \]

Notice that \(Q\) does not appear. Type 1 fixes \(r\) by itself, which is why it is the target most often met by hand.

That independence is also its defect. It counts the cycles in which a shortage occurred and says nothing about how large it was: a cycle short by one unit and a cycle short by forty count alike. An item ordered in large batches has far fewer cycles in which to fail, and gets the same \(r\).

For example, at \(\alpha = 0.95\) the transformer needs \(G(r) \ge 0.95\): \(G(11) = 0.9208\) falls short and \(G(12) = 0.9573\) clears it, so \(r = 12\).

Type 2: the Fill Rate

Let \(\beta\) represent the fraction of demand filled from the shelf. Each cycle satisfies \(Q\) units of demand and falls short by \(G^{1}(r)\) units on average:

\[ \begin{aligned} \beta &= \frac{\text{ordered in a cycle} - \text{expected short in a cycle}} {\text{ordered in a cycle}} &&\text{units, not occasions}\\ &= \frac{Q - G^{1}(r)}{Q} = 1 - \frac{G^{1}(r)}{Q} &&\text{shortage per cycle is } G^{1}(r)\\ G^{1}(r) &\le Q(1 - \beta) &&\text{the condition on } r \end{aligned} \]

Notice that \(Q\) is present, and that the measure counts units, which is what an organization that ships to customers cares about. It is the exact ready rate with the far tail \(G^{1}(r+Q)\) dropped, so it carries assumption (i) with it.

At \(\beta = 0.95\) and \(Q = 5\), the transformer needs \(G^{1}(r) \le 0.05(5) = 0.25\). \(G^{1}(10) = 0.2993\) and \(G^{1}(11) = 0.1616\), so \(r = 11\).

The Same Number Means Two Different Things

Both targets were set to 0.95 on the transformer at \(Q = 5\), and they differ by a transformer. The policy set to a 95% cycle service level: what fill rate does it actually deliver?

Target \(r\) Safety stock Holding cost of it Exact fill rate Exact cycle service
Type 1, \(\alpha = 0.95\) 12 4.5 units $4,275 a year 0.9838 0.9573
Type 2, \(\beta = 0.95\) 11 3.5 units $3,325 a year 0.9683 0.9208

The exact columns come from the hand table. At \((12, 5)\) the fill rate is \(1 - \tfrac{1}{5}\left[G^{1}(12) - G^{1}(17)\right] = 1 - \tfrac{1}{5}(0.0823 - 0.0013) = 0.9838\), and the cycle service is \(G(12) = 0.9573\). The two targets disagree by several points, in both directions, on the same item.

An organization reporting “95% service” without saying which has reported almost nothing. Ask which measure a target refers to before acting on it.

Solving the Problem the Target Poses

Setting \(Q\) to the EOQ and then choosing \(r\) is a convenience, not an answer:

\[ \min_{r, Q} \; k\frac{\lambda}{Q} + h\left(\frac{Q}{2} + r - \theta\right) \quad \text{subject to} \quad 1 - \frac{G^{1}(r)}{Q} \ge \beta \]

\(Q\) \(Q(1-\beta)\) \(r\) Ordering Holding Total
4 0.20 11 $2,475.00 $5,225.00 $7,700.00
5 0.25 11 $1,980.00 $5,700.00 $7,680.00
6 0.30 10 $1,650.00 $5,225.00 $6,875.00
7 0.35 10 $1,414.29 $5,700.00 $7,114.29
8 0.40 10 $1,237.50 $6,175.00 $7,412.50
9 0.45 10 $1,100.00 $6,650.00 $7,750.00
10 0.50 10 $990.00 $7,125.00 $8,115.00
11 0.55 9 $900.00 $6,650.00 $7,550.00
12 0.60 9 $825.00 $7,125.00 $7,950.00

For fixed \(Q\) the best \(r\) is the smallest feasible one. Row \(Q = 6\): \(G^{1}(r) \le 0.30\) first holds at \(r = 10\), where \(G^{1}(10) = 0.2993\); ordering is \(220(45/6) = \$1{,}650\) and holding is \(950(3 + 10 - 7.5) = \$5{,}225\).

Notice that the total is not unimodal. It falls to $6,875 at \(Q = 6\), rises to $8,115 at \(Q = 10\), and falls again at \(Q = 11\), where the constraint slackens enough for \(r\) to drop a whole unit and save \(h\) at a stroke.

The EOQ shortcut gives \((11, 5)\) at $7,680; the program gives \((10, 6)\) at $6,875. The shortcut costs $805 a year, 10.5%, at the same target.

Reading the Target Back into a Cost

A service target does not escape the shortage cost. It asserts a value for it.

From a solved program. At the optimum, the approximation’s second condition holds at the \(\pi\) that would give the same answer unconstrained:

\[ \begin{aligned} \pi^{*} &= \frac{Q^{*}h}{\lambda\,G^{0}(r^{*})} = \frac{6(950)}{45(0.1378)}\\ &= \frac{5{,}700}{6.20} = \$919 \text{ per unit short} \end{aligned} \]

An emergency transformer costs the utility about $5,700. The 95% target implies less than a sixth of it. This target holds far too little.

From a ready rate. Invert the base-stock critical ratio, \(\underline{w} = b/(b+h)\):

\[ b = \frac{h\underline{w}}{1 - \underline{w}} \]

Target \(\underline{w}\) Implied \(b\)
0.90 $8,550
0.95 $18,050
0.98 $46,550
0.99 $94,050

Notice the first row: the stated \(b = \$8{,}550\) is a 90% target.

Safety Stock and the Safety Factor

Let \(z\) represent the safety factor, the safety stock in standard deviations of lead time demand:

\[ z = \frac{r - \theta}{\sigma_{D(L)}}, \qquad r = \theta + z\,\sigma_{D(L)} \]

\(z\) is a change of units. It is comparable across items where \(\mathit{ss}\) is not. Looking \(z\) up in a table is a modeling choice, made silently, and the choice is usually the normal. Do not make it.

Target Exact \(r\) Gamma \(r\) Smallest whole \(r\) meeting it
Type 1, \(\alpha = 0.90\) 11 11.15 12
Type 1, \(\alpha = 0.95\) 12 12.50 13
Type 1, \(\alpha = 0.99\) 15 15.29 16
Type 2, \(\beta = 0.90\) 10 9.21 10
Type 2, \(\beta = 0.95\) 11 10.58 11
Type 2, \(\beta = 0.99\) 13 13.42 14

Even the gamma, shape 7.5 and scale 1, misses four times in six once the answer is rounded up to meet the target, as the rule requires. Every miss is one unit high: the continuous model overprotects a count this small.

One unit is 36.5% of this item’s standard deviation. Solve against the Poisson directly. Use \(z\) for comparing items, not for setting \(r\) on a slow mover.

What We Did Today

The classical approximation is the EOQ with uncertainty pushed into \(r\). Its errors come from dropped terms and from the continuous family, and they can cancel. The exact optimum costs no more to compute, so price the approximation against it.

Type 1 counts cycles and Type 2 counts units. At 95% on the transformer they set different reorder points and deliver different service.

A target is a constrained program, and its total is not unimodal in \(Q\). The EOQ shortcut cost 10.5% at the same target.

A target asserts a cost. The 95% fill rate implies $919 per unit short against a real $5,700.

The safety factor is a change of units. The table you read it from is a modeling choice; on a slow mover, solve against the count directly.

For Next Time

Read before next session: Choosing and Applying a Model, Building These Models in a Worksheet and Using the Software.

Today’s material was The Classical Approximation and Service Levels Instead of a Shortage Cost.

Next session:

  • Which of the chapter’s five routes to use for an item, and the seven steps
  • The workbook: a ledger, an evaluator, and an algorithm with no loop
  • The software, and an item the worksheet cannot reach

Bring one item of your own: its demand rate, lead time and costs. Next session puts it through the procedure.

⌂ Index