Omid Golchin · Decision tools
Ordering Policy Tester
Which reorder rule to use at your stage of a supply chain, scored on your cost and on the bullwhip it sends upstream: how much the swings in your orders grow as they pass up the chain. Or play the ordering game and feel it happen.
It answers: which reorder rule to use at your stage of a supply chain (order-up-to, order-up-to with smoothing, or passing orders straight on), and what each costs you and does to the stages above you.
- To see the problem first, play a few weeks of the ordering game below. This step is optional.
- To choose a rule, open Compare rules, pick the situation closest to yours in the menu beside "Your stage", then set your stage, delays, costs and demand.
- Read the recommended rule and its target, then the table ranking the three rules. Before you rely on it, check when to use this tool, and when not.
Recommended rule
Working it out…
The three rules, ranked
The verdict as a table: every rule at your stage, with its cost, its bullwhip, and a sparkline of the orders it places week by week. The recommended rule's row is marked.
Orders week by week
What your stage and the factory order under the recommended rule, against pass-through, with customer demand dashed underneath. The growth from your line to the factory's is the bullwhip effect.
The smoothing trade-off calmer orders or lower cost
Order-up-to with smoothing closes only a fraction of the gap to your target each week. A smaller fraction calms your orders (a lower bullwhip ratio) but reacts slowly when demand moves, which can cost more. Disney and Towill (2003) map this trade-off; here it is for your settings, at your stage.
Your cost by smoothing factor
Your bullwhip ratio by smoothing factor
How the verdict is decided simulation, formulas, sources
The chain is simulated week by week for 36 weeks. It opens in steady state: pipelines full at the opening demand level (the median of the first four weeks) and every stage holding its safety stock, so demand that never moves leaves every rule at zero cost (tested). Each week a stage receives goods, gets its incoming order, ships what it can, pays holding cost on what is left and shortage cost on what it owes, then places its order. Deterministic demand patterns are simulated once; random demand is simulated over 20 demand paths and the verdict uses the median, with the middle 80% range shown.
Order-up-to target. S = (forecast weekly demand × lead time) + z × (demand spread × √lead time), where z comes from the service level you pick (1.64 for 95%): the standard base-stock target (Silver, Pyke and Thomas, 2016). The lead time is order delay plus shipping delay (the factory, which produces, has only the shipping delay). The safety stock is set once from the spread of demand; the forecast is the average of the last few weeks you choose, of the orders the stage receives or, with information sharing, of customer demand. Forecasting from orders is exactly how the bullwhip starts (Lee, Padmanabhan and Whang, 1997). "Balanced to my costs" sets the service level to the critical ratio, shortage ÷ (shortage + holding): the point where one more unit of target saves as much shortage cost as it adds in holding cost.
Bullwhip ratio. The variance of a stage's orders divided by the variance of customer demand (Chen, Drezner, Ryan and Simchi-Levi, 2000). 1.0 means orders are exactly as steady as demand. Chen and colleagues show it grows with the lead time and shrinks as the forecast window lengthens, which the forecast-window check shows for your settings.
Smoothing. The proportional order-up-to rule orders the forecast plus a fraction of the remaining gap between the target and the inventory position (Disney and Towill, 2003), so with steady demand it orders exactly demand. The tool tries factors from 0.2 to 1.0 and keeps the cheapest at your stage; near ties go to the calmer orders.
The anchoring bot. In Play mode, a teammate can use the anchoring-and-adjustment heuristic Sterman (1989) fitted to real players: expected demand updates by 0.36 of the surprise, and the order adds 0.26 of the gap to the target stock, counting only 0.34 of the supply line. It is the pattern real people fall into, and it whipsaws the chain.
The experiments behind this tool (the Python engine checked against the page, the classic-game replication, and how far smoothing goes before it backfires) are in Research notes.
The ordering game
Pick your role and teammates, then start. You will place one order a week for 36 weeks; at the end, your cost and bullwhip ratio are set next to the best rule's on the same demand.
Your game's orders by stage
Every stage's weekly orders, with customer demand underneath. In the classic game this chart fans out: steady demand, wild factory orders.
When to use it, and when not assumptions, limits, alternatives
Use it to choose and tune a periodic reorder rule for one stage of a chain that orders from the stage above it every week: a store ordering from a distributor, a distributor from a manufacturer, or to show a team why order swings grow up the chain.
It assumes the following. Each line says what happens to the answer when your case breaks the assumption.
| Assumption | If yours differs |
|---|---|
| A serial chain of four stages and one product; each stage orders from the one above, and the factory produces. | With several suppliers or customers per stage, the bullwhip still builds but the numbers will differ. Use the tool for the main supply route only. |
| The other three stages follow plain order-up-to. | Real partners may anchor or panic like Sterman's players; the Play mode's anchoring bot shows how much worse that gets. The Compare costs are then optimistic. |
| Order and shipping delays are fixed and known. | Delays that vary need extra safety stock the formula does not add. Use your longer, typical delay as a first cut. |
| Costs are per unit per week (holding and shortage); no fixed cost per order. | With a large cost per order, you will want to order in batches: an (s, S) or economic-order-quantity rule fits better. |
| The factory has unlimited capacity, and stock does not spoil. | If the factory is capacity-bound, its queue adds delay the tool ignores; for perishable stock, see the Order Quantity Planner. |
| Each stage forecasts with a moving average of the orders it receives (or of customer demand when demand is shared). | Exponential smoothing or a planner's judgment changes the bullwhip; the forecast-window check shows how sensitive the answer is. |
| The comparison runs 36 weeks on one of five demand patterns or your pasted series. | Rare events longer than 36 weeks are not tested. Paste a longer series to test your own path. |
Do not use it for one-off orders of seasonal or perishable goods (use the Order Quantity Planner), for multi-echelon networks with many locations (use a supply-chain planning system), or for production scheduling at a capacity-bound factory.
Where this tool comes from the problem and data it was built on, and how it was generalised
The tool comes out of the Beer Game, the four-stage ordering game from MIT in which demand steps up once and orders swing wildly up the chain (Sterman, 1989), and the research that explained it: forecasting from received orders drives the bullwhip (Lee, Padmanabhan and Whang, 1997), and its size grows with lead time and shrinks with a longer forecast window (Chen, Drezner, Ryan and Simchi-Levi, 2000).
Experiments on this repository's Python engine (results/summary.md) shaped the tool. The classic game's opening stock, not the rules, caused most of the bullwhip first measured, so the chain now opens in steady state. Sharing customer demand cut the factory's bullwhip from ×15.4 to ×4.0. Four anchoring players ran up $1,766 of chain cost against $834 for four order-up-to stages. The forecast window moved the factory's bullwhip more than the choice of rule did (×65 with a 4-week window, ×15 with 8, ×8 with 16, against a factor of about two between rules).
How it was generalised. The game fixes one demand step, one cost pair and four human players. The tool keeps the game as the Play mode, and in Compare turns the game's fixed settings into your inputs (stage, delays, costs, backlog or lost sales, service level, forecast window, demand pattern or your own series), with three textbook rules scored on the same demand.