When Least is Best

A business sells a product has the following process:

Product items are stocked at the beginning of a period. c_1 is the stocking fee ($). The items are then sold at the rate r (# of items per unit time). When all items are sold, the period ends.

The process repeats indefinitely.

Fig. 1

Let q(t) denotes the inventory level at time t. Then

q(t) = q_0 - rt

where q_0 is the number of product stocked at the beginning.

Let T be the duration of the period. We have

q(T) = q_0-rT=0 \implies q_0= rT\quad\quad\quad(1)

since at T, all products are sold.

Fig. 2

The cost for having an inventory during the period T is

\displaystyle\int\limits_{0}^{T} q(t)\cdot c_2 \;dt = \int\limits_{0}^{T}(q_0-rt)c_2 dt = c_2\int\limits_{0}^{T}(q_0-rt)\;dt

where c_2 ($ per item per unit time) pays for inventory space and maintenance.

It is not necessary to evaluate the definite integral for it is simply the area of the shaded triangle in Fig. 3

Fig. 3

which is

\frac{1}{2}q_0T.

Therefore, the total cost for the period

c= c_1 + c_2\cdot\frac{1}{2}q_0T \overset{(1)}{=} c_1+c_2\cdot\frac{1}{2}(rT)\cdot T=c_1 + \frac{1}{2}c_2rT^2.

And, the total cost per unit time for the period

\bar{c} = \frac{c}{T} = \frac{c_1}{T} + \frac{1}{2}c_2rT.\quad\quad\quad(2)

Our objective is to determine q_0 so that \bar{c} is minimized.

From (2), we see \frac{c_1}{T}\cdot\frac{1}{2}c_2rT = \frac{1}{2}c_1c_2r, a constant. By Theorem-2 in “Solving Kepler’s ‘Wine Barrel Problem’ without Calculus“, when

\frac{c_1}{T} = \frac{1}{2}c_2rT,\quad\quad\quad(3)

\bar{c} attains its minimum.

Solving (3) for T gives

T^* = \sqrt{\frac{2c_1}{c_2r}}.

It follows that by (1),

q_0^* = r\sqrt{\frac{2c_1}{c_2r}} = \sqrt{\frac{2c_1r}{c_2}}.


We can obtain T^*, q_0^* and \bar{c}^* by Calculus:

\frac{d\bar{c}}{dT} = (\frac{c_1}{T} \frac{1}{2}c_2rT)' = -\frac{c_1}{T^2} + \frac{1}{2}c_2r

\frac{d\bar{c}}{dT} = 0 \implies T = \sqrt{\frac{2c_1}{c_2r}}

\frac{d^2\bar{c}}{dT^2} = \frac{d}{dT}(\frac{d\bar{c}}{dT}) = (-c_1T^{-2})' = 2c_1T^{-3} > 0\;\forall T>0.

So

T^*=\sqrt{\frac{2c_1}{c_2r}},

q_0^* = r T^* = r\sqrt{\frac{2c_1}{c_2r}} = \sqrt{\frac{2c_1r}{c_2}},

\bar{c}^* = \sqrt{2c_1c_2r}.


We can also determine the values free of derivative from solving an inequality:

\bar{c} = \frac{c_1}{T}+\frac{1}{2}c_2rT

\implies \bar{c}T = c_1+\frac{1}{2}c_2rT^2

\implies \frac{1}{2}c_2rT^2-\bar{c}T+c_1 =0

\implies \Delta = \bar{c}^2-4\cdot\frac{1}{2}c_2r\cdot c_1 = \bar{c}^2-2c_2rc_1\ge 0

\implies \bar{c} \ge \sqrt{2c_1c_2r}

\implies \bar{c}^* = \sqrt{2c_1c_2r}.

It follows that

T^* = \frac{-(-\bar{c}^*)}{2\cdot\frac{1}{2}c_2\cdot r}=\frac{\sqrt{2c_1c_2r}}{c_2r} = \sqrt{\frac{2c_1}{c_2r}},

q_0^* = rT^* = \sqrt{\frac{2c_1r}{c_2}}.