Dynamic lot-size model
The dynamic lot-size model in inventory theory, is a generalization of the economic order quantity model that takes into account that demand for the product varies over time. The model was introduced by Harvey M. Wagner and Thomson M. Whitin in 1958.
Problem setup
We have available a forecast of product demandover a relevant time horizon t=1,2,...,N. There is a setup cost incurred for each order and there is an inventory holding cost per item per period. The problem is how many units to order now to minimize the sum of setup cost and inventory cost. Let us denote inventory:
The functional equation representing minimal cost policy is:
Where H is the Heaviside step function. Wagner and Whitin proved the following four theorems:
- There exists an optimal program such that I=0; ∀t
- There exists an optimal program such that ∀t: either =0 or for some k
- There exists an optimal program such that if is satisfied by some, t**
- Given that I = 0 for period t, it is optimal to consider periods 1 through t - 1 by themselves
Planning Horizon Theorem
The precedent theorems are used in the proof of the Planning Horizon Theorem. Letdenote the minimal cost program for periods 1 to t. If at period t* the minimum in F occurs for j = t** ≤ t*, then in periods t > t* it is sufficient to consider only t** ≤ j ≤ t. In particular, if t* = t**, then it is sufficient to consider programs such that > 0.
The algorithm
Wagner and Whitin gave an algorithm for finding the optimal solution by dynamic programming. Start with t*=1:- Consider the policies of ordering at period t**, t** = 1, 2,..., t*, and filling demands, t = t**, t** + 1,..., t*, by this order
- Add H+ to the costs of acting optimally for periods 1 to t**-1 determined in the previous iteration of the algorithm
- From these t* alternatives, select the minimum cost policy for periods 1 through t*
- Proceed to period t*+1