Results

How successful replenishment is measured

Days to sale, availability, lost sales, broken sizes. All four are valid measures, but two of them mislead when you look at them on their own. We also look at where the gap that is left against Lumoda's rule at equal stock opens up.

Warehouse to Store · 6 / 6

Over five articles we built a replenishment system and raced it against Lumoda’s current method. Now it is time to give an account: did the system work well?

The question looks innocent, but it is not. The answer changes completely depending on which measure you look at. Of four measures, two, looked at on their own, mislead you in the same direction every time.

Four measures

Days to sale. A unit leaves the warehouse: how many days after reaching the store did it sell? An average over the units sold only. This is the direct counterpart of the series’ core sentence, “send the stock to the store that will sell it fastest”. The shorter it is, the better it looks.

Availability. On what percentage of the days with demand for a size in a store was that size on the rail? This is what the customer sees.

Lost sales rate. Demand that could not be met as a share of total demand. Only the referee sees this. No method uses it when making a decision, because in real life nobody can see it either.

Broken sizesAn option's size set breaking up; its main measure is the net broken-size rate, the number of broken sizes divided by the number of sizes.. Store–option pairs that have stock but have sold out of one of their core sizes. The core sizes are the middle three of a five-size set. This was the whole subject of the Transfer series. We look at the stock at the end of the four months.

The results of the three arms and Lumoda, on the published customer stream and under the same warehouse constraints:

MeasureRuleLightGBM + floorLightGBM onlyLumoda
Availability65.10%65.00%63.21%73.87%
Lost sales38.89%39.35%40.79%30.38%
Days to sale7.5 days7.5 days7.2 days16.5 days
Broken pairs8,3057,8567,5305,887
Store stock at the end of the four months311,819331,606299,711428,097
Picking costTRY 7,673,800TRY 7,606,220TRY 7,493,540TRY 8,617,100

Look at the two rows in bold. Among our three arms, both days to sale and the number of broken pairs make the worst arm, LightGBM only, look the best.

The measure that lies

Remember the definition of a broken pair: a pair that has stock but has sold out of one of its core sizes. A completely empty rail does not count as broken, because there is no stock to count.

Now let us give the same row with its denominator:

RuleLightGBM + floorLightGBM onlyLumoda
Pairs in stock10,37210,3138,85710,002
Empty pairs2,4032,4623,9182,773
Broken pairs8,3057,8567,5305,887
Broken / in stock80.1%76.2%85.0%58.9%

The number of pairs is the same in all four arms; what changes is how many of them are left with stock. Under LightGBM only, 3,918 of the pairs are completely empty at the end of the four months. This arm has few broken pairs not because it protects the size set but because it leaves no rail to measure. Look at the share and the ranking turns upside down: on this stream, 85.0% of its pairs in stock are broken, the most broken of the three arms.

Lumoda’s broken share, on the other hand, is the lowest of the four, 58.9%. We will come back to this below.

Days to sale falls into the same trap. LightGBM only gives the shortest time, 7.2 days. Sending little stock and looking good is easy. There are two more striking examples within the series. In the trial in the third article where we switched packs off altogether, days to sale fell to 1.3 days, and availability to 37.8%. The rule’s stock sells in 7.5 days on average, Lumoda’s in 16.5 days. Yet on availability Lumoda is 8.77 points ahead.

Before you look at a measure, ask who sets its denominator.

The Transfer series had a warning like this too. There we wrote that part of the STR gap came from the selection rule itself. Sending stores were chosen for high cover, so by definition their STR was low. Receiving stores were chosen for being out of stock, so by definition their STR was high. The same mistake in another guise.

So which one is right?

There is no single right measure, and that is normal. But there is an order.

Availability and lost sales first. These measure what the customer goes through, and their denominator is demand, that is, the customer. The method cannot choose the denominator. They have one problem: both require knowing about the customer who came in while the rail was empty and left. In a real chain you cannot measure that directly; you have to estimate it. That is exactly what the Lost Sales series was about.

Then the cost. Stock carried in the stores, picking, shipping. You can almost always push availability up with more stock. The real question is how much availability you get for the same stock.

Efficiency measures last. Days to sale, broken sizes, STRSTR; the percentage of the stock a store received that has sold. In fashion retail the figure that matters is the part sold at full price.. They are very valuable for diagnosis but dangerous used as a report card. Each of them can be made to look good by playing with its denominator.

Looked at in this order, the table becomes clear. Lumoda’s rule serves the most customers, and to do it carries the most stock: its store stock is 37.3% higher than the rule’s. The rule and LightGBM + floor are neck and neck, but LightGBM + floor gets the same result with more stock. LightGBM only is the cheapest, but it is also the one that most often greets the customer with an empty rail.

Where is the gap to Lumoda?

In the fourth article we compared the rule with Lumoda’s rule on the availability–stock curve. Raising the floor and giving the rule as much stock as Lumoda closed 5.45 points of the 8.77-point gap. The gap left at Lumoda’s stock level was 3.32 points. I said I would look at where that gap opens up.

For this we compare Lumoda with the rule closest to it in stock, the rule whose floor is 21 days’ sales. At the end of the four months this rule’s stores hold 419,696 units, Lumoda’s 428,097. The availability gap is 3.43 points. In this section, when I say “the rule” I mean this rule with the 21-day floor. We split the gap across groups of demand. A group’s contribution is the availability gap in that group times the group’s weight. The weight is the group’s share of all the days with demand for a size in a store:

GroupContribution (points)
NOS and Basic+3.284
Replenishment of products launched within the four months+0.062
The rest of Collection, and Outlet+0.092
Total+3.438

The small difference between the total and 3.43 is rounding.

Almost all of the gap is in NOS and Basic, that is, the continuously fed products. Of that, +2.595 points fall in the second half of the four months. Let us look at Basic: in the first nine weeks availability is 89.12% at Lumoda and 86.56% under the rule. In the last nine weeks, 73.41% against 63.12%.

Split by week, the same thing shows. In the first two weeks the rule is a touch ahead, with weekly contributions of −0.050 and −0.045 points. From the third week the gap opens in Lumoda’s favour and grows as the four months go on. Black Friday week contributes +0.352 points.

Let us take the suspects one by one.

Is the warehouse empty? No. In the Lumoda arm the warehouse holds 872,902 units of NOS and Basic on an average Monday morning in the second half. The share of SKUs with zero stock is 0.16%.

Can the warehouse not get the stock out? In both arms the loose picking cap is full every week. Both pick the same number of eaches over the four months: 464,868. The pack counts are close too: 198,421 at Lumoda, 193,637 under the rule. Both arms run into the same limit and draw similar amounts of stock from the warehouse.

Is it the new products? That was the first thing that came to Pelin’s mind:

“The plan knows about a new product,” says Pelin. “The rule only gets to know a product once it has started selling.”

But a new product’s first delivery to a store, the initial allocation, is Lumoda’s in every arm. The arms differ only in what comes after: replenishment. In the first two weeks after launch of the products that went on the rail within the four months, availability is 92.12% at Lumoda and 91.95% under the rule. Their replenishment’s contribution to the gap is in the table too: 0.062 points. The replenishment of new products does not explain the gap. If the plan’s knowing about new products makes a difference to the first delivery, this comparison cannot measure it, because the first delivery is the same in both arms.

What is left? There is one candidate, but we did not measure it. The two methods split stock across sizes in different ways. Lumoda’s request comes size by size: from the number the plan writes for that size in that store for the next four weeks. The rule, on the other hand, builds the target at store–option level and splits it by the store’s past size shares. The numbers do not contradict this candidate. At the end of the four months, 5,887 of Lumoda’s 10,002 pairs in stock (58.9%) are broken, and under the rule 7,470 of 10,744 (69.5%). Empty pairs: 2,773 at Lumoda, 2,031 under the rule. Lumoda has more empty pairs, but the gap in broken pairs is bigger than the gap in empty pairs; Lumoda’s low broken share does not come from the denominator alone. In Basic’s core sizes availability is 81.24% against 74.38%, in its edge sizes 82.32% against 77.01%; the gap is a little bigger in the core.

But not contradicting is not proof. Pars’s warning is well placed:

“Don’t make a lesson out of a candidate by looking at numbers. Measure it, then talk.”

So I am leaving the cause of the remaining 3.32 points open in this series. And that is exactly the hard question in your data too: if your current rule and a new one part ways at the same stock, which products, which weeks and which sizes does the gap open up in? To answer that, you need to be able to compare the two methods on the same customer stream.

Turn the dial yourself

The dial below brings three things together: the warehouse’s seasonal buy (40%, 70% or 100% of the demand forecast), the need calculation (rule, LightGBM + floor, LightGBM only) and the loose picking cap. The cap has three positions: tight (0.6 times the reference, 15,495 units a week), loose (1.6 times, 41,321 units a week) and unconstrained (neither a cap nor a pack requirement). The reference cap is not on the dial. Every number comes from real runs on the published customer stream. When the page opens they are all ready; nothing is calculated in the browser.

The dial shows six measures: availability, lost sales, days to sale, closing store stock, picking cost and the broken share of pairs in stock.

DC buy (% of the demand forecast)
Need calculation
Loose picking cap
Availability (%)
55.7
Lost sales (%)
48.8
Days to sale
3.4
Closing store stock
44,177
Picking cost (TRY)
14,458,920
Broken share of stocked pairs (%)
80.6
Availability (%)
56.9
Lost sales (%)
47.2
Days to sale
5.9
Closing store stock
158,695
Picking cost (TRY)
9,789,900
Broken share of stocked pairs (%)
82.6
Availability (%)
52.5
Lost sales (%)
52
Days to sale
8
Closing store stock
112,161
Picking cost (TRY)
6,091,720
Broken share of stocked pairs (%)
86.4
Availability (%)
55.7
Lost sales (%)
49.2
Days to sale
3.2
Closing store stock
46,832
Picking cost (TRY)
14,091,530
Broken share of stocked pairs (%)
78.6
Availability (%)
56.6
Lost sales (%)
47.7
Days to sale
5.8
Closing store stock
155,261
Picking cost (TRY)
9,723,550
Broken share of stocked pairs (%)
85
Availability (%)
52.9
Lost sales (%)
51.9
Days to sale
8
Closing store stock
114,779
Picking cost (TRY)
6,066,790
Broken share of stocked pairs (%)
86.7
Availability (%)
55.2
Lost sales (%)
49.5
Days to sale
3.2
Closing store stock
44,797
Picking cost (TRY)
13,977,100
Broken share of stocked pairs (%)
81.9
Availability (%)
55.8
Lost sales (%)
48.1
Days to sale
5.8
Closing store stock
167,616
Picking cost (TRY)
9,647,570
Broken share of stocked pairs (%)
78.8
Availability (%)
51.8
Lost sales (%)
52.7
Days to sale
8
Closing store stock
113,000
Picking cost (TRY)
5,958,750
Broken share of stocked pairs (%)
85.9
Availability (%)
62.2
Lost sales (%)
42.3
Days to sale
3.4
Closing store stock
104,191
Picking cost (TRY)
14,688,850
Broken share of stocked pairs (%)
77.3
Availability (%)
62.8
Lost sales (%)
41.1
Days to sale
5.9
Closing store stock
218,934
Picking cost (TRY)
9,804,320
Broken share of stocked pairs (%)
81.1
Availability (%)
58.1
Lost sales (%)
46.3
Days to sale
8.1
Closing store stock
172,387
Picking cost (TRY)
6,087,480
Broken share of stocked pairs (%)
84.8
Availability (%)
62
Lost sales (%)
43
Days to sale
3.3
Closing store stock
95,301
Picking cost (TRY)
14,252,130
Broken share of stocked pairs (%)
80.2
Availability (%)
62.6
Lost sales (%)
41.8
Days to sale
5.8
Closing store stock
210,699
Picking cost (TRY)
9,767,140
Broken share of stocked pairs (%)
83.8
Availability (%)
58.4
Lost sales (%)
46.4
Days to sale
8.4
Closing store stock
176,973
Picking cost (TRY)
6,062,520
Broken share of stocked pairs (%)
84.8
Availability (%)
61.3
Lost sales (%)
43.3
Days to sale
3.2
Closing store stock
91,447
Picking cost (TRY)
14,092,370
Broken share of stocked pairs (%)
85.5
Availability (%)
61.9
Lost sales (%)
42
Days to sale
5.7
Closing store stock
245,615
Picking cost (TRY)
9,616,360
Broken share of stocked pairs (%)
71.9
Availability (%)
57.1
Lost sales (%)
47.2
Days to sale
8.4
Closing store stock
176,636
Picking cost (TRY)
5,974,760
Broken share of stocked pairs (%)
85.1
Availability (%)
66.7
Lost sales (%)
37.3
Days to sale
3.4
Closing store stock
211,033
Picking cost (TRY)
14,763,840
Broken share of stocked pairs (%)
72.5
Availability (%)
66.4
Lost sales (%)
37.2
Days to sale
5.8
Closing store stock
320,962
Picking cost (TRY)
9,726,090
Broken share of stocked pairs (%)
78.1
Availability (%)
62
Lost sales (%)
42.2
Days to sale
8.1
Closing store stock
280,162
Picking cost (TRY)
6,046,020
Broken share of stocked pairs (%)
80.8
Availability (%)
67.5
Lost sales (%)
37
Days to sale
3.5
Closing store stock
203,767
Picking cost (TRY)
14,930,540
Broken share of stocked pairs (%)
75.4
Availability (%)
65.2
Lost sales (%)
39
Days to sale
5.5
Closing store stock
299,458
Picking cost (TRY)
9,578,000
Broken share of stocked pairs (%)
80.5
Availability (%)
62.1
Lost sales (%)
42.5
Days to sale
8.2
Closing store stock
281,963
Picking cost (TRY)
5,985,500
Broken share of stocked pairs (%)
80.6
Availability (%)
65.3
Lost sales (%)
39.1
Days to sale
3
Closing store stock
219,994
Picking cost (TRY)
13,995,820
Broken share of stocked pairs (%)
70.3
Availability (%)
63.9
Lost sales (%)
39.9
Days to sale
5.1
Closing store stock
286,424
Picking cost (TRY)
9,461,220
Broken share of stocked pairs (%)
82.5
Availability (%)
60.8
Lost sales (%)
43.4
Days to sale
8.1
Closing store stock
282,054
Picking cost (TRY)
5,905,460
Broken share of stocked pairs (%)
80.6

Every combination came with the page; nothing is fetched from a server.

While you play with the dial, watch this. The buy moves things most: under the rule, raising the buy from 40% to 100% lifts availability by 9.5 to 11.0 points, depending on the position of the cap. The dial does not show a line breakdown, but we looked at the same runs line by line. The rise comes from Collection and Outlet: 22.6 to 27.9 points in Collection. In NOS and Basic it is under a point. The lesson of the second article holds on the dial too.

Then comes the cap. With the buy at 100%, opening the cap from tight to loose under the rule brings 4.4 points.

The method moves things least. With the buy at 100% and the cap loose, the gap between the three methods is 2.5 points, and less in every other position. In the position with no warehouse constraint (buy at 100%, unconstrained), LightGBM + floor beats the rule by 0.8 points; with the cap loose, the rule is 1.2 points ahead. This was measured on a single customer stream and the gaps are around a point; I am not drawing a lesson from it.

You will see one more thing: with the buy at 40% and 70%, the unconstrained position gives lower availability than the loose cap. It does under all three methods. With the buy at 40% the gap is 1.2 points under the rule, 0.9 under LightGBM + floor and 0.6 under LightGBM only; with the buy at 70%, 0.6 points under all three. We did not measure the reason separately.

The broken share on the dial is worked out over pairs in stock only; it does not show empty pairs. The warning from the denominator table above holds on the dial too.

And do not get hung up on the picking cost of the unconstrained position: there all stock is counted as eaches, so the cost is high by definition.

Where does this model fall short?

The honesty list, all in one place.

No method sees lost sales directly. The correction of dividing by in-stock days closes part of the gap, but on the first 17 Mondays the rule’s target stayed at 83.7% of real demand. On a pair that is out of stock for a long time there is not even an in-stock day left to measure.

The warehouse is our assumption. How much stock is in packs and how much loose, the weekly loose picking cap and the picking costs (TRY 10 an each, TRY 20 a pack) do not come from the data. We took the cap as a quarter of the replenishment units Lumoda sent in an average week, in the same season a year earlier. The dial shows the effect of the cap, not of the cost assumptions; we worked that out separately in the third article. Read these as assumptions, not hard numbers.

There is scarcity. At the reference point the loose picking cap was full in 17 of the 18 weeks. With the same constraints and the buy at 40%, 41.7% of unmet demand falls on days when the warehouse was empty in that SKU. Even so, the rationing priority never made more than a point of difference. In another chain, with another kind of scarcity, it might.

The special-day factor is a single number per category. We separated holidays from Black Friday, but we treated every holiday alike. On the shop floor every special day has a character of its own.

We did not measure Lumoda’s plan. Lumoda’s rule rests on Pelin’s plan. We did not measure how accurate the plan is. If your plan’s accuracy differs from Lumoda’s, your baseline will come out different too.

One chain, four months of one season. We repeated the main comparisons on five different customer streams: Lumoda’s rule is ahead in all five, and the effect of the policy points the same way in all five. The dial, the cap sweep and the diagnosis come from the published stream only. All of it is the same four months of the same chain. Another product mix or another store network might give other results.

The question we started with

Ali and Veli were fighting over the same warehouse line, and they were both right. What Pars told them was: that’s not the real issue.

Six articles on, we can see how wide that sentence was. In this series we too went looking for the real issue in the wrong place more than once. We measured the rationing rule: even with scarcity the gap between priorities stayed under a point, 0.43 with the buy at 100% and 0.88 points with the buy at 40%. We took the pack for a constraint: switching it off dropped availability by 27.3 points, and it turned out to be the capacity itself. We raced machine learning against the rule-based method: the model was ahead on the forecast, but the policy moved the result more; on the lost sales rate, the effect of the policy was 2.09 times that of the forecast. We raced Lumoda’s rule: most of the gap came not from the method’s sums but from how much stock was carried.

The lesson from the race with Lumoda is this: take your current rule as the baseline. Compare a new method with it not on a single number but at the same stock level.

One question was also left open. With the same stock, why is Lumoda’s rule ahead? The gap opens up in the continuously fed products and as the four months go on. We do not know why, and I am writing that down just as it is.

Replenishment is not a hard problem. How complex it gets is decided by your experience. In this series we made it more complex than it needed to be, once, on purpose: LightGBM won on the forecast and did not improve the result. But experience is not only choosing how complex to go. Knowing where you do not need to look is experience too.

The next problem is the RPT: the repeat order placed with the supplier, which we left out of scope in this series. There the question will not be “where do I send the stock” but “should I have this product made one more time”.

By Sabri Suyunu