lot-sizing-problems

Solve multi-period lot-sizing problems minimizing setup, holding, and shortage costs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps businesses determine the most cost-effective quantities to produce or order over multiple periods, minimizing costs associated with setup, holding, and potential shortages.

Core Features & Use Cases

  • Multi-Period Planning: Solves complex inventory planning problems across various time horizons.
  • Cost Optimization: Balances setup costs against holding costs to find the optimal order/production frequency and quantity.
  • Heuristics & Optimal Algorithms: Implements practical heuristics like Silver-Meal and Least Unit Cost, as well as the optimal Wagner-Whitin algorithm.
  • Capacitated Lot-Sizing: Addresses scenarios with production capacity constraints using Mixed-Integer Programming.
  • Use Case: A manufacturing company needs to decide how much of a product to manufacture each month for the next year, considering fixed setup costs for each production run and costs for storing unsold inventory. This Skill can provide the optimal production plan.

Quick Start

Use the lot-sizing-problems skill to find the optimal production plan for a 12-period horizon with demands [50, 60, 40, 80, 100, 90, 70, 60, 50, 80, 90, 100], a setup cost of $200, and a holding cost of $2 per unit per period.

Frequently Asked Questions about lot-sizing-problems

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

FAQPage Schema
How do I optimize production lot sizes to minimize setup and holding costs?

Production lot sizing optimization minimizes total setup, holding, and shortage costs by balancing order frequency against inventory volume. You can solve multi-period planning problems using heuristics like Silver-Meal or optimal algorithms like Wagner-Whitin.

What is the difference between Silver-Meal and Wagner-Whitin for lot sizing?

Silver-Meal is a practical lot-sizing heuristic that estimates optimal order quantities by minimizing cost per period, while Wagner-Whitin is an exact dynamic programming algorithm that guarantees the mathematically optimal production plan for deterministic demand.

How do I solve capacitated lot-sizing problems with production limits?

Capacitated lot-sizing with production limits is solved using Mixed-Integer Programming via PuLP. This approach enforces capacity constraints while minimizing setup and holding costs across multiple periods.

Can I use PuLP for multi-period inventory planning and production scheduling?

Yes, PuLP supports multi-period inventory planning and production scheduling by formulating capacitated lot-sizing problems as Mixed-Integer Programming models. It handles deterministic demand scenarios while respecting production capacity constraints.

What lot-sizing heuristics are available for deterministic demand scenarios?

Available lot-sizing heuristics for deterministic demand include Lot-for-Lot, Fixed Order Quantity (FOQ), Silver-Meal, and Least Unit Cost (LUC). These heuristics help approximate optimal production quantities without running full optimization algorithms.

Does this lot-sizing approach handle shortage costs in addition to setup and holding costs?

Yes, this lot-sizing approach explicitly handles shortage costs alongside setup and holding costs. It minimizes the total cost function across multi-period horizons, allowing you to balance unmet demand penalties against inventory and production expenses.