Problem
A coke plant ships most of its output by rail. The Russian Railways tariff per ton-kilometer falls as railcar capacity grows, and the final cost also depends on rolling-stock fees, idle-time fines and discounts for trains of 71 railcars sent to one consignee. Staff who picked railcars by hand looked only at technical suitability, since they had no cost data. At the plant's volumes, even a small cost gain is worth tens of millions of rubles a year.
Example from the article: Altai-Koks ships 90% of its coke over 3000 km and 10% over 100 to 500 km, so sending large railcars far and small ones near saves money.
Solution in brief
A greedy algorithm for a knapsack-type problem pairs the farthest consignees with the largest railcars and the nearest with the smallest. Missing tariffs are filled by linear approximation. The service is called from the existing transport system when a sorting sheet is printed, so staff always see its recommendations, and a dashboard tracks how often they follow them.
Questions this case answers
- How to assign a limited pool of heterogeneous resources to demands so that unit cost falls, when the real cost table is incomplete and physical constraints appear only after launch
- How to make people on the shop floor follow an algorithmic recommendation, and how to measure the share of cases where they do
- How to decide which railcar goes to which destination to cut freight cost when tariffs depend on load capacity and distance
- How to fill gaps in a tariff table when prices are known for only a few cargo weights
Tools and methods
- Greedy algorithm — assigns railcars to the shipment plan, sorted by distance and railcar volume
- Knapsack problem — the framing of the load-assignment task
- Linear regression — predicts the 52-ton tariff from the 47-ton tariff and distance
- Grafana — dashboard of recommendation adoption
- OpenShift — hosts the service
Google or a one-time email code. No password.