Simulation & optimisation case study

Two Cranes That Cannot Pass Each Other

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
Analytics stages
QualitativeDescriptiveDiagnosticPredictivePrescriptiveSoftware
Technology
PythonSalabim (DES)PygameMILPGurobi / PuLPRule-based dispatching
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:

Predictive modelling · simulation

A discrete-event testbed you can watch

Salabim for the simulation engine, Pygame for a 60 FPS industrial dashboard.
Animated twin crane simulation: two cranes on one rail serving pickup and drop-off points, with the event log and job queue alongside
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.
  1. 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.
  2. 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.
  3. 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.
  4. 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.