Explainer

Building the transfer

What changes if the same decision goes to an optimisation model? Every unit is weighed, carriage is paid per route, and stock is gathered onto the same routes. The model that completes sets does the rule's job better; the free model drifts a long way from a broken-size transfer.

Broken-Size Transfer · 5 / 6

What changes if you hand the same broken-size decision to an optimisation model? That is the question of this article. What we call optimisation is a calculation that weighs the gain and the loss of every possible move on the same scales and looks for the plan with the highest total. The expert’s rule ranked: the best seller receives, the lowest seller sends, and the set either completed or left alone. The model instead works out what each unit is worth from the last article’s forecast, and asks the question the rule does not: is this unit worth more here or over there, and does the difference pay for the lorry?

What a unit is worth

“What does a unit being worth something mean?” says Pelin. “A jacket’s a jacket.”

“Think of the first L going to Istanbul 17,” says Pars. “First there’s a chance it sells at full price. If it doesn’t sell then, it may sell in the markdown. If it doesn’t sell there either, it goes to the outlet and leaves a small residual value. Its worth is the weighted sum of those three.”

The last article’s two forecasts give those chances. Let D1 be the demand in the full-price period and D2 the demand in the markdown period. The worth of the k-th unit in a cell is:

v(k) = full price     × P(D1 ≥ k)
     + markdown price × [P(D1 + D2 ≥ k) − P(D1 ≥ k)]
     + residual       × [1 − P(D1 + D2 ≥ k)]

The more units there are, the lower the chance of selling, and the lower the worth. This works in both directions. At the receiving store the first unit in is the most valuable. At the sending store the first unit out is the cheapest, because it is the unit least likely to sell on the rail; as the stock thins, every unit taken costs more. That is why the model likes to take from a store that holds more stock than its demand.

The scales

The third pan of the scales is cost: picking per unit, carriage per route, and wear as a share of the cost value. Under the medium assumption that is TRY 10, TRY 500 and 5%; the model decides with this assumption. The low assumption is about half of it, the high one almost double. The objective is one line: value gained at the receiving store, minus value lost at the sending store, minus cost. A unit only takes to the road if the value it gains at the receiving store is more than the value it loses at the sending store plus the cost.

The model has its limits too. The candidate receiving stores are the same as the rule’s. Stock goes only into a size below the size ratio, and the receiving store’s final stock does not go above the ratio. A store cannot both send and receive in the same optionThe combination of a model and a colour; the basic product unit for planning and for transfer decisions..

Where it differs from the rule is elsewhere. The rule does not look at cost, takes only from stores whose set is already broken, and lets a store give only once per option. These are sensible choices in the field. The model looks at cost and carries none of these restrictions.

“Breaking a full set?” says Ali. “That was the rule’s most important ban.”

“The model sees it not as a ban but as a cost,” says Pars. “And once it sees the cost, it rarely touches the last unit of a size; it takes from where the stock is thick. The cost of the display isn’t in that sum; we’ll talk about that in the last article.”

A route is paid once

A route is the line between one sending store and one receiving store. The lorry goes once; however many options it carries, the carriage is paid once. So the options cannot be solved one by one; all the season’s options go into one program. If the lorry is going anyway, the second product’s carriage is zero, so the model gathers stock onto the same routes. Once a route is full the sum changes too: small gains that could not pay for the carriage on their own become profitable on the same lorry.

In the winter season the rule carries a median of 1 unit per route, the free model 7 units; the unit and route totals are in the table below. Under the rule 67 stores send stock, in the model 37.

“Close to four times the stock, fewer lorries,” says Veli. “And the number of sending stores almost halves.”

The set condition

The free model does not have to complete a set, and it takes most of its stock from full sets: 90.0% in winter, 82.3% in summer. But it rarely breaks a set; of the 690 sizes it touches in full sets in winter it takes only 4 down to zero, and in the rest it thins out thick stock. This is no longer the job of gathering odd sizes; it drifts a long way from a broken-size transfer.

So we ran a second version, true to the definition of a broken-size transfer: the same scales, with the rule’s two conditions on top. A receiving store is either completed or gets nothing; a sending store can only be one whose set is already broken. We call each competing version an arm; this is the arm the rule is really compared with. The free model shows how far the idea can go; the price of the two conditions in net gain over two seasons is TRY 1.5 million.

There is one more thing we did not expect. In winter the free model sends stock to 757 receiving pairs, that is store and option pairs, and 714 of them end up with a complete set. In the arm with the set condition that number is 328. The model that does not have to complete sets completes more of them.

The reason is very likely supply: the arm that cannot touch stores with full sets cannot find stock to move. But this arm carries the two conditions together and we did not run them separately; from these numbers we cannot tell how expensive each one is.

How close to the optimum

The program is big; trying to solve the whole of it does not finish in a reasonable time. The solution comes in two steps. First the relaxed version of the program: an easy-to-solve version in which a route can be half open. That version’s plan cannot be carried out, but it gives an upper bound that no real plan can beat. Then the real program is solved with only the routes the relaxation opened.

That narrowing can miss the best plan. We know by how much by comparing with the upper bound: the free model is at most 1.3% from the optimum in winter and 1.8% in summer, and the arm with the set condition is about the same. In the other customer streams this distance is at most 2.9%. The distance is in the model’s own sum, that is, judged by the forecast. Judged by the forecast we are close to the best plan; how close we are to the best plan in reality only the referee can say.

The result

The race is set up like this: the same customer stream, the same stock, the same price decisions; the only difference between the arms is the transfer. The baseline is Lumoda, which makes no broken-size transfer. Net means the revenue difference against Lumoda minus the transfer cost.

ArmUnitsRoutesNet (TRY m)
The expert’s rule5493120.0
Optimisation, sets completed1,068325+0.9
Optimisation, free2,117273+2.4
Oracle2,145250+2.4

Units and routes are the winter season’s plan; net is over the two seasons, at medium cost. The oracle is the same model with knowledge of demand and the price path.

Do not look at this table and say “the model beat the rule by 2.4 million”. Most of the rule’s one-unit routes barely pay their carriage; that is the natural result of a rule that does not look at cost. The fair comparison is the first two rows: the model does the same job, completing sets, better. The third row is not the winner of that job; it measures how far you can go once the definition of the job is loosened. And in this world, the only cost of taking stock from a full set is the revenue the sending store loses.

The oracle is slightly ahead of the free model. As we saw in the last article, knowing the demand changes the result little. The free model’s gain very likely comes from the sending side and from the routes filling up; we did not break that down separately.

The table is a single customer stream. We ran four more streams in the same world. The order is the same in all five: the median net over two seasons is TRY 0.04 million for the rule, 0.76 for the arm with the set condition, 2.37 for the free model and 2.44 for the oracle. All of them are ahead of Lumoda in five streams out of five; but the rule’s plus is a small one that barely pays its carriage. The details are in the last article.

Turn the dial yourself

Below you choose a decision rule, a transfer cost and a season. The cards show the net difference, the difference in broken sizes across the whole stock on the last Monday before the markdown, the share of received stock that sells at the receiving store, and the true incremental sales per unit moved. The gap between the last two cards is the subject of the last article.

Put the rule on low cost first, then on high; the net turns negative. The plans do not change with the cost assumption: the rule does not look at cost, and the models were built with the medium assumption; only the cost applied in the measurement changes. The oracle is not on the dial.

Decision rule
Transfer cost
Season
Net difference (TRY m)
0.1
Change in broken sizes
-26
Received units sold (%)
97.1
True incremental sales (%)
19.1
Net difference (TRY m)
0.0
Change in broken sizes
-27
Received units sold (%)
98.8
True incremental sales (%)
16.0
Net difference (TRY m)
0.1
Change in broken sizes
-53
Received units sold (%)
97.8
True incremental sales (%)
17.8
Net difference (TRY m)
0.0
Change in broken sizes
-26
Received units sold (%)
97.1
True incremental sales (%)
19.1
Net difference (TRY m)
0.0
Change in broken sizes
-27
Received units sold (%)
98.8
True incremental sales (%)
16.0
Net difference (TRY m)
0.0
Change in broken sizes
-53
Received units sold (%)
97.8
True incremental sales (%)
17.8
Net difference (TRY m)
-0.1
Change in broken sizes
-26
Received units sold (%)
97.1
True incremental sales (%)
19.1
Net difference (TRY m)
-0.1
Change in broken sizes
-27
Received units sold (%)
98.8
True incremental sales (%)
16.0
Net difference (TRY m)
-0.2
Change in broken sizes
-53
Received units sold (%)
97.8
True incremental sales (%)
17.8
Net difference (TRY m)
0.7
Change in broken sizes
-56
Received units sold (%)
95.4
True incremental sales (%)
52.2
Net difference (TRY m)
0.2
Change in broken sizes
-33
Received units sold (%)
97.4
True incremental sales (%)
49.1
Net difference (TRY m)
1.0
Change in broken sizes
-89
Received units sold (%)
96.2
True incremental sales (%)
51.0
Net difference (TRY m)
0.7
Change in broken sizes
-56
Received units sold (%)
95.4
True incremental sales (%)
52.2
Net difference (TRY m)
0.2
Change in broken sizes
-33
Received units sold (%)
97.4
True incremental sales (%)
49.1
Net difference (TRY m)
0.9
Change in broken sizes
-89
Received units sold (%)
96.2
True incremental sales (%)
51.0
Net difference (TRY m)
0.5
Change in broken sizes
-56
Received units sold (%)
95.4
True incremental sales (%)
52.2
Net difference (TRY m)
0.1
Change in broken sizes
-33
Received units sold (%)
97.4
True incremental sales (%)
49.1
Net difference (TRY m)
0.6
Change in broken sizes
-89
Received units sold (%)
96.2
True incremental sales (%)
51.0
Net difference (TRY m)
1.6
Change in broken sizes
-169
Received units sold (%)
94.9
True incremental sales (%)
68.1
Net difference (TRY m)
0.9
Change in broken sizes
-103
Received units sold (%)
96.1
True incremental sales (%)
51.4
Net difference (TRY m)
2.5
Change in broken sizes
-272
Received units sold (%)
95.4
True incremental sales (%)
60.9
Net difference (TRY m)
1.6
Change in broken sizes
-169
Received units sold (%)
94.9
True incremental sales (%)
68.1
Net difference (TRY m)
0.8
Change in broken sizes
-103
Received units sold (%)
96.1
True incremental sales (%)
51.4
Net difference (TRY m)
2.4
Change in broken sizes
-272
Received units sold (%)
95.4
True incremental sales (%)
60.9
Net difference (TRY m)
1.4
Change in broken sizes
-169
Received units sold (%)
94.9
True incremental sales (%)
68.1
Net difference (TRY m)
0.7
Change in broken sizes
-103
Received units sold (%)
96.1
True incremental sales (%)
51.4
Net difference (TRY m)
2.1
Change in broken sizes
-272
Received units sold (%)
95.4
True incremental sales (%)
60.9

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

What is hard in your own data

The real cost of a route. Here every route has the same price. In a real chain a carton from Diyarbakir to Istanbul does not cost the same as a carton within Istanbul; a carton on a line that is running anyway is almost free, and a line opened on its own is expensive. The model’s route-gathering behaviour depends entirely on that tariff.

The store’s capacity to receive. In the model the receiving store has unlimited rail space and staff to take in what arrives. Dropping dozens of products on one store on the same morning, three weeks before the markdown, is cheap on paper, not in the store.

Staff capacity. The sending store has to pull the size off the rail, count it and pack it. We put picking cost down as one number per unit. In the busy week at the end of the season the real constraint may not be money but the people to do the work. Because the plan comes down to a few stores it looks easy; the model does not know how much load those stores can carry.

The plan’s own loss figure. The model sees the sending store’s loss from the forecast. You have no referee to show that forecast is wrong; on paper the plan always looks good.

We have all the arms. In the last article we put them all on the same table: how far did broken sizes fall, how much turned into sales, and what is the answer to Veli’s question from the first article?

By Sabri Suyunu