Problem Description
An airline must assign crews to a set of flight legs. Each crew member starts and ends their duty period at the same base airport. A pairing is a sequence of flight legs forming a round trip from a crew member’s base. Everything is self-contained: this example does not build on any other example on this site.
Notation (all symbols defined before first use):
- Set of flight legs to be covered.
- Number of crew bases.
Set of all feasible pairings originating from base .
1 if pairing covers flight leg , else 0.
Cost of pairing (e.g., duty time, hotel costs).
1 if pairing is selected, else 0.
Set-Partitioning Formulation
The crew scheduling master formulation is a set-partitioning problem: every flight leg must be covered by exactly one pairing:
Dantzig-Wolfe Decomposition and Column Generation
The LP relaxation has one variable per feasible pairing. There are exponentially many pairings in for each base , making explicit enumeration infeasible.
Dantzig-Wolfe Decomposition decomposes along bases: relax the coupling coverage constraints with dual variables .
Dual variables: is the marginal cost saving of covering flight from the master. A pairing is attractive if its cost (duty time plus overheads) is less than the total dual value of the legs it covers.
Pricing sub-problem for base : Find the minimum reduced-cost pairing from base :
This sub-problem is typically solved as a constrained shortest-path problem on a time-space network for base , incorporating duty-time rules, rest requirements, and airport curfews.
If for any base, a new improving pairing (column) is added to the restricted master problem (RMP).
Column Generation for Crew Pairings
The algorithm iterates:
- Solve the RMP (LP relaxation over the current subset of pairings).
- Extract duals from coverage constraints.
- For each base : solve the pricing sub-problem to find the most attractive new pairing.
- If any pairing has negative reduced cost: add it to the RMP and go to step 1.
- Otherwise: the LP relaxation is optimal. Apply branch-and-price for integrality if needed.