Explore: The General Cycle

Chapter 3, Deterministic Lot Sizing

This explorer draws the general inventory cycle of Chapter 3 and costs it, for the instance the chapter optimizes: demand at \(\lambda = 100\) units a year, production at \(p = 250\) units a year, an ordering cost of \(k = \$20\), a holding cost of \(h = \$4\) per unit per year, and a backorder cost of \(b = \$6\) per unit per year. Choose an order quantity \(Q\) and a backorder level \(\hat{B}\) and watch the cycle and its cost change. Switch off finite production or backordering, or add a charge \(\pi\) per unit short, and the page moves to the classical model the chapter’s table of special cases names.

Recall that \(a = 1 - \lambda/p\) is the fraction of each order that survives to become stock. The peak is \(\hat{I} = Qa - \hat{B}\), the cycle lasts \(T = Q/\lambda\), and the averages are the areas of two triangles divided by the cycle length:

\[ \bar{I} = \frac{\hat{I}^{2}}{2Qa}, \qquad \bar{B} = \frac{\hat{B}^{2}}{2Qa} \]

The relevant cost is \(k\lambda/Q + h\bar{I} + b\bar{B}\), plus \(\pi\) on every unit that arrives to an empty shelf. The page runs in your browser and records nothing. Its formulas are a restatement in JavaScript of the book’s code, and they are tested against that code. For an item of your own, use the general explorer.

The Cycle

The first plot is the net inventory over two cycles of your policy. It rises at \(p - \lambda\) while production runs, clearing the backorders and then building the peak, and falls at \(\lambda\) until the next run starts at \(-\hat{B}\). Notice that with \(p\) switched off the rise is a vertical jump.

The second plot is the relevant cost against \(Q\), each \(Q\) with its best backorder level, \(\hat{B} = (hQa - \pi\lambda)/(h + b)\) held between 0 and \(Qa\). The red dot is your policy at the backorder level you chose. Notice how flat the curve is near its minimum.

Things to Try

  1. Press Use the optimal policy. The optimum is \(Q^{*} = 52.70\) and \(\hat{B}^{*} = 12.65\), the chapter’s answer, rounded here to the sliders’ steps of 1 and 0.5.
  2. Start from \(Q = 60\) and \(\hat{B} = 10\). The shelf is empty during the two segments below zero, \(T_4 = \hat{B}/\lambda = 0.1\) year and \(T_1 = \hat{B}/(p - \lambda) = 0.0667\) year, out of a cycle of \(T = 0.6\) year. Thus, the ready rate is \(1 - 0.1667/0.6 = 0.7222\), which the table shows.
  3. Switch off backorders. The model becomes the economic production quantity, every unit short is now forbidden rather than owed, and the optimum falls to \(Q^{*} = \sqrt{2k\lambda/(ha)} = 40.82\).
  4. Switch off finite production as well. The model is the classical EOQ, \(Q^{*} = \sqrt{2(20)(100)/4} = 31.62\), and the cycle becomes a sawtooth.
  5. With both switched on, raise \(\pi\). By \(\pi = 1\) the closed form’s backorder level is no longer positive, and by \(\pi = 1.55\) the root is gone: either way the optimum plans no shortage, as the chapter shows.

Check What You Found

Check what you found

1. On the chapter’s instance, the optimum with backorders is \(Q^{*} = 52.70\) with \(\hat{B}^{*} = 12.65\), at a relevant cost of $75.89 a year. Forbidding backorders gives \(Q^{*} = 40.82\) at $97.98 a year. Why does permitting backorders lower the cost?

2. On the same instance, raise the charge per unit short to \(\pi = 1.55\). What does the optimum do?