Supply Chains & Inventory Examplesllms.txt

A small, one-time change in what customers buy can become a wave of orders by the time it reaches the factory. These models show that wave, and the one change that flattens it: count the stock already in transit before you reorder.

Inventory Oscillation is the single-store version. The manager refills whatever is missing from the shelf and ignores the truck already on the way, so inventory swings around the target. Beer Game: The Bullwhip Effect stacks four of those decisions — retailer, wholesaler, distributor, factory — so you can watch the same mistake amplify as it climbs the chain.

Select an example to explore it in the playground.

Beginner - Introductory Models

Inventory Oscillation

Naive reordering that ignores in-transit stock makes inventory swing; counting the pipeline flattens it.

Level: Beginner

inventorydelaybullwhip

  • Stocks: inventory
  • Flows: demand, shipments
  • Feedback Loops: delayed reorder (balancing loop that overshoots)
  • Probes: inventory, pipeline
Advanced - Complex Simulations

Beer Game: The Bullwhip Effect

A Beer Game simulation of the bullwhip effect: one demand step whips factory orders from a surge to zero unless each tier counts stock already in transit.

Level: Advanced

supply-chainbullwhipbeer-gamedelayinventoryoscillation

  • Stocks: Inventory (cases on hand, per tier), Backlog (unfilled orders, per tier), Supply line (cases on order, per tier)
  • Flows: Customer demand, Orders (upstream), Shipments (downstream), Production (factory batches)
  • Feedback Loops: Stock-correction (balancing): order more when net stock is below target, Supply-line correction (balancing): order less when the pipeline is already full — switched off when pipeline-blind, Demand-signal amplification (reinforcing): each tier forecasts off its neighbour's already-jittery orders
  • Probes: order_retailer, order_factory, inventory_retailer, inventory_factory