Skip to content

Dynamic Lot-Size Model

Definition

The dynamic lot-size model chooses order quantities over nn discrete periods with known varying demands, no shortages, and no lead time. In the detailed course notation, yiy_i is the period-ii order, DiD_i demand, xix_i starting stock, KiK_i setup cost, ci(yi)c_i(y_i) the variable ordering cost of yiy_i units, and hih_i holding cost per unit carried to the next period. Then

xi+1=xi+yi−Di≥0,Ci(yi)={0,yi=0,Ki+ci(yi),yi>0.\begin{gathered} x_{i+1}=x_i+y_i-D_i\ge0,\\ C_i(y_i)=\begin{cases}0,&y_i=0,\\K_i+c_i(y_i),&y_i>0.\end{cases} \end{gathered}

Minimize ∑i=1n[Ci(yi)+hixi+1]\displaystyle \sum_{i=1}^n[C_i(y_i)+h_ix_{i+1}], with given x1x_1 and terminal stock xn+1=0x_{n+1}=0 in the course examples.


Interpretation

The dynamic lot-size model plans orders over a finite number of periods whose demands are known but differ. Each order triggers a setup cost, so it can be cheaper to order once for several periods and carry the surplus, paying holding cost for it.

Three periods in a row with demands 2, 1 and 3, an order of 2 in each period, and the stock carried between periods, including one unit carried from period 2 into period 3.

Each box is one period with its demand, and the arrows on top are orders. The balance xi+1=xi+yi−Dix_{i+1}=x_i+y_i-D_i can be followed from left to right: period 11 starts empty, orders 22 and uses 22, so x2=0x_2=0; period 22 orders 22 but uses only 11, so one unit is carried into period 33 at cost h2h_2; period 33 orders 22, which with the carried unit covers its demand 33 and leaves x4=0x_4=0.

The constraint xi+1≥0x_{i+1}\ge0 forbids shortages, and fixing the final stock at zero stops the plan from ending with useless stock. The cost Ci(yi)C_i(y_i) contains the full setup KiK_i as soon as yi>0y_i>0, however small the order: this fixed charge is what makes combining orders attractive.

The balance equation is the one of the production-inventory model (there It−1+Pt−dt=ItI_{t-1}+P_t-d_t=I_t). The EOQ is the constant-demand counterpart; here no single formula exists. The best plan can be found period by period with dynamic programming, in the form of the lot-size Bellman recursion, and the Silver-Meal heuristic gives a quick approximate plan.


Key Results

  • The course tables enumerate nonnegative integer order and stock quantities.
  • Variable ordering cost ci(yi)c_i(y_i) may depend nonlinearly on the batch size.
  • The model is introduced in the week 5 overview and developed in week 6.

Examples

In the illustrated three-period policy, the period-2 order exceeds that period’s demand by one unit. With the cost data of the course's worked example (not reproduced on this page), this plan has total cost 79.

  • For demands (2,1,3)(2,1,3) and the cost data of the course's worked example, the optimum found there orders (2,2,2)(2,2,2) at total cost 79; see the lot-size Bellman recursion.
  • Week 6 practice 2 has two optimal policies, (4,0,4,0)(4,0,4,0) and (6,0,0,2)(6,0,0,2), both costing 31.

Prerequisites

Sources

Aliases: Dynamic lot sizing, dynamic lot-sizing problem, dynamic lot-size problem Symbols: sum

Last updated: 27 October 2026 11:52