Crew roster: one row per crew
Legal links and the chosen matching

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

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.

Made with 🟠 Blender