← Back to homepage

Bake-Ops — the vacation problem

A bakery is about to close for two weeks. Everything on the shelf keeps selling until the door shuts, then nothing gets made until it opens again. What has to come out of the oven first — and how much? Move the sliders.

5days
Last bake: Sat, Aug 29
14days
Back open: Sat, Sep 12
Before you close, bake
659 units
32 would run dry if you baked nothing
121 batches across 3 tiers
Mini 76 batches · 532 units
56Plainreturn floor
49Pineapplereturn floor
49Guavareturn floor
42Vanilla Pecanreturn floor
35Red Velvetreturn floor
35Applereturn floor
35Pistachioreturn floor
35Coconutreturn floor
35Double Chocolatereturn floor
28Lemonreturn floor
28Rum Raisinreturn floor
28Espressoreturn floor
28Chocolate Chipreturn floor
28Banana Nutreturn floor
21Blueberryreturn floor
Medium 41 batches · 123 units
18Plainreturn floor
15Vanilla Pecanreturn floor
15Double Chocolatereturn floor
12Pineapplereturn floor
12Guavareturn floor
9Red Velvetreturn floor
9Pistachioreturn floor
9Coconutreturn floor
6Lemonreturn floor
6Applereturn floor
6Chocolate Chipreturn floor
6Banana Nutreturn floor
Large 4 batches · 4 units
2Vanilla Pecanwould run dry
1Pineapplewould run dry
1Guavawould run dry
todayclose · day 5reopen · day 19
PlainLarge
dry, day 0
out
CoconutLarge
dry, day 0
out
CoconutMedium
dry, day 2
out
LemonMini
dry, day 2
out
Rum RaisinMini
dry, day 2
out
Double ChocolateMini
dry, day 2
out
AppleMini
dry, day 2
out
Red VelvetMedium
dry, day 2
out
Chocolate ChipMini
dry, day 2
out

Bake nothing and 32 lines hit zero before you reopen — the earliest on day 0.

The rule: bake enough to do two things at once — don’t run out while the doors are shut, and come back to at least half of each flavor’s floor. Whichever need is larger sets the bake, rounded up to a whole batch. Reopening to an empty shelf is its own failure: you have nothing to sell while the first batch cures.

Working model of a live system. The arithmetic is lifted from bake_forecast() on the bakery’s Raspberry Pi, unchanged — including the two-block recency weighting where the last 14 days count double, the half-unit deadband, and lines with no measurable demand dropping out entirely rather than showing as zero. The sales history, stock levels and floors here are synthetic. Real product velocities are commercially revealing and stay on the Pi.