Requirements
What it is
Clarify:
- goal: less waste of fresh food and fewer stock-outs, together;
- scale: 400 stores × 50,000 products ≈ 20,000,000 series; forecasts for each of the next 7 days;
- timing: every night, finished by 4 a.m. so purchase orders reach suppliers;
- users: the replenishment system orders automatically; category managers review exceptions;
- hard parts: perishables, promotions, festivals, new products and new stores, and slow sellers that sell zero most days.
Why it matters
This is a batch problem with a strict deadline, unlike the online designs.
- Latency per forecast hardly matters; total job time does.
- The forecast feeds a decision (how much to order), and the cost of error differs by product.
In the real world: Grocery and quick-commerce companies forecast at store × product × day, and often at finer time slots for fresh items.
Treating it as one forecast per product nationally. Stock is held per store; a national forecast cannot say how many packs to send to each store.