dynamic-lot-sizing

Solves finite-horizon lot-sizing problems with dynamic programming.

56|16|Updated Oct 18, 2025
One-click install
npx skills add https://github.com/kishorkukreja/awesome-supply-chain --skill dynamic-lot-sizing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dynamic-lot-sizing
Source: https://github.com/kishorkukreja/awesome-supply-chain/tree/main/skills/dynamic-lot-sizing
Command: npx skills add https://github.com/kishorkukreja/awesome-supply-chain --skill dynamic-lot-sizing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, pandas, matplotlib, scipy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill optimizes inventory replenishment decisions for systems where demand, costs, or prices change over time, moving beyond static models to handle real-world complexities.

Core Features & Use Cases

  • Dynamic Lot-Sizing: Solves inventory problems with time-varying parameters using dynamic programming.
  • Price Speculation Analysis: Identifies opportunities to buy inventory ahead of anticipated price increases.
  • Rolling Horizon Simulation: Simulates planning with replanning at regular intervals to adapt to changing forecasts.
  • Use Case: A retail company facing seasonal demand and upcoming supplier price hikes can use this Skill to determine optimal order quantities each month to minimize total costs.

Quick Start

Use the dynamic-lot-sizing skill to solve a 12-month inventory problem with seasonal demand and a price increase in month 6.

Frequently Asked Questions about dynamic-lot-sizing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize inventory replenishment when demand and costs change over time?

Dynamic lot-sizing uses dynamic programming to optimize inventory replenishment for non-stationary systems with time-varying demand, setup costs, and holding costs. It calculates optimal order quantities across a finite horizon to minimize total inventory costs.

What is dynamic lot sizing and when do I need it for inventory management?

Dynamic lot sizing solves finite-horizon inventory problems using dynamic programming when parameters are non-stationary. You need it when facing seasonal demand, fluctuating supplier prices, or varying holding and setup costs that make static models inadequate.

Can I analyze price speculation opportunities for upcoming supplier price increases?

Yes, price speculation analysis identifies opportunities to buy inventory ahead of anticipated price increases. It evaluates future cost changes against holding expenses to determine if提前 purchasing reduces total replenishment costs.

How do I simulate rolling horizon strategies for inventory planning with replanning?

Rolling horizon simulation models inventory planning with regular replanning intervals to adapt to changing forecasts. It applies dynamic programming repeatedly across moving time windows to update optimal replenishment decisions as new demand information arrives.

Does this lot-sizing approach work with numpy and pandas data structures?

Yes, the dynamic lot-sizing implementation depends on numpy and pandas for data handling, scipy for optimization computations, and matplotlib for visualizing inventory results. These libraries provide the computational framework for dynamic programming and rolling horizon simulation.

What are the limitations of dynamic programming for finite-horizon lot-sizing problems?

Dynamic programming for finite-horizon lot-sizing requires known or forecasted time-varying parameters across the planning horizon. It may not handle highly stochastic demand well, and rolling horizon simulation helps adapt to forecast updates but adds computational overhead.