Home▸AI & Machine Learning▸Airline Crew Pairing: Minimum Path Cover and the Hungarian Assignment (2D)

Airline Crew Pairing: Minimum Path Cover and the Hungarian Assignment (2D)

The same crew-pairing model in 2D: a roster chart with one row per crew and one bar per flight, dashed lines for sitting time, duty-period brackets and Blender-rendered aircraft riding the bars on the clock, plus the bipartite graph of legal links with the chosen matching in crew colours.

AI & Machine Learning2DAdvanced60 FPS📱 Mobile-adapted🟠 Blender💨 Air & Wind⇄ 3D version
Airline Crew Pairing: Minimum Path Cover and the Hungarian Assignment (2D) ↗ Open standalone

An airline flies the same aircraft all day, but a crew cannot: it must land where the next flight leaves, wait at least the minimum connection time, and stay within the flight-duty limit. Crew pairing asks for the fewest chains of legal flights that cover the whole timetable. Without the duty limit this is a minimum path cover, whose size is the number of flights minus the largest set of non-clashing links (Dilworth's chain-cover theorem), and it can be solved exactly as an assignment problem with the Hungarian algorithm.

This page builds a hub-and-spoke timetable, solves the assignment live and lets you push on it: a longer minimum connection time breaks links, a shorter patience for sitting does the same, and a low value for one crew lets a flight fly alone rather than wait. The duty limit is the EASA table repaired greedily by cutting the longest sit, so it is honest about being a heuristic. It is an educational optimisation model, not a rostering system.

⚙ Under the hood

The same crew-pairing model in 2D: a roster chart with one row per crew and one bar per flight, dashed lines for sitting time, duty-period brackets and Blender-rendered aircraft riding the bars on the clock, plus the bipartite graph of legal links with the chosen matching in crew colours.

Crew pairingHungarian algorithmAssignment problemMinimum path coverDilworth theoremAirline operationsOperations researchOptimization

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)