Vehicle Circulation and The Hungarian Method: Martin Grötschel
Vehicle Circulation and The Hungarian Method: Martin Grötschel
Martin Grtschel
joint work with
Ralf Borndrfer Andreas Lbel
Contents
1. What is vehicle circulation/scheduling?
2. Single depot vehicle scheduling
3. Multiple depot vehicle scheduling
4. Extensions
Martin
Grtschel
4
Contents
1. What is vehicle circulation/scheduling?
2. Single depot vehicle scheduling
3. Multiple depot vehicle scheduling
4. Extensions
Martin
Grtschel
5
Martin
Grtschel
6
Construction Costs
Network Topology
Crew Assignment
Cost Recovery
Service Level
Relief Points
Connections
Frequencies
Disruptions
Sensitivity
Timetable
Rostering
Rotations
Velocities
Duty Mix
Fairness
Duties
Fares
Lines
IS-OPT VS-OPT2 B15
multidepartmental
Departments
multidepotwise
Depots
multiple line groups
Line Groups
multiple lines
Lines
multiple rotations
Martin
Rotations
Grtschel
APD DS-OPT VS-OPT BS-OPT AN-OPT B1 B3 B1
8
Martin
Grtschel
9
Martin
Grtschel
10
Martin
Grtschel
12
Leuthardt Survey
(Leuthardt 1998, Kostenstrukturen von Stadt-, berland- und Reisebussen, DER NAHVERKEHR 6/98, pp. 19-23.)
Martin
Grtschel
15
Some Users
VS-OPT (vehicles) DS-OPT (drivers)
ATC/Terni (I) ATC/Terni (I)
Athen (U) (GR)
Berlin (D) Berlin (D)
Bonn (D) Bonn (D)
Connex (D) Connex (D)
DB Regio (D) DB Regio (D)
Geilenkirchen (D)
Ennepetal (D)
Genua (I) Genua (I)
Mailand (U) (I) Mailand (U) (I)
Mnchen (S) (D) Mnchen (S) (D)
Norgesbus (N) Norgesbus (N)
Rhein-Neckar (S) (D) Rhein-Neckar (S) (D)
Wiesbaden (D) Wiesbaden (D)
Martin
Grtschel
16
Contents
1. What is vehicle circulation/scheduling?
2. Single depot vehicle scheduling
3. Multiple depot vehicle scheduling
4. Extensions
Martin
Grtschel
17
4 timetabled trips
3 4
A single depot:
one location
3 4 one bus type
D D 1 2 3 4
1 2
3 4 D D 1 2 3 4
But
In the seventies the available computers were
not able to solve large size assignment problems
due to time and space problems.
The Hungarian method was the algorithm of
choice. There was nothing better.
Martin
Grtschel
20
Martin
Grtschel
21
Surprise
Due to expertise and practical experience, the
HOT specialists were able to come up with very
good (and often almost optimal) solutions when
number of busses was the major objective.
Martin
Grtschel
23
1 2 3 Buses
4 3 6 7
3 3 7 8 10
Solution
Cost = 20
1 2 3 Trips
1 2 3 Buses
4 3 6 7
3 3 7 8 10
Solution
Cost = 17
1 2 3 Trips
The Greedy-Heuristik
heuretikos (gr.): inventive
heuriskein (gr.): to find
Martin
Grtschel
25
1 2 3 Busses
4 3 6 7
3 3 7 8 10
Solution
Cost = 16
1 2 3 Trips
The Greedy-Heuristik
heuretikos (gr.): inventive
heuriskein (gr.): to find
Martin
Grtschel
26
5 4 0 Buses
4 3 6 7
3 3 7 8 10
Optimum
Cost = 15
7 8 9 Trips
Martin
Grtschel
27
Mathematical Models
(Assignment Problem)
0 0 0
4 3 6 7
3
3 4 3 7 6 7 8 10
3
3 7 8 10
0 0 0
Martin
Grtschel
29
Martin
Grtschel
30
Martin
Grtschel
31
Martin
Grtschel
32
Martin
Grtschel
33
Martin
Grtschel
34
Martin
Grtschel
35
Martin
Grtschel
36
5 4 0 Buses
4 3 6 7 Bound
3
3 0 0 7 1 0 8 10
1
0
3 0 1 cost = 15
Solution
cost = 15
7 8 9 Trips
SPEC
Andreas Lbel
Martin
Grtschel
38
Contents
1. What is vehicle circulation/scheduling?
2. Single depot vehicle scheduling
3. Multiple depot vehicle scheduling
4. Extensions
Martin
Grtschel
39
Martin
Grtschel
40
Martin
Grtschel
41
Vehicle Scheduling
Input
Timetabled and deadhead trips vehicle
Vehicle types and depot capacities circulations
rotations
Vehicle costs (fixed and variable) blocks
schedules
Output
Vehicle rotations
Problem
Compute rotations to cover all timetabled trips
Goals
Minimize number of vehicles
Minimize operation costs
Martin
Minimize line hopping etc.
Grtschel
42
deadhead trips
pull-out trips pull-in trips
timetabled trips
Martin
Grtschel
43
Example: Regensburg
Map deleted
Martin
Grtschel
44
Vehicle Scheduling
Depot
Fleet
No line
Peaks:
minimum:
capacities:
Turning:
changes:
pull-in/pull-out
pull-in
turns
soft
interlining
upper
tripstrips
limits
trips
Definition + cost of deadhead trips
Precise control at point, time, or trip
Changes of vehicles, lines, modes, turning, etc.
Automatic generation of pull-in/pull-out trips
Maintencance of all possible deadhead trips
Martin
Grtschel
Depot capacities (soft)
45
Timelines
d
min ij xij
d
c d d
ij
ij jk
x
i
d
x d
k
0 j, d Vehicle flow
ij jk
d
x d
i
x d
d k
0 j Aggregated flow
ij
d
x d
i
1 j Timetabled trips
0j
x
j
d
d d Depot capacities
Theoretical Results
Observation: The LP relaxation of the
Multicommodity Flow Problem does in general
not produce integeral solutions.
Theorem: The Multicommodity Flow Problem is
NP-hard.
Theorem (Tardos et. al.): There are pseudo-
polynomial time approximation algorithms to
solve the LP-relaxation of Multicommodity Flow
Problems which are faster than general LP
methods.
Martin
Grtschel
48
Lagrangean Relaxation
min cT x max min cT x (b Ax)
Ax b Bx d
Bx d x 0
x 0
max f ( ) max min cT xi (b Axi )
i
f3 x2
x1
f2 f4
P(A,b)P(B,d) f P(A,b)
f1 x4 x3
Martin
Grtschel
49
Bundle Method
(Kiwiel [1990], Helmberg [2000])
Max f ( ) : min c T x T (b Ax )
xX
X polyhedral (piecewise linear)
f ( ) c T x T (b Ax )
f f1
fk ( ) : min f ( )
Jk
f uk 2
k 1 argmax fk ( ) k
2 3 1 2
Martin
Grtschel
50
Primal Approximation
1
k 1 k
u J
(b Ax )
k z
fk 1
xk 1 x
Jk fk
fk ( ) c T xk (b Axk )
f
Theorem
k 1
b Axk 0 (k )
Martin
Grtschel
51
Quadratic Subproblem
(1) max fk ( ) uk k
2
uk
2
(2) max v k
2
s.t. v f ( ), for all Jk
2
1
(3) max f ( )
2uk
(b Ax )
Jk Jk
s.t. 1
Jk
0 1, for all Jk
Martin
Grtschel
52
Bundle Method
(IVU41 838,500 x 3,570, 10.5 NNEs per column)
450
400
350
300
250
20
0
15
0 bundle
10
volume
0 barrier
50 cascent
Lagrangean Relaxation I
min ij xij
d
c d d
ij
ij jk
x
i
d
x d
k
0 j, d Vehicle flow
ij jk
d
x d
i
x d
d k
0 j Aggregated flow
ij
d
x d
i
1 j Timetabled trips
0j
x
j
d
d d Depot capacities
Lagrangean Relaxation I
c x ij
x
d d d d
max min ij ij 0 x jk
d ij i k
Vehicle flow
ij jk
d
x d
i
x d
d k
0 j Aggregated flow
ij
d
x d
i
1 j Timetabled trips
0j
x
j
d
d d Depot capacities
Lagrangean Relaxation II
min ij xij
d
c d d
ij
ij jk
x
i
d
x d
k
0 j, d Vehicle flow
ij jk
d
x d
i
x d
d k
0 j Aggregated flow
ij
d
x d
i
1 j Timetabled trips
0j
x
j
d
d d Depot capacities
Lagrangean Relaxation II
d
c x 1 xij
d d
max min ij ij
d ij d i
ij jk
x
i
d
x d
k
0 j, d Vehicle flow
ij jk
d
x d
i
x d
d k
0 j Aggregated flow
Timetabled trips
0j
x
j
d
d d Depot capacities
Heuristics
Cluster First Schedule Second
"Nearest-depot" heuristic
Lagrange Relaxation II + tie breaker
Schedule First Cluster Second
Lagrange relaxation I
Schedule Cluster Reschedule
Schedule: Lagrange relaxation I
Cluster: Look at paths
Solve a final min-cost flow
Martin
Grtschel
Plus tabu search
58
Martin
Grtschel
59
Computational Results
depots 10 14 10
vehicle types 44 40 19
timetabled trips 25,000 16,000 5,500
deadheads 70,000,000 15,100,000 10,000,000
cpu mins 200 50 28
Martin
Grtschel
60
Vehicle Utilization
Martin
Grtschel
61
"Camel Curve"
68
Martin
Grtschel
62
Interlining
best choice
Martin
Grtschel
63
Slide of SWB
Martin
Heiko Klotzbcher
Grtschel 26.02.2002 4
64
Martin
Grtschel
65
Ramifications:
Corinna Bnisch
Ines Spenke
Steffen Weider
Martin
Grtschel
66
BVG (Berlin)
Martin
Grtschel
67
Contents
1. What is vehicle circulation/scheduling?
2. Single depot vehicle scheduling
3. Multiple depot vehicle scheduling
4. Extensions
Martin
Grtschel
68
Discussion/Extensions
Properties
Exploiting all degrees of freedom
Vehicle mix
Extensions
Trip shifting current work
Multiperiod scheduling
Periodic schedules
Assimilation
Balanced depot exchange
Maintenance constraints
Integration
Vehicle and duty scheduling current work
Timetabling
Martin Line planning
Grtschel
69
Trip Shifting
Martin
Grtschel
Vehicle Circulation and
the Hungarian Method
The END
Martin Grtschel
joint work with
Ralf Borndrfer Andreas Lbel Steffen Weider