Lecture10 PDF
Lecture10 PDF
AAssign
flight specifies
aircraft types
origin,todestination,
flight legs
Fleet Assignment such thatandcontribution
departureistimemaximized
12/31/2003 1.224J/ESD.204J 2
Crew Scheduling: Some
Background
This problem has been studied by
operations researchers for at least 4
decades
Most major U.S. airlines use crew
pairing optimizers for the cockpit crews
Crew costs are the airlines second largest
operating expense
Even small improvements in efficiency can
have large financial benefits
12/31/2003 1.224J/ESD.204J 3
Airline Crew Scheduling
2-stage process:
Crew Pairing Optimization
Construct minimum cost work schedules,
called pairings, spanning several days
Bidline Generation/ Rostering
Construct monthly work schedules from the
pairings generated in the first stage
Bidlines
Individualized schedules
Objective to balance workload, maximize
number of crew requests granted, etc.
12/31/2003 1.224J/ESD.204J 4
Some Definitions
A crewbase is the home station, or
domicile, of a crew
A crew pairing is a sequence of flights
that can be flown by a single crew:
beginning and ending at a crewbase
spanning one or more days
satisfying FAA rules and collective bargaining
agreements, such as:
maximum flying time in a day
minimum rest requirements
minimum connection time between two flights
12/31/2003 1.224J/ESD.204J 5
Example: A Crew Pairing
LA c
b d e
Detroit
a f
Boston
12/31/2003 1.224J/ESD.204J 6
Some More Definitions
A duty period (or duty) is a sequence of
flight legs comprising a day of work for a
crew
Alternative pairing definition: a crew pairing
is a sequence of duties separated by rests
A crew schedule is a sequence of pairings
separated by time-off, satisfying
numerous restrictions from regulatory
agencies and collective bargaining
agreements
12/31/2003 1.224J/ESD.204J 7
Example: Duty Periods
LA
b c d e
Detroit
a f
Boston
a b c d e f
12/31/2003 1.224J/ESD.204J 8
Crew Pairing Problem (CP)
12/31/2003 1.224J/ESD.204J 9
Crew Pairing Costs
Duty costs: Maximum of 3 elements:
f1*flying time cost
f2*elapsed time cost
f3*minimum guarantee
12/31/2003 1.224J/ESD.204J 12
Pairing 1
A C D F
B E G H
12/31/2003 1.224J/ESD.204J 13
Pairing 2
A C D F
B E G H
12/31/2003 1.224J/ESD.204J 14
Pairing 3
A C D F
B E G H
12/31/2003 1.224J/ESD.204J 15
Pairing 4
A C D F
B E G H
12/31/2003 1.224J/ESD.204J 16
Notation
12/31/2003 1.224J/ESD.204J 17
Formulation
min c p yp
pP k
st
fp y p = 1 f F k
pP k
y p {0,1} p P k
12/31/2003 1.224J/ESD.204J 18
Example
y1 + y2 = 1 A
y2 + y4 = 1 B
Flight y1 + y3 = 1 C
Cover y1 + y3 = 1 D
Constraints: y2 + y4 = 1 E
y1 + y2 = 1 F
y3 + y4 = 1 G
y3 + y4 = 1 H
y1 0,1 1
Binary y2 0,1 2
Pairing y3 0,1 3
Restrictions: y4 0,1 4
12/31/2003 1.224J/ESD.204J 19
Set Partitioning Model:
Advantages and Disadvantages
Advantages:
Easy to model complex work rules
Very few constraints
Linear objective function and constraints
Disadvantages:
Huge number of variables- number of
variables grows exponentially with the
number of flights
12/31/2003 1.224J/ESD.204J 20
Problem Size
A typical US airline (with a hub-and-
spoke network) has millions or billions
of potential pairings
Example
150 flights 90,000 pairings
250 flights 6,000,000 pairings
Need a specialized approach to consider
problems of this size
12/31/2003 1.224J/ESD.204J 21
Branch-and-Price: Branch-and-
Bound for Large-Scale Integer
Programs
y1 = 1 y1 = 0
y2 = 1 y2 = 0
y2 = 1 y2 = 0
y3 = 1 y3 = 0
12/31/2003 1.224J/ESD.204J 22
Column Generation
Millions/Billions of Variables
constraints
Added
Initial
Never Considered
12/31/2003 1.224J/ESD.204J 23
LP Solution: Column Generation
City A
City B
City C
City D
12/31/2003 1.224J/ESD.204J 25
Branch-and-Bound with Too
Many Variables
Branch-and-Price
Branch-and-bound with bounding
provided by LP solutions
CP has too many variables to consider
all of them
Solve linear programming relaxation
using column generation
12/31/2003 1.224J/ESD.204J 26
A Twist
Crew scheduling is critical to the airline
industry
Second largest operating expense
Small improvement in solution quality has
significant financial impact
For decades, researchers have worked on
finding better crew scheduling algorithms
Our approach is to instead improve
solution quality by expanding the feasible set of
solutions
12/31/2003 1.224J/ESD.204J 27
Airline Schedule Planning
Schedule Design
Fleet Assignment
12/31/2003 1.224J/ESD.204J 28
Aircraft Maintenance Routing:
Problem Definition
Given:
Flight Schedule for a single fleet
Each flight covered exactly once by fleet
Number of Aircraft by Equipment Type
Cant assign more aircraft than are available
Turn Times at each Station
FAA Maintenance Requirements
Maintenance required every 60 hours of flying
Airlines maintain aircraft every 40-45 hours of flying with the
maximum time between checks restricted to three to four
calendar days
12/31/2003 1.224J/ESD.204J 29
Aircraft Maintenance Routing:
Objective
Find:
Feasible assignment of individual
aircraft to scheduled flights
Each flight is covered exactly once
Maintenance requirements are satisfied
Conservation of flow (balance) of
aircraft is achieved
The number of aircraft used does not
exceed the number available
12/31/2003 1.224J/ESD.204J 30
Example: Maintenance Station in
Boston
LA
b c d e
Detroit
a f
Boston
12/31/2003 1.224J/ESD.204J 31
String Model: Variable Definition
12/31/2003 1.224J/ESD.204J 34
Airline Schedule Planning
Schedule Design
Fleet Assignment
12/31/2003 1.224J/ESD.204J 35
Integrate?
Crew scheduling options are limited by
maintenance routing decisions made
earlier in the airline planning process
Solving maintenance routing and crew
scheduling simultaneously yields a large
and challenging problem
Idea is to improve crew scheduling by
incorporating relevant maintenance
routing decisions
12/31/2003 1.224J/ESD.204J 36
Maintenance Routing and its Link to
the Crew Pairing Problem
The Maintenance Routing Problem (MR) - find
feasible routing of aircraft ensuring adequate aircraft
maintenance opportunities and flight coverage
Crews need enough time between two sequential
flights to travel through the terminal -- minimum
connect time
If both flights are covered by the same aircraft,
connection time can be reduced
A short connect is a connection that is crew-feasible
only if both flights are assigned to the same aircraft
12/31/2003 1.224J/ESD.204J 37
Sequential Approach
Short
Maintenance Connects Flight Valid Crew
Routing Pairing
Network
Problem flown by Problem
pairings
the same
aircraft
12/31/2003 1.224J/ESD.204J 38
Klabjan, Johnson, and Nemhauser
Solve the crew pairing problem first, including
all short connects in the crew pairing network
Given the crew solution, require all short
connects included in it to be part of the
maintenance solution, which is solved second
For good instances, this yields the optimal
solution to the integrated problem (and many
problems are good)
For bad instances, this leads to maintenance
infeasibility
12/31/2003 1.224J/ESD.204J 39
Cordeau, Stojkovi, Soumis,
Desrosiers
Directly integrate crew and maintenance
routing models
Basic maintenance routing and crew
pairing variables and constraints, plus
linking constraints
Benders decomposition approach using a
heuristic branching strategy
For non-hub-and-spoke networks, positive
computational results
12/31/2003 1.224J/ESD.204J 40
Our Approach
12/31/2003 1.224J/ESD.204J 41
The Example Again
Flights: Potential pairings:
ABCDEFGH A-C-D-F (y1): $1
All Possible Short A-B-E-F (y2): $2
Connects: C-D-G-H (y3): $4
A-B A-C E-G B-E-G-H (y4): $6
Crew pairing solutions:
MR solution (x1) assigns
x1 => pairings 1, 4: $7
the same aircraft to short
connects A-C and E-G x2 => pairings 2, 3: $6
MR solution (x2) assigns
the same aircraft to short
connect A-B
12/31/2003 1.224J/ESD.204J 42
Flights
A C D F
B E G H
12/31/2003 1.224J/ESD.204J 43
Short Connect
A C D F
B E G H
12/31/2003 1.224J/ESD.204J 44
Short Connect
A C D F
B E G H
12/31/2003 1.224J/ESD.204J 45
Short Connect
A C D F
B E G H
12/31/2003 1.224J/ESD.204J 46
Maintenance Solution 1
A C D F
B E G H
12/31/2003 1.224J/ESD.204J 47
Maintenance Solution 2
A C D F
B E G H
12/31/2003 1.224J/ESD.204J 48
If MR Solution 1 (A-C, E-G) =>
Optimal: Pairings 1, 4 -- $7
A C D F
B E G H
12/31/2003 1.224J/ESD.204J 49
If MR Solution 2 (A-B) =>
Optimal: Pairings 2, 3 -- $6
A C D F
B E G H
12/31/2003 1.224J/ESD.204J 50
Approach
In the sequential approach, given a maintenance
routing solution, the crew pairing problem is
solved
We allow the crew scheduler to choose from a
collection of maintenance routing solutions
Select the one containing the set of short connects that
allows the minimum cost crew pairing solution
Problem: We dont want to solve one crew pairing
problem for each maintenance routing solution
Solution: Extended Crew Pairing Model (ECP)
12/31/2003 1.224J/ESD.204J 51
The Extended Crew Pairing Model
(ECP)
Simultaneously select a cost minimizing
set of crew pairings and a corresponding
feasible maintenance routing solution
from a given set of maintenance routing
solutions
Add constraints that allow pairings with
a short connect to be selected only if the
chosen maintenance solution assigns the
same aircraft to that short connect
12/31/2003 1.224J/ESD.204J 52
The Example Again
Flights:
ABCDEFGH Potential pairings:
A-C-D-F (y1): $1
Short Connects: A-B-E-F (y2): $2
A-B A-C E-G C-D-G-H (y3): $4
MR solution (x1) B-E-G-H (y4): $6
uses short connects Crew pairing solutions:
A-C and E-G
x1 => pairings 1, 4: $7
MR solution (x2) x2 => pairings 2, 3: $6
uses short connect
A-B
12/31/2003 1.224J/ESD.204J 53
Matrix Representation for the
Example
x1 x2 y1 y2 y3 y4 rhs
0 0 1 1 0 0 = 1 A
0 0 0 1 0 1 = 1 B
Flights: 0 0 1 0 1 0 = 1 C
0 0 1 0 1 0 = 1 D
0 0 0 1 0 1 = 1 E
0 0 1 1 0 0 = 1 F
0 0 0 0 1 1 = 1 G
0 0 0 0 1 1 = 1 H
0 1 0 1 0 0 0 A-B
Short Connects: 1 0 1 0 0 0 0 A-C
1 0 0 0 0 1 0 E-G
Convexity: 1 1 0 0 0 0 = 1 Conv.
12/31/2003 1.224J/ESD.204J 54
Notation
12/31/2003 1.224J/ESD.204J 56
Notation, cont.
min c p yp
pP k
st
Flights: fp y p = 1 f F k
pP k
Short Connects:
ts xs tp y p 0 t T k
sS k pP k
Convexity:
x s =1
sS k
xs , y p {0,1} s, p
12/31/2003 1.224J/ESD.204J 58
ECP Enhancements
By exploiting dominance relationships, can
dramatically reduce the number of MR columns
considered in finding an optimal ECP solution
MR1 containing short connects AB, CD, GH
dominates MR2 containing short connect AB
Do not need to include MR2 in ECP
Theoretical bounds and computational
observations
Example: 61 flights => >> 25,000 MR solutions =>
4 non-dominated MR solutions (bounded by 35)
Can find these 4 non-dominated MR solutions by
solving 4 MR problems
12/31/2003 1.224J/ESD.204J 59
ECP Enhancements, cont.
Proof: Can relax the integrality of MR columns
and still achieve integer solutions:
Same number of binary variables as original CP
min c p y p min c p y p
p p
st st
y
p: f p
p =1 f y
p: f p
p =1 f
z y
s:ts
s
p:tP
p 0 t z y
s:ts
s
p:tP
p 0 t
z
s
s =1 z
s
s =1
z s {0,1} s zs 0 s
y p {0,1} p y p {0,1} p
Problem B:
Lower bound: 25,076.60
ECP with 20 MR columns: 25,498.60
Optimality gap: 1.7%
12/31/2003 1.224J/ESD.204J 61
Airline Crew Scheduling Successes
Excess crew costs in the planning
process has been driven to 0-3%
AA was 8-10% 15 yrs ago: now 0-2%
Each 1% is worth about $10
million/yr
1997 had 9,000 pilots costing $1.2 billion
Larger schedules and complex rules
12/31/2003 1.224J/ESD.204J 62
Crew Pre-Month Planning
Ellis Johnson, Georgia Tech
Vacation Scheduling
Month of Operation