On Volvo CarsOn Volvo’s fully automatedrsquo; fully automated engine machining line, two overhead cranes share one rail and move engine bodies back and forth between machines. A greedy dispatch rule either deadlocks them or starves one of work. A discrete-event simulation, a deadlock-free dispatcher and a mixed-integer model of the crane decisions shortened the machining process by up to 15%.
ContextVolvo Cars · automated engine machining line
ResultMachining process shortened by up to 15%, with no more cranes, rail or machines.
Stakeholder engagement · business problem
Two cranes, one rail, and a machining line waiting on both
Volvo Cars · a fully automated engine machining line.
On a fully automated machining line, engine bodies move between machines on two overhead cranes that share one
runway rail. The cranes work back and forth all shift, and they cannot pass each other. Every minute a machine waits
for a crane is machining capacity lost — so the question was not whether the cranes could be scheduled, but how
to make each crane decision so the line keeps moving.
Diagnostic analysis
Two ways a shared rail fails
The non-crossing constraint turns a simple dispatch rule into a trap.
At every moment the left crane must stay left of the right one: positionC1(t) < positionC2(t).
Standard greedy dispatching fails in one of two ways:
Physical deadlock. Both cranes accept overlapping jobs, meet in the middle loaded and facing each
other, and freeze — and a frozen pair halts the whole bay.
Starvation. A dispatcher made cautious to avoid deadlock reserves huge safety zones for one crane
while the other sits idle, and the job queue backs up anyway.
Predictive modelling · simulation
A discrete-event testbed you can watch
Salabim for the simulation engine, Pygame for a 60 FPS industrial dashboard.
The simulation running: two cranes on one rail, with jobs, reservations and the event log.
The simulation logic and the visualisation are fully separated: Salabim handles the event queue, yielding and
timing; Pygame renders the rail, the cranes and their reserved zones. The animation is also how the model is
checked — a deadlock or a starved crane is visible the moment it happens, long before it shows up in a
throughput table.
Prescriptive · decision rules and optimisation
Deadlock-free by construction, then optimised
A rule-based dispatcher as the safe baseline, and a MILP for the best sequence.
Just-in-time assignment. A crane is given its next job only when it becomes idle, so it reserves
as little rail as possible and leaves the rest of the line open.
Spatial look-ahead. Before a job is dispatched, the whole zone it will need is projected; if it
intersects the other crane’s active zone, the job waits.
Escape routing. If an idle crane blocks an active one, the active crane computes a safe escape
track and sends a relocate command that moves the idle crane out of the way.
Mixed-integer optimisation. Rules are safe but not optimal under heavy load, so the system was
also formulated as a MILP that minimises total empty travel — and with it energy and cycle time.
The simulation testbed and the rule-based dispatcher are public. The MILP back end (Gurobi / PuLP) is not, for
confidentiality reasons.
Business value
What it’s worth
Capacity from better decisions, not from more hardware.
up to 15%
shorter machining process
0
deadlocks with the look-ahead dispatcher
2
cranes sharing one rail
60 FPS
live dashboard of the running model
Better crane decisions shortened the machining process by up to 15% — on an automated line, that is capacity
gained without another crane, more rail or another machine.