Back to Insights Manufacturing Technology

AI scheduling for flexible manufacturing lines

Rohan Mehta

Changeover cost comes from stopping shared equipment, cleaning it, and resetting it before the next formula can run. From my engineering perspective at Leumas, that interruption is the core scheduling problem on a flexible supplement line. A single formula may run for hours, but moving to a second formula adds setup work, cleaning, and another production constraint.

When a small supplement brand needs three SKUs in one month, it is effectively paying for three changeover cycles, three batch record setups, and three rounds of finished-goods testing. At low volumes, those fixed activities can matter more than the time spent actually filling capsules. The same pattern appears whether the queue contains 500 units or a larger production batch.

Why changeover cost is the real constraint

Machine capacity is rarely the limiting factor for small-batch supplement work. The harder constraint is the time required to move between formulas and the schedule decisions surrounding that move. A line can be available while the queue remains delayed because the next batch needs a different cleaning and setup sequence.

On a traditionally scheduled line, every brand batch is treated as a separate job. The scheduler assigns a slot from priority and availability, but may not account for whether neighboring batches use compatible ingredients or the same dosage form. The result can be repeated cleaning work between otherwise related jobs, even when grouping them would reduce disruption.

Sequencing research in pharmaceutical and food manufacturing frames this as a job-shop scheduling problem. The important point is that total queue cost depends heavily on which batch follows which. A schedule with the same jobs can require very different effort when 2 adjacent batches need different cleaning procedures instead of sharing a compatible setup.

What the scheduling algorithm actually optimizes

For a flexible supplement line, the scheduling objective has three parts: reduce changeover cost, use equipment effectively, and meet delivery timelines. These goals can conflict. A sequence that minimizes cleaning may not be the best choice when a batch has a firm delivery window, so the scheduler weighs the queue rather than optimizing one measure in isolation.

The changeover cost between adjacent batches depends on ingredient compatibility and cleaning requirements. Moving from a botanical blend to a whey protein may require more intensive cleaning than moving between two compatible dry powder blends. The schedule therefore treats the transition itself as a cost, not just the runtime of each batch.

Ingredient compatibility adds another layer. Some formulas cannot follow one another without a full facility cleaning because residual carry-over, even at trace levels, could create a contamination concern. Those transitions are kept apart in the sequence, while compatible batches can be considered for the same production window.

Sequencing logic and ingredient groupings

In practice, we first group batches by ingredient family and dosage-form compatibility, then optimize their order. Hard capsule fills made from dry powder blends can often follow one another with less changeover work when the ingredients and cleaning requirements align. The scheduler uses those relationships before assigning the wider queue.

Softgel batches are handled separately from hard capsule batches because their equipment and cleaning requirements differ fundamentally. The scheduler does not try to mix both types within the same sequence simply to fill an open slot. Keeping the equipment context clear prevents a nominally efficient plan from creating avoidable operational work.

The practical result is that a brand submitting three capsule SKUs for one month may have all three placed within one multi-batch window. The changeover burden is then shared across compatible work rather than assigned independently to each SKU. For a small run, that distinction can materially affect the effective production cost.

Limits of automated scheduling

Scheduling optimization does not eliminate changeover. It minimizes unnecessary cleaning and setup by grouping compatible batches. An algorithm can produce a technically efficient sequence that is still impractical if two batches require the same resource, a particular operator decision, or a timing adjustment that the queue data does not capture.

Scheduling also cannot correct formula instability. A formula containing moisture-sensitive ingredients may need closer in-process attention when the production environment is humid. If fill weight moves outside the expected range, the batch may need a longer review or a revised plan, regardless of how efficiently the original queue was arranged.

We describe the benefit as an average reduction in changeover cost across a queue, not as zero changeover between every pair of batches. A brand with narrow delivery windows or inflexible sequencing requirements may still need a higher-cost plan. The schedule has to respect those constraints instead of hiding them.

What this means for batch pricing

At small volumes, scheduling efficiency shows up directly in per-unit cost. When setup time is shared across a compatible batch group rather than charged to one brand, the effective cost per unit can fall. That matters for a 500-unit pilot, where a fixed changeover can represent a larger share of the run than it would for a 2,000-unit production batch.

For brands comparing CDMOs on price alone, the comparison is incomplete without asking how the production queue is built. A lower quoted unit rate from a single-line setup may conceal repeated changeover charges, while a slightly different quote may reflect shared scheduling across compatible work. At Leumas, we review those trade-offs with the batch plan rather than treating price as a standalone number.

Ready to Start

Start a batch quote

Submit your formula specification and the Leumas production team will respond within 3 business days with a formal quote.