Convect AI

Food & beverage scheduling: shelf life, allergens and the cost of a bad sequence

Food plants live with constraints discrete manufacturers rarely face. Four of the hardest — and how to turn them into something a solver and an agent can work with.

Oct 8, 20266 min readConvect AI

Food and beverage plants live with constraints that most discrete manufacturers rarely face. Products expire. Changeovers depend on what ran before. Demand swings with the seasons and the promotional calendar. And every batch has to be traceable from ingredient to shelf.

These constraints are “softer” and more intertwined than a typical machine-capacity problem, which is why so many food plants still schedule in spreadsheets even after buying an APS. Here are the four hardest — and how to turn each into something an optimizer and a planning agent can actually work with.

1. Shelf life is a chain, not a date

Ingredients expire. Finished goods expire. And retailers increasingly enforce a minimum remaining shelf life on arrival — often two-thirds or more. That makes shelf life a chain constraint:

ingredient shelf life → production window → finished-goods shelf life → shipping window → customer’s minimum remaining life

Miss any link and the latest start time is wrong. Schedule too early and the product arrives with too little life; too late and the ingredients expire first. Modeled as a chain in the ontology, the optimizer computes a feasible window for every batch automatically and respects FEFO across the network.

2. Changeovers depend on the sequence — and allergens raise the stakes

CIP and allergen cleans commonly consume 15–20% of available line time. And the time isn’t fixed: going from whole milk to low-fat milk might need no clean at all, while going from a nut-containing product to anything else needs a full allergen clean and validation.

The right representation is a changeover matrix — product A to product B, with clean time and allergen class. Given that matrix, the optimizer can group compatible products and order them so that the expensive cleans happen as rarely as possible, without violating due dates or shelf-life windows. In one illustrative example on a single filler, resequencing the same day’s products cut cleans from four to two and finished about two hours earlier.

3. Seasonality makes capacity a planning problem, not just a scheduling problem

Ice cream, beverages, holiday products: peak season runs out of capacity while the off-season sits idle. The answer isn’t a better weekly schedule — it’s deciding months ahead how to pre-build, which lines to convert, and where to reserve capacity.

That requires connecting three layers of planning that are often run in three different tools:

  • Strategic (annual / quarterly): capacity, network and sourcing decisions.
  • Tactical (monthly / weekly): master production schedule, materials and deployment.
  • Operational (daily / shift): line sequencing, batches and replanning.

When all three come from one model, each layer constrains the one below it, and execution feedback flows back up. That’s how Yili cut master planning from five days to half a day and found 5% more capacity without new investment.

4. Traceability has to be built into the schedule

Food safety rules — from HACCP-based programs to the FDA’s FSMA Section 204 traceability requirements in the US — mean every batch must be linked to its ingredient lots and its customer shipments. If the schedule doesn’t carry lot information, traceability becomes a manual reconciliation exercise after the fact.

In the ontology, lots are entities like any other: ingredient lot → production batch → finished lot → shipment. Every scheduled batch is bound to the lots it consumes, so a recall query is a graph traversal, not a week of spreadsheet archaeology.

Where agents make the difference

Once these constraints are in the model, planning agents can handle the daily disruptions that food plants know too well:

  • A raw-material delivery arrives short. The agent reallocates supply across plants and SKUs by margin and freshness, then resequences fillers to protect key customers.
  • A retailer pulls a promotion forward. The demand sensing agent re-forecasts the lift and triggers a replan that still respects remaining-shelf-life rules.
  • An SKU is short in one region. The root-cause agent traces the gap back through deployment, filler capacity and an allergen clean — and proposes a fix.

Each recommendation comes with its reasoning and goes to a planner for approval, inside the limits you set.

Learn more about our food & beverage solution, read the Yili story, or book a demo.