Problem
A print shop has about a hundred machines and a hundred and fifty certified workers on two shifts. Each order has its own route of active operations (printing, cutting) and passive ones (drying). Every active operation needs a free machine and a certified worker in the same shift, and the order must end by its promised date. Hundreds of orders are planned weeks ahead, rebuilt every fifteen minutes. The first planner placed orders one by one and never revisited them. Orders ran late in the plan even with idle machines, and nobody knew whether a better plan existed.
Example from the article: on a test set of 15 orders the planner got 8 on time, the exact model all 15.
Solution in brief
A greedy planner in three layers (queue, order, operation) is debugged by three checks: data capacity, one bad case traced by hand, and an exact CP-SAT model of a small set. A search then reruns the layers with reordered queues. The exact model stays a debugging tool.
Questions this case answers
- How to build a constructive scheduling heuristic for jobs that need two scarce resources at once, when an exact model is too slow to rerun every few minutes
- How to tell whether late jobs are caused by the algorithm or by insufficient resource capacity in the input data
- How to measure the gap between a heuristic schedule and the best possible one when the exact model does not scale to production
- How to build a production schedule when every order needs a free machine and a certified worker in the same shift?
Tools and methods
- Greedy constructive heuristic — three layers: queue order, backward placement from the deadline, machine and worker choice.
- ATC priority rule — sorts the queue by urgency and weight per hour of work.
- Queue search — reruns the layers with late orders moved forward, keeps the best plan.
- CP-SAT (OR-Tools) — exact model of a small set, shows where the heuristic loses.
Google or a one-time email code. No password.
