Deterministic analysis6 min read

What should the bakery make tomorrow?

Build a bakery production plan around batches, ingredient limits, oven time and demand, then see which change would make the biggest difference.

At closing time, the bakery owner has tomorrow’s preorders, a partial bag of flour and a few open hours on the oven. Another batch of rolls could sell out before lunch. Making it might also use the flour needed for the loaves with the better margin. The owner needs to decide which mix earns the most after paying for what goes into each batch.

A deterministic model holds the inputs fixed for one run. Give it the same prices, sales limits, recipes and oven hours and it compares the same set of batch plans. Then change the inputs deliberately to see what you would bake on a different morning. The same method works wherever several products compete for a shared resource.

Give every batch a cost and a limit

Start with the smallest run your team will actually make. If a dough recipe yields 24 rolls and the mixer works poorly below that size, one run is 24 rolls. Estimate its contribution by subtracting ingredients, packaging and other variable costs from the sales revenue expected from that run. Rent stays the same whichever mix you choose tomorrow. If a particular plan requires an extra shift or supplier trip, include that cost when you compare it with the alternatives.

Each product also needs a realistic sales limit. Use confirmed orders as minimum commitments and use recent comparable days to set an upper bound for walk-in sales. If a product routinely sells out by noon, the register records the units you sold. Customers who came after the shelf emptied leave no transaction. Check the baker’s notes and preorder history before using that sales count as a ceiling.

Record flour in kilograms and oven use in minutes. Measure oven time at the run size you intend to model. If trays genuinely share an oven at the same temperature and on the same cycle, treat that combination as a possible run. If decks operate independently, track their minutes separately. Verify both cases with the baker before using them to calculate capacity.

Compare whole batches

Here is an illustrative morning with 14 kilograms of available flour and 180 minutes in a single oven. The bakery can sell up to four batches of either product, and its preorders have already been allocated. Each additional batch uses the flour and oven time shown below. For this example, each batch sells in full at the assumed price, so the only decisions are how many of each to bake.

Two batches of seeded loaves and two of rolls use all 14 kilograms and 160 oven minutes. They contribute $174. A mix of three loaf batches and one roll batch would contribute $183, but it would need 15 kilograms. Within the stated limits, listing the possible whole-batch combinations shows that $174 is the best feasible contribution. Given the recipe sizes, fractional batches would be unusable on the production sheet.

A two-product decision like this can fit in a spreadsheet with one row for each combination. A shop with dozens of products can use integer linear programming to search the same type of choices. The model multiplies each batch count by the resources it consumes, then adds those amounts and checks them against capacity. It uses the same calculation with contribution per batch to rank every feasible mix. That makes it easy to explain which limit ruled out a seemingly better plan.

Illustrative batch inputs
ProductFlourOven timeContribution
Seeded loaves4 kg45 min$48
Rolls3 kg35 min$39

Figures are per additional batch and assume those units sell. Two batches of each produce $174 in modeled contribution.

Find the constraint worth spending money on

Change one assumption at a time so you can see what moves the decision. In the example, another 30 minutes of oven time changes nothing because the bakery has already used all of its flour. With two more kilograms and the original three hours, four batches of seeded loaves fit and contribute $192. That is $18 more in modeled contribution after normal ingredient costs. If a special flour delivery would add more than $18 beyond those costs, widening the flour limit would make this plan less attractive than keeping the original mix.

The recommendation can swing the other way too. If the oven is available for only 140 minutes, four batches of rolls contribute $156 and fit the reduced window. That gives the manager a fallback for a shorter oven window. If sales estimates fall, rerun with lower sales limits. If leftover rolls can be sold at a discount, account for the lower revenue on those units and the full cost of producing them.

Report the different answers side by side with the limits visible. When two plans are nearly tied, bring up timing and flexibility. Twenty unused minutes may absorb an oven delay or leave time for the team to change the next run. A bakery can choose the steadier morning with a clear view of the likely tradeoff.

Turn tomorrow’s mix into a plan the baker can run

A list of batch counts still needs a production sequence. Check dough rest, proofing, cooling, packing and promised pickup times with the baker. A mix can fit on paper and miss an 8 a.m. collection if the first trays go into the oven too late. When timing drives the decision every day, the next version should schedule tasks by time and check which staff and equipment each task needs.

Before using the model to set tomorrow’s work, replay it against a few recent service days. Ask the baker to flag any plan they could never have run, then trace that problem to a missing limit or an inaccurate input. The first live trial can use one product group, with a simple log for units baked, units sold, waste and any changes the team made that morning.

How MeepHub would build your batch plan

We’d start with one location and one recurring production decision. Your team supplies recipes, batch sizes, recent sales and preorders, equipment limits and the costs that vary with production. Together we’d pick the products that compete for the same ingredients or time on the oven. A short walk-through with the baker helps us see which of those limits change by day.

We’d build a plan your team can update when a delivery is late or preorders are heavier than usual. At handoff, we’d compare it against a familiar production day and show how to handle a new scenario. A second location or a multi-stage schedule can follow when the first model is working in the shop.

What you receive

  • Editable batch-planning model with a record of its assumptions
  • Recommended mix and fallback plans for shorter runs or higher demand
  • Simple production and waste log for the first trial
Email MeepHub

Diana Sirmayunie Mohd Nasir, Nur Najihah Hamdan, Nur Hayati Shafii and Nor Azriani Mohamad Nor · Journal of Computing Research and Innovation · 2022

A Comparison of Linear and Integer Linear Programming for the Profit Optimization in Bakery Production: A Case Study at Temptlicious Enterprise

The researchers compared continuous and whole-batch models for a bakery making several sizes of pavlova and examined how changes in inputs affected the recommended mix.