Professional Documents
Culture Documents
Chapter 3 - Single Item - Lotsizing With Time Varying Demand
Chapter 3 - Single Item - Lotsizing With Time Varying Demand
Demand
Characteristics
Some Approaches
Basic model
Heuristic methods:
Silver – Meal algorithm
Other heuristics
4
2.1. Assumptions for the Basic Model
5
Objective
6
Notation
¨ t: a period (e.g., day, week, month); t = 1, … ,T, where T represents the planning
horizon
¨ Dt: demand in period t (number of units)
¨ ct: unit purchasing/production cost
¨ At (or Co,t): ordering/setup cost associated with placing an order (or initiating
production) in period t
¨ ht (or Ch,t): cost of holding one unit of inventory from period t to period t +1
¨ Qt: the size of the order (or lot size) in period t; a decision variable
7
Example
8
The Lot for Lot Solution (L4L)
9
The Fixed Order Quantity Solution (FOQ)
Qt=100
1
The Fixed Order Period Solution (POQ)
11
Practice
The orders give the following production schedule for kitchen
tables. Leadtime = 2 weeks. Safety stock = 0. Plan order by:
Lot-4-Lot
FOQ = 230
POQ = 3 periods
kitchen tables
Week 1 2 3 4 5 6 7 8
Gross Requirement 150 120 150 120
Scheduled Receipts 230
On-hand 37
Planned Receipts
Planned Order Releases
Solution
A Mixed Integer Linear Program
(MILP) Formulation
advantage of this: can get optimal solution
disadvantage: it can solved short period problem
inventory balance
constraint
A: ordering cost
C: buying cost 14
Solution Approach
Solve as a standard MILP (using for example a branch and bound
algorithm); several commercial MILP solver software tools are
available
15
Property 1
A replenishment takes place when the inventory level is zero
Or: “Under an optimal lot-sizing policy either the inventory carried to period t+1
from the previous period will be zero or the production quantity in period t+1 will be
zero”
Property 2
▪ There is an upper limit to how far a period j we would include its requirements
If jk* = t = last period when we have place order exactly Dt+ Dt+1
…Dk in period jk*.
The Basic Idea of the Wagner-
Whitin Algorithm
Construct an algorithm where the decision is whether or not to
order in a given period. If we order, then the order quantity should
be just enough to cover demand until the next period in which we
order. then repeat solved the problems until the end
1
Example
1
Example
Step 1: Obviously, just satisfy D1 (note we are neglecting
production cost, since it is fixed).
Q1= D1+D2
Step 2: Two choices, either j2 *= 1 or j2 = 2.
* Q1=D1, Q2=D2
2
Example (Continued…)
Step3: Three choices, j3* = 1, 2, 3.
2
Example (Continued…)
Step 4: Four choices, j4* = 1, 2, 3, 4.
2
Example (Continued…)
Step 5: Only two choices, j5* = 4, 5.
And so on.
2
3
Example Solution
????
A replenishment takes place when the inventory
level is zero
Example Solution
Optimal Policy:
¨ Order in period 8 for 8, 9, 10 (40 + 20 + 30 = 90 units)
¨ Order in period 4 for 4, 5, 6, 7 (50 + 50 + 10 + 20 = 130 units)
¨ Order in period 1 for 1, 2, 3 (20 + 50 + 10 = 80 units)
2
Practice
The orders give the following delivery schedule for instant
noodle boxes (‘000) with associated information. Apply W-W
to develop order plan
2
2.3. Heuristics
Instead of solving the problem optimally, we could use a
heuristic (a rule) that leads to reasonably good solutions but
not necessarily optimal.
28
Example
Choose a fixed order quantity and order in multiples of this
order quantity. Order again when demand in a period cannot
be met from available inventory. (FOQ)
Starting with a period t, order for the next k periods if the resulting average cost
per period zt,t+k is smaller than the average cost per period if we ordered only
30
The Silver-Meal Algorithm
Step 1: Set t = 1
Step 2:
Step 3: t’=t+1
Step 5:
31
The Silver-Meal Algorithm
Step 6: If zt,t’ ≤ zt,t’-1 , set t’= t’+1 and go to step 4. Otherwise
go to step 7.
32
Example
t Dt At ct ht
1 10 40 2 1
2 2 40 2 1
3 12 40 2 1
4 4 40 2 1
5 14 40 2 1
33
Example
z1,1 = 40 + 20 = 60=40+2*10
z1,2 = (60 + 4 + 2)/2 = 66/2=33 < 60 60+2*2+2*1
z1,3 = 114/3 = 38>33 66+12*2+2*12*1
Since we have reached the end of the planning horizon, the heuristic sets Q5 = 14.
34
Practice
The orders give the following delivery schedule for instant
noodle boxes (‘000) with associated information. Apply S-M
to develop order plan
3
Other heuristic approaches
3
2.4. A Network Representation
The lot sizing problem can be represented as a network, where each node
t represents a period and an arc from node t’ to node t represents the fact
that we order (or produce) in both periods t’ and t but not in periods in
between. include demand from t to t'-1
38
The Network
40
Arc Costs
41
Key Insight
Finding the minimum cost solution is equivalent to finding the least costly
path (shortest path) in the network to go from node 1 to node T+1, where T
is number of periods.
42
A Dynamic Programming Algorithm to
Find the Least Costly Path
Step 1: t = 1, zt* = 0
Step 4: Compute
43
A Dynamic Programming Algorithm to
Find the Least Costly Path (cont.)
Step 5: Compute
Step 6: Go to to step 2.
44
Example
1 6
2 5
3 4
45
Example (Continued…)
1 6
2 5
3 4
46
Example (Continued…)
1 6
2 5
3 4
47
(Continued…)
1 6
2 5
3 4
48
Example (Continued…)
1 6
2 5
3 4
49
Example (Continued…)
1 6
2 5
3 4
50
Example (Continued…)
1 6
2 5
3 4
51
Example (Continued…)
1 6
2 5
3 4
52
Example (Continued…)
1 6
2 5
3 4
53
Example
t Dt At ct ht
1 10 40 2 1
2 2 40 2 1
3 12 40 2 1
4 4 40 2 1
5 14 40 2 1
54
Example
z1*= 0
c1,2 = 40 + 20 = 60
z2*= z1*+ c1,2 = 0+60=60
p2*= 1
c1,3 = 40 + 24+2 = 66
c2,3 = 40 + 4 = 44
z3* = min (z1*+ c1,3, z2*+ c2,3) = min (66, 104) = 66
p3*= 1
c14=40+2*24+1*2+2*12=114
Example
c1,4 = 114, c2,4 = 80, c3,4 = 64
z4* = min (z1*+ c1,4, z2*+ c2,4, z3*+ c3,4) = min (114, 140, 130)
=114
p4*= 1