5.7 Analytic Results for the Base-Stock Policy
5.7 Analytic Results for the Base-Stock Policy
In this section, we establish a set of formulas to compute performance measures for the single-item base-stock inventory system of Section 2.5.1This way, we do not have to simulate to see how performance depends on the order-up-to level \(S.\)
We introduce some notation: The period demands \(\set{D_{i}}_{i=1}^{\infty}\) are assumed to be iid rvs with \(0<\E D<\infty\);2Why did we not need to make this assumption earlier? for notational ease we take \(D_{i} = 0\) for \(i\leq 0.\) Write
\begin{align*} D(i, j] & = \sum_{k=i+1}^{j} D_k, & D[i, j] & = D_{i} + D(i, j], & D[i, j) & = D[i, j] - D_{j}, \end{align*}and likewise for \(Q(i, j]\) for the total outstanding reorders.
We assume that the lead time \(\leadtime\) is constant and a multiple of the period duration. Define
\begin{align*} F_X(x) = \P{\sum_{i=1}^{\leadtime} D_{i} \leq x}; \end{align*}write \(X\sim F_X\) for the lead-time demand, \(G_X = 1 -F_X\) for the survivor function, and \(f_{X}\) for the pmf. Clearly, \(\E X = \leadtime \E D.\) Since the period demands are iid rvs, all rvs \(\set{D[k-\leadtime, k)}_{k=\leadtime+1}^{\infty}\) have the same distribution \(F_X.\)
We use the recursions of Section 2.5 to derive expressions for the long-run performance measures. The first step is to relate the outstanding orders to the demand.
Lemma 5.7.1.
Under a base-stock policy with order-up-to level \(S,\) \(Q(1, k] = D[1, k)\) for all periods \(k\geq 1.\)
Proof
Using the recursions for the inventory position under the base-stock policy repeatedly,
\begin{align*} \IP_k & = \IP_{k-1}'+ Q_k = \IP_{k-1} -D_{k-1}+ Q_k \\ & = \IP_{k-1} -D[k-1, k) + Q(k-1, k] \\ & = \IP_1 - D[1, k) + Q(1, k]. \end{align*}The proof is finished by noting that \(\IP_{k} = S\) for all \(k\geq 1.\)
We can use this lemma to express \(\IL_{k}\) in terms of \(S\) and the lead-time demand.
Lemma 5.7.2.
Under a base-stock policy, if \(\IL_{1} = S\) and \(Q(1-\leadtime, 1] = 0,\) i.e., no orders are outstanding in period 1, then for all periods \(k\geq 1,\)
\begin{align*} \IL_k & = S - D[k-\leadtime, k), & \IL_k' & = \IL_{k} - D_{k} = S - D[k-\leadtime, k]. \end{align*}Proof
Using the recursion for the inventory level and the assumptions,
\begin{align*} \IL_{k} & = \IL_{k-1} -D_{k-1}+ Q_{k-\leadtime} \\ & = \IL_{k-1}- D[k-1, k) + Q(k-\leadtime-1, k-\leadtime] \\ & = \IL_{1}- D[1, k) + Q(1-\leadtime, k-\leadtime] \\ & \stackrel1= S - D[1, k) + Q(1, k-\leadtime] \\ & \stackrel2= S - D[k-\leadtime, k); \end{align*}1 uses \(\IL_{1}=S\) and \(Q(1-\leadtime, 1] = 0,\) 2 follows from the above lemma and \(D[k-\leadtime, k) = D[1, k) - D[1, k-\leadtime).\)
This next theorem, which allows us to define the inventory level as an rv \(\IL,\) follows directly from the above lemmas.
Theorem 5.7.3.
The rvs \(\set{\IL_{k}}_{k=\leadtime+1}^{\infty}\) are identically3But not necessarily independent. distributed as the rv
\begin{equation*} \IL = S - X. \end{equation*}Proof
As observed earlier, each rv \(D[k-\leadtime, k) \sim X.\) As \(S\) is constant, the rvs \(\IL_{k} = S - D[k-\leadtime, k) \sim S - X\) for all \(k\geq \leadtime+1.\)
Now that we have characterized the distribution of \(\IL\) in terms of the control parameter \(S\) and the lead-time demand \(X,\) we can find expressions for the performance measures. First, for the ready rate,
\begin{equation*} \alpha \stackrel1= \P{\IL'\geq 0} \stackrel2= \P{\IL - D \geq 0} \stackrel3= \P{S-X - D\geq 0} = \P{X+D\leq S}, \tag{5.7.1} \end{equation*}where 1 follows from the definition of \(\alpha,\) 2 from \(\IL' = \IL- D,\) 3 from \(\IL=S-X.\) Second, for the fill rate, by taking expectations in (2.5.5), we obtain
\begin{equation*} \beta = \frac{\E{\Min{D, \IL^{+}}}}{\E D}. \tag{5.7.2} \end{equation*}The mean inventory level is
\begin{equation*} \E{\IL} = \E{S-X} = S - \E X = S - \leadtime\E D. \end{equation*}Next, noting that \(\IL^+ - \IL^- = \IL,\) the average on-hand inventory can be expressed in terms of the average backlog:
\begin{equation*} \E{\IL^+} = \E{\IL} + \E{\IL^-} = S - \leadtime \E D + \E{\IL^-}. \tag{5.7.3} \end{equation*}From the definition of the backlog,
\begin{equation*} \E{\IL^-} = \E{[-\IL]^{+}} = \E{[X-S]^{+}} = \sum_{k=0}^\infty (k- S)^+f_{X}(k). \tag{5.7.4} \end{equation*}This summation runs to \(\infty\) if the support of \(D\) is unbounded. For numerical purposes, we rewrite it as follows.
Lemma 5.7.4.
For a non-negative integer order-up-to level \(S,\) the average backlog is equal to
\begin{equation*} \E{\IL^-} = \leadtime \E D - \sum_{j=0}^{S-1} G_X(j). \end{equation*}Proof
Since \(\sum_{j=0}^\infty \1{j< k} = k,\) we find from (5.7.4)
\begin{align*} \sum_{k=S}^\infty (k-S) f_{X}(k) & = \sum_{k=S}^\infty\sum_{j=0}^\infty \1{j < k-S}\, f_{X}(k) = \sum_{j=0}^\infty \sum_{k=S}^\infty \1{k > j +S}\, f_{X}(k) \\ & = \sum_{j=0}^\infty G_X(j+S) = \sum_{j=0}^\infty G_X(j) - \sum_{j=0}^{S-1} G_X(j). \end{align*}Since \(\sum_{i=0}^\infty G_X(i) = \leadtime \E D,\) the claim follows.
Recall from Th. 5.7.3 that \(\IL,\) hence \(\IL^{+ }\) and \(\IL^{-},\) are functions of the order-up-to level \(S.\) With the inventory cost \(c\) of (2.5.4), the expected inventory cost in a period at whose start the inventory position is \(j\) is
\begin{equation*} L(j) = \E{c(j-X)} = \sum_{k=0}^{\infty} f_X(k)\, c(j-k). \tag{5.7.5} \end{equation*}Therefore, the average cost of the base-stock policy is
\begin{align*} C(S) = L(S) = h \E{\IL^{+}} + b \E{\IL^-}. \end{align*}The function \(L\) is convex and, provided \(h>0\) and \(b>0,\) coercive,4A function \(f\) is coercive if \(\lim_{x\to \pm \infty} f(x) = \infty.\) because \(c\) has these properties and \(L\) is a weighted sum of shifted copies of \(c.\) Hence \(C(S)=L(S)\) has a minimizer \(S^{*}.\) Exercise 8 asks you to complete the details.
For the Lighthouse Company case specified in Alg. 2.5.4, the class \(\cl{BaseStock}\) in Alg. 5.7.1 computes the ready rate \(\alpha,\) the fill rate \(\beta,\) and the cost \(C\) of the base-stock policy as functions of the order-up-to level \(S.\) The methods are the formulas above, written with the rv operations of Section 1.5.
\begin{algorithm}
\caption{The performance of a base-stock policy.}
\begin{algorithmic}[1]
\State \textbf{Input:} demand rv \(D,\) lead time \(\leadtime,\) costs \(h,\, b.\)
\State \textbf{Output:} ready rate, fill rate, and average cost as functions of the order-up-to level \(S.\)
\State \textbf{class} \(\cl{BaseStock}\rb{D,\, \leadtime,\, h,\, b}\)
\State \(\quad\) \textbf{instance variables:}
\State \(\quad\quad X\gets\pr{Convolution}\rb{D,\, \leadtime}\)
\State \(\quad\) \textbf{methods:}
\State \(\quad\quad \IL\gets\lambdafun{S}{S-X}\)
\State \(\quad\quad \alpha\gets\lambdafun{S}{(\IL(S)-D).\pr{E}\rb{\lambdafun{z}{\1{z\geq0}}}}\)
\State \(\quad\quad \beta\gets\lambdafun{S}{\Min{D,\, \IL(S)^+}.\var{mean}/D.\var{mean}}\)
\State \(\quad\quad C\gets\lambdafun{S}{\IL(S).\pr{E}\rb{\lambdafun{i}{h i^+ + b i^-}}}\)
\end{algorithmic}
\end{algorithm}
Python code
# Run the Python blocks of Probabilistic Arithmetic first; they define RV.
class BaseStock:
def __init__(self, D, leadtime, h, b):
self.D, self.leadtime, self.h, self.b = D, leadtime, h, b
self.X = Convolution(D, leadtime)
def IL(self, S):
return S - self.X
# p holds the policy parameters: S here, (Q, r) in the subclass QR.
def alpha(self, *p):
return (self.IL(*p) - self.D).E(lambda z: 1 if z >= 0 else 0)
def beta(self, *p):
return Min(self.D, PositivePart(self.IL(*p))).mean / self.D.mean
def C(self, S):
h, b = self.h, self.b
return self.IL(S).E(lambda i: h * max(i, 0) + b * max(-i, 0))
R code
# Run the R blocks of Probabilistic Arithmetic first; they define RV.
BaseStock <- setRefClass("BaseStock",
fields = list(D = "ANY", leadtime = "numeric", h = "numeric", b = "numeric", X = "ANY"),
methods = list(
initialize = function(D, leadtime, h, b) {
D <<- D; leadtime <<- leadtime; h <<- h; b <<- b
X <<- Convolution(D, leadtime)
},
IL = function(S) S - X,
# ... holds the policy parameters: S here, (Q, r) in the subclass QR.
alpha = function(...) E(IL(...) - D, function(z) if (z >= 0) 1 else 0),
beta = function(...) mean(Min(D, PositivePart(IL(...)))) / mean(D),
C = function(S) E(IL(S), function(i) h * max(i, 0) + b * max(-i, 0))
)
)
| \(S\) | \(\alpha(S)\) | \(\beta(S)\) | \(C(S)\) |
|---|---|---|---|
| 5 | 0.34 | 0.33 | 15.84 |
| 6 | 0.47 | 0.47 | 9.42 |
| 7 | 0.60 | 0.61 | 5.65 |
| 8 | 0.72 | 0.74 | 4.08 |
| 9 | 0.82 | 0.84 | 3.54 |
| 10 | 0.89 | 0.91 | 3.63 |
| 11 | 0.94 | 0.95 | 4.30 |
Thus, as a function of \(S,\) the service levels increase, but the cost first decreases and then increases.5High service levels do not come for free.
TF 1.
In a base-stock model, the ready rate is given by \(\alpha = \P{\IL-D\geq0}.\) Claim:
\begin{equation*} \alpha=\P{S-X-D\geq0}=F_{X+D}(S). \end{equation*}Solution
Did you actually try? Write your solution down first for comparison.
Show the solution
True. Since \(\IL=S-X,\) the event \(\IL-D\geq0\) is the same as \(X+D\leq S.\)
TF 2.
Claim: In a base-stock model with lead-time demand \(X,\) the backlog is given by \(\E{[S-X]^+}.\)
Solution
Did you actually try? Write your solution down first for comparison.
Show the solution
False. The backlog is \(\E{[X-S]^+},\) not \(\E{[S-X]^+}.\) The expression \([S-X]^+\) is the on-hand inventory, see (5.7.4).
TF 3.
Claim: Increasing the order-up-to level \(S\) always decreases the average inventory cost \(C(S) = h\E{\IL^+} + b\E{\IL^-}.\)
Solution
Did you actually try? Write your solution down first for comparison.
Show the solution
False. Increasing \(S\) reduces backlog cost \(b\E{\IL^-}\) but increases holding cost \(h\E{\IL^+}.\) Since \(C(S)\) is convex, there is an optimal \(S^*\) beyond which the cost increases.
TF 4.
Claim: For the base-stock model, \(\E{\IL} = S - \leadtime \E D\) can be negative.
Solution
Did you actually try? Write your solution down first for comparison.
Show the solution
True. If \(S\) is small relative to the lead-time demand, then \(\E{\IL} < 0,\) meaning that on average there is a backlog.
TF 5.
Claim: Under a base-stock policy, \(\IL^+ - \IL^- = \IL.\)
Solution
Did you actually try? Write your solution down first for comparison.
Show the solution
True. By definition, \(\IL^+ = \Max{\IL, 0}\) and \(\IL^- = \Max{-\IL, 0},\) so \(\IL^+ - \IL^- = \IL.\)
Exercise 6.
Suppose \(\leadtime=0.\) What values do \(X,\) \(\E\IL,\) \(\E{\IL^{+}}\) and \(\E{\IL^{-}}\) take?
Solution
Did you actually try? Write your solution down first for comparison.
Show the solution
If \(\leadtime=0,\) then \(X=0,\) hence \(f_{X}(0) = \P{X=0} = 1.\) Consequently, \(\E \IL = S,\) \(\E{\IL^{-}} = [-S]^+\) and \(\E{\IL^{+}} = S^+.\) For \(S\geq0,\) these reduce to zero backlog and on-hand inventory \(S.\)
Exercise 7.
Why does the definition of \(\beta\) follow from (2.5.5)?
Solution
Did you actually try? Write your solution down first for comparison.
Show the solution
\(D_{k}\) and \(\IL_{k}\) are independent, but \(D_{k}\) and \(\IL_{k}'\) not.
Exercise 8.
Prove that there exists an order-up-to level \(S^{*}\) that minimizes the average cost.
Hint
Use the following properties for convex functions.
- \(f\) convex, \(\alpha\geq 0\) \(\implies\) \(\alpha f\) convex.
- \(f, g\) convex \(\implies\) \(f+g\) convex.
- \(f\) convex, \(R(x) = -x\) \(\implies\) \(f\circ R\) convex.
Solution
Did you actually try? Write your solution down first for comparison.
Show the solution
Fix \(i.\) The function \(S\to [S-i]^{+ }\) is convex. Since a weighted sum of convex functions is still convex, \(\sum_{i=0}^{\infty} f_{X}(i) [S-i]^{+}\) is also convex. But \(\sum_{i=0}^{\infty} f_{X}(i) [S-i]^{+} = \E{[S-X]^{+}} = \E{\IL^{+}},\) and therefore \(h\E{\IL^{+}}\) is a convex function of \(S.\) Similarly, \(S\to [i-S]^{+}\) is convex, and therefore \(\E{\IL^{-}}\) is convex. Consequently, \(C(S),\) being the sum of two convex functions, is convex. As \(\E{\IL^{+}} \to \infty\) when \(S\to\infty,\) and \(\E{\IL^{-}} \to \infty\) when \(S\to-\infty,\) \(C(\cdot)\) attains a minimum.