Stochastic Inventory Models
Stochastic Inventory Models
Stochastic Inventory Models
Outline
The role of safety inventory in a supply chain
Determining the appropriate level of
Reorder point
safety inventory
Replenishment Policies
Continuous
Periodic
EOQ Assumptions
1. Instantaneous production.
2. Immediate delivery.
3. Deterministic demand.
4. Constant demand.
5. Known fixed setup costs.
Examples:
newspapers or other items with rapid obsolescence
Christmas trees or other seasonal items
capacity for short-life products
Demand Di
(in hundreds)
Probability pi
Cumulative Probability of
Demand Being Di or Less
(Pi)
Probability of Demand
Being Greater than Di
(1-Pi)
0.01
0.01
0.99
0.02
0.03
0.97
0.04
0.07
0.93
0.08
0.15
0.85
0.09
0.24
0.76
0.11
0.35
0.65
10
0.16
0.51
0.49
11
0.20
0.71
0.29
12
0.11
0.82
0.18
13
0.10
0.92
0.08
14
0.04
0.96
0.04
15
0.02
0.98
0.02
16
0.01
0.99
0.01
17
0.01
1.00
0.00
Model Parameters:
cs =
co =
17
1,000( p c) pi $49,900
i11
Expected profit
from extra 100 parkas
Additional
Hundreds
Expected Marginal
Benefit
Expected Marginal
Cost
Expected Marginal
Contribution
11th
12th
13th
14th
440 460 = 20
15th
16th
17th
5,500 x 0.01 = 55
55 495 = 440
d
G ( x) density function of demand.
dx
co cost (in dollars) per unit left over after demand is realized.
c s cost (in dollars) per unit of shortage.
Q production/order quantity (in units); this is the decision variable.
11
Newsvendor Model
Cost Function:
Note: for any given
Y (Q ) expected overage expected shortage cost day, we will be either
over or short, not both.
But in expectation,
co E units over cs E units short
overage and shortage
can both be positive.
co (Q x) g ( x)dx cs ( x Q ) g ( x)dx
12
G (Q * ) P X Q *
Notes:
Q* co
Q * cs
cs
co c s
Critical Ratio is
probability stock
covers demand
G(x)
cs
co c s
Q*
13
Marginal Analysis
Specific Cost Element P(Specific Cost Element
Is Incurred)
the Specific Cost
Element
Overage Co
Expected Value of
Co *P(D<Q)
= P(D<Q)
Shortage Cs
Cs *[1- P(D<Q)]
= 1 - P(D<Q)
14
14
Model Parameters:
cs = 15 10 = $5
co = 10 8 = $2
15
Q
1000
cs
5
0.714
co cs 2 5
Q * 1,253
G (Q ) 1 e
*
Q
1000
cs
5
0.333
co cs 10 5
Q * 405
16
Example
Billys Bakery bakes fresh bagels each morning. The daily demand for bagels is a
random variable with a distribution estimated from historical data given. From
this historical data, Billys Bakery has also determined that the expected daily
demand is 18 units. The bagels cost $2 to make, and they are sold for $3.50 each.
Bagels unsold at the end of the day are purchased by a nearby charity soup kitchen
for $1.50 cents each
Quantity sold
Probability
0.05
0.10
10
0.10
15
0.20
20
0.25
25
0.15
30
0.10
35
0.05
Based on this distribution, how many bagels should be baked at the start of
each day?
What is the expected number of bagels sold to charity?
17
cs
Q *
co cs
3.00
G (Q* )
cs
Q *
z where ( z )
co cs
Q* z
(z)
0.00
1
13
19
25
31
37
43
49
55
61
67
73
79
85
91
97 103 109 115 121 127 133 139 145 151 157
Ordering quantity
Expected profit
Q z
E[ P(Q)] cs cs ES co EO
ES ( x Q ) g ( x)dx L( z )
Q
EO (Q x ) g ( x)dx L( z )
0
19
Loss function
Example
Scenario:
21
Example (cont.)
Newsvendor Parameters:
c0 = $0.5
cs = $15
Solution:
15
0.9677
0.5 15
Q 100
0.9677
25
Q 100
1.85
25
Q 100 1.85 (25 ) 146
G (Q * )
Newsvendor Takeaways
23
24
25
26
27
28
IP
On-hand inventory
Order
received
IP
Order
received
Order
received
Q
OH
OH
IP
Order
received
Q
OH
r
Order
placed
Order
placed
L
TBO
Order
placed
L
TBO
L
TBO
29
Time
On-hand inventory
Order
received
IP
IP
Order
received
Order
received
Q
r
Order
placed
Order
placed
Order
placed
0
l1
TBO1
l2
TBO2
l3
Time
TBO3
Q
AverageInv entory Cycle Inventory Safety Stock s
30
2
D = 15
75
Demand for week 1
D = 15
75
Demand for week 2
75
Demand for week 3
= 25.98
E[X] E
i 1
nD
2
D
i
D
i 1
Var[X] Var
225
Demand for 3-week lead time
n D
32
On-hand inventory
Order
received
IP
IP
Order
received
Order
received
Q
r
Order
placed
Order
placed
Order
placed
0
l1
TBO1
l2
TBO2
l3
Time
TBO3
Q
AverageInv entory Cycle Inventory Safety Stock s
33
2
34
34
35
Q+r
s
0
K
L
Time
P[X>r]
ESPRC
ESPRC
Fill rate 1
1
Order
Q
37
38
ESPRC ( x - r )P[X x]
x r
ESPRC ( x r ) g ( x)dx
r
39
40
p(x)
G(x)
h
b
S(R)
B(R)
I(R)
=
=
=
=
=
=
=
=
=
=
=
=
=
42
On Hand Inventory
Backorders
Orders
Inventory Position
0
0
10
15
20
25
30
35
Time
43
if X is continuous
G (r 1)
44
Backorder Level
Note: At any point in time, number of orders equals number of
demands during last l time units (X) so from our previous balance
equation:
R = on-hand inventory backorders + orders
on-hand inventory backorders = R X
Note: on-hand inventory and backorders are never positive at the same
time, so if X=x, then
if x R
0
backorders
x R if x R
Expected Backorder Level (also
called First-Order Loss Function):
( x R ) p ( x) if X is discrete
xR
B ( R ) E max x R, 0
( x R ) g ( x)dx if X is continuous
R
45
Backorder Level
poisson
B (r ) L( z ) where z
r 1
46
Inventory Level
Observe:
on-hand inventory = R X + backorders
E[X] = from data
E[backorders] = B(R) from previous slide
Result:
I ( R) R B( R)
if X : Poisson
p ( R) ( R )G ( R)
2
g R ( R )G ( R) if X : Normal
48
10 k e 10
G ( x) p(k )
k!
k 0
k 0
x
Note: Poisson
demand is a good
choice when no
variability data
is available.
49
50
51
52
h R B ( R ) bB R
h R h b B R
Solution: if we assume X is
d
0
Y (R )
dR
d
h R h b B R
dR
d
h h b
B R
dR
d
h h b
( x R ) g ( x )dx
dR R
h h b g ( x)dx
R
h h b G R 1
b
*
G R
h 53 b
b
hb
R *
z
where (z)=b/(h+b). So
R* = + z
Note: R* increases in
and also increases in
provided z>0.
54
Calculations:
b
25
0.625
h b 15 25
1.
2.
To achieve a given fill rate, the required base stock level (and hence
safety stock) is an increasing function of mean and (provided
backorder cost exceeds shortage cost) std dev of demand during
replenishment lead time.
3.
4.
56