8 Continuous Review Systems
After reading this chapter you should be able to:
- trace the state variables of an \((r, Q)\) policy through a sequence of demands
- explain why the reorder point is compared against the inventory position
- construct the lead-time demand distribution under various demand models
- distinguish the ready rate from the fill rate and say when they coincide
- analyze the base-stock policy as a newsvendor problem
- analyze the \((r, Q)\) policy exactly under Poisson demand
- account for variability in the lead time itself
- state what is known about the optimal \((r, Q)\) before it is computed, and compute it exactly
- develop approximate cost models and measure what their assumptions cost
- relate safety stock to the safety factor and the service measure chosen
- compute policy parameters that meet a stated service target
- choose the model that fits an item and apply it step by step
The chapter uses the facts below. Each is reviewed in the appendix section named.
- Conditioning, and the laws of total expectation and variance: Section C.1.6
- Lead time demand as a random sum: Section C.5.3
- The Poisson and negative binomial distributions: Section D.1
- Loss functions and their differences: Section D.3.4
- First differences, and why an expectation keeps convexity: Section B.3.4
- Costs per cycle and cost per unit time: Section C.4.4
- Fixed-point iteration: Section B.6.2
This chapter watches one item continuously and orders whenever its inventory position falls to a reorder point. It runs in three parts. The first evaluates a policy exactly: the state of the item, the measures of its service, the demand over a lead time, and the base-stock and \((r, Q)\) policies built on it, in Section 8.1 through Section 8.5. The second finds the best policy exactly, in Section 8.6 through Section 8.8. The third gives the classical approximation and the service-level formulations that most software implements, and prices them against the exact answer, in Section 8.9 and Section 8.10. Section 8.11 then gathers the models into one procedure. Chapter 9 relaxes the assumption that the item is watched at all times, and takes up the other policy forms that follow from it.
8.1 One Item, Watched Continuously
Chapter 7 removed the assumption that demand is known, and kept the assumption that there is one decision. This chapter removes the second one. The item is stocked permanently, demand arrives at random forever, and a replenishment decision is available at every instant.
The policy evaluation of Section 8.4 and Section 8.5, and the optimization that follows them, are drawn from Chapter 6 of Zipkin (2000), which is the definitive treatment. The approximation of Section 8.9 is the classical one, which descends from Hadley and Whitin (1963) and appears in Nahmias and Olsen (2015) and Silver et al. (2016). Results are stated here with their sources; the proofs are in Zipkin (2000) and are not reproduced. Where this book departs from that treatment, it says so.
Two numbers define the policy. Let \(r\) represent the reorder point and let \(Q\) represent the order quantity. The rule is one sentence: whenever the inventory position reaches or falls below \(r\), order \(Q\) units. It is written \((r, Q)\), and it is the policy most stock rooms actually run, under the name of a two-bin system or a min-max when the parameters are set by hand.
Three details of its operation matter later and are easy to skate over.
The position is checked after every demand, including a demand that could not be filled. A demand that is backordered changes the position as a filled one does, so it can trigger an order, and Table 8.2 below has an instance.
Unmet demand is backordered rather than lost. The backorders accumulate and are filled when a replenishment arrives, and we assume they are filled first come first served. Nothing in the performance measures depends on that order, but the waiting time distribution of Section 8.2 does.
The lead time is the interval from placing an order to having it available to fill demand, so it includes receiving and put-away and not only transit.
Recall from Section 1.3 that an inventory system carries more than one level, and that the distinction between them is what makes this policy work.
- \(I(t)\), the units physically on hand.
- \(\mathit{IO}(t)\), the units on order and not yet received.
- \(B(t)\), the units of demand that arrived, were not filled, and are owed.
- \(\mathit{IN}(t) = I(t) - B(t)\), the net inventory, which can be negative.
- \(\mathit{IP}(t) = I(t) + \mathit{IO}(t) - B(t)\), the inventory position.
The policy compares \(r\) against the position and not against what is on the shelf. That choice is the whole of why the policy works, and a reader meeting it for the first time usually has to see it fail before believing it. If the rule watched \(I(t)\), then a system whose shelf is empty and whose order is in transit would order again, and again at the next demand, until the first delivery arrived. Thus, it would order the same shortage several times over. The position counts what is already coming, so an order placed is an order not placed again.
8.1.1 Working the Policy by Hand
Before any expectation is taken, we run the policy on a sequence of demands and track every state variable through it. The example is the utility storeroom of Example 4.5.
Example 8.1 (Twelve events at the storeroom) The storeroom carries a pad-mount transformer. Demand runs at \(\lambda = 45\) units a year and arrives one unit at a time. The supplier quotes a lead time of two months, which the ledger carries as eight weeks. The storekeeper is running \(r = 4\) and \(Q = 5\), and at the start of the observation there are 6 transformers on the shelf, none on order, and nothing owed.
What is stocked? One item, the transformer.
What is the demand process? Random arrivals of one unit each, about 45 a year.
When is inventory reviewed? Continuously. The position is known after every transaction.
What triggers replenishment, and how much? The position reaching \(r = 4\) or below, and the order is for \(Q = 5\).
What happens to unmet demand? It is backordered. A utility crew waits for the transformer rather than buying elsewhere.
What costs are incurred, and when? They are the subject of Section 8.2, and none of them is needed to run the ledger.
Notice that \(r = 4\) is not the policy this chapter will end up recommending for this item. It is set low, so the ledger passes through every state the system can occupy, including one the recommended policy would reach rarely.
Notation. Let \(t\) represent the week, counted from the start of the observation. The ledger carries \(I(t)\), \(\mathit{IO}(t)\), \(B(t)\), \(\mathit{IN}(t)\) and \(\mathit{IP}(t)\) as defined above, each recorded after the event on that row has been processed.
We begin. At \(t = 0\) nothing has happened, so \(I = 6\), \(\mathit{IO} = 0\), \(B = 0\), and both \(\mathit{IN}\) and \(\mathit{IP}\) are 6.
A demand arrives in week 1. There is stock, so it is filled from the shelf and \(I\) falls to 5. Nothing is on order and nothing is owed, so the position falls to 5 as well. Since \(5 > 4\), no order is placed.
A second demand arrives in week 2. The shelf falls to 4 and the position falls to 4 with it. The position has now reached the reorder point, so the storekeeper orders 5 transformers. They will arrive eight weeks later, in week 10. The moment the order is placed, \(\mathit{IO}\) becomes 5 and the position jumps to \(4 + 5 - 0 = 9\).
The table has been updated as follows.
| Week | Event | \(I(t)\) | \(\mathit{IO}(t)\) | \(B(t)\) | \(\mathit{IN}(t)\) | \(\mathit{IP}(t)\) |
|---|---|---|---|---|---|---|
| 0 | start | 6 | 0 | 0 | 6 | 6 |
| 1 | demand | 5 | 0 | 0 | 5 | 5 |
| 2 | demand, order 5 | 4 | 5 | 0 | 4 | 9 |
Demands in weeks 3, 5, 6 and 7 are each filled from the shelf, which falls to 3, 2, 1 and then 0. The position falls with them, to 8, 7, 6 and 5.
Stop at week 7 and look at what the policy does not do. The shelf is empty. Nothing can be filled until the delivery arrives, and the policy does not order, because the position is 5 and \(5 > 4\). That is the case promised above: a rule watching the shelf would order here, and it would be ordering a second five transformers to cover a shortage that the first five already cover. The position knows that and the shelf does not.
The demand in week 8 arrives to an empty shelf and is backordered. Thus, \(I\) stays at 0, \(B\) rises to 1, and the net inventory becomes \(0 - 1 = -1\). The position falls to \(0 + 5 - 1 = 4\), which reaches the reorder point, so a second order for 5 is placed. It will arrive in week 16. Now \(\mathit{IO}\) is 10, and the position returns to \(0 + 10 - 1 = 9\).
The demand in week 9 is backordered too, so \(B\) rises to 2, the net inventory falls to \(-2\), and the position falls to 8.
The first order arrives in week 10. Five units come in and the two backorders are filled first, which is what “backordered” means: the demand was recorded and is owed. Thus, \(B\) returns to 0 and \(I\) becomes \(5 - 2 = 3\). The units still on order fall to 5, and the position is \(3 + 5 - 0 = 8\), unchanged by the arrival.
Notice that last point. A delivery does not change the inventory position. It converts units on order into units on hand, and the position counts both.
Demands in weeks 11 and 13 are filled from the shelf. The completed ledger is Table 8.2.
| Week | Event | \(I(t)\) | \(\mathit{IO}(t)\) | \(B(t)\) | \(\mathit{IN}(t)\) | \(\mathit{IP}(t)\) |
|---|---|---|---|---|---|---|
| 0 | start | 6 | 0 | 0 | 6 | 6 |
| 1 | demand | 5 | 0 | 0 | 5 | 5 |
| 2 | demand, order 5 | 4 | 5 | 0 | 4 | 9 |
| 3 | demand | 3 | 5 | 0 | 3 | 8 |
| 5 | demand | 2 | 5 | 0 | 2 | 7 |
| 6 | demand | 1 | 5 | 0 | 1 | 6 |
| 7 | demand | 0 | 5 | 0 | 0 | 5 |
| 8 | demand backordered, order 5 | 0 | 10 | 1 | -1 | 9 |
| 9 | demand backordered | 0 | 10 | 2 | -2 | 8 |
| 10 | receipt of 5 | 3 | 5 | 0 | 3 | 8 |
| 11 | demand | 2 | 5 | 0 | 2 | 7 |
| 13 | demand | 1 | 5 | 0 | 1 | 6 |
The check. Every row must satisfy \(\mathit{IP}(t) = I(t) + \mathit{IO}(t) - B(t)\), and every row does. Week 8 is the one to verify by hand, since it is the first row on which a backorder enters the sum: \(0 + 10 - 1 = 9\). Notice that no row has all three terms non-zero. A unit is owed only when the shelf is empty, so \(I\) and \(B\) are never positive together. That check is worth performing on every ledger, because it catches an order recorded in the wrong column immediately.
Interpretation. The storekeeper placed two orders in thirteen weeks, had an empty shelf for three of them, and owed at worst two transformers. Whether that is acceptable is a question about cost and service, and Section 8.2 is where it is asked.
Three properties of the policy are now visible in Table 8.2, and we name them before any of them is used.
The position moves within a band of width \(Q\). It falls one unit at a time from just above \(r + Q\) down to \(r\), at which point an order restores it. That is the structure Section 8.5 turns into a distribution, and it is the reason the exact analysis of this policy is possible at all.
Everything that can go wrong happens during a lead time. Between placing an order and receiving it, nothing the storekeeper does can change the outcome. Thus, the only random quantity the policy is exposed to is the demand over that interval, which is why Section 8.3 is a section of its own.
The shelf and the position answer different questions. The position decides when to order. The shelf decides whether a customer is served. A model that confuses them will get the ordering right and the service wrong, or the reverse.
Section 8.2 gives the quantities a policy is judged by, and they are all averages of the columns of Table 8.2.
8.2 What to Measure
A policy is judged by long-run averages of the quantities in Table 8.2. Each is a time average, and the definitions are those of Section 1.3, restated here because every formula in the chapter is one of them.
- \(\bar{I}\), the average units on hand.
- \(\bar{B}\), the average units backordered.
- \(\overline{\mathit{SO}}\), the proportion of time the shelf is empty.
- \(\overline{\mathit{OF}} = \lambda/Q\), the average number of orders placed per unit time.
\(\overline{\mathit{OF}}\) needs no analysis. Every order is for \(Q\) units and all demand is eventually filled, so orders are placed at the rate demand consumes them. Thus, \(\overline{\mathit{OF}}\) depends on \(Q\) alone, and none of the other three does anything so simple. The technical conditions under which these time averages converge are treated in Chapter 6 of Zipkin (2000).
8.2.1 Five Ways to State a Service Requirement
Service means how well the system is meeting the customer’s requirements, and there is no single measure of it. Five are in common use, and they are not interchangeable.
- The probability of no stockout during a lead time. The system does not stock out during a replenishment lead time if the demand over that lead time is at most the inventory available at its start.
- The proportion of demands met from stock without delay.
- The proportion of time that stock is on hand, or equivalently the proportion of time that none is.
- The expected number of backorders.
- The expected waiting time of a backordered demand.
Notice that (a) counts cycles, (b) counts demands, (c) counts time, and (d) and (e) are not proportions at all. An organization that has agreed on a number without agreeing on which of the five it measures has agreed on nothing.
The rest of this section takes the two pairs that are most often confused: (b) against (c), and (d) against (e). Section 8.10 returns to (a) and (b) as targets a planner sets.
The cost rate follows from Equation 1.15. Let \(C(r, Q)\) represent the relevant cost rate:
\[ C(r, Q) = k\,\frac{\lambda}{Q} + h\,\bar{I} + b\,\bar{B} \tag{8.1}\]
Notice the units of each term. The ordering cost is dollars per order times orders per year. The holding cost is dollars per unit per year times a number of units. The backorder cost is dollars per unit per year times a number of units, so \(b\) charges for how long a demand waits and not merely that it waited. A model that charges a flat \(\pi\) per unit short is a different model, and Section 8.9 gives it.
8.2.2 The Ready Rate Is Not the Fill Rate
Two service measures are used constantly, they are quoted interchangeably in practice, and they are not the same quantity.
- The ready rate \(\overline{\mathit{RR}} = 1 - \overline{\mathit{SO}}\) is the proportion of time that stock is on the shelf.
- The fill rate \(\overline{\mathit{FR}}\) is the proportion of demands filled from the shelf on arrival.
The first averages over the clock and the second averages over customers. In Table 8.2 the shelf was empty from week 7 to week 10 and two of the ten demands were backordered, and there is no reason those two figures should agree.
They agree under one condition. Recall from Section C.3.4 that PASTA says a Poisson arrival finds the system in its time-stationary state. Thus, when demand arrives in a Poisson process the proportion of demands meeting an empty shelf equals the proportion of time the shelf is empty, and
\[ \overline{\mathit{FR}} = \overline{\mathit{RR}} = 1 - \overline{\mathit{SO}} \tag{8.2}\]
Under any other arrival process Equation 8.2 fails, and it fails in the direction that matters. Demand that arrives in bursts is more likely to find the shelf empty than a randomly chosen instant is, because the burst that emptied the shelf is the same burst that is still arriving. Thus, a system reporting a 95% ready rate may be filling well under 95% of its demands.
You should therefore ask of any quoted service figure which average it is, and whether the demand process justifies treating them as one. This book keeps them apart and says which one each formula computes.
8.2.3 A Third Measure, and Why It Is the Same as the Second
An organization that does not think in units thinks in time. How long does a customer wait? Recall from Equation 1.6 that Little’s Law answers this with no distributional assumption at all. Taking the system to be the set of backordered demands,
\[ \overline{W} = \frac{\bar{B}}{\lambda} \tag{8.3}\]
Thus, a target on the average backorder level and a target on the average wait are the same target in different units, and an organization that argues about the two separately is arguing about a unit conversion.
For example, an item with \(\bar{B} = 0.12\) units at \(\lambda = 45\) a year has \(\overline{W} = 0.12/45 = 0.00267\) years, which is
\[ 0.00267 \text{ years} \times \frac{365 \text{ days}}{1 \text{ year}} = 0.97 \text{ days} \]
so the average demand waits about a day. Notice that this is an average over all demands and not over the backordered ones. Most demands wait no time at all, and the few that wait, wait much longer than a day.
8.2.4 Service Targets Are Costs You Declined to Estimate
Equation 8.1 needs \(b\), and \(b\) is the parameter no ledger contains. The usual response is to drop it and impose a service target instead, which Section 8.10 takes up properly.
Imposing a service target does not remove \(b\) from the model. Recall from Section 4.4.3 that a firm’s observed order quantities imply a ratio of its own cost parameters whether or not the firm has ever estimated them. The same argument runs here. A service target is not an escape from \(b\); it is a statement about \(b\) made without saying so. Section 8.10 recovers the implied value and asks whether anyone believes it.
Section 8.3 takes up the one random quantity all four averages depend on.
8.3 Lead Time Demand
Section 8.1 observed that the policy is exposed to exactly one random quantity. Let \(D(L)\) represent the lead time demand, the demand that arrives between placing an order and receiving it, and let \(\theta = E[D(L)]\) represent its mean. Everything in the rest of this chapter is a functional of the distribution of \(D(L)\), and nothing in it is a functional of anything else.
That is a stronger statement than it looks. Two systems with entirely different demand patterns and lead times, whose lead time demand distributions happen to coincide, have identical performance under the same policy. Thus, the modeling effort belongs on \(D(L)\), and the choice of formula for \(\bar{B}\) or \(\overline{\mathit{FR}}\) is a detail by comparison.
8.3.1 Two Ways to Build It
The period based characterization divides time into buckets. Let \(D_{i}\) represent the demand in period \(i\) and let \(L\) be counted in whole periods. Then
\[ D(L) = \sum_{i=1}^{L}D_{i} \tag{8.4}\]
which is the random sum of Equation C.36 with the lead time as the count. It is the natural form when the data arrive as a history of weekly or monthly totals, which is how Section 7.5 received them.
The event based characterization counts transactions. Let \(N(L)\) represent the number of demand events in the lead time and let \(D_{i}\) be the size of the \(i\)th one. Then
\[ D(L) = \sum_{i=1}^{N(L)}D_{i} \tag{8.5}\]
which is the compound process of Equation C.35. It is the natural form for a slow mover, where a bucket is mostly zeros and the informative quantities are how often a demand occurs and how large it is.
Notice that the two are the same object reached from different data. You should choose between them by asking which one the organization’s records can actually support, and not by which is more elegant.
Most organizations hold demand statistics for some standard bucket, a week or a month, and not for a lead time. Let \(\sigma_{D}\) represent the standard deviation of demand in one period, with the demand rate \(\lambda\) stated per period as well. We take Equation 8.4 with a constant lead time of \(L\) periods. Recall from Section C.2.1 that the mean of a sum is the sum of the means whatever the terms do, and that the variances add only when the terms are independent. Assuming independent period demands, we have
\[ \begin{aligned} E[D(L)] &= E[D_{1}] + \cdots + E[D_{L}] = \lambda L &&\text{means always add}\\ \mathit{Var}[D(L)] &= \mathit{Var}[D_{1}] + \cdots + \mathit{Var}[D_{L}] = \sigma_{D}^{2}L &&\text{independence}\\ \sigma_{D(L)} &= \sqrt{\sigma_{D}^{2}L} = \sigma_{D}\sqrt{L} &&\text{the square root last} \end{aligned} \tag{8.6}\]
The standard deviation scales with the square root of the lead time and the mean scales with the lead time itself. Thus, doubling a lead time doubles the expected requirement and multiplies its standard deviation by only 1.414, which is why a longer lead time raises the reorder point more than it raises the safety stock. It is also the most common place to go wrong, because the temptation is to multiply the standard deviation by \(L\). For example, an item whose weekly demand has a standard deviation of 12 units, on a four-week lead time, has \(\sigma_{D(L)} = 12\sqrt{4} = 24\) units and not 48.
8.3.2 The Moments, and the Three Cases
Equation C.40 gives the moments of Equation 8.4 directly:
\[ E[D(L)] = E[L]\,E[D], \qquad \mathit{Var}[D(L)] = E[L]\,\mathit{Var}[D] + \mathit{Var}[L]\,\big(E[D]\big)^{2} \]
and Equation C.31 gives them for Equation 8.5. Both reduce to the same three cases, which the literature treats as three separate models and which are one formula with terms switched off.
| Case | What is random | \(E[D(L)]\) | \(\mathit{Var}[D(L)]\) |
|---|---|---|---|
| 1 | Demand only, lead time constant at \(L\) | \(L\,E[D]\) | \(L\,\mathit{Var}[D]\) |
| 2 | Lead time only, demand constant at rate \(\lambda\) | \(\lambda E[L]\) | \(\lambda^{2}\mathit{Var}[L]\) |
| 3 | Both | \(E[L]E[D]\) | \(E[L]\mathit{Var}[D] + \mathit{Var}[L](E[D])^{2}\) |
Compute the two terms of case 3 separately, every time. They say different things and they are acted on differently. The first is what the customer does and the second is what the supplier does, and a total that hides the split cannot tell you which one to spend money on.
Notice what Table 8.3 does not give you. It gives two moments. Every model in this chapter needs a distribution, and two moments do not determine one. Thus, the procedure in practice has three steps, in this order:
- Compute \(E[D(L)]\) and \(\mathit{Var}[D(L)]\) from the case that applies.
- Choose a family, using Equation D.1 and the selection rules of Section D.4.2. Poisson when the ratio is near one, negative binomial when it is above one, and the gamma when the counts are large enough that a continuous model is safe. Section 8.9.2 says why the normal is not on that list.
- Compute the performance measures and set \(r\) and \(Q\) from that distribution.
Step 2 is a choice and not a finding, and Table 7.6 measured what such a choice costs on a decision of this kind. Where the answer matters, carry two families through step 3 and report the spread.
When demand events arrive in a Poisson process at rate \(\lambda\), the number of events in any interval of length \(t\) is a Poisson random variable with mean \(\lambda t\):
\[ P\{N(t) = x\} = \frac{e^{-\lambda t}(\lambda t)^{x}}{x!}, \qquad E[N(t)] = \mathit{Var}[N(t)] = \lambda t \]
and the counts in intervals that do not overlap are independent. For example, at 45 demands a year the count over one month has mean \(45(1/12) = 3.75\), so a month with no demand at all has probability \(e^{-3.75} = 0.0235\). Notice that the rate and the interval must be stated in the same time unit, and that the number of units demanded is Poisson only when every event is for one unit. Section C.3 gives the process in full.
Example 8.2 (Lead time demand for the transformer) Take the transformer of Example 8.1, with \(\lambda = 45\) units a year arriving one at a time. We compute \(D(L)\) under two descriptions of the lead time.
Notation. Let \(L\) represent the lead time in years and let \(D(L)\) represent the demand over it. Demand events arrive in a Poisson process, so the count over a fixed interval is Poisson by Equation C.23, and each event is for one unit.
Case 1, the lead time is a constant two months. Then
\[ \theta = \lambda L = \frac{45 \text{ units}}{1 \text{ year}} \times \frac{2 \text{ months}}{1} \times \frac{1 \text{ year}}{12 \text{ months}} = 7.5 \text{ units} \]
and since demand is Poisson and the interval is fixed, \(D(L)\) is Poisson with mean 7.5. Thus, \(\mathit{Var}[D(L)] = 7.5\) as well, and the standard deviation is \(\sqrt{7.5} = 2.74\) units.
Case 3, the lead time averages two months with a standard deviation of one month. Now \(E[L] = 1/6\) year and \(\mathit{Var}[L] = (1/12)^{2} = 1/144\) year squared. We condition on the lead time. Given that the lead time is \(\ell\) years, the interval is fixed, so the demand over it is Poisson with mean \(\lambda\ell\) and variance \(\lambda\ell\). That is, \(E[D(L) \mid L] = \lambda L\) and \(\mathit{Var}[D(L) \mid L] = \lambda L\). Averaging over the lead time by Equation C.11 and Equation C.12, we obtain
\[ \begin{aligned} E[D(L)] &= E\big[E[D(L) \mid L]\big] = E[\lambda L] &&\text{total expectation}\\ &= \lambda E[L] = 45\left(\tfrac{1}{6}\right) = 7.5 &&\text{units}\\ \mathit{Var}[D(L)] &= E\big[\mathit{Var}[D(L) \mid L]\big] + \mathit{Var}\big[E[D(L) \mid L]\big] &&\text{within, plus between}\\ &= E[\lambda L] + \mathit{Var}[\lambda L] &&\text{substitute both}\\ &= \lambda E[L] + \lambda^{2}\mathit{Var}[L] &&\text{a constant comes out squared}\\ &= 7.5 + 2025\left(\tfrac{1}{144}\right) = 7.5 + 14.0625 = 21.5625 &&\text{units squared} \end{aligned} \]
so the mean is unchanged and the standard deviation is \(\sqrt{21.5625} = 4.64\) units. Notice that this is case 3 of Table 8.3 with \(E[D] = \mathit{Var}[D] = \lambda\), reached by conditioning rather than quoted.
Read the split. The demand contributes 7.5 of the 21.5625 and the lead time contributes 14.0625. Thus, 65% of the variance the safety stock must cover comes from the supplier, on an item whose demand nobody can control and whose lead time a purchasing department could negotiate. That is the reading Section C.5.3 asked for, on this chapter’s own item.
Which family. The variance to mean ratio is \(21.5625/7.5 = 2.875\), which Equation D.1 sends to the negative binomial. We match moments as Equation 7.12 did, with the mean and the variance of \(D(L)\) in place of the sample mean and the sample variance:
\[ \hat{p} = \frac{E[D(L)]}{\mathit{Var}[D(L)]} = \frac{7.5}{21.5625} = 0.3478, \qquad \hat{r} = \frac{\left(E[D(L)]\right)^{2}}{\mathit{Var}[D(L)] - E[D(L)]} = \frac{56.25}{14.0625} = 4.00 \]
The check, and it is a better one than a moment match. Suppose the lead time is not merely variable but is built of four independent stages averaging half a month each, which is what a purchase order, a production slot, a shipment and a receiving inspection look like. Then \(L\) is Erlang with shape 4 and rate \(\mu = 24\) a year, so \(E[L] = 4/24 = 1/6\) year and \(\mathit{Var}[L] = 4/24^{2} = 1/144\), the figures above. By Equation C.27 the lead time demand is then exactly negative binomial with \(r = 4\) and
\[ p = \frac{\mu}{\lambda + \mu} = \frac{24}{45 + 24} = \frac{24}{69} = 0.3478 \]
The moment match and the transform agree to four figures, and they are not the same calculation. Thus, the negative binomial is what the model gives here rather than an assumption.
8.3.3 Getting the Distribution in Practice
Step 2 above assumed a family was available to choose. Three routes produce one, and they are not equally practical.
Observe it directly. Record the demand over each realized lead time and fit the resulting sample as Section 7.5 fits any sample. It is the only route that needs no assumption about independence, and it needs a long history of lead times, which most organizations do not keep.
Simulate it. Sample period demands and lead times from their own fitted distributions and accumulate. It handles dependence between the two, which the moment formulas cannot, and it produces an empirical distribution whose loss functions come from Section D.3.2.
Match moments to a family. Compute the two moments from Table 8.3 and choose a family by Section D.4.2. This is what is actually done, because it needs only what an organization already has.
The third route is what the rest of this chapter assumes has been done. The demand process now enters every formula only through the distribution of \(D(L)\), which is the point Zipkin (2000) makes at the head of his own treatment: two systems whose lead time demand distributions agree have identical performance under the same policy, whatever produced them.
Section 8.4 now takes the simplest possible policy, in which the position never moves at all.
8.4 The Base-Stock Model
Set \(Q = 1\). Every demand of one unit triggers an order for one unit, so the policy replenishes one for one and the inventory position never moves. This is the base-stock policy, and it is where Zipkin (2000) begins for the same reason we do: with the position held still, everything else follows in three lines.
Notation. Let \(S\) represent the base-stock level, the value at which the inventory position is held. Let \(r = S - 1\) represent the reorder point, since the position reaches \(r\) exactly when one unit has been demanded and an order for that unit is then placed. Let \(\theta = E[D(L)]\) represent the mean lead time demand and \(\sigma\) its standard deviation. Let
\[ \mathit{ss} = r - \theta \tag{8.7}\]
represent the safety stock, the reorder point in excess of expected lead time demand.
Safety stock is often glossed as “the expected inventory on hand when a replenishment arrives”. That reading is correct only when at most one order is outstanding, which is assumption (i) of Section 8.9. It is not correct here. Under one-for-one replenishment the expected number of outstanding orders is \(\theta\) itself, which for the item below is 7.5, so there are almost always several. Treat Equation 8.7 as a definition and not as an interpretation.
Notice that \(S\) and \(r\) carry the same information and the literature uses both. This book states base-stock results in \(S\) and \((r, Q)\) results in \(r\), and Equation 8.7 is where the two meet.
It is not a curiosity. One-for-one replenishment is what stock rooms run for items that are expensive, slow moving and critical, which is the profile of the transformer, and it is the standard policy for military and utility spare parts. It is also the building block for everything that follows: Section 8.5 obtains the general case by averaging base-stock results over a range of \(S\).
Why the ordering cost disappears is this. Under \(Q = 1\) the order rate is \(\overline{\mathit{OF}} = \lambda\) whatever \(S\) is, so \(k\lambda\) is a constant added to every alternative. Recall from Section 1.4.1 that a constant added to every alternative cannot change which alternative is least. Thus, \(k\) drops out of the choice of \(S\), as it dropped out of Chapter 7. It does not drop out of the comparison between this policy and one with \(Q > 1\), and Section 8.5 is where that bill arrives.
8.4.1 Three Lines of Derivation
Under one-for-one replenishment the outstanding orders are the lead time demand. An order is placed at the instant of every demand and arrives \(L\) later. Thus, an order is still outstanding now only if it was placed within the last \(L\) time units, and the orders outstanding now are those triggered by the demands of the last \(L\) time units:
\[ \mathit{IO} = D(L) \tag{8.8}\]
For example, suppose the transformer is stocked one for one against the eight-week lead time of Example 8.1, and demands arrive in weeks 3, 5, 6, 7, 8, 9, 11 and 13, which are the weeks of Table 8.2 after its first order. Each demand places an order that arrives eight weeks later. Stand at week 12 and count what is still on order.
| Order placed in week | 3 | 5 | 6 | 7 | 8 | 9 | 11 | 13 |
|---|---|---|---|---|---|---|---|---|
| Arrives in week | 11 | 13 | 14 | 15 | 16 | 17 | 19 | 21 |
| Outstanding at week 12 | no | yes | yes | yes | yes | yes | yes | not yet placed |
Six orders are outstanding at week 12, and six demands arrived in the eight weeks before it. Notice that the count did not depend on how much stock the storeroom holds.
We substitute Equation 8.8 into \(\mathit{IP} = I + \mathit{IO} - B\) and use \(\mathit{IP} = S\) throughout, which gives
\[ S = I + D(L) - B, \qquad\text{so}\qquad \mathit{IN} = I - B = S - D(L) \tag{8.9}\]
In the illustration, a storeroom that holds its position at \(S = 11\) has a net inventory of \(11 - 6 = 5\) transformers at week 12.
Equation 8.9 is the whole model. The net inventory is a constant less one random variable, so every question about the shelf is a question about the distribution of \(D(L)\). Everything else is read off it, using \(I = (\mathit{IN})^{+}\) and \(B = (-\mathit{IN})^{+}\) from Section 1.3, and the loss functions of Section D.3.
Let \(g(x) = P\{D(L) = x\}\) represent the mass function of lead time demand. Four functions of a stock level \(x\) are built from it, and Section 7.8.1 built them by hand. Chapter 7 wrote the distribution function of demand as \(F\); for lead time demand this chapter writes \(G\), as the appendix does.
- \(G(x) = P\{D(L) \le x\}\) is the distribution function.
- \(G^{0}(x) = 1 - G(x) = P\{D(L) > x\}\) is the complementary distribution function. It is the probability of more than \(x\), not of \(x\) or more.
- \(G^{1}(x) = E\left[(D(L) - x)^{+}\right] = \sum_{y > x}(y - x)\,g(y)\) is the first order loss function, the expected number of units by which demand exceeds \(x\).
- \(G^{2}(x) = \sum_{y > x}G^{1}(y)\) is the second order loss function, which this chapter uses to add up first order ones.
The expectation of any function \(h\) of the demand is that function summed against the mass function, \(E[h(D(L))] = \sum_{y}h(y)\,g(y)\), which is Equation C.7.
The expected backorder level is the expected amount by which demand exceeds the level. We take the expectation of \(B = (-\mathit{IN})^{+}\) one step at a time:
\[ \begin{aligned} \bar{B}(S) &= E\left[(-\mathit{IN})^{+}\right] &&\text{backorders are the negative part of } \mathit{IN}\\ &= E\left[(D(L) - S)^{+}\right] &&\text{substitute } \mathit{IN} = S - D(L)\\ &= \sum_{x > S}(x-S)\,g(x) &&\text{the expectation of a function of } D(L)\\ &= G^{1}(S) &&\text{the first order loss function} \end{aligned} \tag{8.10}\]
For hand work from a table of the distribution function, Equation D.13 gives the form to use:
\[ \bar{B}(S) = \theta - \sum_{x=0}^{S-1}G^{0}(x) \tag{8.11}\]
That is, start from the mean, which is what is owed against no stock at all, and subtract what each of the \(S\) units removes.
Notice the upper limit. It is \(S-1\) and not \(S\), because \(G^{1}(S)\) is the tail sum of \(G^{0}\) from \(S\) upward and the subtraction removes the terms strictly below it. Getting that limit wrong understates the backorder level, and on the item worked below it would report 0.0823 backorders where the answer is 0.1616.
The expected on-hand needs one identity and no new function. Recall from Section 8.1 that \(\mathit{IN} = I - B\), so that \(I = \mathit{IN} + B\). Taking expectations, we have
\[ \begin{aligned} \bar{I}(S) &= E[\mathit{IN}] + E[B] &&\text{since } I = \mathit{IN} + B\\ &= S - E[D(L)] + \bar{B}(S) &&\text{substitute } \mathit{IN} = S - D(L)\\ &= S - \theta + G^{1}(S) &&\text{the mean of } D(L) \text{ is } \theta \end{aligned} \tag{8.12}\]
Recall that Equation 7.8 is the same statement with the order quantity in place of \(S\). Notice that Equation 8.12 is not an approximation. The expected on-hand exceeds \(S - \theta\) by the expected backorder level, which is the statement that stock you are short of is stock you are not holding.
The ready rate is the probability that the shelf holds at least one unit:
\[ \begin{aligned} \overline{\mathit{RR}}(S) &= P\{\mathit{IN} \ge 1\} &&\text{stock is on the shelf}\\ &= P\{S - D(L) \ge 1\} &&\text{substitute } \mathit{IN} = S - D(L)\\ &= P\{D(L) \le S - 1\} = G(S-1) &&\text{rearrange} \end{aligned} \tag{8.13}\]
Notice the argument. It is \(S - 1\) and not \(S\), because a lead time demand of \(S\) leaves the shelf empty. Under Poisson demand Equation 8.2 makes Equation 8.13 the fill rate too.
8.4.2 Choosing the Level
We substitute the two measures into Equation 8.1 and drop the constant \(k\lambda\):
\[ \begin{aligned} C(S) &= h\,\bar{I}(S) + b\,\bar{B}(S) &&\text{the holding and backorder terms}\\ &= h\left(S - \theta + G^{1}(S)\right) + b\,G^{1}(S) &&\text{substitute both measures}\\ &= h(S - \theta) + (h + b)\,G^{1}(S) &&\text{collect } G^{1}(S) \end{aligned} \tag{8.14}\]
which is Equation 7.9 with \(c_{o} = h\) and \(c_{u} = b\). Thus, the base-stock problem is the newsvendor problem, with the holding rate playing the overage cost and the backorder rate playing the underage cost.
The marginal argument of Section 7.2 gives the answer one unit at a time. Raising the level from \(S\) to \(S+1\) adds \(h\) to the first term of Equation 8.14, and by the last line of Equation 7.14 it lowers \(G^{1}\) by \(G^{0}(S)\). Thus,
\[ C(S+1) - C(S) = h - (h + b)\,G^{0}(S) \tag{8.15}\]
The next unit is worth adding while that difference is negative, that is while \(G^{0}(S) > h/(h+b)\), which is the same condition as \(G(S) < b/(b+h)\). A distribution function never decreases, so once the test fails it fails for every larger level, and the answer is the critical ratio of Equation 7.11:
\[ S^{*} = \min\left\{S : G(S) \ge \frac{b}{b + h}\right\} \tag{8.16}\]
which is the discrete rule of Equation 7.13, since \(S\) is a whole number of units.
Chapter 7 solved a problem with one period and no future; this one has an infinite horizon and a permanent stock. They have the same answer because both trade one unit too many against one unit too few, and in a one-for-one system the trade is made afresh at every demand.
8.4.3 The Table the Transformer’s Examples Read From
Every formula above is a function of \(G\), \(G^{0}\) and \(G^{1}\), and Section 8.5 will add \(G^{2}\). Before an example quotes a value of any of them, we build the table the values come from. Recall from Section 7.8.1 that the columns are filled a row at a time by Equation 7.14. We repeat that here for the transformer, whose lead time demand is Poisson with \(\theta = 7.5\) units, and add the one column that section did not need.
The second order loss function has the same kind of recursion as the first. Equation D.13 gives
\[ G^{2}(x) = G^{2}(x-1) - G^{1}(x), \qquad G^{2}(0) = \tfrac{1}{2}E\big[D(L)\left(D(L)-1\right)\big] \tag{8.17}\]
and for a Poisson count the starting value is \(\theta^{2}/2\). Notice the one difference from the line for \(G^{1}\). The first order column subtracts the entry of the row above, \(G^{0}(x-1)\), and the second order column subtracts the entry of its own row, \(G^{1}(x)\).
Row 0. The first mass is \(g(0) = e^{-7.5} = 0.000553\), so \(G(0) = 0.0006\) and \(G^{0}(0) = 0.9994\). The two loss columns start from moments: \(G^{1}(0) = \theta = 7.5\) and \(G^{2}(0) = 7.5^{2}/2 = 28.125\).
Row 1. The mass is \(g(1) = g(0)(7.5/1) = 0.000553(7.5) = 0.0041\), so \(G(1) = 0.0006 + 0.0041 = 0.0047\) and \(G^{0}(1) = 1 - 0.0047 = 0.9953\). Then \(G^{1}(1) = G^{1}(0) - G^{0}(0) = 7.5000 - 0.9994 = 6.5006\) and \(G^{2}(1) = G^{2}(0) - G^{1}(1) = 28.1250 - 6.5006 = 21.6244\).
Row 2 and the rows after it repeat the five steps. As before, the working carries every digit and the page prints four, so a figure recomputed from the printed ones can differ in the last place. The completed table is Table 8.5.
| \(x\) | \(g(x)\) | \(G(x)\) | \(G^{0}(x)\) | \(G^{1}(x)\) | \(G^{2}(x)\) |
|---|---|---|---|---|---|
| 0 | 0.0006 | 0.0006 | 0.9994 | 7.5000 | 28.1250 |
| 1 | 0.0041 | 0.0047 | 0.9953 | 6.5006 | 21.6244 |
| 2 | 0.0156 | 0.0203 | 0.9797 | 5.5053 | 16.1192 |
| 3 | 0.0389 | 0.0591 | 0.9409 | 4.5255 | 11.5937 |
| 4 | 0.0729 | 0.1321 | 0.8679 | 3.5847 | 8.0090 |
| 5 | 0.1094 | 0.2414 | 0.7586 | 2.7167 | 5.2923 |
| 6 | 0.1367 | 0.3782 | 0.6218 | 1.9582 | 3.3342 |
| 7 | 0.1465 | 0.5246 | 0.4754 | 1.3363 | 1.9978 |
| 8 | 0.1373 | 0.6620 | 0.3380 | 0.8609 | 1.1369 |
| 9 | 0.1144 | 0.7764 | 0.2236 | 0.5229 | 0.6140 |
| 10 | 0.0858 | 0.8622 | 0.1378 | 0.2993 | 0.3147 |
| 11 | 0.0585 | 0.9208 | 0.0792 | 0.1616 | 0.1531 |
| 12 | 0.0366 | 0.9573 | 0.0427 | 0.0823 | 0.0708 |
| 13 | 0.0211 | 0.9784 | 0.0216 | 0.0397 | 0.0311 |
| 14 | 0.0113 | 0.9897 | 0.0103 | 0.0181 | 0.0130 |
| 15 | 0.0057 | 0.9954 | 0.0046 | 0.0078 | 0.0052 |
| 16 | 0.0026 | 0.9980 | 0.0020 | 0.0032 | 0.0020 |
| 17 | 0.0012 | 0.9992 | 0.0008 | 0.0013 | 0.0007 |
The check. Equation 8.12 gives an independent route to one entry. With the position held at \(S = 1\), a unit is on the shelf only when nothing is outstanding, so \(\bar{I}(1) = 1 \times g(0) = 0.0006\) units. Equation 8.12 says the same quantity is \(1 - \theta + G^{1}(1) = 1 - 7.5 + 6.5006 = 0.0006\). The two agree. That check is worth performing every time, because it catches a loss column started from the wrong row.
In a worksheet POISSON.DIST supplies the first two columns and the rest are subtractions filled down, which is how Section 8.12.2 builds them. Every transformer example in this chapter reads its inputs from Table 8.5.
Example 8.3 (One for one at the storeroom) The storeroom of Example 8.1 decides to stock the transformer one for one.
What is stocked? One item, the pad-mount transformer.
What is the demand process? Poisson at \(\lambda = 45\) units a year, one unit at a time.
When is inventory reviewed? Continuously.
What triggers replenishment, and how much? Every demand, for one unit.
What happens to unmet demand? It is backordered.
What costs are incurred, and when? From Table 4.9 the unit cost is \(c = \$3{,}800\) and the carrying charge is \(i = 0.25\) a year, so \(h = 0.25(3800) = \$950\) per unit per year. The utility judges that a transformer owed to a waiting crew costs $8,550 a year in rescheduled work and reliability penalties, so \(b = \$8,550\) per unit per year.
Notation. Let \(S\) represent the base-stock level in units, and let \(D(L)\) be Poisson with \(\theta = 7.5\) units from case 1 of Example 8.2.
The critical ratio.
\[ \frac{b}{b + h} = \frac{8550}{8550 + 950} = \frac{8550}{9500} = 0.90 \]
The level. Walk the \(G(x)\) column of Table 8.5 until it reaches the critical ratio. Notice that \(G(10) = 0.8622\) falls short of 0.90 and \(G(11) = 0.9208\) clears it. Thus, by Equation 8.16, \(S^{*} = 11\) transformers.
The backorder level. Equation 8.10 says \(\bar{B}(11) = G^{1}(11)\), and Table 8.5 gives 0.1616 units. Let’s confirm that entry from the distribution function alone, by Equation 8.11, since that is the form to use when a table of \(G\) is all that is at hand. The sum runs over \(x = 0\) to \(S - 1 = 10\):
\[ \begin{aligned} \sum_{x=0}^{10}G^{0}(x) &= 0.9994 + 0.9953 + 0.9797 + 0.9409 + 0.8679 + 0.7586\\ &\quad + 0.6218 + 0.4754 + 0.3380 + 0.2236 + 0.1378 = 7.3384\\ \bar{B}(11) &= \theta - 7.3384 = 7.5 - 7.3384 = 0.1616 \text{ units} \end{aligned} \]
The on-hand level and the fill rate. From Equation 8.12, \(\bar{I}(11) = S - \theta + \bar{B} = 11 - 7.5 + 0.1616 = 3.6616\) units. From Equation 8.13 the ready rate is \(G(S - 1) = G(10) = 0.8622\), and since demand is Poisson Equation 8.2 makes that the fill rate.
The cost. By Equation 8.14, with the products taken before rounding,
\[ C(11) = h\,\bar{I} + b\,\bar{B} = 950(3.6616) + 8550(0.1616) = 3478.48 + 1381.35 = \$4{,}859.83 \text{ a year} \]
The check. The critical ratio is a shortcut, so we cost the neighbors directly and confirm the minimum is where the rule put it. Each column repeats the steps above with a different row of Table 8.5. For example, at \(S = 10\) the table gives \(G^{1}(10) = 0.2993\), so \(\bar{I}(10) = 10 - 7.5 + 0.2993 = 2.7993\) units and
\[ C(10) = 950(2.7993) + 8550(0.2993) = 2659.36 + 2559.21 = \$5{,}218.57 \text{ a year} \]
| \(S\) | 9 | 10 | 11 | 12 | 13 |
|---|---|---|---|---|---|
| \(\bar{I}\) | 2.0229 | 2.7993 | 3.6616 | 4.5823 | 5.5397 |
| \(\bar{B}\) | 0.5229 | 0.2993 | 0.1616 | 0.0823 | 0.0397 |
| \(C(S)\) | $6,392.69 | $5,218.57 | $4,859.83 | $5,057.03 | $5,601.71 |
Equation 8.15 gives the same verdict without costing anything. The eleventh unit pays when \(G^{0}(10)\) exceeds \(h/(h+b) = 950/9500 = 0.10\), and \(G^{0}(10) = 0.1378\) does. The twelfth pays when \(G^{0}(11)\) exceeds 0.10, and \(G^{0}(11) = 0.0792\) does not. Three routes, one answer.
Interpretation. The storeroom holds about three and a half transformers on average, is out of stock about 14% of the time, and owes about 0.16 of a transformer at any moment. By Equation 8.3 the average demand waits \(0.1616/45 = 0.0036\) years, or 1.3 days.
The assumption to examine. We dropped \(k\) because \(Q = 1\) made it a constant. At \(\overline{\mathit{OF}} = \lambda = 45\) orders a year and \(k = \$220\) an order, that constant is \(45(220) = \$9{,}900\) a year, which is more than twice the cost we just minimized. Thus, the policy is well chosen given \(Q = 1\), and \(Q = 1\) has not been justified at all.
That last paragraph is the argument for the next section. One-for-one replenishment is right when an order is nearly free or a unit is nearly priceless, and the transformer is neither.
8.5 General Batch Sizes
Now let \(Q\) be any positive whole number. The inventory position no longer sits still; it walks down through a band and jumps back to the top. What makes the policy solvable is that we know exactly how it is distributed.
8.5.1 Where the Position Sits
Look again at the position column of Table 8.2. It takes the values 9, 8, 7, 6, 5 and then returns to 9. With demands of one unit, the position visits each of the \(Q\) values \(r+1, r+2, \ldots, r+Q\) once per cycle, always in the same order, and it leaves each one at the next demand. The time it spends at a value is therefore one interarrival time of the demand process, and those times all have the same distribution. Thus, the position spends the same expected time at each of its \(Q\) values.
That is the result the whole section rests on. In steady state,
\[ \mathit{IP} \sim \text{Uniform}\{r+1, r+2, \ldots, r+Q\}, \qquad \text{independent of } D(L) \tag{8.18}\]
That is, \(P\{\mathit{IP} = j\} = 1/Q\) for each of the \(Q\) values of \(j\). For example, at \(r = 9\) and \(Q = 5\) the position is 10, 11, 12, 13 or 14, and it is found at each of them one fifth of the time. Section C.1.2 gives the mean and the variance of this distribution.
The independence is the half of Equation 8.18 that is easy to pass over. The position at an instant is determined by demands that have already happened, and \(D(L)\) is demand that has not yet happened. Thus, the two are functions of disjoint stretches of the demand process, and a process with independent increments makes them independent. In the language of conditional probability, knowing the position tells us nothing about the demand to come: \(P\{D(L) = d \mid \mathit{IP} = j\} = P\{D(L) = d\}\) for every \(j\) and every \(d\).
The second ingredient relates the position now to the net inventory one lead time from now. Let \(t\) represent any instant. We compare the net inventory at \(t + L\) with the position at \(t\) in three steps.
- Everything on order at \(t\) has arrived by \(t + L\), because no order takes longer than \(L\).
- Nothing ordered after \(t\) has arrived by \(t + L\), for the same reason.
- Every demand in the interval from \(t\) to \(t + L\) has been subtracted, whether it was filled from the shelf or backordered.
The position at \(t\) counts what is on hand, plus what is on order, less what is owed. By steps 1 and 2 that is all the stock that can reach the shelf or a waiting customer by \(t + L\), and by step 3 the demand of the interval has come out of it. Thus, the net inventory at \(t + L\) is the position at \(t\) less the demand between the two, and that demand has the distribution of \(D(L)\). In steady state we drop the time arguments and write
\[ \mathit{IN} = \mathit{IP} - D(L) \tag{8.19}\]
Notice that Equation 8.9 is the special case in which the position never moves.
Table 8.2 verifies Equation 8.19. The lead time there is eight weeks. After the order in week 2 the position is 9, and six demands arrive in weeks 3 through 10, so the net inventory in week 10 should be \(9 - 6 = 3\), which is what the ledger shows. Take a second instant. The position in week 5 is 7, six demands arrive in weeks 6 through 13, and the net inventory in week 13 is \(7 - 6 = 1\). Notice that the second order, placed in week 8, plays no part in either check. It was placed after the instant we stood at and it arrives after the instant we looked at.
We now combine the two ingredients. Given that the position is \(j\), Equation 8.19 says the net inventory is \(j - D(L)\), and the independence says \(D(L)\) keeps its ordinary distribution. That is, given a position of \(j\) the system looks like a base-stock system with \(S = j\), and every result of Section 8.4 applies with \(j\) in place of \(S\). What remains is to average over the \(Q\) values the position can take.
The law of total expectation, Equation C.11, computes an expectation in two stages. Let \(Y\) represent a random variable that takes the values \(y_{1}, \ldots, y_{n}\). Then for any random variable \(X\),
\[ E[X] = \sum_{i=1}^{n} E[X \mid Y = y_{i}]\,P\{Y = y_{i}\} \]
That is, work out the answer as if \(Y\) were known, once for each value it can take, and weight each answer by the probability of that value. For example, a storeroom running \(r = 9\) and \(Q = 2\) has its position at 10 half the time and at 11 half the time. Given a position of 10 it owes \(G^{1}(10) = 0.2993\) units on average, and given a position of 11 it owes \(G^{1}(11) = 0.1616\), so overall it owes \(\tfrac{1}{2}(0.2993) + \tfrac{1}{2}(0.1616) = 0.230\) units. Section C.1.6 gives the law in general.
8.5.2 The Four Measures
Each measure is obtained the same way. We condition on the position, use the base-stock result, and average.
Backorders. Given a position of \(j\), the expected backorder level is the base-stock value \(G^{1}(j)\) of Equation 8.10. Averaging over the position, we obtain
\[ \begin{aligned} \bar{B}(r, Q) &= \sum_{j=r+1}^{r+Q} E[B \mid \mathit{IP} = j]\,P\{\mathit{IP} = j\} &&\text{total expectation}\\ &= \frac{1}{Q}\sum_{j=r+1}^{r+Q}G^{1}(j) &&\text{base stock at } S = j\\ &= \frac{1}{Q}\left[G^{2}(r) - G^{2}(r+Q)\right] &&\text{the sum collapses} \end{aligned} \tag{8.20}\]
The last step is Equation D.12. Recall that \(G^{2}(x)\) is the sum of \(G^{1}\) over every level above \(x\). Thus, \(G^{2}(r)\) adds \(G^{1}\) from \(r+1\) upward, \(G^{2}(r+Q)\) adds it from \(r+Q+1\) upward, and their difference is the \(Q\) terms from \(r+1\) to \(r+Q\) that the average needs. The two forms give the same number. The sum is the one to use by hand when \(Q\) is small, and the difference is the one to use when it is not, since it needs two table entries whatever \(Q\) is.
The ready rate. Given a position of \(j\), the probability that stock is on the shelf is the base-stock value \(G(j-1)\) of Equation 8.13. Averaging the same way, we obtain
\[ \begin{aligned} \overline{\mathit{RR}}(r, Q) &= \sum_{j=r+1}^{r+Q} P\{\mathit{IN} \ge 1 \mid \mathit{IP} = j\}\,P\{\mathit{IP} = j\} &&\text{total probability}\\ &= \frac{1}{Q}\sum_{j=r+1}^{r+Q}G(j-1) &&\text{base stock at } S = j\\ &= 1 - \frac{1}{Q}\sum_{x=r}^{r+Q-1}G^{0}(x) &&G = 1 - G^{0},\ x = j - 1\\ &= 1 - \frac{1}{Q}\left[G^{1}(r) - G^{1}(r+Q)\right] &&\text{the sum collapses} \end{aligned} \tag{8.21}\]
The collapse is the same one, an order lower. Equation D.11 makes \(G^{1}(x)\) the sum of \(G^{0}\) from \(x\) upward, so \(G^{1}(r) - G^{1}(r+Q)\) is the \(Q\) terms from \(r\) to \(r+Q-1\).
On hand. The expected on-hand needs no averaging of loss functions at all. We take expectations in Equation 8.19, and the mean of a position that is equally likely to be at each of \(r+1\) through \(r+Q\) is the midpoint of that range:
\[ \begin{aligned} E[\mathit{IP}] &= \frac{(r+1) + (r+Q)}{2} = r + \frac{Q+1}{2} &&\text{the midpoint}\\ E[\mathit{IN}] &= E[\mathit{IP}] - E[D(L)] = r + \frac{Q+1}{2} - \theta &&\mathit{IN} = \mathit{IP} - D(L)\\ \bar{I}(r, Q) &= E[\mathit{IN}] + \bar{B}(r, Q) &&I = \mathit{IN} + B\\ &= \frac{Q+1}{2} + r - \theta + \bar{B}(r, Q) &&\text{substitute } E[\mathit{IN}] \end{aligned} \tag{8.22}\]
Orders. \(\overline{\mathit{OF}} = \lambda/Q\) as before. Four formulas, and every one of them is exact.
Notice what is not assumed. Nothing here supposes that at most one order is outstanding, that backorders are rare, or that lead time demand is continuous. Section 8.9 makes all three of those assumptions and Equation 8.20 is the yardstick that prices them.
Two sanity checks travel with these formulas. Setting \(Q = 1\) collapses every formula to Section 8.4, since the sum has one term at \(j = r+1 = S\). The \(\tfrac{1}{2}(Q+1)\) in Equation 8.22 is the average of the integers \(1\) through \(Q\) (Equation C.5), which is the discrete counterpart of the \(Q/2\) that Section 3.1 obtained for a deterministic cycle. Thus, the classical average cycle stock is still in there, raised by half a unit because units are whole and by \(\bar{B}\) because shortages are possible.
8.5.3 The Variance of the Backorder Level
Equation 8.20 is a mean, and a mean of a quantity that is zero most of the time and occasionally large. Its spread deserves reporting, and it is obtained by the same conditioning. Given a position of \(j\), the backorder level is the shortage against a fixed level \(j\), whose second moment Equation D.23 gives as \(2G^{2}(j) + G^{1}(j)\). Averaging over the position, we obtain
\[ \begin{aligned} E\left[B^{2}\right] &= \frac{1}{Q}\sum_{j=r+1}^{r+Q}\left[2G^{2}(j) + G^{1}(j)\right]\\ &= \frac{1}{Q}\left\{2\left[G^{3}(r) - G^{3}(r+Q)\right] + \left[G^{2}(r) - G^{2}(r+Q)\right]\right\} \end{aligned} \tag{8.23}\]
so that \(\mathit{Var}[B] = E[B^{2}] - \bar{B}^{2}\). Notice that this is where the third order loss function of Section D.3.7 is needed and the first place in the book that needs it. The mean backorder level collapses a sum of first order functions into a difference of second order ones; the second moment collapses a sum of second order functions into a difference of third order ones, by Equation D.26. The first line of Equation 8.23 is the average over the position and the second is that average with both sums collapsed. By hand the first line is the one to use, since it needs only the columns of Table 8.5.
Example 8.4 (Evaluating a policy for the transformer) Example 8.3 left \(Q = 1\) unjustified. We now choose both parameters.
Notation. As in Example 8.3: \(\lambda = 45\) a year, \(k = \$220\) an order, \(h = \$950\) per unit per year, \(b = \$8,550\) per unit per year, and \(D(L)\) Poisson with \(\theta = 7.5\).
A starting quantity. Equation 3.17 ignores uncertainty entirely, and is still the right place to start because Section 3.7 showed its cost curve is flat:
\[ Q^{*} = \sqrt{\frac{2k\lambda}{h}} = \sqrt{\frac{2(220)(45)}{950}} = \sqrt{20.84} = 4.57 \to 5 \text{ units} \]
The reorder point. With \(Q = 5\) fixed we evaluate Equation 8.1 across \(r\). We work the row for \(r = 9\) in full, and every number in it comes from Table 8.5.
At \(r = 9\) and \(Q = 5\) the position is 10, 11, 12, 13 or 14. By Equation 8.20 the expected backorder level is the average of \(G^{1}\) over those five levels:
\[ \begin{aligned} \bar{B}(9, 5) &= \frac{G^{1}(10) + G^{1}(11) + G^{1}(12) + G^{1}(13) + G^{1}(14)}{5}\\ &= \frac{0.2993 + 0.1616 + 0.0823 + 0.0397 + 0.0181}{5} = \frac{0.6010}{5} = 0.1202 \text{ units} \end{aligned} \]
The second form of Equation 8.20 gives the same figure from two entries of the last column, \([G^{2}(9) - G^{2}(14)]/5 = (0.6140 - 0.0130)/5 = 0.1202\).
By Equation 8.21 the ready rate is
\[ \overline{\mathit{RR}}(9, 5) = 1 - \frac{G^{1}(9) - G^{1}(14)}{5} = 1 - \frac{0.5229 - 0.0181}{5} = 1 - 0.1010 = 0.8990 \]
and since demand is Poisson Equation 8.2 makes that the fill rate. By Equation 8.22 the expected on-hand is
\[ \bar{I}(9, 5) = \frac{5+1}{2} + 9 - 7.5 + 0.1202 = 3 + 1.5 + 0.1202 = 4.6202 \text{ units} \]
The three cost terms then follow from Equation 8.1:
\[ \begin{aligned} k\,\frac{\lambda}{Q} &= 220\left(\frac{45}{5}\right) = \$1{,}980 &&\text{ordering, nine orders a year}\\ h\,\bar{I} &= 950(4.6202) = \$4{,}389 &&\text{holding}\\ b\,\bar{B} &= 8550(0.1202) = \$1{,}028 &&\text{backorders} \end{aligned} \]
for a total of $7,397 a year. The other rows of Table 8.7 repeat these steps with the position shifted by one, and every column is exact.
| \(r\) | \(\bar{B}\) | \(\overline{\mathit{FR}}\) | \(\bar{I}\) | Ordering | Holding | Backorder | Total |
|---|---|---|---|---|---|---|---|
| 7 | 0.3854 | 0.7492 | 2.8854 | $1,980 | $2,741 | $3,295 | $8,016 |
| 8 | 0.2212 | 0.8357 | 3.7212 | $1,980 | $3,535 | $1,891 | $7,406 |
| 9 | 0.1202 | 0.8990 | 4.6202 | $1,980 | $4,389 | $1,028 | $7,397 |
| 10 | 0.0619 | 0.9417 | 5.5619 | $1,980 | $5,284 | $529 | $7,793 |
| 11 | 0.0302 | 0.9683 | 6.5302 | $1,980 | $6,204 | $258 | $8,442 |
The answer. \(r = 9\) and \(Q = 5\), costing $7,397 a year at a fill rate of 0.8990.
The check. At any \(r\) the on-hand less the backorders must be the mean position less the mean lead time demand, by Equation 8.22. Take the row for \(r = 10\): \(\bar{I} - \bar{B} = 5.5619 - 0.0619 = 5.5000\), and \((5+1)/2 + 10 - 7.5 = 3 + 2.5 = 5.5\). The two agree. That check is worth performing every time, because the \(\tfrac{1}{2}(Q+1)\) term is the one most often written as \(Q/2\).
The spread. The first line of Equation 8.23 averages \(2G^{2}(j) + G^{1}(j)\) over the same five positions. The \(G^{1}\) entries summed to 0.6010 above, and the \(G^{2}\) entries come from the last column of Table 8.5:
\[ \begin{aligned} \sum_{j=10}^{14}G^{2}(j) &= 0.3147 + 0.1531 + 0.0708 + 0.0311 + 0.0130 = 0.5827\\ E\left[B^{2}\right] &= \frac{2(0.5827) + 0.6010}{5} = \frac{1.7664}{5} = 0.3533 \end{aligned} \]
so \(\mathit{Var}[B] = 0.3533 - 0.1202^{2} = 0.3388\) and the standard deviation of the backorder level is 0.582 units. Notice that the standard deviation is nearly five times the mean. Thus, the average backorder level of 0.12 units is not a typical state; the typical state is zero backorders, punctuated by occasions of several. Reporting the mean alone would describe a situation that never occurs.
The comparison that matters. Example 8.3 held \(Q = 1\) and cost $4,859.83 a year in holding and backorders, plus \(45(220) = \$9{,}900\) a year in ordering that the section set aside. Its true total is $14,760.
| Policy | Ordering | Holding | Backorder | Total |
|---|---|---|---|---|
| Base stock, \(S = 11\) | $9,900 | $3,478 | $1,381 | $14,760 |
| \((r, Q) = (9, 5)\) | $1,980 | $4,389 | $1,028 | $7,397 |
Ordering five at a time halves the cost of running this item, and it improves the fill rate from 0.8622 to 0.8990 while doing it. Thus, the base-stock policy was not merely suboptimal here, it was worse on both counts at once.
Interpretation, and the limit. One-for-one replenishment earns its place when \(k\) is small enough that \(k\lambda\) is not the dominant term. Here \(k\lambda = \$9{,}900\) against a total of $14,760, so it dominated completely.
How small must \(k\) be? We compare one for one with ordering two at a time at \(r = 10\), whose positions are 11 and 12. The second policy halves the ordering cost to \(k\lambda/2 = 22.5k\), and its holding and backorder cost is the average \((4{,}859.83 + 5{,}057.03)/2 = \$4{,}958.43\), which is $98.60 more than \(C(11)\). Thus, one for one stays best only while \(22.5k < 98.60\), that is while \(k\) is below $4.38 an order. Even at $10 an order, where \(k\lambda\) is $450 a year, the optimum is \((10, 2)\) at $5,183.43 a year against $5,309.83 one for one.
8.5.4 When the Lead Time Is Random
Everything above took the lead time as a constant, and Section 8.3 did not. That section computed \(D(L)\) with a random lead time and case 3 of Table 8.3 gives its moments, so the two have to be reconciled before the formulas are used that way.
The lead time enters Equation 8.20, Equation 8.21 and Equation 8.22 only through the distribution of \(D(L)\). Nothing in the derivation asked whether \(L\) was random. Thus, a random lead time is the same model with a different lead time demand distribution rather than a new model, and every formula in this section stands unaltered once that distribution is supplied.
One condition makes that true. Equation 8.19 says the net inventory is the position less the demand over a lead time, and that holds because every order placed before the current one has already arrived. Thus, orders must be received in the sequence they were placed. Where a supplier can deliver a later order ahead of an earlier one, Equation 8.19 fails and the analysis above does not apply.
Notice that this is a statement about the supply arrangement and not about the policy. A shipment on a fixed route preserves the sequence. A pool of suppliers any of whom may fill an order does not.
Under one-for-one replenishment with orders that may cross, Section C.3.3 shows the number outstanding is Poisson with mean \(\lambda E[L]\) whatever the lead time distribution is, so its variance does not enter at all. Notice how far that is from the section below, where the variance does most of the damage. The two describe different kinds of randomness, and Section C.3.3 says which is which.
What the variability costs is measured next. Take the transformer with the two descriptions of the supplier from Example 8.2, both averaging two months, and optimize \(r\) and \(Q\) jointly under each.
The first description is the Poisson distribution of Table 8.5. The second is the negative binomial that Example 8.2 fitted, with a size of 4 and \(p = 0.3478\), and it needs a table of its own. Recall from Section 7.8.1 that only the first line of Equation 7.14 depends on the family. For this negative binomial that line is \(g(x) = g(x-1)(x+3)(1-p)/x\), started from \(g(0) = p^{4} = 0.3478^{4} = 0.0146\), so that \(g(1) = 0.0146(4)(0.6522) = 0.0382\), and the other columns are built from the masses as before. Both policies in Table 8.9 come from Algorithm Optimize_rq of Section 8.8, run once on each table.
| The supplier | \(\mathit{Var}[D(L)]\) | \((r, Q)^{*}\) | Cost |
|---|---|---|---|
| Two months exactly | 7.5 | \((8, 7)\) | $7,225.15 |
| Two months on average, standard deviation one month | 21.5625 | \((10, 8)\) | $11,079.73 |
The uncertainty costs $3,854.58 a year, which is 53% more than running the item against a reliable supplier. Recall from Example 8.2 that 65% of the variance is the lead time’s doing. Thus, Table 8.9 is the number to put in front of a purchasing department that is choosing between a cheaper supplier and a predictable one.
Notice also the direction the policy moves. Both \(r\) and \(Q\) rise, \(r\) because the tail of \(D(L)\) is heavier and \(Q\) because a longer, more variable exposure makes each cycle more expensive to start. That is the same effect Equation 8.38 will make explicit.
Everything in this section is exact, computable by hand from Table E.4 and Table E.5, and free of the assumptions the classical treatment makes. It evaluates a policy that has been given. Section 8.6 now asks which policy to give it, and the two sections after it find that policy exactly, before Section 8.9 turns to the classical treatment.
Explore it: the (r, Q) policy for the transformer
8.6 The Cost Function and Its Shape
Everything so far has evaluated policies. Section 8.5 computes what a given \((r, Q)\) delivers, exactly, and it has not asked what the best policy looks like.
This section and the two that follow do. They follow Chapter 6 of Zipkin (2000), and the results are stated with their sources rather than proved here.
The objective is Equation 8.1:
\[ C(r, Q) = k\,\overline{\mathit{OF}}(r,Q) + h\,\bar{I}(r,Q) + b\,\bar{B}(r,Q) \]
and the problem is to choose whole numbers \(r\) and \(Q\) that minimize it. Notice that the purchase cost is absent, as Section 1.4.1 allows, because the average purchase rate is \(\lambda c\) whatever the policy.
8.6.1 The One-for-One Cost, and Why It Is Convex
We start with \(Q = 1\), where \(k\) drops out by the argument of Section 8.4, and write the base-stock cost as a function of \(S\):
\[ C(S) = h\,\bar{I}(S) + b\,\bar{B}(S) \tag{8.24}\]
There is a compact way to see its shape. We define
\[ \mathcal{C}(y) = h(y)^{+} + b(-y)^{+} \tag{8.25}\]
which charges \(h\) per unit of positive net inventory and \(b\) per unit of negative. It is non-negative, piecewise linear and convex, with a kink at zero. Then, since \(\mathit{IN} = S - D(L)\) by Equation 8.9,
\[ C(S) = E\left[\mathcal{C}(S - D(L))\right] \tag{8.26}\]
An expectation of a convex function of \(S\) is convex in \(S\). Thus, \(C(S)\) is convex, and that single fact is what makes the rest of this chapter tractable.
Read the two ends of it. For small \(S\) the on-hand is negligible and the backorder level falls about one for one with \(S\), so \(C(S)\) is nearly linear with slope \(-b\). For large \(S\) the backorders vanish and the on-hand rises one for one, so the slope approaches \(+h\). In between it turns once.
Section 8.4 already located the turn. The optimal level is the smallest \(S\) whose distribution function reaches the critical ratio \(b/(b+h)\), which is Equation 8.16, and the ratio is written \(w\) from here on:
\[ w = \frac{b}{b+h} \tag{8.27}\]
For the transformer, \(w = 8550/9500 = 0.90\) and \(S^{*} = 11\), costing $4,859.83 a year.
8.6.2 The General Cost Is an Average of One-for-One Costs
We now take any \(Q\). Recall from Equation 8.20 that \(\bar{B}(r,Q)\) is the average of the base-stock backorder levels \(\bar{B}(s) = G^{1}(s)\) over the positions \(s = r+1, \ldots, r+Q\). The on-hand level is an average of the same kind. The base-stock on-hand is \(\bar{I}(s) = s - \theta + G^{1}(s)\), the average of \(s\) over those positions is \(r + \tfrac{1}{2}(Q+1)\), and the average of \(G^{1}(s)\) is \(\bar{B}(r,Q)\), which together are Equation 8.22. Multiplying by \(h\) and \(b\) and adding, we obtain
\[ \begin{aligned} C(r, Q) &= k\,\frac{\lambda}{Q} + h\,\bar{I}(r, Q) + b\,\bar{B}(r, Q) &&\text{the cost rate}\\ &= \frac{k\lambda}{Q} + \frac{1}{Q}\sum_{s=r+1}^{r+Q}\left[h\,\bar{I}(s) + b\,\bar{B}(s)\right] &&\text{both are averages}\\ &= \frac{k\lambda + \sum_{s=r+1}^{r+Q}C(s)}{Q} &&\text{the bracket is } C(s) \end{aligned} \tag{8.28}\]
Equation 8.28 is the engine of the next two sections. It says that an \((r,Q)\) policy costs the average of \(Q\) consecutive base-stock costs, plus the fixed-cost term \(k\lambda/Q\) spread over the same \(Q\). The two-dimensional problem has become a question about which \(Q\) consecutive values of a convex sequence to average.
The check. For the transformer at \(r = 8\) and \(Q = 7\) the window is the seven levels from \(s = 9\) to \(s = 15\). Example 8.3 computed \(C(10)\) and \(C(11)\), and the other five are computed the same way from Table 8.5. They sum to
\[ 6392.69 + 5218.57 + 4859.83 + 5057.03 + 5601.71 + 6346.84 + 7199.37 = \$40{,}676.04 \]
and \(k\lambda = 220(45) = \$9{,}900\), so
\[ C(8, 7) = \frac{9{,}900 + 40{,}676.04}{7} = \$7{,}225.15 \text{ a year} \]
which is what Equation 8.20, Equation 8.21 and Equation 8.22 give directly. Two routes, one answer, and the second route is the one that can be optimized.
8.7 What You Know Before You Solve
Zipkin (2000) proves a group of results about the optimal policy that are useful even when you intend to compute it exactly, because they say what to expect and what to check. Three of them are practical and are given here. The proofs, and refinements of the bounds, are in that chapter.
Two reference quantities are needed, and both come from models the reader already has. Let
\[ Q_{k} = \sqrt{\frac{2k\lambda}{hw}}, \qquad C_{k} = hwQ_{k} = \sqrt{2k\lambda hw} \tag{8.29}\]
be the order quantity and cost of the deterministic model with planned backorders, the fourth row of Table 3.1, and let
\[ C_{\infty} = \sqrt{bh}\,\sigma \tag{8.30}\]
be a reference cost for the base-stock model, built from the standard deviation of lead time demand. Notice what each ignores: \(Q_{k}\) knows nothing about uncertainty, and \(C_{\infty}\) knows nothing about the fixed cost.
8.7.1 The Optimal Band Straddles the Optimal Base-Stock Level
\[ r^{*} < S^{*} \le r^{*} + Q^{*} \tag{8.31}\]
The inventory position under the optimal policy ranges over the integers \(r^{*}+1\) through \(r^{*}+Q^{*}\), and Equation 8.31 says that range contains the optimal base-stock level. That is the link between Section 8.4 and Section 8.5, and it makes sense of Equation 8.28: the best \(Q\) consecutive values of a convex sequence are the ones sitting around its minimum.
It is also the most useful check you can run on a computed answer. For the transformer the optimum is \(r^{*} = 8\) and \(Q^{*} = 7\), and \(8 < 11 \le 15\).
It gives a starting value for \(r\) as well. Zipkin (2000) suggests \(r \approx S^{*} - \kappa Q\) with \(\kappa\) between \(1-w\) and \(\tfrac{1}{2}\). For the transformer, with \(S^{*} = 11\), \(Q = 7\) and \(1 - w = 0.10\), that is \(r\) between \(11 - \tfrac{1}{2}(7) = 7.5\) and \(11 - 0.10(7) = 10.3\), bracketing the answer of 8.
8.7.2 The Cost Is Bounded Above and Below
\[ C_{k} \le C^{*} \le \sqrt{C_{k}^{2} + C_{\infty}^{2}} = \sqrt{2k\lambda hw + bh\sigma^{2}} \tag{8.32}\]
The lower bound is the deterministic cost, which is what the item would cost if demand were known: uncertainty can only make things worse. The upper bound adds the two reference costs in quadrature, and needs nothing about the lead time demand distribution beyond its variance.
For the transformer, \(hw = 950(0.90) = \$855\) and the standard deviation of lead time demand is \(\sigma = \sqrt{7.5} = 2.7386\) units. Then by Equation 8.29 and Equation 8.30,
\[ \begin{aligned} Q_{k} &= \sqrt{\frac{2(220)(45)}{855}} = \sqrt{23.158} = 4.81 \text{ units}\\ C_{k} &= hwQ_{k} = 855(4.81227) = \$4{,}114.49\\ C_{\infty} &= \sqrt{8550(950)}\,\sqrt{7.5} = 2850(2.738613) = \$7{,}805.05 \end{aligned} \]
so
\[ \$4{,}114.49 \;\le\; C^{*} \;\le\; \sqrt{4114.49^{2} + 7805.05^{2}} = \$8{,}823.14 \]
and the true optimum of $7,225.15 lies between them.
Read the bounds before dismissing them as loose. Only the lower bound is proportional to \(\sqrt{k}\). The upper bound adds \(C_{\infty}\), which does not involve \(k\) at all, so as \(k\) falls toward zero the upper bound falls toward \(C_{\infty}\) and not toward zero. That is, the upper bound follows the economic order quantity when \(C_{k}\) dominates, with a large ordering cost and little uncertainty, and follows the base-stock reference when \(C_{\infty}\) dominates. Thus, the sensitivity analysis of Section 3.7 carries over to the first case only. In addition, the upper bound grows at most linearly in \(\sigma\), because \(\sqrt{C_{k}^{2} + C_{\infty}^{2}} \le C_{k} + C_{\infty}\) and \(C_{\infty}\) is proportional to \(\sigma\), so lead time demand uncertainty raises the cost by an amount the bound limits. For example, the transformer is in the second case: \(C_{\infty} = \$7{,}805.05\) is nearly twice \(C_{k} = \$4{,}114.49\), and the true optimum of $7,225.15 sits much nearer the base-stock reference than the deterministic cost.
They also bracket \(Q^{*}\). The lower bound is \(Q_{k}\) itself, which for the transformer is 4.81, against a true \(Q^{*}\) of 7. Theorem 6.5.1 of Zipkin (2000) supplies the upper bound: \(Q^{*}\) cannot exceed \(Q_{k}\) by more than \(C(S^{*})/(hw)\), the base-stock cost measured in units of the holding cost at the critical ratio, which for the transformer is \(4{,}859.83/855 = 5.68\) units. Rounded to whole units the bracket is \(5 \le Q^{*} \le 11\), and the code of Section G.7 prints it.
8.7.3 Choosing the Wrong Quantity Is Cheap
Let \(C^{*}(Q)\) represent the best cost achievable with \(Q\) held fixed. Then, under a continuous approximation,
\[ \frac{C^{*}(Q)}{C^{*}} \le E\!\left(\frac{Q}{Q^{*}}\right), \qquad E(x) = \frac{1}{2}\left(x + \frac{1}{x}\right) \tag{8.33}\]
where \(E\) is the economic order quantity penalty function of Equation 3.22. Recall that the deterministic model satisfies that relation with equality. Here it is an inequality, so the insensitivity is if anything stronger than in the deterministic case: choosing some other \(Q\), by error or by design, costs less than the deterministic penalty.
That is the result a practitioner should carry away from this section. For example, a batch size chosen for a pallet, a case quantity or a supplier minimum is not necessarily expensive, and Equation 8.33 bounds what it costs before any of it is computed.
Equation 8.33 is proved for the continuous approximation, and Zipkin (2000) is explicit that the discrete analogues of these results have not been investigated. They can fail, mildly. On the transformer the bound holds at \(Q = 4, 5, 6, 7, 10, 12\) and \(14\), and is exceeded at \(Q = 8\) and \(Q = 9\), where the true ratio is 1.0152 against a bound of 1.0089 and 1.0355 against 1.0317. Thus, use Equation 8.33 to judge whether a deviation is worth worrying about, and not as a guarantee.
8.8 An Exact Algorithm
Equation 8.28 and the convexity of \(C(s)\) give an algorithm that returns the optimal integer \((r, Q)\) in a finite number of steps, with no search over two dimensions and no calculus. It is Algorithm Optimize_rq of Zipkin (2000).
8.8.1 The Idea
By Equation 8.28, an \((r,Q)\) policy costs \(k\lambda/Q\) plus the average of \(Q\) consecutive values of \(C(s)\). For a fixed \(Q\), then, the best \(r\) is the one that makes those \(Q\) values the \(Q\) smallest values of \(C(s)\). Because \(C(s)\) is convex, its \(Q\) smallest values are always consecutive, so such an \(r\) exists and is easy to find.
We now increase \(Q\) by one. The set of smallest values gains exactly one member, and by convexity it must be at one end or the other of the current window: either \(C(r)\), just below it, or \(C(r+Q+1)\), just above. Taking the smaller of the two extends the window correctly. Thus, \(r^{*}(Q)\) falls as \(Q\) rises, but never by more than one per step.
Finally, let \(C^{*}(Q)\) represent the best cost at that \(Q\). By Equation 8.28, \(QC^{*}(Q)\) is \(k\lambda\) plus the sum of the window. Adding one more value \(c\) to the window adds \(c\) to that numerator, so \((Q+1)C^{*}(Q+1) = QC^{*}(Q) + c\). Dividing by \(Q+1\) and writing \(Q\) as \((Q+1) - 1\), we obtain
\[ C^{*}(Q+1) = C^{*}(Q) - \frac{C^{*}(Q) - c}{Q+1} \tag{8.34}\]
so the cost falls exactly when the value being added is below the current average. That is the stopping rule. When the next value to be added is not below the current average, no larger \(Q\) can help.
8.8.2 The Algorithm
Input. The base-stock cost \(C(s)\) of Equation 8.24 at every level \(s\), the distribution function \(G\) of lead time demand, and \(k\), \(\lambda\), \(h\) and \(b\).
Output. The optimal reorder point \(r^{*}\), order quantity \(Q^{*}\) and cost \(C^{*}\).
Step 0, initialize. Find \(S^{*}\), the smallest \(S\) with \(G(S) \ge b/(b+h)\). Set \(Q \leftarrow 1\), \(r \leftarrow S^{*} - 1\) and \(C^{*} \leftarrow k\lambda + C(S^{*})\). The window holds the single level \(S^{*}\).
Step 1, the next smallest base-stock cost. Compute the costs at the two levels just outside the window, \(C(r)\) below it and \(C(r+Q+1)\) above it, and let \(c\) be the smaller of the two.
Step 2, test for termination. If \(c \ge C^{*}\), stop, and return \(r\), \(Q\) and \(C^{*}\).
Step 3, extend the window. Set \(Q \leftarrow Q + 1\), then \(C^{*} \leftarrow C^{*} - (C^{*} - c)/Q\) with the new \(Q\). If the smaller cost in step 1 was \(C(r)\), set \(r \leftarrow r - 1\), so that the window grows downward; on a tie it grows downward. Return to step 1.
Example 8.5 (Optimizing the transformer) Take the transformer once more: \(\lambda = 45\) a year, \(k = \$220\), \(h = \$950\) per unit per year, \(b = \$8{,}550\) per unit per year, and \(D(L)\) Poisson with \(\theta = 7.5\).
The input. One column of numbers, computed once from Equation 8.24 with \(G^{1}\) read from Table 8.5. Each entry is the computation Example 8.3 worked at \(S = 10\) and \(S = 11\). For example, with the products taken before rounding,
\[ C(12) = 950(12 - 7.5 + 0.0823) + 8550(0.0823) = 4353.20 + 703.83 = \$5{,}057.03 \]
| \(s\) | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
|---|---|---|---|---|---|---|---|---|---|
| \(C(s)\) | $8,654 | $6,393 | $5,219 | $4,860 | $5,057 | $5,602 | $6,347 | $7,199 | $8,106 |
Step 0. \(S^{*} = 11\), so \(Q = 1\), \(r = 10\), and \(C^{*} = 9{,}900 + 4{,}859.83 = \$14{,}759.83\). The window is the single level 11.
Step 1. The two candidates are the levels at the ends of the window, \(C(r) = C(10) = \$5{,}218.57\) below it and \(C(r+Q+1) = C(12) = \$5{,}057.03\) above it. The smaller is \(c = \$5{,}057.03\), and it is below \(C^{*}\), so the window takes it in. Now \(Q = 2\), and Equation 8.34 gives
\[ C^{*} = 14{,}759.83 - \frac{14{,}759.83 - 5{,}057.03}{2} = 14{,}759.83 - 4{,}851.40 = \$9{,}908.43 \]
The level added was the upper one, so \(r\) stays at 10 and the window is levels 11 and 12.
Step 2. The candidates are now \(C(10) = \$5{,}218.57\) and \(C(13) = \$5{,}601.71\). The smaller is \(C(10)\), it is below $9,908.43, and \(Q\) becomes 3:
\[ C^{*} = 9{,}908.43 - \frac{9{,}908.43 - 5{,}218.57}{3} = 9{,}908.43 - 1{,}563.29 = \$8{,}345.14 \]
This time the level added was the lower one, so \(r\) falls to 9 and the window is levels 10 through 12. The remaining steps repeat the comparison. The table has been updated as follows.
| Step | \(C(r)\) | \(C(r+Q+1)\) | \(c\) | Against \(C^{*}\) | New \(Q\) | New \(C^{*}\) | New \(r\) |
|---|---|---|---|---|---|---|---|
| 1 | $5,219 | $5,057 | $5,057.03 | below $14,759.83 | 2 | $9,908.43 | 10 |
| 2 | $5,219 | $5,602 | $5,218.57 | below $9,908.43 | 3 | $8,345.14 | 9 |
| 3 | $6,393 | $5,602 | $5,601.71 | below $8,345.14 | 4 | $7,659.28 | 9 |
| 4 | $6,393 | $6,347 | $6,346.84 | below $7,659.28 | 5 | $7,396.80 | 9 |
| 5 | $6,393 | $7,199 | $6,392.69 | below $7,396.80 | 6 | $7,229.45 | 8 |
| 6 | $8,654 | $7,199 | $7,199.37 | below $7,229.45 | 7 | $7,225.15 | 8 |
| 7 | $8,654 | $8,106 | $8,105.59 | not below $7,225.15 | stop |
The answer. \(r^{*} = 8\), \(Q^{*} = 7\), \(C^{*} = \$7{,}225.15\) a year, in seven steps and with no search.
The checks. Three are available and all three pass.
A full enumeration over every \((r, Q)\) returns the same policy and the same cost.
Equation 8.31 requires \(r^{*} < S^{*} \le r^{*} + Q^{*}\), and \(8 < 11 \le 15\).
Equation 8.32 requires \(\$4{,}114.49 \le C^{*} \le \$8{,}823.14\), and $7,225.15 lies between them.
Look at the \(r\) column. It runs 10, 10, 9, 9, 9, 8, 8: falling as \(Q\) rises, never by more than one per step, as Section 8.8.1 said it must. Watch it while the algorithm runs, because a reorder point that jumps by two is a sign the cost column is not convex.
8.8.3 When the Batch Is Large
The loop runs once per unit of \(Q^{*}\), so it is quick when the optimal batch is small and slow when it is not. An item whose optimal batch is in the hundreds would take hundreds of steps from \(Q = 1\), and the storeroom holds several.
Zipkin (2000) gives the remedy, and Section 8.7 supplies the numbers it needs. Start from a plausible policy rather than from \(Q = 1\): take \(Q\) near \(Q_{k}\) from Equation 8.29, and \(r\) near \(S^{*} - \kappa Q\) with \(\kappa\) between \(1-w\) and \(\tfrac{1}{2}\). Find the best \(r\) for that \(Q\) by a short local search, then compare the next value to be added against \(C^{*}(Q)\): if it is smaller, \(Q\) is below \(Q^{*}\) and the loop above continues from Step 3; if it is larger, \(Q\) is above \(Q^{*}\) and the same reasoning run backwards decreases it.
On the transformer the warm start would begin at \(Q = 5\) rather than 1, since \(Q_{k} = 4.81\), and at \(r\) between 7.5 and 10.3. Notice that this is not a heuristic: it reaches the same optimum and simply starts closer.
8.8.4 Two Cautions
Convexity is more than the algorithm needs, but something is. What the argument actually requires is that \(C(s)\) be non-increasing up to \(S^{*}\) and non-decreasing after it. Convexity gives that and is easy to establish from Equation 8.26.
The algorithm is not guaranteed when the penalty is on the stockout probability. If the objective charges for the probability of being short rather than for the backorders themselves, the cost function becomes
\[ C(s) = h\bar{I}(s) + b\,\overline{\mathit{SO}}(s) \tag{8.35}\]
and this need not have the shape the argument requires. It happens to have it under Poisson demand, and in general it does not. Zipkin (2000) notes that suggestions to the contrary appear in the literature and warns against them. Thus, if you are minimizing against a stockout probability rather than a backorder level, check the shape of the cost column before trusting any algorithm that assumes it.
The exact optimum is now in hand, and it took one column of base-stock costs and a short loop. Section 8.9 turns to the treatment that most textbooks give first and most software implements, and prices it against this answer.
8.9 The Classical Approximation
Section 8.5 evaluates a policy without approximating anything, and it is not the model most textbooks give first. The classical treatment replaces it with a cost expression that can be differentiated, and that expression is what is implemented in nearly every spreadsheet and planning package in service. It descends from Hadley and Whitin (1963) and appears in Nahmias and Olsen (2015) and Silver et al. (2016). We give it here, and then we price it against the exact answer of Section 8.8, which is the reason it comes after that answer in this book and not before it.
8.9.1 Thirteen Assumptions
The approximation rests on the following. Several are so ordinary that they are never stated, which is why they are listed.
- The system is under continuous review, so that whenever a demand or a replenishment occurs the inventory position is immediately determined.
- There is a fixed ordering cost \(k\), in dollars per order.
- There is a shortage cost \(\pi\), measured per unit of backordered demand, in dollars per unit.
- The unit cost is \(c\), in dollars per unit.
- The holding cost is \(h\), in dollars per unit per unit time. If a carrying charge \(i\) is given instead, then \(h = ic\).
- The lead time \(L\) is fixed and positive.
- Demand is stationary and characterized by an expected rate \(\lambda\), in units per unit time.
- Lead time demand \(D(L)\) is a continuous random variable with density \(g(x)\) and distribution function \(G(x)\), mean \(\theta = \lambda L\) and variance \(\sigma^{2}\). Which continuous family is a separate question, and Section 8.9.2 answers it.
- There is never more than one outstanding order at any point in time. This ensures that whenever the reorder point is reached there are no orders outstanding, and therefore that lead time demand never exceeds \(Q\).
- A cycle is the time between the receipt of two consecutive replenishment orders.
- The reorder point \(r\) is non-negative, so it is reached while \(I(t)\) is still positive. Thus, there are no backorders at the moment the reorder point is reached, and \(\mathit{IP}(t) = I(t)\) there.
- The expected number of backorders at a random point in a cycle is very small compared with the expected amount on hand.
- The inventory position is treated as continuous, spread evenly over \([r, r + Q]\) rather than over the whole numbers \(r + 1, \ldots, r + Q\) that Equation 8.18 gives it. The classical list leaves this one unstated, because it is implicit in the holding term.
Most are harmless or are removed later. Assumption (f) is what Section 8.5.4 lifted, and (d) was the business of Section 3.8.
Four of them do the damage, and they do it in two different ways. Assumptions (i), (l) and (m) drop terms from a cost expression that Section 8.5 computes exactly. Assumption (h) replaces the distribution of \(D(L)\) itself. Those are separate errors, they can run in opposite directions, and the examples below price them separately for that reason.
8.9.2 Which Continuous Family
Assumption (h) requires a continuous distribution for a quantity that is a count. The family it is most often given is the normal, and that choice is hard to defend. Table D.1 prices its central defect: the support is the whole real line, so a normal model assigns positive probability to negative demand, and the amount is governed by the coefficient of variation. Below about \(c_{X} = 0.3\) the defect is invisible and past \(c_{X} = 1\) a sixth of the distribution is nonsense. Lead time demand for a slow-moving item routinely sits in the second range. Rossetti and Ünlü (2011) examine the question directly and find the normal a poor model of lead time demand across the conditions that matter.
This book uses the gamma. It is strictly positive, it accommodates any coefficient of variation, and Table D.5 and Table D.6 give its loss functions in closed form. We match the two moments of Table 8.3, which gives
\[ \alpha = \frac{\theta^{2}}{\sigma^{2}}, \qquad \beta = \frac{\sigma^{2}}{\theta} \tag{8.36}\]
which is Section D.4.2 applied to lead time demand.
A gamma random variable with shape \(\alpha\) and scale \(\beta\) is continuous and positive, with mean \(\alpha\beta\) and variance \(\alpha\beta^{2}\). Solving those two equations for the parameters is what Equation 8.36 does. Its distribution function has no closed form, so three quantities come from a worksheet or a program: the distribution function \(G(x)\) from GAMMA.DIST(x, alpha, beta, TRUE), the density \(g(x)\) from the same function with FALSE, and the quantile \(G^{-1}(p)\) from GAMMA.INV(p, alpha, beta).
For a continuous demand the loss function is an integral rather than a sum, \(G^{1}(x) = \int_{x}^{\infty}(y - x)\,g(y)\,dy\), and Table D.5 reduces it to \(G^{1}(x) = \beta\left[(\alpha - x/\beta)\,G^{0}(x) + x\,g(x)\right]\). For example, the transformer’s lead time demand matches a gamma with \(\alpha = 7.5\) and \(\beta = 1\), whose 95th percentile is GAMMA.INV(0.95, 7.5, 1), or 12.50 units. Section D.2.2 gives the family in full.
Notice that this is a choice about assumption (h) and not a repair of it. A continuous family approximating a small count is still approximating a small count, and Section 8.5 does not have to.
Assumption (i) has a diagnostic you already have. The expected number of orders outstanding at any moment is the lead time demand divided by the order quantity, \(\theta/Q\). Thus, (i) asks for \(\theta/Q\) comfortably below one. Read it against Equation 8.20: (i) says \(D(L)\) never exceeds \(Q\), which is the claim that \(G^{1}(r+Q)\) is zero, and \(G^{1}(r+Q)\) is the term the approximation is about to drop.
8.9.3 The Cost Model
We take the three cost terms one at a time. The purchase cost is \(\lambda c\) and does not depend on the policy, so by Section 1.4.1 it is omitted.
Ordering. Orders are placed at the rate demand consumes them, so the expected ordering cost per unit time is \(k\lambda/Q\), as in Section 8.2.
Shortage. The shortage cost per unit time is the expected shortage per cycle, times cycles per unit time, times the cost of a unit short:
\[ \frac{\text{units short}}{\text{cycle}} \times \frac{\text{cycles}}{\text{time}} \times \frac{\text{dollars}}{\text{unit short}} = \frac{\text{dollars}}{\text{time}} \]
By assumption (k), \(I(t) = r\) when the reorder point is reached, so a shortage occurs in a cycle exactly when \(D(L)\) exceeds \(r\), and its size is \(D(L) - r\). That expectation is the first order loss function, so the shortage cost per unit time is \(\pi(\lambda/Q)G^{1}(r)\).
Holding. Assumption (l) sets \(E[B] \approx 0\), so \(E[I] \approx E[\mathit{IN}]\). The safety stock \(\mathit{ss} = r - \theta\) of Equation 8.7 is what remains on hand when the order arrives, and \(Q\) more arrive with it, so the level cycles between \(\mathit{ss}\) and \(\mathit{ss} + Q\) and averages \(Q/2 + r - \theta\). That average is where assumption (m) enters. The exact position takes the whole numbers \(r + 1\) through \(r + Q\), whose average is \(r + \tfrac{1}{2}(Q + 1)\) by Equation C.5, and treating it as continuous on \([r, r + Q]\) loses the half unit. The holding cost per unit time is \(h(Q/2 + r - \theta)\).
Putting the three together, we have
\[ C(r, Q) \approx k\frac{\lambda}{Q} + h\left(\frac{Q}{2} + r - \theta\right) + \pi\frac{\lambda}{Q}G^{1}(r) \tag{8.37}\]
Notice that Equation 8.37 is Equation 3.17 with two terms added, and that the \(Q/2\) is the deterministic cycle stock of Section 3.1 unchanged. That is the sense in which this is the classical model: the uncertainty has been pushed entirely into \(r\).
8.9.4 Two Conditions, Solved Together
Equation 8.37 is differentiable in both arguments, and we take the partial derivative in each. The second needs \(dG^{1}/dr = -G^{0}(r)\) from Equation D.19, which is the continuous counterpart of the last line of Equation 7.14: a little more stock removes shortage at the rate at which the stock is exceeded. Thus,
\[ \begin{aligned} \frac{\partial C}{\partial Q} &= -\frac{k\lambda}{Q^{2}} + \frac{h}{2} - \frac{\pi\lambda G^{1}(r)}{Q^{2}} = \frac{h}{2} - \frac{\lambda\left[k + \pi G^{1}(r)\right]}{Q^{2}}\\ \frac{\partial C}{\partial r} &= h - \frac{\pi\lambda}{Q}\,G^{0}(r) \end{aligned} \]
Setting the first to zero and solving for \(Q\), and the second to zero and solving for \(G^{0}(r)\), we obtain
\[ Q = \sqrt{\frac{2\lambda\left[k + \pi G^{1}(r)\right]}{h}}, \qquad G^{0}(r) = \frac{Qh}{\pi\lambda} \tag{8.38}\]
Read the first one. It is the economic order quantity with the ordering cost inflated by \(\pi G^{1}(r)\), the expected shortage cost per cycle. Uncertainty raises the order quantity by making each cycle more expensive to begin, which is the whole classical result in one sentence.
Read the second one. It says the probability of a stockout during a lead time is \(Qh/(\pi\lambda)\), so for a given \(Q\) the reorder point is a quantile:
\[ r = G^{-1}\!\left(1 - \frac{Qh}{\pi\lambda}\right) \tag{8.39}\]
Neither equation solves alone. Substituting the first into the second, we obtain the root equation
\[ G(r) + \frac{h}{\pi\lambda}\sqrt{\frac{2\lambda\left[k + \pi G^{1}(r)\right]}{h}} - 1 = 0 \tag{8.40}\]
which can be solved directly, or the pair can be iterated: start from the economic order quantity, solve for \(r\), put that \(r\) back, and repeat until \(Q\) stops moving.
8.9.5 The Backorder-Cost Variant
Where the shortage is charged as \(b\) per unit per unit time rather than \(\pi\) per unit short, the shortage term becomes \(b\bar{B}\) with \(\bar{B} \approx G^{2}(r)/Q\), which is Equation 8.20 with the far tail dropped. The same two derivatives then give
\[ Q = \sqrt{\frac{2\left[k\lambda + b\,G^{2}(r)\right]}{h}}, \qquad G^{1}(r) = \frac{Qh}{b} \tag{8.41}\]
Use whichever matches the cost the organization can defend. Recall from Section 8.2 that \(b\) charges for how long a customer waits and \(\pi\) charges for the fact that they waited, and that these are different claims about the world rather than different units for one claim.
Example 8.6 (The approximation on a fast-moving item) From Table 4.9 the storeroom’s compression connector has \(\lambda = 6{,}000\) a year, \(c = \$3.40\) and \(k = \$27.50\), so by assumption (e) and the storeroom’s carrying charge of 0.25 a year, \(h = 0.25(3.40) = \$0.85\) per unit per year. The supplier quotes two weeks.
What is stocked? One item, the compression connector.
What is the demand process? Poisson at 6,000 units a year.
When is inventory reviewed? Continuously.
What triggers replenishment, and how much? The position reaching \(r\), and the order is for \(Q\).
What happens to unmet demand? It is backordered, and a crew waits.
What costs are incurred, and when? \(k = \$27.50\) an order, \(h = \$0.85\) per unit per year, and the utility puts the cost of a connector short at \(\pi = \$8.50\), two and a half times what the part is worth, because the crew is idle either way.
Notation. Let \(D(L)\) represent demand over the two-week lead time, so
\[ \theta = \lambda L = \frac{6{,}000 \text{ units}}{1 \text{ year}} \times \frac{2 \text{ weeks}}{1} \times \frac{1 \text{ year}}{52 \text{ weeks}} = 230.77 \text{ units} \]
and \(\sigma = \sqrt{230.77} = 15.19\) units, since the count is Poisson. Assumption (h) asks us to treat \(D(L)\) as continuous, and Equation 8.36 gives the gamma to treat it as:
\[ \alpha = \frac{230.77^{2}}{230.77} = 230.77, \qquad \beta = \frac{230.77}{230.77} = 1.00 \]
Notice that matching a gamma to a Poisson always returns \(\beta = 1\) and \(\alpha = \theta\), since the two moments are equal. The loss functions come from Table D.5.
The iteration. Each pass has four steps, and we work the first pass in full.
Start from the economic order quantity, \(Q = \sqrt{2(6000)(27.50)/0.85} = \sqrt{388{,}235} = 623.09\) units.
The second condition of Equation 8.38 gives the stockout probability that goes with that quantity:
\[ G^{0}(r) = \frac{Qh}{\pi\lambda} = \frac{623.09(0.85)}{8.50(6000)} = \frac{529.62}{51{,}000} = 0.010385 \]
The reorder point is the level that lead time demand exceeds with that probability, which is the quantile of Equation 8.39. The gamma has no closed form for it, so it comes from the worksheet: GAMMA.INV(1 - 0.010385, 230.77, 1) returns \(r = 267.33\) units.
The loss function at that reorder point is the gamma row of Table D.5, and it needs the density, which GAMMA.DIST gives as \(g(267.33) = 0.0016446\). With \(\beta = 1\),
\[ \begin{aligned} G^{1}(r) &= (\alpha - r)\,G^{0}(r) + r\,g(r)\\ &= (230.77 - 267.33)(0.010385) + 267.33(0.0016446)\\ &= -0.37972 + 0.43967 = 0.05995 \text{ units} \end{aligned} \]
Notice that the two terms nearly cancel, so the digits have to be carried. The first condition of Equation 8.38 then returns a new order quantity:
\[ \begin{aligned} Q &= \sqrt{\frac{2\lambda\left[k + \pi G^{1}(r)\right]}{h}} = \sqrt{\frac{2(6000)\left[27.50 + 8.50(0.05995)\right]}{0.85}}\\ &= \sqrt{\frac{12{,}000(28.0096)}{0.85}} = 628.83 \text{ units} \end{aligned} \]
That completes the first pass. The second pass starts from 628.83 and repeats the four steps. The table has been updated as follows.
| Pass | \(G^{0}(r) = 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 |
The answer. \(r = 267\) and \(Q = 629\). Evaluating Equation 8.37 at those whole numbers, with \(G^{1}(267) = 0.0635\) units recomputed at the rounded reorder point,
\[ C = \underbrace{27.50\frac{6000}{629}}_{262.32} + \underbrace{0.85\left(\frac{629}{2} + 267 - 230.77\right)}_{298.12} + \underbrace{8.50\frac{6000}{629}(0.0635)}_{5.15} = \$565.59 \text{ a year} \]
Notice that \(G^{1}\) is recomputed at the rounded reorder point rather than carried over from the last line of Table 8.12. Rounding \(r\) changes the shortage term, and recomputing after rounding is the habit to keep.
The check that matters. Evaluate the same policy with Equation 8.20, Equation 8.21 and Equation 8.22, which assume none of (h) to (l). The true cost is $565.14, so the approximation overstates by $0.45, or 0.08%. A full search over all \((r,Q)\) puts the best policy at \((267, 628)\), costing $565.14, which is what the recommended policy costs to the nearest cent. The policy penalty is zero.
Why it did so well, and the two errors separately. The model assumptions and the family choice are different approximations and both are small here.
| Cost | |
|---|---|
| Exact, from Section 8.5 | $565.14 |
| What (i), (l) and (m) alone would report | $564.71 |
| What the gamma then adds | \(+\$0.88\) |
| What the approximation reports | $565.59 |
Check the diagnostics before trusting any of it. \(\theta/Q = 230.77/629 = 0.37\), so assumption (i) holds comfortably; \(1/Q\) is 0.16%, so the half unit assumption (m) drops is negligible; and one unit is 6.6% of \(\sigma\), so a continuous treatment under (h) is defensible. Notice also the fill rate, which is 0.9999. A cheap item that is expensive to be short of rationally runs at very nearly perfect service, and the arithmetic says so without anybody setting a target.
8.9.6 When It Does Not Do So Well
The storeroom holds items at the other extreme too.
Example 8.7 (The same procedure on a slow-moving item) Take the transformer of Example 8.4: \(\lambda = 45\) a year, \(k = \$220\), \(h = \$950\) per unit per year, and \(D(L)\) with \(\theta = 7.5\) over a two-month lead time. Recall from Example 7.3 that an emergency purchase of a transformer costs $9,500 against a stock price of $3,800, so \(\pi = \$5{,}700\) per unit short.
This chapter has now costed the same item’s shortage two ways: as \(\pi = \$5{,}700\) per unit short here, and as \(b = \$8{,}550\) per unit per year in Example 8.3. Those are not two units for one number. They are two different claims about what a stockout does, and choosing between them is the modeling decision Section 8.2 described.
The gamma. By Equation 8.36, \(\alpha = 7.5\) and \(\beta = 1.00\).
The iteration. The four steps are those of Example 8.6, and we work the first two passes.
Pass 1. Start from the economic order quantity, \(Q = \sqrt{2(45)(220)/950} = 4.5653\) units. The stockout probability is
\[ G^{0}(r) = \frac{Qh}{\pi\lambda} = \frac{4.5653(950)}{5700(45)} = 0.016909 \]
GAMMA.INV(1 - 0.016909, 7.5, 1) returns \(r = 14.4156\), and GAMMA.DIST gives the density there as \(g(r) = 0.009992\). Then
\[ \begin{aligned} G^{1}(r) &= (7.5 - 14.4156)(0.016909) + 14.4156(0.009992) = -0.11693 + 0.14404 = 0.02711\\ Q &= \sqrt{\frac{2(45)\left[220 + 5700(0.02711)\right]}{950}} = \sqrt{\frac{90(374.53)}{950}} = 5.9567 \end{aligned} \]
Pass 2. Start from 5.9567. The stockout probability is \(5.9567(950)/256{,}500 = 0.022062\), the quantile is \(r = 13.9611\), and the density there is 0.012783. Then
\[ \begin{aligned} G^{1}(r) &= (7.5 - 13.9611)(0.022062) + 13.9611(0.012783) = -0.14254 + 0.17846 = 0.03592\\ Q &= \sqrt{\frac{90\left[220 + 5700(0.03592)\right]}{950}} = \sqrt{\frac{90(424.74)}{950}} = 6.3434 \end{aligned} \]
The later passes repeat the steps. The table has been updated as follows.
| 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 |
| 7 | 6.4857 | 0.024021 | 13.8137 | 0.0393 | 6.4862 |
| 8 | 6.4862 | 0.024023 | 13.8136 | 0.0393 | 6.4864 |
The pair is heading for \(r = 13.81\) and \(Q = 6.49\), so the recommendation is \(r = 14\) and \(Q = 6\). Notice how slowly it gets there. At two decimals the pair reaches its final values at the sixth pass, against the second for the connector, and the worksheet, which carries every digit, takes twenty-one. A slow iteration is itself a signal that the model is being asked to work outside its assumptions.
What it reports, and what is true. The loss function is recomputed at the rounded reorder point, where GAMMA.DIST gives \(G^{0}(14) = 0.021569\) and \(g(14) = 0.012519\):
\[ G^{1}(14) = (7.5 - 14)(0.021569) + 14(0.012519) = -0.14020 + 0.17527 = 0.03507 \]
At \((14, 6)\) with \(G^{1}(14) = 0.03507\),
\[ C = \underbrace{220\frac{45}{6}}_{1{,}650.00} + \underbrace{950\left(\frac{6}{2} + 14 - 7.5\right)}_{9{,}025.00} + \underbrace{5700\frac{45}{6}(0.03507)}_{1{,}499.25} = \$12{,}174.25 \text{ a year} \]
and the evaluation formulas give $11,922.90, so the reported cost is 2.11% high.
Two errors, and they run in opposite directions. This is the finding the connector was too well behaved to show.
| Cost | Against the truth | |
|---|---|---|
| Exact, from Section 8.5 | $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\%\) |
The model assumptions understate by $474.60 and the family choice overstates by $725.95, and the two nearly cancel. A small net error is hiding two large errors of opposite sign, which is a worse situation than a large net error, because nothing on the page says so.
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\) |
Assumption (h) is the largest term by far, and the diagnostic for it is the one Section 7.8 gave: one unit is \(1/2.74\), or 36.5%, of a standard deviation here, against 6.6% on the connector. A continuous family cannot represent a count that small, whatever family it is. The half unit assumption (m) drops is the next largest, and it matters because \(Q\) is small: it is \(1/Q\) of the cycle stock, 0.16% on the connector and 17% here.
Notice that assumption (i) barely registers, at $2.46, 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. An assumption can be violated and still cost nothing, which is why the terms are priced rather than argued about.
The policy. A full search over all \((r, Q)\) returns \((13, 6)\), costing $11,892.91 against the recommended policy’s $11,922.90. The policy penalty is 0.25%.
Two items, one procedure, opposite verdicts. On the connector the approximation found the best policy and priced it to 0.08%. On the transformer it found a policy costing 0.25% more than the best and priced it 2.11% high, with the 2.11% concealing errors of \(-3.98\%\) and \(+6.09\%\) that happened to cancel.
Three diagnostics can be computed before anything else.
| 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 |
The rule to carry away is this. Use the approximation to choose a policy, and evaluate the policy you chose with Equation 8.20, Equation 8.21 and Equation 8.22 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 Section 8.5 costs no more to run.
Section 8.10 now removes the parameter that neither model has been able to defend.
8.10 Service Levels Instead of a Shortage Cost
Every model so far has needed \(\pi\) or \(b\), and Section 1.5.5 said no ledger contains either. The universal response in practice is to refuse to estimate them and impose a service level instead. This section gives the two levels that are actually used, solves the problem properly once a level is imposed, and then reads the level back into the cost it was meant to avoid.
8.10.1 Type 1: the Cycle Service Level
Let \(\alpha\) represent the probability that a replenishment cycle passes with no stockout. By assumption (k) of Section 8.9 the on-hand equals \(r\) when the reorder point is reached, so the cycle runs out only if lead time demand exceeds \(r\):
\[ \alpha = P\{D(L) \le r\} = G(r), \qquad r = \min\{r : G(r) \ge \alpha\} \tag{8.42}\]
Notice that \(Q\) does not appear. Thus, Type 1 service fixes \(r\) by itself, which is why it is the target most often met by hand, and a reasonable companion value for \(Q\) is the economic order quantity.
That independence is also its defect. Equation 8.42 counts the cycles in which a shortage occurred and says nothing about how large the shortage was. A cycle short by one unit and a cycle short by forty count alike. Worse, since \(Q\) is absent, an item ordered in large batches and one ordered in small batches get the same reorder point at the same \(\alpha\), although the large-batch item has far fewer cycles in which to fail.
For example, at \(\alpha = 0.95\) the transformer of Example 8.4 needs \(G(r) \ge 0.95\). Reading down the \(G\) column of Table 8.5, \(G(11) = 0.9208\) falls short and \(G(12) = 0.9573\) clears it, so \(r = 12\).
8.10.2 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, so
\[ \beta = \frac{\text{ordered in a cycle} - \text{expected short in a cycle}}{\text{ordered in a cycle}} = \frac{Q - G^{1}(r)}{Q} = 1 - \frac{G^{1}(r)}{Q} \tag{8.43}\]
and the reorder point is the root of \(G^{1}(r) - Q(1-\beta) = 0\). Notice that \(Q\) is present, and that the measure counts units rather than occasions, which is what an organization that ships to customers cares about. Equation 8.43 is Equation 8.21 with the far tail dropped, so it carries assumption (i) with it.
At \(\beta = 0.95\) with \(Q\) set to the economic order quantity of 5, the transformer may fall short by \(Q(1-\beta) = 5(0.05) = 0.25\) units a cycle, so it needs the smallest \(r\) with \(G^{1}(r) \le 0.25\). Reading down the \(G^{1}\) column of Table 8.5, \(G^{1}(10) = 0.2993\) is too large and \(G^{1}(11) = 0.1616\) fits, so \(r = 11\).
8.10.3 The Same Number Means Two Different Things
Both targets were set to 0.95 and they differ by a transformer.
| 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 columns of Table 8.18 are each a line of arithmetic on Table 8.5. The safety stock is \(r - \theta\), which is \(12 - 7.5 = 4.5\) units and \(11 - 7.5 = 3.5\) units, and holding it costs \(950(4.5) = \$4{,}275\) and \(950(3.5) = \$3{,}325\) a year. The exact fill rate is Equation 8.21 at each policy:
\[ \begin{aligned} r = 12: \quad & 1 - \frac{G^{1}(12) - G^{1}(17)}{5} = 1 - \frac{0.0823 - 0.0013}{5} = 0.9838\\ r = 11: \quad & 1 - \frac{G^{1}(11) - G^{1}(16)}{5} = 1 - \frac{0.1616 - 0.0032}{5} = 0.9683 \end{aligned} \]
and the exact cycle service is \(G(r)\), which is \(G(12) = 0.9573\) and \(G(11) = 0.9208\).
Read the last two columns against the first. The policy set to a 95% cycle service level actually fills 98.4% of demand, and the policy set to a 95% fill rate runs a cycle service level of 92.1%. Thus, the two measures disagree by several points on the same item and in both directions, and an organization reporting “95% service” without saying which has reported almost nothing.
You should ask which measure a stated target refers to before acting on it, and say which one you mean when you state one.
8.10.4 Solving the Problem the Target Poses
Setting \(Q\) to the economic order quantity and then choosing \(r\) is a convenience, not an answer. Once a service level replaces the shortage cost the problem is a constrained one, and it should be written down:
\[ \min_{r, Q} \; k\frac{\lambda}{Q} + h\left(\frac{Q}{2} + r - \theta\right) \qquad \text{subject to} \qquad 1 - \frac{G^{1}(r)}{Q} \ge \beta \tag{8.44}\]
which minimizes ordering and holding subject to the fill rate. Notice that the shortage term has gone entirely: the constraint has replaced it.
For a fixed \(Q\) the best \(r\) is the smallest feasible one, since holding cost increases in \(r\) and the constraint is the only thing pushing it up. Finding \(Q\) is harder, and Zipkin (2000) is blunt that it requires a full search. The reason is visible in Table 8.19.
| \(Q\) | \(Q(1-\beta)\) | \(r\) | \(G^{1}(r)\) | Ordering | Holding | Total |
|---|---|---|---|---|---|---|
| 4 | 0.20 | 11 | 0.1616 | $2,475.00 | $5,225.00 | $7,700.00 |
| 5 | 0.25 | 11 | 0.1616 | $1,980.00 | $5,700.00 | $7,680.00 |
| 6 | 0.30 | 10 | 0.2993 | $1,650.00 | $5,225.00 | $6,875.00 |
| 7 | 0.35 | 10 | 0.2993 | $1,414.29 | $5,700.00 | $7,114.29 |
| 8 | 0.40 | 10 | 0.2993 | $1,237.50 | $6,175.00 | $7,412.50 |
| 9 | 0.45 | 10 | 0.2993 | $1,100.00 | $6,650.00 | $7,750.00 |
| 10 | 0.50 | 10 | 0.2993 | $990.00 | $7,125.00 | $8,115.00 |
| 11 | 0.55 | 9 | 0.5229 | $900.00 | $6,650.00 | $7,550.00 |
| 12 | 0.60 | 9 | 0.5229 | $825.00 | $7,125.00 | $7,950.00 |
Each row of Table 8.19 is three steps. Take \(Q = 6\). The constraint allows \(G^{1}(r) \le Q(1-\beta) = 6(0.05) = 0.30\) units short a cycle. Reading down the \(G^{1}\) column of Table 8.5, \(G^{1}(9) = 0.5229\) is too large and \(G^{1}(10) = 0.2993\) is the first entry that fits, so \(r = 10\). The two cost terms of Equation 8.44 are then
\[ k\,\frac{\lambda}{Q} = 220\left(\frac{45}{6}\right) = \$1{,}650, \qquad h\left(\frac{Q}{2} + r - \theta\right) = 950\left(3 + 10 - 7.5\right) = \$5{,}225 \]
for a total of $6,875 a year.
Notice that the total is not unimodal in \(Q\). It falls to $6,875 at \(Q = 6\), rises steadily to $8,115 at \(Q = 10\), and then falls again to $7,550 at \(Q = 11\). The cause is in the third column: \(r\) is an integer, and a larger \(Q\) loosens the constraint \(G^{1}(r) \le Q(1-\beta)\) until it slackens enough for \(r\) to drop a whole unit, which it does between \(Q = 10\) and \(Q = 11\). Each such drop saves \(h\) dollars a year at a stroke. Thus, a search that stops at the first local minimum can stop in the wrong place, and only a full search is safe.
Reading the table also prices the convenience. Setting \(Q\) to the economic order quantity gives \((11, 5)\) at $7,680 a year, where solving the program gives \((10, 6)\) at $6,875. The shortcut costs $805 a year, or 10.5%, and it does so while meeting the same service target.
8.10.5 A Shortcut That Usually Works
Zipkin (2000) offers a way to avoid the constrained search. For a target \(\underline{w}\) on the ready rate, set
\[ b = \frac{h\underline{w}}{1 - \underline{w}}, \qquad k' = \frac{k}{\underline{w}} \tag{8.45}\]
and minimize the ordinary unconstrained cost of Equation 8.1 with those values. The first substitution makes the critical ratio \(b/(b+h)\) equal to \(\underline{w}\), and the second compensates for the ordering term.
It is a heuristic, with no guarantee of minimizing the true cost, and it is exact only under a continuous approximation. On the transformer it lands close and consistently short:
| Target \(\underline{w}\) | \(b\) | \(k'\) | \((r, Q)\) | Achieved ready rate |
|---|---|---|---|---|
| 0.90 | $8,550 | $244.44 | \((8, 7)\) | 0.8781 |
| 0.95 | $18,050 | $231.58 | \((9, 7)\) | 0.9258 |
| 0.98 | $46,550 | $224.49 | \((11, 6)\) | 0.9733 |
For example, at \(\underline{w} = 0.95\) Equation 8.45 gives \(b = 950(0.95)/0.05 = \$18{,}050\) and \(k' = 220/0.95 = \$231.58\). Algorithm Optimize_rq of Section 8.8, run with those two values, returns \((9, 7)\), and Equation 8.21 says what that policy achieves: \(1 - [G^{1}(9) - G^{1}(16)]/7 = 1 - (0.5229 - 0.0032)/7 = 0.9258\).
Thus, the policy is close, and it is on the wrong side. If the target is a statement of intent, that is fine. If it is contractual, the heuristic gives an infeasible policy and you have to check the achieved rate with Equation 8.21 and raise \(r\) until it clears.
8.10.6 Reading the Target Back into a Cost
A service target does not escape the shortage cost. It asserts a value for it, and the value can be recovered.
From a solved program. At the optimum of Equation 8.44, the second condition of Equation 8.38 must hold at the shortage cost that would have produced the same answer without a constraint. Solving it for \(\pi\) gives the imputed shortage cost
\[ \pi^{*} = \frac{Q^{*}h}{\lambda\,G^{0}(r^{*})} \tag{8.46}\]
For the transformer at \(\beta = 0.95\), with \((r^{*}, Q^{*}) = (10, 6)\) and \(G^{0}(10) = 0.1378\),
\[ \pi^{*} = \frac{6(950)}{45(0.1378)} = \frac{5{,}700}{6.20} = \$919 \text{ per unit short} \]
Look hard at that number. Recall from Example 7.3 that an emergency transformer costs $9,500 against a stock price of $3,800, so a stockout costs the utility about $5,700. The 95% fill rate target implies $919, which is less than a sixth of it. Thus, on this item the service target is holding far too little rather than being over-cautious, as service targets are usually accused of being, and Example 8.7 priced the policy the true shortage cost calls for at \(r = 13\) against the target’s \(r = 10\).
From a ready rate. The same move for the base-stock model of Section 8.4 inverts Equation 8.16 instead. Setting \(G(S) = b/(b+h)\) equal to a target \(\underline{w}\),
\[ b = \frac{h\underline{w}}{1 - \underline{w}} \tag{8.47}\]
| Target \(\underline{w}\) | 0.90 | 0.95 | 0.98 | 0.99 |
|---|---|---|---|---|
| Implied \(b\), per unit per year | $8,550 | $18,050 | $46,550 | $94,050 |
Notice the first column. The utility’s stated backorder cost of $8,550 implies a ready rate of exactly 0.90, so the cost-based answer of Example 8.3 and a 90% target are one policy reached from opposite directions. That is the check on Equation 8.47.
These two inversions answer different questions, and both questions matter. Equation 8.46 recovers a per-unit cost from a solved constrained program; Equation 8.47 recovers a rate from a stated ready rate. Each is the move Section 4.4.3 made for the economic order quantity, and the useful question is the same one: not whether the target is high enough, but what cost would make it optimal and whether anyone believes that cost.
8.10.7 Safety Stock and the Safety Factor
The quantity a planner actually discusses is neither \(r\) nor \(\alpha\). It is the safety stock \(\mathit{ss} = r - \theta\) of Equation 8.7, now read against a service target rather than a cost. Let \(z\) represent the safety factor, the same quantity measured in standard deviations of lead time demand:
\[ z = \frac{r - \theta}{\sigma_{D(L)}}, \qquad r = \theta + z\,\sigma_{D(L)} \tag{8.48}\]
Equation 8.48 is a change of units, and its value is that \(z\) is comparable across items where \(\mathit{ss}\) is not. Two items with three units of safety stock are not equally protected; two items at \(z = 1.645\) are, at least under a common distributional assumption.
Notice that Equation 8.48 is arithmetic and carries no assumption. It divides by a standard deviation and nothing more. What does carry an assumption is the step a planner usually takes next, which is to look \(z\) up in a table, and that requires naming a distribution.
Do not name the normal. Section 8.9.2 gives the reason and Rossetti and Ünlü (2011) gives the evidence. The habit of reading \(z\) from a standard normal table is so widespread that the safety factor and the normal are often treated as the same idea, and they are not: \(z\) is a unit conversion, and the table is a modeling choice made silently.
Using the gamma of Equation 8.36 instead, which for the transformer has shape 7.5 and scale 1.00, Table 8.22 compares the targets against the exact Poisson answers.
| 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 |
The gamma column of Table 8.22 is the worksheet’s quantile for a Type 1 target, for example GAMMA.INV(0.95, 7.5, 1), which is 12.50. For a Type 2 target it is the root of \(G^{1}(r) = Q(1-\beta)\), found by trial on the gamma’s closed form in Table D.5. The last column applies the chapter’s own rule, Equation 8.42 and Equation 8.43: the smallest whole \(r\) that meets the target, which rounds the gamma’s answer up. For example, the gamma’s distribution function reaches 0.90 at 11.15, so at 11 it is still short of the target and the smallest whole \(r\) is 12.
Two of the six agree. Every miss is one unit high, and all three Type 1 targets miss. The Poisson puts its probability on the whole numbers, so its distribution function jumps to its full value at each one. The gamma spreads the same probability over the interval below, and at the whole numbers that matter here its distribution function sits below the Poisson’s. Thus, the continuous model overprotects by about a unit, and rounding to the nearest whole number, which would make five of the six agree, hides that by giving up the guarantee that the target is met.
For an item like this one the conclusion is plain. One unit is 36.5% of this item’s standard deviation, so no continuous family will reliably return the right whole number. Equation 8.42 and Equation 8.43 can be solved directly against the Poisson distribution function and its loss function, which is what Table E.3 and Table E.4 are for, and that is what the figures in Table 8.18 came from. The safety factor remains useful for comparing items; it is not the right instrument for setting a reorder point on a slow mover.
The chapter now has an exact evaluation, an exact optimum, an approximation and two service formulations, each answering a slightly different question. Section 8.11 says which to use for a given item, and in what order to apply it.
8.11 Choosing and Applying a Model
The chapter has built five ways to set a continuous review policy, and they are not interchangeable. Each answers a different question, and the question is decided by the item and by what the organization is willing to state about it. This section says which to use and in what order to apply it.
Table 8.23 is the choice. Read it from the top, and stop at the first row whose condition holds.
| If the item … | Use | Equation | Sheet | Code |
|---|---|---|---|---|
| has a fixed order cost small enough that one unit per order is best | Base-stock level | Equation 8.16 | Evaluate with \(Q = 1\) |
RQOptimizer.optimize |
| has a stated backorder cost \(b\) per unit per unit time | Exact \((r, Q)\) optimum | Algorithm 8.1 | Optimize |
RQOptimizer.optimize |
| has a stockout cost \(\pi\) per unit short, and fast-moving demand | Classical approximation | Equation 8.38 | Approximate |
none; the sheet is the tool |
| has a service target and no shortage cost | Type 1 or Type 2 target | Equation 8.42, Equation 8.43 | Service |
RQModel.fromReadyRateTarget, RQModel.evaluate |
| already has a policy, and you want its performance | Exact evaluation | Equation 8.1 | Evaluate |
RQModel.evaluate |
Notice the first row. Expensive, slow-moving items are often run one for one in practice, and Section 8.4 noted that the transformer has that profile. The table asks the cost question instead. At \(k = \$220\) one for one costs the transformer $14,759.83 a year, the starting cost of Example 8.5, against $7,225.15 at the optimum, so the transformer does not stop at the first row.
Notice also the third row. The approximation is listed for the case its derivation assumed, a fast mover with a per-unit stockout cost, and not as a default. On a slow mover Section 8.9.6 showed that it can miss by whole units, and the exact optimum costs no more to compute.
Whichever row applies, the steps are the same, and they are the order of this chapter.
- Fix the exposure. The policy is exposed to demand over one lead time \(L\). If \(L\) is random, carry its variance into the next step (Section 8.5.4).
- Build the lead time demand. Compute its mean and variance from Table 8.3. That is, decide which of demand and lead time is random, and take the case that matches.
- Choose the family. Compute the variance to mean ratio of Equation D.1. A ratio near one is Poisson, a ratio above one is negative binomial, and a large mean with either may be approximated by a gamma (Section 8.3.3).
- Choose the model from Table 8.23.
- Compute the policy with the equation, sheet or class in that row.
- Check the answer against what is known before solving: the base-stock level should lie in the band of Equation 8.31, and the cost between the bounds of Equation 8.32. A policy outside them has an input error.
- Report the measures, not only \(r\) and \(Q\). Give the ready rate, the fill rate, the expected backorders and the cost, from Equation 8.1 and the measures of Section 8.5.2, so the reader can see what the policy buys.
For example, the transformer has \(\lambda = 45\) a year, Poisson demand, a fixed cost of $220 and a stated backorder cost. Step 3 gives Poisson, since a Poisson process has a variance to mean ratio of one. Step 4 stops at the second row, so Algorithm 8.1 gives \((r, Q) = (8, 7)\), which is the answer Example 8.5 found.
Chapter 9 extends this procedure to items that are reviewed on a calendar, that are demanded in lots, or that are run many at a time, and its own version of Table 8.23 covers both chapters.
8.12 Building These Models in a Worksheet
The workbook is Chapter8Models.xlsx. The worksheets of Section 5.9 and Section 6.9 each laid a procedure across rows, because the answer was a schedule. This chapter has three different things a worksheet can carry, and the sheets divide on those lines: a policy traced through a sequence of events, a set of evaluation formulas, and an algorithm.
Five working sheets, plus a Notes sheet that says what the others are for. The sheets for periodic review and for demand in lots are in Chapter9Models.xlsx, with Chapter 9.
8.12.1 The Ledger
Ledger is Example 8.1 with nothing collapsed. The on-hand, on-order and backordered columns are inputs and everything to the right of them is a formula, so Equation 8.1’s state identity is wired in rather than typed.
Ledger sheet. The three blue columns are the only ones typed. The net inventory, the position and the residual are formulas, and the residual is the position less on-hand plus on-order less backorders, so it reads zero on every row. Notice week 7: the shelf is empty, the position is 5, and the order flag is 0. A rule watching the shelf would order there, and the sheet shows why it must not.
Notice how the sheet counts orders. It does not search the event text. An order is placed exactly when the units on order rise, so the flag is =IF(D10>D9,1,0) and the count is a sum down that column. Searching the description for the word “order” returns three orders on this ledger rather than two, because “backordered” contains it.
8.12.2 Evaluating a Policy
Evaluate is Section 8.5. The upper block holds the item and the policy, and the lower block holds the lead time demand distribution and its loss functions.
Evaluate sheet, rows 1 to 20. The reorder point and the order quantity are the only policy inputs. Everything in the right-hand cost block, and the three measures beneath the policy, moves when either is changed. Notice that the total reads $7,225.15, which is the optimum Example 8.5 finds, because the sheet ships holding that policy.
The loss block is the part to read, because it needs no function Excel does not already have. \(G\) comes from POISSON.DIST with the cumulative flag, and the two loss functions come from the recursions of Equation D.13, one short formula filled down:
\[ G^{1}(s) = G^{1}(s-1) - G^{0}(s-1), \qquad G^{2}(s) = G^{2}(s-1) - G^{1}(s) \]
started from \(G^{1}(0) = \theta\) and \(G^{2}(0) = \theta^{2}/2\).
Evaluate sheet. One row per stock level, and each row reads the row above it. Notice the second order column. It steps down by \(G^{1}(s)\) and not by \(G^{1}(s-1)\), because \(G^{2}\) is the tail sum of \(G^{1}\) from \(s+1\) upward.
Equation 8.20 and Equation 8.21 then read out of that block by position. The expected backorder level is
=(INDEX($F$18:$F$58,$B$13+1)-INDEX($F$18:$F$58,$B$13+$B$14+1))/B14
which is \(\tfrac{1}{Q}[G^{2}(r) - G^{2}(r+Q)]\) with the offsets that turn a stock level into a row. Change \(r\) or \(Q\) and every figure moves; the block below never does. That is the separation of the evaluator from the optimizer that Table 3.5 settled in Section 3.11, and here it is what makes a sensitivity study a matter of typing a number.
8.12.3 The Algorithm
Optimize is Algorithm Optimize_rq of Algorithm 8.1. A worksheet cannot loop, and it does not need to.
The input is one column. Equation 8.24 evaluated at every base-stock level, which is Table 8.10 as a range rather than a table.
Optimize sheet. This is Table 8.10 with more rows. It falls, turns once, and rises, which is the convexity of Equation 8.26 made visible, and it is the only property the algorithm needs. \(S^{*}\) above it is a MATCH of the cost ratio against the distribution function.
The algorithm below it runs at most \(Q^{*}\) times, so the sheet lays out one row per step and each row computes the next state from the row above. Three formulas carry it. The latch,
=OR(G61,MIN(E61,F61)>=D61)
is true once the stopping test has fired and stays true, and the other two defer to it:
Q =IF(G62,B61,B61+1)
r =IF(G62,C61,IF(E61<=F61,C61-1,C61))
C* =IF(G62,D61,D61-(D61-MIN(E61,F61))/B62)
The third is Equation 8.34. Because the latch freezes everything, every row after termination repeats the answer, and the last row is the result whenever the algorithm stops within the thirty rows. When it does not, G91 reads FALSE and the cell beside \(r^{*}\) says the answer is not finished; an item whose \(Q^{*}\) exceeds 31 needs more rows than the sheet has. No macros, no iterative calculation setting, no circular reference.
Optimize sheet. This is Table 8.11 as a range a reader can edit. Read the reorder point column downward: 10, 10, 9, 9, 9, 8, 8. It falls as the batch grows and never by more than one per step, which is the property that makes the loop finite. Step 7 is where the stopped column turns TRUE, and every row below it repeats step 6’s answer rather than drifting, as it does for any item that stops within the sheet’s thirty rows.
The sheet also runs the two results of Section 8.7, and it runs them as tests rather than as displays.
Optimize sheet. Equation 8.31 and Equation 8.32 are evaluated against the answer the rows above produced, and each prints “holds” or “FAILS”. Both are recomputed when a cost parameter changes.
8.12.4 The Approximation
Approximate is Section 8.9. The gamma of Equation 8.36 is built from the two moments at the top, and the iteration of Equation 8.38 is unrolled one pass per row in the same way the algorithm is.
Approximate sheet. This is Table 8.12 on the transformer’s numbers. Each row carries the previous row’s order quantity into the stockout probability of Equation 8.38, inverts the gamma for a reorder point, and returns a new order quantity. Notice that the last decimal takes twenty-one passes to settle here against three on the connector.
The gamma’s first order loss function is Table D.5, \(G^{1}(x) = \beta[(\alpha - x/\beta)G^{0}(x) + xg(x)]\), which on the sheet is
=$B$16*(($B$15-D21/$B$16)*(1-GAMMA.DIST(D21,$B$15,$B$16,TRUE))
+D21*GAMMA.DIST(D21,$B$15,$B$16,FALSE))
GAMMA.DIST supplies \(g\) with its cumulative flag set to FALSE and \(G\) with it set to TRUE, and the rest is arithmetic.
Approximate sheet. Notice that the loss function is recomputed at the rounded reorder point rather than carried down from the iteration, because rounding \(r\) moves it. The three diagnostics of Table 8.17 sit below the cost.
8.12.5 Service Levels
Service is Section 8.10. Both targets sit above the loss block and read out of it, the Type 1 target with MATCH against the distribution function and the Type 2 target with a COUNTIF of the loss function above its threshold.
The constrained program of Equation 8.44 is laid out rather than solved, one row per order quantity, and the reason is Table 8.19.
Service sheet. This is Table 8.19 with more rows. Read the total column downward: it falls to a minimum, climbs for four rows, and then falls again. Notice the reorder point column beside it, which drops a whole unit where the total turns, because a larger order quantity slackens the constraint of Equation 8.44. A search that stopped at the first local minimum would stop in the wrong place.
8.12.6 Using the Sheets on Your Own Item
Every sheet carries its own copy of the item, in cells B5 through B9, and the copies are not linked. Pointing the workbook at a new item means typing it into each sheet you intend to use, and a policy that disagrees between two sheets is almost always one item entered twice and changed once.
Example 8.8 (Reading the Evaluate and Optimize sheets) The workbook ships holding the transformer of Example 8.1, so the first use of it is to confirm that it says what the chapter says.
The input block. On Evaluate, cells B5 to B9 hold \(\lambda = 45\) a year, \(k = \$220\), \(h = \$950\) per unit per year, \(b = \$8{,}550\) per unit per year and \(L = 0.1667\) years. B10 is the only derived input, \(\theta = \lambda L = 7.5\) units, and everything below it reads B10 and not B5 or B9.
The policy block. B13 and B14 hold \(r = 8\) and \(Q = 7\). These two cells are the only ones a reader types.
The three measures. B15, B16 and B17 return
\[ \bar{B} = 0.1617 \text{ units}, \qquad \overline{\mathit{FR}} = 0.8781, \qquad \bar{I} = 4.6617 \text{ units} \]
The check, by hand. Read \(G^{2}(8) = 1.1369\) and \(G^{2}(15) = 0.0052\) from the \(\lambda = 7.5\) column of Table E.5. Then Equation 8.20 gives
\[ \bar{B} = \frac{1.1369 - 0.0052}{7} = \frac{1.1317}{7} = 0.1617 \text{ units} \]
which is B15. That check is worth performing once on any sheet you did not build, because it is the whole of Equation 8.20 in two table lookups.
The cost block. H13 to H17 return an order frequency of 6.4286 a year and
\[ \underbrace{\$1{,}414.29}_{\text{ordering}} + \underbrace{\$4{,}428.59}_{\text{holding}} + \underbrace{\$1{,}382.28}_{\text{backorder}} = \$7{,}225.15 \text{ a year} \]
Typing a different policy. Enter \(r = 9\) and \(Q = 5\) into B13 and B14. The sheet returns \(\bar{B} = 0.1202\), \(\overline{\mathit{FR}} = 0.8990\), \(\bar{I} = 4.6202\) and a total of $7,396.80, which is the chosen row of Table 8.7. Restore \((8, 7)\) before going on.
Now a real question. Purchasing believes it can bring the transformer’s lead time down from two months to one by ordering against a framework agreement, and wants to know what that is worth. One cell answers it. Set B9 to \(1/12 = 0.0833\) years on the Optimize sheet and read the answer block:
\[ r^{*} = 4, \qquad Q^{*} = 6, \qquad C^{*} = \$6{,}104.16 \text{ a year} \]
and both checks in B99 and B103 still print “holds”. Set B9 the same way on Evaluate, enter \((4, 6)\), and the cost block confirms the figure from the other direction: $1,650.00 ordering, $3,651.67 holding and $802.49 backorder.
What it is worth. The saving is \(7{,}225.15 - 6{,}104.16 = \$1{,}120.99\) a year, which is 15.5% of what the item costs to carry now. Notice where it comes from. The holding cost falls by $777 because \(\theta\) halves and the reorder point follows it down, and the backorder cost falls by $580 because the same policy now covers a shorter exposure. The ordering cost rises by $236, because the optimal batch drops from seven to six. Thus, a shorter lead time is not simply less of everything, and a reader who priced it by scaling the current cost would have missed a term that runs the other way.
8.12.7 What the Worksheet Cannot Do
Every model of this chapter has a sheet. What a sheet cannot reach is size: the optimal batch of a fast mover runs to hundreds or thousands of units, and the Optimize sheet spends a row on every step of the algorithm, one step per unit of batch.
Two conventions hold across every sheet.
There are no macros. Every number is produced by a formula in the cell that holds it.
Lead time demand is never modeled with a normal distribution. See Section 8.9.2.
Section 8.13 turns the same models into a program, which is what an item whose optimal batch runs to thousands of units requires.
8.13 Using the Software
The design of the classes used here, and the reasons for it, are in Section G.7.
The Evaluate and Optimize sheets of Section 8.12 price one policy at a time and walk Algorithm 8.1 for thirty steps. The package inventory.continuousreview does the same arithmetic and three things the sheets cannot: it selects the lead time demand family from the mean and variance, it states the bounds of Section 8.7 before it searches, and it searches to any order quantity, by a jump search when \(Q^{*}\) is large. Every figure below is printed by Section8Listings.kt. Run it with
./gradlew run -PmainClass=inventory.continuousreview.Section8ListingsKt
Example 8.9 (The transformer in code, and an item the worksheet cannot reach) Build the item. The constructor takes the four cost and demand parameters and a lead time demand distribution, and each argument is a symbol of Equation 8.1: demandRate is \(\lambda\) per year, orderCost is \(k\) per order, holdingCost is \(h\) per unit per year, and backorderCost is \(b\) per unit backordered per year. The year is the time unit because \(\lambda\) is given per year, and every rate the program prints is per year. leadTimeDemand is the distribution of demand over the lead time, in units. LeadTimeDemand.matched carries out step 2 of Section 8.3 rather than leaving the reader to choose a family by hand, and holdingCostFrom applies the storeroom’s carrying charge to a unit cost the way Section 1.4.4 does.
val transformer = RQModel(
demandRate = 45.0,
orderCost = 220.0,
holdingCost = RQModel.holdingCostFrom(carryingCharge = 0.25, unitCost = 3800.0),
backorderCost = 8550.0,
leadTimeDemand = LeadTimeDemand.matched(mean = 7.5, variance = 7.5),
)
println(transformer.bounds())
val answer = RQOptimizer(transformer).optimize()
println(answer)
println(transformer.evaluate(answer.policy))Choose a policy, then evaluate it. RQOptimizer(...).optimize() runs Algorithm 8.1, and evaluate prices any policy handed to it, here the one the search returned. The output is
bounds: Q in [5, 11], S* = 11 costing 4859.83, C* in [4114.49, 8823.14]
(r = 8, Q = 7) costing 7225.15, found by warm start in 19 window evaluations
policy (r = 8, Q = 7)
order frequency 6.4286 orders per unit time
expected backorders 0.1617 units
ready rate 0.8781
fill rate 0.8781
expected on hand 4.6617 units
ordering 1414.29 per unit time
holding 4428.59 per unit time
backorder 1382.28 per unit time
total 7225.15 per unit time
Read the output against the chapter. order frequency is \(\lambda/Q\), expected backorders is \(\bar{B}\), expected on hand is \(\bar{I}\), and ready rate and fill rate are \(\overline{\mathit{RR}}\) and \(\overline{\mathit{FR}}\), which agree here by Equation 8.2 because demand is Poisson. The three cost lines are the three terms of Equation 8.1: \(k\lambda/Q\), \(h\bar{I}\) and \(b\bar{B}\). Every figure is the Evaluate sheet’s, to the cent. Notice the order of the three calls. bounds is asked before the search runs and prints what the answer must satisfy, which is Section 8.7 used the way that section recommends: \(Q^{*}\) must fall in \([5, 11]\) and \(C^{*}\) between $4,114.49 and $8,823.14, and both hold. The solution line also reports what the search cost, which is 19 evaluations of Equation 8.28.
Vary it. The lead time question of Example 8.8 halves the lead time. Changing the mean of the lead time demand answers it, and the program agrees with the worksheet:
val shorter = transformer.copy(
leadTimeDemand = LeadTimeDemand.matched(mean = 3.75, variance = 3.75)
)
println(shorter.bounds())
println(RQOptimizer(shorter).optimize())bounds: Q in [5, 9], S* = 6 costing 3529.19, C* in [4114.49, 6883.92]
(r = 4, Q = 6) costing 6104.16, found by warm start in 16 window evaluations
Now the item the worksheet cannot take. The storeroom’s ground rod moves \(\lambda = 2{,}400\) a year at \(c = \$14\), so \(h = \$3.50\), with \(k = \$41.25\), the shared backorder cost of $287.50 from Section 9.5, and a two week lead time.
val rod = RQModel(
demandRate = 2400.0,
orderCost = 41.25,
holdingCost = RQModel.holdingCostFrom(carryingCharge = 0.25, unitCost = 14.0),
backorderCost = 287.50,
leadTimeDemand = LeadTimeDemand.matched(mean = 2400.0 / 26.0, variance = 2400.0 / 26.0),
)
println(rod.bounds())
println(RQOptimizer(rod).optimize())
println("Algorithm Optimize_rq from a batch of one takes %d steps"
.format(RQOptimizer(rod).optimizeFromUnitBatch().orderQuantity - 1))bounds: Q in [239, 265], S* = 115 costing 90.83, C* in [827.44, 881.79]
(r = 94, Q = 244) costing 859.94, found by jump search in 65 window evaluations
Algorithm Optimize_rq from a batch of one takes 243 steps
Read the last two lines together. The Optimize sheet lays down thirty steps, and this item needs 243, so the worksheet cannot reach the answer and Section 8.12.7 is where that boundary was drawn. The program reaches it in 65 window evaluations, where the printed algorithm would need 488, two base-stock costs for each unit of \(Q^{*}\). Notice the method the solution reports: jump search, because \(Q^{*}\) is large enough for Section G.7.4 to dispatch to it.
The same check as before. \(94 < 115 \le 338\) satisfies Equation 8.31 and $859.94 lies inside $827.44 to $881.79, so the two tests of Section 8.7 pass on an answer no worksheet produced.
Exercise 8.4 builds a third item, the splice kit, and Exercise 8.5 and Exercise 8.6 search it.
8.14 Summary
The policy is exposed to exactly one random quantity. Demand that arrives while stock is on the shelf is met from the shelf and costs nothing to have been uncertain about. Only demand arriving during a replenishment lead time can find the shelf empty, so every measure and every cost in this chapter is a functional of the distribution of \(D(L)\) and of nothing else. Thus, two systems with different demand patterns and different lead times perform identically under the same policy whenever their lead time demand distributions coincide. The modeling effort belongs on \(D(L)\) and not on the formula built over it. Chapter 9 shows how far that carries: removing continuous review does not overturn the claim, it lengthens the interval the demand is taken over.
The inventory position is what the policy controls and the net inventory is what it costs. Equation 8.19 separates the two, and Equation 8.18 says the position is uniform over the band \(r+1\) through \(r+Q\) and independent of the lead time demand. That one fact carries Section 8.5 entire: every measure of a general batch size is a base-stock measure averaged over the band, and every such average telescopes into a difference of two loss functions.
Two moments do not determine a distribution, and the gap is where the work is. Table 8.3 gives the mean and variance of lead time demand for any combination of random demand and random lead time. The three cases it prints are one formula with terms switched off. A family still has to be chosen, and the variance to mean ratio of Equation D.1 chooses it. The normal is not among the candidates. Lead time demand is a non-negative count, the approximation is worst where items are slow-moving and expensive, and Rossetti and Ünlü (2011) measures what assuming otherwise costs.
One-for-one replenishment is the general model at \(Q = 1\), and its answer is the newsvendor’s. The ordering cost drops out because an order is placed at every demand whatever the level is, so \(k\) cannot affect which level is best. What remains trades one unit too many against one unit too few, and \(S^{*}\) is the smallest level whose distribution function reaches \(b/(b+h)\). Chapter 7 solved a problem with one period and no future, and this chapter solves one with an infinite horizon and a permanent stock. Both reach the same rule, and that is not a coincidence. In a one-for-one system the same trade is made afresh at every demand.
The cost is an average of a convex sequence, and that is what makes the problem easy. By Equation 8.28 an \((r,Q)\) policy costs \(k\lambda/Q\) plus the average of \(Q\) consecutive base-stock costs. The best \(r\) for a given \(Q\) therefore takes the \(Q\) smallest values of \(C(s)\), and convexity puts those next to one another. Adding one more value lowers the average exactly when the value added is below it, which is a stopping rule rather than a convergence criterion. Thus, Algorithm 8.1 returns the exact integer optimum in a finite number of steps, with no search in two dimensions, no derivative, and nothing to converge.
A great deal about the answer is known before it is computed. The optimal band straddles the optimal base-stock level: \(r^{*} < S^{*} \le r^{*} + Q^{*}\), and the optimal cost lies between the deterministic cost and the two reference costs added in quadrature. Both are cheap, and both are checks you can run on an answer produced by software you did not write. The lower bound is the deterministic chapters’ answer, which randomness can only raise, and the upper bound limits how far it can raise it.
The classical approximation is wrong in two directions at once. It drops the backorder term from the on-hand level, prices shortages per cycle, and fits a continuous family to a count. On the transformer those assumptions cost \(-3.98\%\), the continuous family costs \(+6.09\%\), and what is reported is \(+2.11\%\) high. A method that comes close because two errors offset has not been validated by coming close, and nothing guarantees the offset on the next item. The exact optimum of Algorithm 8.1 costs no more to compute.
A service target is a shortage cost stated without saying so. Setting a fill rate does not remove \(b\) from the model; it fixes \(b\) at whatever value would have produced the same policy, and Equation 8.46 recovers the number. On the transformer a 95% fill rate implies $919 per unit short against an emergency purchase that costs the utility about $5,700. Thus, the target is not over-cautious, which is the usual accusation. It is holding far too little, and the useful question about any service level is what shortage cost would make it optimal.
Choosing a model is a procedure, not a judgment. The item decides it. A fixed cost small enough that one unit per order is best takes the base-stock level; a stated backorder cost takes the exact optimum; a per-unit stockout cost on a fast mover takes the approximation; a service target takes the Type 1 or Type 2 formulation. Table 8.23 sets these out in order, and every row begins with the same three steps: fix the exposure, build \(D(L)\), choose its family.
Table 8.24 collects the notation, which Appendix A repeats alongside the rest of the book’s.
| Symbol | Meaning |
|---|---|
| \(r\), \(Q\) | Reorder point and order quantity, the two decisions |
| \(D(L)\) | Demand over a replenishment lead time, the chapter’s one random quantity |
| \(\theta\) | \(E[D(L)]\), the mean lead time demand |
| \(w\) | \(b/(b+h)\), the critical ratio the base-stock level is read against |
| \(S\), \(S^{*}\) | Base-stock level, and the optimal one |
| \(C(s)\) | Cost rate of a base-stock policy at level \(s\), holding plus backorder |
| \(Q_{k}\), \(C_{k}\) | Order quantity and cost of the deterministic model with backorders |
| \(C_{\infty}\) | \(\sqrt{bh}\,\sigma\), a reference cost built from lead time demand alone |
Chapter 9 keeps one item and one location and removes the assumption that the item is watched at all times. Under a review calendar the exposure grows from \(L\) to \(R + L\), and the same substitution carries this chapter’s models across. The other policy forms follow: demand in lots, the \((s, S)\) rule, many items run together, and parameters that move while the system runs.
8.15 Exercises
Unless an exercise says otherwise, use the conventions of Section 1.8. Report reorder points and order quantities as whole units and state the unrounded value alongside. Take the storeroom’s carrying charge as 0.25 a year throughout, so \(h = 0.25c\), and take item data from Table 4.9. Where an exercise names a lead time, it is the supplier’s quoted lead time and is constant unless the exercise says it is not.
8.15.1 Working the Model by Hand
Exercise 8.1 The utility will not name a backorder cost for the pad-mount transformer and sets a fill rate target instead. Take \(\lambda = 45\) a year, \(k = \$220\), \(c = \$3{,}800\) and a constant two month lead time, so \(\theta = 7.5\) units and \(D(L)\) is Poisson.
Work entirely from the \(\lambda = 7.5\) column of Table E.3, Table E.4 and Table E.5.
- Compute \(h\) and the economic order quantity of Equation 3.17, and round it up to the next whole unit.
- At that \(Q\), find the smallest \(r\) meeting a fill rate of 98% using Equation 8.21. Show the column of \(G^{1}\) values you walked.
- Report \(\bar{B}\) and \(\bar{I}\) at your policy, and verify \(\bar{I}\) against Equation 8.22 by the arithmetic check of Example 8.4.
- Use Equation 8.46 to recover the shortage cost your target implies. Compare it with the $5,700 of Example 8.7 and say which way the target errs.
Exercise 8.2 Continue with the policy you found in Exercise 8.1.
- Compute the exact expected backorder level from Equation 8.20.
- The holding term of Equation 8.37 prices an average on-hand level of \(Q/2 + r - \theta\). Compute that figure and compare it with the exact \(\bar{I}\) of Exercise 8.1 (c), reporting the difference in units and as a percentage of the exact level.
- Split that difference into its two parts, and say which assumption of Section 8.9.1 each one comes from. One part is the same size whatever the item is; the other depends on the policy. Say which is which, and which of the two would grow if the fill rate target were lowered to 95%.
Exercise 8.3 The transformer’s supplier delivers in two months on average, but the storeroom’s receiving records show a standard deviation of three weeks about that mean. Demand remains Poisson at 45 a year.
- Using case 3 of Table 8.3, compute \(E[D(L)]\) and \(\mathit{Var}[D(L)]\). Work in years and show the unit conversion as a dimensional chain.
- Report what fraction of the variance the supplier contributes, and compare it with the 65% of Example 8.2. Explain the direction of the change.
- Compute the variance to mean ratio and say which family Equation D.1 selects. Match its moments.
- The purchasing department believes it can halve the standard deviation of the lead time by paying a $400 a year premium for a dedicated slot. Recompute the variance, and say what further information you would need before advising whether to pay it.
8.15.2 Using the Software
The code of Section 8.13 is in code/, package inventory.continuousreview. Report the code you wrote alongside each answer.
Exercise 8.4 The storeroom’s splice kit moves \(\lambda = 1{,}500\) a year at \(c = \$28\) and \(k = \$55\). The supplier quotes three weeks. The utility puts the backorder cost at $70 per unit per year, ten times the holding cost.
- Build the item with
LeadTimeDemand.matched. Report \(\theta\), the variance to mean ratio, and which family was selected. Say what would have had to be true of the data for a different family to be chosen. - Compute the economic order quantity of Equation 3.17 and round it. Holding that \(Q\) fixed, evaluate Equation 8.1 across \(r\) and report the table of Table 8.7 for the best reorder point and the two either side of it, five rows in all, giving \(\bar{B}\), the fill rate, \(\bar{I}\) and the total cost.
- Now run
RQOptimizer.optimizeand report the optimal policy and its cost. Express the cost of your answer to part (b) as a percentage above it, and relate that percentage to Equation 3.22. - Compute the cost of the best one-for-one policy, including the ordering term that Section 8.4 set aside. Compare it with part (c) and say in one sentence why the comparison comes out so differently here than it does for the transformer in Table 8.8.
Exercise 8.5 Section 9.5 applies one backorder cost of $287.50 per unit per year across the whole storeroom. Take that figure, a two week lead time, and Poisson lead time demand, and consider the meter socket, the ground rod and the warning tape.
- For each item, report \(\theta\), the cost ratio \(w\), and the bounds of Section 8.7.
- Solve each item twice, with
optimizeFromUnitBatchand withoptimize. Confirm that the two agree on the policy and on the cost. - For each answer, verify Equation 8.31 and Equation 8.32 and report both as passing or failing.
- Report
windowEvaluationsfor both searches on all three items. Explain why the ratio between them grows with \(Q^{*}\), using the closed form of Section G.7.3. - Construct an item on which
optimizeFromUnitBatchcosts fewer evaluations thanoptimize, and say what property of the item makes that happen.
Exercise 8.6 The storeroom’s smart meter moves \(\lambda = 1{,}200\) a year at \(c = \$95\) and \(k = \$110\), with a two week lead time and Poisson lead time demand. The utility will not name a backorder cost.
- For ready rate targets of 0.90, 0.95, 0.98 and 0.99, use
RQModel.fromReadyRateTargetto build the item and report the implied \(b\) in each case. - Solve each and report the policy, the cost, and the fill rate the policy actually achieves.
- The achieved fill rates fall short of the targets, and two separate things cause it. Set \(Q = 1\) and evaluate the base-stock policy at the level Equation 8.16 gives. The shortfall is already there. Compare Equation 8.16, which Equation 8.47 inverts, against Equation 8.13, and say why the two are read one unit apart on the same distribution function. Then report, for each of the four targets, how the achieved rate at the optimal \(Q\) compares with the rate at \(Q = 1\), and account for the fact that it does not move the same way every time.
- Report the cost of moving from a 0.90 target to a 0.99 target, as a dollar figure and as a percentage. Then report the implied \(b\) at each, and say which of the two numbers a manager should be shown.
8.15.3 Using the Workbook
Exercise 8.7 Open Chapter8Models.xlsx and work entirely within it.
- On the
Ledgersheet, confirm that the inventory position column never falls below \(r\) except in the instant before an order is placed, and say which column would have to change for Equation 8.19 to fail. - On the
Evaluatesheet, reproduce Table 8.7 by changing only the reorder point in B13. Report the five rows. - Verify the arithmetic check of Example 8.4 at \(r = 9\) by reading B15, B17 and B10, and confirm that B17 uses \(\tfrac{1}{2}(Q+1)\) and not \(Q/2\).
- Raise the demand rate in B5 from 45 to 300, leaving everything else alone. Report what the sheet now says for \(\bar{B}\), the fill rate and \(\bar{I}\). The answers are absurd rather than merely wrong. Diagnose why, naming the range the sheet is built over, and state the largest \(\theta\) you would trust it at.
Exercise 8.8 Continue in Chapter8Models.xlsx, on the Optimize sheet.
- Reproduce Table 8.11. Report the \(r\) column across the steps and confirm the property of Section 8.8.1 that it falls by at most one per step.
- Read the two checks in B99 and B103 and confirm both hold.
- Now change the item to a cheap one: set the holding cost in B7 to $18 and the backorder cost in B8 to $162, leaving \(\lambda\), \(k\) and the lead time alone so that \(\theta\) is still 7.5. Report \(r^{*}\), \(Q^{*}\) and \(C^{*}\) as the sheet gives them, and read B99 and B103 again.
- One of the two checks fails. Explain what the sheet has done wrong, using the number of steps the algorithm laid down against the \(Q^{*}\) this item needs.
- Find the true optimum for the item of part (c) by any means you like, and report how much the sheet’s answer costs above it. Then state the general lesson in one sentence: what the check of Equation 8.32 is for.
Exercise 8.9 Continue in Chapter8Models.xlsx, on the Service and Approximate sheets.
- On
Service, with both targets at 0.95 and \(Q = 5\), reproduce the first two rows of Table 8.18. Report both reorder points and say which target is the more demanding on this item. - Raise the Type 2 target in B14 until the Type 2 reorder point equals the Type 1 reorder point of part (a). Report the target at which that happens, and state what it means to say that a 95% cycle service level is worth that much fill rate on this item.
- On
Approximate, confirm the iteration settles at the policy of Example 8.7 and report the three cost terms it gives. - Read the three diagnostics in B57, B58 and B59 and say what each measures. The chapter says two should be small and one below one. Report which of the three this item fails, and use Table 8.16 to say which failure costs the most.
- Raising the demand rate alone will not bring \(\theta/Q\) below one. Show why, by writing \(\theta/Q\) in terms of \(\lambda\), \(k\), \(h\) and \(L\) with \(Q\) taken from Equation 3.17, and saying which way it moves as \(\lambda\) rises.
- Now enter the compression connector of Example 8.6 on the same sheet: \(\lambda = 6{,}000\), \(k = \$27.50\), \(h = \$0.85\), \(\pi = \$8.50\) and a two week lead time. Report the three diagnostics again and say, in one sentence, what kind of item the classical approximation is built for.