THE ENGINE IN EIGHT RULES

How a forecast and a minimum become a pick

Each day the engine looks at every store x SKU the DC stocks, works out what the store will be short of when the next delivery lands, ranks those needs and picks what the DC can ship. These are the rules of the Cybex engine; the data on this page is invented.

01 · Position

Store x SKU

On hand, transfers already on the way (inbound), the maintained minimum, the reorder quantity, the ABC rank and the DC's available stock.

stock now = on hand + inbound
02 · Forecast

Weekly, then daily

The chain's de-seasonalised weekly rate for the style-colour, split to the store by its share (re-balanced over the stores that receive) and to the size by its size index (the size's share).

day = chain rate x share x size ix x season ix x weekday ix
03 · Arrival

Pick date + transit

Transit is counted in business days, Monday to Friday, from the serving DC to the store. A Friday pick with one day in transit lands on Monday.

arrival = pick date + business days in transit
04 · Cover window

Days the delivery must last

The store's cover days for the weekday the delivery arrives (0 = no delivery that day), and at least until the next delivery.

window = max(cover[arrival day], days to next delivery)
05 · Stock at arrival

What is left when it lands

Stock now (a negative on hand counts as zero) less the forecast from the pick date to the arrival, floored at zero.

at arrival = max(0, on hand + inbound - forecast to arrival)
06 · Priority

Four weighted parts

Stockout risk = 1 / (stock at arrival / daily forecast + 1), or (min - stock + 1) / (min + 1) on a minimum line. ABC: A 1.0, B 0.6, C and none 0.3. Revenue is scaled to the run's largest.

0.40 risk + 0.25 ABC + 0.20 revenue + 0.15 size ix
07 · Selection

One greedy pass

Highest priority first (ties by store, then SKU). Each pick is the smallest of the need, the DC's stock left, the store's limits left and the DC's pick capacity left. The rest is held, with the limit that held it.

pick = min(need, DC stock, store limits, DC capacity)
08 · Output

A distribution queue

Picks are written as open distribution lines (DC, store, SKU, units). The warehouse picks them, prints the pick list by store and ships them as transfers; holds are logged with how many runs they have waited.

queue line = DC x store x SKU x units

Four ways to set the need

MethodNeed for a positionWhat it is for
Minimum and forecastmax(window forecast, minimum) - stock at arrivalThe default. With short windows (two or three days) the minimum decides most lines. A position needs a forecast to be considered.
MinOnHandif on hand + inbound <= minimum: minimum + reorder - (on hand + inbound)The stores' Stock Requirement rule, the old minimum/maximum list. No forecast, no store POs; a negative on hand asks for more.
MinOnHand or N weeksmax(MinOnHand fill, N weeks of forecast from arrival - stock at arrival)The old list plus the positions that sell beyond it: items with no minimum, and minimums too low for the season. N defaults to 4.
Forecast onlywindow forecast - stock at arrivalMinimums ignored. Useful to see how much of a run the minimums drive.

Needs are whole units: a fraction of 0.5 or more rounds up. A need the DC does not stock at all makes no line and is counted as not stocked.

ARRIVAL AND COVER WINDOW

When the delivery lands and how long it must last

The store takes deliveries that arrive on Tuesday (2 days of cover) and Friday (3 days). Choose a pick day and the days in transit; the engine works out the arrival and the window, or skips the store.

Mon17 MayTue18 Maycover 2Wed19 MayThu20 MayFri21 Maycover 3Sat22 MaySun23 MayMon24 MayTue25 Maycover 2Wed26 Maypickarrivalcover window 3 days (extended to the next delivery)
pick day to arrival (forecast sold before it lands)cover windowweekend (not a business day)
RUN THE ENGINE

One store, 40 SKUs, one pick day

Switch the method and the limits; every number below is recomputed by the same rules. The store has a giftware limit of 180 units a delivery; the DC's capacity is what it can still pick for this store today.

Method
MinOnHand or N weeks: need = max(MinOnHand fill, 4 weeks of forecast - stock at arrival)
Need
38 lines · 514 u
positions short at arrival
Picks
32 lines
to the distribution queue
Units picked
250 u
48.6% of need · $8,494 retail
Units held
264 u
DC stock 250, DC pick capacity 14
DC capacity used
100%
250 of 250 units
4 u (1 line) not stocked at the DC, so no line

The run, line by line, in pick order

Min/Reo = maintained minimum / reorder quantity. Weekly = the store's weekly forecast for the SKU before the seasonal index. Min part = the units the minimum alone asks for.

#SKUOn handInboundMin/ReoWeeklyAt arrivalMin partNeedPriorityPickedHeld · reason
1CP010-NVY-OSCap, Navy404/47.03.24320.662329 · DC stock
2MG020-NVY-OSMug 12 oz, Navy506/69.04.07410.633437 · DC stock
3OR080-GLS-OSOrnament, Glass-102/20.0-1.0550.6255
4HD210-NVY-MHarbour hoodie, Navy203/33.81.64170.619314 · DC stock
5MA030-LTH-OSMagnet, Lighthouse12010/1020.09.70900.606882 · DC stock
6HD210-NVY-LHarbour hoodie, Navy303/33.82.63160.582511 · DC stock
7TS330-SND-LScript tee, Sand000/01.90.0090.5729
8TS105-WHT-LLighthouse tee, White304/45.12.45230.530419 · DC stock
9HD210-NVY-XLHarbour hoodie, Navy102/22.10.83100.52410
10HD210-GRY-LHarbour hoodie, Grey203/32.61.74110.51711
11KC040-ANC-OSKeychain, Anchor606/611.04.76500.489446 · DC stock
12TS105-WHT-MLighthouse tee, White604/45.15.40200.47720
13HD210-GRY-MHarbour hoodie, Grey403/32.63.7090.47645 · DC stock
14HD210-NVY-SHarbour hoodie, Navy202/22.11.8290.4619
15MG021-STL-OSTravel mug, Steel303/33.72.63160.45316
16TB060-NAT-OSTote bag, Natural403/34.53.50190.44119
17TS105-WHT-SLighthouse tee, White203/32.91.74130.44013
18TS105-WHT-XLLighthouse tee, White403/32.93.70110.39547 · DC stock
19HD210-GRY-SHarbour hoodie, Grey302/21.42.8040.3864
20HD210-GRY-XLHarbour hoodie, Grey302/21.42.8040.3864
21JK520-RED-MRain shell, Red101/11.10.9150.3545
22PC050-MIX-OSPostcard pack, Mixed300/04.22.50180.34718
23FL400-FST-SFleece crew, Forest202/20.72.0220.3422
24FL400-FST-LFleece crew, Forest102/21.20.9350.3355
25WB070-BLU-OSWater bottle, Blue202/22.11.8290.3329
26CP010-KHK-OSCap, Khaki302/22.12.8080.3178
27TS105-NVY-LLighthouse tee, Navy503/32.94.70100.30810
28TS105-NVY-MLighthouse tee, Navy323/32.94.70100.30810
29TS330-SND-MScript tee, Sand100/01.90.8090.2919
30FL400-FST-MFleece crew, Forest302/21.22.9030.2833
31TS105-NVY-SLighthouse tee, Navy202/21.71.8260.2726
32TS105-NVY-XLLighthouse tee, Navy202/21.71.8260.2726
33TQ015-RED-OSToque, Red302/21.02.9020.26602 · DC pick capacity
34JK520-RED-SRain shell, Red101/10.60.9120.26602 · DC pick capacity
35JK520-RED-XLRain shell, Red101/10.60.9120.26602 · DC pick capacity
36FL400-FST-XLFleece crew, Forest201/10.71.9010.23301 · DC pick capacity
37TS330-SND-SScript tee, Sand100/01.00.9040.20004 · DC pick capacity
38TS330-SND-XLScript tee, Sand200/01.01.9030.16603 · DC pick capacity
UNCERTAINTY: 7-DAY STOCKOUT PROBABILITY

How likely is each SKU to run out in the next 7 days?

Daily demand is drawn around the forecast, 3,000 times per SKU, with a fixed seed. Day 0 is the pick day; the delivery arrives on day 1 (Tue 18 May) and there is no other delivery in the 7 days, so each scenario is judged on this run alone.

SKUs with at least a 2% chance of running out in any scenarioat the run settings above: MinOnHand or N weeks 4 wk, DC stock 100%, capacity 250 u
Poisson (variance = mean)Negative binomial (variance = 2 x mean)
ScenarioUnits shippedExpected stockout SKUs90% rangeLost unitsExpected stockout SKUs90% rangeLost units
No delivery016.813 to 2159.015.712 to 2064.2
MinOnHand (old list)569.96 to 1434.110.37 to 1441.3
MinOnHand or 4 weeks2504.42 to 715.04.62 to 718.7
Against the old list, the 4-week method cuts expected stockout SKUs from 9.9 to 4.4 (Poisson) and from 10.3 to 4.6 (negative binomial), and expected lost units from 34.1 to 15.0 and 41.3 to 18.7, for 194 more units shipped.

At these settings 2 SKUs get fewer units than the old list would send (JK520-RED-S, JK520-RED-XL): the N-week run spends the DC capacity and stock on higher-priority lines first, so these low-priority minimum lines are held and their risk goes up. Raise the capacity to see it go away.

Stockout SKUs vs old list
45% / 44%
N-week method as a share of the old list (Poisson / NB)
Lost units vs old list
44% / 45%
same, for expected lost units
Simulation error
±0.09
2 standard errors on expected stockout SKUs (largest case)
What it ignores
forecast bias
demand is centred on the forecast; a biased forecast moves every scenario
VALIDATION: REPLAY BEFORE RELEASE

Replay the engine against the old list, line by line

Before an engine replaces a store's minimum/maximum list, it must first reproduce it. Run MinOnHand on the same day's stock, compare every line, and explain every difference. Only then compare the new method with it.

MinOnHand against the old list

Old list
20 lines · 64 u
Identical lines
15 of 20
Short, with reason
5 lines · 8 u
Engine lines not on the list
0
SKUOld listEngine needPickedDifference
HD210-NVY-M443Short: DC stock
TS105-WHT-L554Short: DC stock
CP010-NVY-OS443Short: DC stock
MG020-NVY-OS774Short: DC stock
KC040-ANC-OS664Short: DC stock

What the N-week method changes

Added: sells, no minimum
5 lines · 43 u
Added: stock above a low minimum
13 lines · 191 u
Raised minimum lines
18 lines · 57 to 273 u
Unchanged lines
2 lines

Counted on need (before the DC and capacity limits), against the MinOnHand run at the same settings. The seasonal index is rising, so a minimum set for an average week is too low in this one.

What we found on real data

  • MinOnHand reproduces a store's old minimum/maximum list line for line, except where the DC is short.
  • The forecast-weeks method adds items that sell but have no minimum, and raises minimums that are too low for the season.
  • It roughly halves the expected stockout SKUs and lost units in the next 7 days, against the old list.

This is a pattern, not a client result: no names and no real numbers. On this page's invented store the same checks give: MinOnHand matches the old list on 15 of 20 lines, and the 5 others are short only because the DC is short; the 4-week method adds 5 lines with no minimum, 13 lines whose stock sits above a minimum that is too low for the season, and raises 18 minimum lines; expected stockout SKUs fall to 45% / 44% of the old list and lost units to 44% / 45% (Poisson / negative binomial).

SISTER APP: DIRECT-TO-STORE PO WORKBENCH

Suggested POs by store x style x colour

Some goods (here giftware) ship from the vendor straight to the stores. The workbench uses the same forecast: chain rate x store share x seasonal index, from the order date to the delivery and over the cover after it, with base stock (the reorder point) as trigger and floor, then groups the lines into one PO per vendor x store x delivery and checks the vendor minimum.

at delivery = max(0, on hand + on order - forecast to delivery)
if at delivery <= base stock: order = max(forecast over cover, base stock) - at delivery

2 of 4 store POs ready, 273 units, $910 at cost; 0 held and 1 for review.

Purchase orders, one per store and delivery

StoreDeliveryLinesUnitsAt costStatus
S-114 Driftwood QuayMon 24 May3150$505ReadyVendor minimum met
S-121 Pinecrest LandingMon 31 May00$0No orderNothing triggered
S-133 GullhavenMon 31 May3123$405ReadyVendor minimum met
S-140 Ridgeback StationMon 7 Jun393$294Review$56 below the $350 minimum; an item sells out before delivery

Ready: the vendor minimum is met. Held: below it, wait and combine. Review: below it, but an item sells out before the delivery, so waiting guarantees a stockout.

The lines behind the POs

StoreStyle-colourWeeklyOn handBaseSold to deliveryAt deliveryCover fcstOrderStatus
S-1141 wk deliveryMug 12 oz, Navy6.61087.03.035.833Order
S-1141 wk deliveryMug 12 oz, White4.0964.34.721.717Order
S-1141 wk deliveryMagnet, Lighthouse20.0302021.38.7108.6100Order
S-1212 wk deliveryMug 12 oz, Navy5.430812.018.032.30Above base stock
S-1212 wk deliveryMug 12 oz, White3.22267.114.919.20Above base stock
S-1212 wk deliveryMagnet, Lighthouse18.0702040.129.9107.70Above base stock
S-1332 wk deliveryMug 12 oz, Navy4.2489.40.025.125Ordersells out Sun 23 May
S-1332 wk deliveryMug 12 oz, White2.4665.30.714.414Order
S-1332 wk deliveryMagnet, Lighthouse14.0201631.20.083.884Ordersells out Wed 26 May
S-1403 wk deliveryMug 12 oz, Navy2.4368.40.015.816Ordersells out Tue 25 May
S-1403 wk deliveryMug 12 oz, White1.6565.60.010.511Ordersells out Sat 5 Jun
S-1403 wk deliveryMagnet, Lighthouse10.0121635.00.065.866Ordersells out Mon 24 May
RELEASE AND MEASURE

From positions to a pick list, and back to the numbers

In Cybex the store/DC distribution app and its simulator share one engine; the direct-to-store PO workbench uses the same forecast, size and site indexes and ABC ranking; the results land on BI insight pages.

1 · DATA Positions: on hand, inbound, min Forecast: rate, share, indexes DC stock and capacity Store transit, cover, limits 2 · ENGINE Arrival and cover window Need by method Priority score Greedy pass, holds with reason 3 · QUEUE AND WAREHOUSE Open distribution lines Pick list printed by store Ship: transfers to stores Hold log, runs waiting 4 · MEASURE In-stock rate Lost units DC capacity used Holds older than a run Feedback: measures change minimums, cover days, capacity and the method, store by store

Reproduce, then improve

An engine earns trust by matching the old list first; every difference must have a reason before the method changes.

Rules you can read

Need, priority and selection are short formulas. A store manager can follow any line from on hand to pick.

Price the extra units

More weeks of forecast ship more units. The Monte Carlo shows what they buy in fewer stockouts, by SKU.

Holds are information

A hold names the limit: DC stock means buy or move stock, capacity means staff the DC, a store limit means space.