Title: The Travelling Salesman Problem: A brief survey
1The Travelling Salesman ProblemA brief survey
- Martin Grötschel
- Vorausschau auf die VorlesungDas
Travelling-Salesman-Problem (ADM III) - im WS 2013/1414. Oktober 2013
2Contents
- Introduction
- The TSP and some of its history
- The TSP and some of its variants
- Some applications
- Modeling issues
- Heuristics
- How combinatorial optimizers do it
3Contents
- Introduction
- The TSP and some of its history
- The TSP and some of its variants
- Some applications
- Modeling issues
- Heuristics
- How combinatorial optimizers do it
4Combinatorial optimization
- Given a finite set E and a subset I of the power
set of E (the set of feasible solutions). Given,
moreover, a value (cost, length,) c(e) for all
elements e of E. Find, among all sets in I, a
set I such that its total value c(I) ( sum of
the values of all elements in I) is as small (or
as large) as possible. - The parameters of a combinatorial optimization
problem are (E, I, c). -
- An important issue How is I given?
5Special simple combinatorial optimization
problems
- Finding a
- minimum spanning tree in a graph
- shortest path in a directed graph
- maximum matching in a graph
- minimum capacity cut separating two given nodes
of a graph or digraph - cost-minimal flow through a network with
capacities and costs on all edges -
- These problems are solvable in polynomial time.
6Special hard combinatorial optimization
problems
- travelling salesman problem (the prototype
problem) - location und routing
- set-packing, partitioning, -covering
- max-cut
- linear ordering
- scheduling (with a few exceptions)
- node and edge colouring
-
- These problems are NP-hard (in the sense of
complexity theory). -
7The travelling salesman problem
- Given n cities and distances between them.
Find a tour (roundtrip) through all cities
visiting every city exactly once such that the
sum of all distances travelled is as small as
possible. (TSP) - The TSP is called symmetric (STSP) if, for
every pair of cities i and j, the distance from i
to j is the same as the one from j to i,
otherwise the problem is called asymmetric (ATSP).
8http//www.tsp.gatech.edu/
9THE TSPbook
suggested reading for everyone interested in
the TSP
10Another recommendationBill Cooks new book
11The travelling salesman problem
Two mathematical formulations of the TSP
- Does that help solve the TSP?
12Contents
- Introduction
- The TSP and some of its history
- The TSP and some of its variants
- Some applications
- Modeling issues
- Heuristics
- How combinatorial optimizers do it
13Usually quoted as the forerunner of the TSP
Usually quoted as the origin of the TSP
14about 100yearsearlier
15By a proper choice andscheduling of the tour
onecan gain so much time that we have to
makesome suggestions
The most important aspect is to cover as many
locations as possiblewithout visiting
alocation twice
16A TSP contest 1962 10.000 Prize
17Ulysses roundtrip (an even older TSP ?)
The paper The Optimized Odyssey by Martin
Grötschel and Manfred Padberg is downloadable
from http//www.zib.de/groetschel/pubnew/paper/gro
etschelpadberg2001a.pdf
18Ulysses
The distance table
19Ulysses roundtrip
optimal Ulysses tour
20Malen nach ZahlenTSP in art ?
21Survey Books
- Literature more than 1000 entries in
Zentralblatt/Math - Zbl 0562.00014 Lawler, E.L.(ed.) Lenstra,
J.K.(ed.) Rinnooy Kan, A.H.G.(ed.) Shmoys,
D.B.(ed.)The traveling salesman problem. A
guided tour of combinatorial optimization.
Wiley-Interscience Series in Discrete
Mathematics. A Wiley-Interscience publication.
Chichester etc. John Wiley \ Sons. X, 465 p.
(1985). MSC 2000 00Bxx 90-06 - Zbl 0996.00026 Gutin, Gregory (ed.) Punnen,
Abraham P.(ed.)The traveling salesman problem
and its variations. Combinatorial Optimization.
12. Dordrecht Kluwer Academic Publishers. xviii,
830 p. (2002). MSC 2000 00B15 90-06 90Cxx
22Contents
- Introduction
- The TSP and some of its history
- The TSP and some of its variants
- Some applications
- Modeling issues
- Heuristics
- How combinatorial optimizers do it
23The Travelling Salesman Problem and Some of its
Variants
- The symmetric TSP
- The asymmetric TSP
- The TSP with precedences or time windows
- The online TSP
- The symmetric and asymmetric m-TSP
- The price collecting TSP
- The Chinese postman problem (undirected,
directed, mixed) - Bus, truck, vehicle routing
- Edge/arc node routing with capacities
- Combinations of these and more
24http//www.densis.fee.unicamp.br/moscato/TSPBIB_h
ome.html
25Contents
- Introduction
- The TSP and some of its history
- The TSP and some of its variants
- Some applications
- Modeling issues
- Heuristics
- How combinatorial optimizers do it
26Production of ICs and PCBs
Printed Circuit Board (PCB)
Integrated Circuit (IC)
Problems Logical Design, Physical
Design Correctness, Simulation, Placement of
Components, Routing, Drilling,...
27Correct modelling of a printed circuit board
drilling problem
length of a move of the drilling
head Euclidean norm, Max norm, Manhatten norm?
2103 holes to be drilled
28Drilling 2103 holes into a PCB
Significant Improvements via TSP (due to Padberg
Rinaldi)
industry solution
optimal solution
29Siemens-ProblemPCB da4
Martin Grötschel, Michael Jünger, Gerhard
Reinelt,Optimal Control of Plotting and Drilling
Machines A Case Study, Zeitschrift für
Operations Research, 351 (1991)
61-84 http//www.zib.de/groetschel/pubnew/paper/gr
oetscheljuengerreinelt1991.pdf
before
after
30 Siemens-Problem PCB da1
Grötschel, Jünger, Reinelt
after
before
31(No Transcript)
32Leiterplatten-BohrmaschinePrinted Circuit Board
Drilling Machine
33Foto einer Flachbaugruppe (Leiterplatte)
34Foto einer Flachbaugruppe (Leiterplatte) -
Rückseite
35442 holes to be drilled
36Typical PCB drilling problems at Siemens
da1 da2 da3 da4
Number of holes Number of drills Tour length 2457 7 3518728 423 7 1049956 2203 6 1958161 2104 10 4347902
Table 4
37Fast heuristics
da1 da2 da3 da4
CPU time (minsec) Tour length Improvement in 158 1695042 56.87 005 984636 14.60 143 1642027 26.94 143 1928371 58.38
Table 5
38Optimizing the stacker cranes of a
Siemens-Nixdorf warehouse
39Herlitz at Falkensee (Berlin)
40Example Control of the stacker cranes in a
Herlitz warehouse
41Logistics of collectingelectronics garbage
Andrea Grötschel Diplomarbeit (2004)
42Location plus tour planning (m-TSP)
43The Dispatching Problem at ADACan online m-TSP
44Online-TSP (in a metric space)
Instance
where
0
0
Goal
Find fastest tour serving all requests (starting
and ending in 0)
Algorithm ALG is c-competitive if
for all request sequences
45Implementation competitions
46Contents
- Introduction
- The TSP and some of its history
- The TSP and some of its variants
- Some applications
- Modeling issues
- Heuristics
- How combinatorial optimizers do it
47LP Cutting Plane Approach
Even MODELLING is not easy! What is the right
LP relaxation? N. Ascheuer, M. Fischetti, M.
Grötschel, Solving the Asymmetric Travelling
Salesman Problem with time windows by
branch-and-cut, Mathematical Programming A
(2001), see http//www.zib.de/groetschel/pubnew/p
aper/ascheuerfischettigroetschel2001.pdf
48IP formulation of the asymmetric TSP
49Time Windows
- This is a typical situation in delivery problems.
- Customers must be served during a certain period
of time, usually a time interval is given. - access to pedestrian areas
- opening hours of a customer
- delivery to assembly lines
- just in time processes
50 Model 1
51Model 2
52Model 3
53 Model 1, 2, 3
54Cutting Planes Used for all Three Models
(Separation Routines)
- Subtour Elimination Constraints (SEC)
- 2-Matching Constraints
- -Inequalities
- "Special Inequalities and PCB-Inequalities
- Dk-Inequalities
- Infeasible Path Elimination Constraints (IPEC)
- Strengthened -Inequalities
- Two-Job Cuts
- Pool Separation
- SD-Inequalities
- various strengthenings/liftings
-
-
55Further Implementation Details
- Preprocessing
- Tightening Time Windows
- Release and Due Date Adjustment
- Construction of Precedences
- Elimination of Arcs
- Branching (only on x-variables)
- Enumeration Strategy (DFS, Best-FS)
- Pricing Frequency (every 5th iteration)
- Tailing Off
- LP-exploitation Heuristics (after a new feasible
LP solution is found), - they outperform the other heuristics
56Results
- Very uneven performance
- Model 1 is really bad in general
- Model 2 is best on the average (winner in 16 of
22 test cases) - Model 3 is better when few time windows are
active (6 times winner, last in all other cases,
severe numerical problems, very difficult LPs)
How could you have guessed?
57Unevenness of Computational Results
problem nodes gap cutting planes LPs time
rbg041a 43 9.16 gt 1 mio 109,402 gt 5 h
rbg067a 69 0 176 2 6 sec
Largest problem solved to optimality 127
nodes Largest problem not solved optimally 43
nodes
58Contents
- Introduction
- The TSP and some of its history
- The TSP and some of its variants
- Some applications
- Modeling issues
- Heuristics
- How combinatorial optimizers do it
59Need for Heuristics
- Many real-world instances of hard combinatorial
optimization problems are (still) too large for
exact algorithms. - Or the time limit stipulated by the customer for
the solution is too small. - Therefore, we need heuristics!
- Exact algorithms usually also employ heuristics.
- What is urgently needed is a decision
guideWhich heuristic will most likely work
well on what problem ?
60Primal and Dual Heuristics
- Primal Heuristic Finds a (hopefully) good
feasible solution. - Dual Heuristic Finds a bound on the optimum
solution value (e.g., by finding a feasible
solution of the LP-dual of an LP-relaxation of a
combinatorial optimization problem).
Minimization dual heuristic value optimum
value primal heuristic value
quality guarantee in practice and theory
61Heuristics A Survey
- Greedy Algorithms
- Exchange Insertion Algorithms
- Neighborhood/Local Search
- Variable Neighborhood Search, Iterated Local
Search - Random sampling
- Simulated Annealing
- Taboo search
- Great Deluge Algorithms
- Simulated Tunneling
- Neural Networks
- Scatter Search
- Greedy Randomized Adaptive Search Procedures
62Heuristics A Survey
- Genetic, Evolutionary, and similar Methods
- DNA-Technology
- Ant and Swarm Systems
- (Multi-) Agents
- Population Heuristics
- Memetic Algorithms (Meme are the missing links
gens and mind) - Fuzzy Genetics-Based Machine Learning
- Fast and Frugal Method (Psychology)
- Method of Devine Intuition (Psychologist
Thorndike) - ..
63The typical heuristics junk
- Hyper-heuristics in Co-operative Search
- The interest in parallel co-operative approaches
has risen considerably due to, not only the
availability of co-operative environments at low
cost, but also their success to provide novel
ways to combine different (meta-)heuristics.
Current research has shown that the parallel
execution and co-operation of several
(meta-)heuristics could improve the quality of
the solutions that each of them would be able to
find by itself working on a standalone basis.
Moreover, parallel and distributed approaches can
be used to provide more powerful and robust
problem solving environments in a variety of
problem domains. Hyper-heuristics, on the other
hand, represent a set of search methodologies
which are applicable to different problem
domains. They aim to raise the level of
generality, for example by choosing and/or
generating new methodologies on demand during the
search process. The goal of this study is to
explore the cooperative search mechanisms within
a hyper-heuristic framework. This exciting
research area lies at the interface between
operational research and computer science and
involves understanding of (distributed) decision
making mechanisms and learning, design,
implementation and analysis of automated search
methodologies. The application domains will be
cross disciplinary.
64Heuristics A Survey
- Currently best heuristic with respect to
worst-case guaranteeChristofides heuristic - compute shortest spanning tree
- compute minimum perfect 1-matching of graph
induced by the odd nodes of the minimum spanning
tree - the union of these edge sets is a connected
Eulerian graph - turn this graph into a tour by making short-cuts.
- For distance functions satisfying the triangle
inequality, the resulting tour is at most 50
above the optimum value
65Understanding Heuristics, Approximation Algorithms
- worst case analysis
- There is no polynomial time approx. algorithm for
STSP/ATSP. - Christofides algorithm for the STSP with triangle
inequality - average case analysis
- Karps analysis of the patching algorithm for the
ATSP - probabilistic problem analysis
- for Euclidean STSP in unit square, TSP constant
1.714.. - polynomial time approximation schemes (PAS)
- Aroras polynomial-time approximation schemes
forEuclidean STSPs - fully-polynomial time approximation schemes
(FPAS) - not for TSP/ATSP but, e.g., for knapsack
(IbarraKim) - These concepts unfortunately often do not
really help to guide practice. - experimental evaluation
- Lin-Kernighan for STSP (DIMACS challenges))
66Contents
- Introduction
- The TSP and some of its history
- The TSP and some of its variants
- Some applications
- Modeling issues
- Heuristics
- How combinatorial optimizers do it
67Polyhedral Theory (of the TSP)
- STSP-, ATSP-,TSP-with-side-constraints-
- Polytope Convex hull of all incidence
vectors of feasible tours - To be investigated
- Dimension
- Equation system defining the affine hull
- Facets
- Separation algorithms
68The symmetric travelling salesman polytope
- The LP relaxation is solvable in polynomial time
69Relation between IP and LP-relaxation
- Open Problem
- If costs satisfy the triangle inequality, then
- IP-OPT lt 4/3 LP-SEC
- IP-OPT lt 3/2 LP-SEC (Wolsey)
70General cutting plane theoryGomory
Mixed-Integer Cut
- Given and
- Rounding Where define
- Then
- Disjunction
- Combining
71clique trees
- A clique tree is a connected graph C(V,E),
composed of cliques satisfying the following
properties
72Polyhedral Theory of the TSP
Comb inequality
2-matching constraint
handle
tooth
73Clique Tree Inequalities
74Clique Tree Inequalities http//www.zib.de/groets
chel/pubnew/paper/groetschelpulleyblank1986.pdf
Hi, i1,,h are the handles Tj, j1,,t are the
teeth tj is the number of handles that
tooth Tj intersects
75Valid Inequalities for STSP
- Trivial inequalities
- Degree constraints
- Subtour elimination constraints
- 2-matching constraints, comb inequalities
- Clique tree inequalities (comb)
- Bipartition inequalities (clique tree)
- Path inequalities (comb)
- Star inequalities (path)
- Binested Inequalities (star, clique tree)
- Ladder inequalities (2 handles, even of teeth)
- Domino inequalities
- Hypohamiltonian, hypotraceable inequalities
- etc.
76A very special case
Petersen graph, G (V, F), the smallest
hypohamiltonian graph
77Hypotraceable graphs and the STSP
- On the right is the smallestknown hypotraceable
graph(Thomassen graph, 34 nodes). - Such graphs have no hamiltonian path, but when
any node is deleted, theremaining graph has
ahamiltonian path. - How do such graphs induceinequalities valid for
thesymmetric travelling salesmanpolytope?For
further information seehttp//www.zib.de/groetsc
hel/pubnew/paper/groetschel1980b.pdf
78Wild facets of the asymmetric travelling
salesman polytope
- Hypohamiltonian and hypotraceable directed graphs
also exist and induce facets of the polytopes
associated with the asymmetric TSP. - Information hypohamiltonian and hypotraceable
inequalities can be found inhttp//www.zib.de/gro
etschel/pubnew/paper/groetschelwakabayashi1981a.pd
fhttp//www.zib.de/groetschel/pubnew/paper/groets
chelwakabayashi1981b.pdf
79Valid and facet defining inequalities for STSP
Survey articles
- M. Grötschel, M. W. Padberg (1985 a, b)
- M. Jünger, G. Reinelt, G. Rinaldi (1995)
- D. Naddef (2002)
- The TSP book (ABCC, 2006)
80Counting Tours and Facets
n tours different facets facet classes
3 1 0 0
4 3 3 1
5 12 20 2
6 60 100 4
7 360 3,437 6
8 2520 194,187 24
9 20,160 42,104,442 192
10 181,440 gt 52,043,900,866 gt15,379
81Separation Algorithms
- Given a system of valid inequalities (possibly of
exponential size). - Is there a polynomial time algorithm (or a good
heuristic) that, - given a point,
- checks whether the point satisfies all
inequalities of the system, and - if not, finds an inequality violated by the given
point?
82Separation
K
Grötschel, Lovász, Schrijver (GLS)Separation
and optimizationare polynomial time equivalent.
83Separation Algorithms
- There has been great success in finding exact
polynomial time separation algorithms, e.g., - for subtour-elimination constraints
- for 2-matching constraints (PadbergRao, 1982)
- or fast heuristic separation algorithms, e.g.,
- for comb constraints
- for clique tree inequalities
- and these algorithms are practically efficient
84Polyhedral Combinatorics
- This line of research has resulted in powerful
cutting plane algorithms for combinatorial
optimization problems. - They are used in practice to solve exactly or
approximately (including branch bound)
large-scale real-world instances.
85Deutschland 15,112
D. Applegate, R.Bixby, V. Chvatal, W. Cook
15,112 cities 114,178,716 variables 2001
86How do we solve a TSP like this?
- Upper bound
- Heuristic search
- Chained Lin-Kernighan
- Lower bound
- Linear programming
- Divide-and-conquer
- Polyhedral combinatorics
- Parallel computation
- Algorithms data structures
The LOWER BOUND is the mathematically
andalgorithmically hard part of the work
87Work on LP relaxations of the symmetric
travelling salesman polytope
- Integer Programming Approach
88cutting plane technique for integer and
mixed-integer programming
Feasible integer solutions
Objective function
Convex hull
LP-based relaxation
Cutting planes
89Clique-tree cut for pcb442 from B. Cook
90LP-based Branch Bound
Solve LP relaxation v0.5 (fractional)
Root
Upper Bound
G A P
Integer
Lower Bound
Infeas
Integer
Remark GAP 0 ? Proof of optimality
91A BranchingTree
Applegate Bixby Chvátal Cook
92Managing the LPs of the TSP
V(V-1)/2
Column generation Pricing.
CORE LP
3V variables 1.5V constraints
astronomical
Cuts Separation
93A Pictorial History of Some TSP World Records
94Some TSP World Records
year authors cities variables
1954 DFJ 42/49 820/1,146
1977 G 120 7,140
1987 PR 532 141,246
1988 GH 666 221,445
1991 PR 2,392 2,859,636
1992 ABCC 3,038 4,613,203
1994 ABCC 7,397 27,354,106
1998 ABCC 13,509 91,239,786
2001 ABCC 15,112 114,178,716
2004 ABCC 24,978 311,937,753
2006pla 85,900 solved 3,646,412,050variables
number of cities 2000xincrease 4,000,000 times p
roblem size increase in 52 years
2005 W. Cook, D. Epsinoza, M. Goycoolea
33,810 571,541,145
95The current champions
- ABCC stands for
- D. Applegate, B. Bixby, W. Cook, V. Chvátal
- almost 15 years of code development
- presentation at ICM98 in Berlin, see proceedings
- have made their code CONCORDE available in the
Internet
96USA 49
49 cities 1,146 variables 1954
G. Dantzig, D.R. Fulkerson, S. Johnson
97West-Deutschland und Berlin
120 Städte 7140 Variable 1975/1977/1980
M. Grötschel
98A tour around the world
666 cities 221,445 variables 1987/1991
M. Grötschel, O. Holland, seehttp//www.zib.de/gr
oetschel/pubnew/paper/groetschelholland1991.pdf
99USA cities with population gt500
13,509 cities 91,239,786 Variables 1998
D. Applegate, R.Bixby, V. Chvátal, W. Cook
100usa13509 The branching tree
101Summary usa13509
- 9539 nodes branching tree
- 48 workstations (Digital Alphas, Intel Pentium
IIs, Pentium Pros, Sun UntraSparcs) - Total CPU time 4 cpu years
102Overlay of3 OptimalGermanytours
fromABCC 2001 http//www.math.princeton.edu/tsp
/d15sol/dhistory.html
103Optimal Tour of Sweden
311,937,753 variables ABCC plus Keld
Helsgaun Roskilde Univ. Denmark.
104World Tour, current status
http//www.tsp.gatech.edu/world/
We give links to several images of the World TSP
tour of length 7,516,353,779 found by Keld
Helsgaun in December 2003. A lower bound
provided by the Concorde TSP code shows that
this tour is at most 0.076 longer than an
optimal tour through the 1,904,711 cities.
105Vorlesungsplan
- Kapitel 1. Das Travelling-Salesman- und verwandte
Probleme ein Überblick und Anwendungen - 1. Vorlesung ppt-Überblick über das TSP, alte
Folien und Cook-Book, Archäologie, Dantzig,
Fulkerson und Johnson - Kapitel 2. Hamiltonsche und hypohamiltonsche
Graphen und Digraphen - 2. Vorlesung Hamiltonsche Graphen aus Bondy und
Murty - 3. Vorlesung Hypohamiltonsche und Hypobegehbare
Graphen (Thomassen-Paper und Paper mit Yoshiko) - Kapitel 3. Die natürlichen IP-Formulierungen
des TSP und des ATSP, Travelling
Salesman-PolytopeSubtour-Formulierungen, STSP
und ATSP-Polytop - Kapitel 4. Kombinatorische Verwandte des TSPDas
1-Baum-, 2-Matching-, Zuordnungs-,
1-Arboreszenz-Problem
106Vorlesungsplan
- Kapitel 5. Gütegarantien für Heuristiken,
Eröffnungsheuristiken für das TSP (NN, Insert,
Christofides,...) - Kapitel 6. Verbesserungsheuristiken und ein
polynomiales Approximationsschema (Exchange, LK,
Helsgaun, Simulated Annealing, evolutionäre
Algorithmen,...) - Kapitel 7. Ein BranchBound-Verfahren für das
ATSPAssignment-BB - Kapitel 8. 1-Bäume, Lagrange-Relaxierung und
untere Schranken durch ein Subgradientenverfahren
(HeldKarp) - Kapitel 9. Alternative IP-Modelle
- Kapitel 10. Das symmetrische TSP-Polytop
- Kapitel 11. Schnittebenenerkennung/Separationsalgo
rithmen
107Vorlesungsplan
- Kapitel 12. Zur praktischen Lösung großer TSPs
- Kapitel 13. TSPs mit Nebenbedingungen
(Reihenfolgebedingungen, Zeitfenster,
Multi-Salesmen,...) - Unterwegs einbauen Malen nach Zahlen,
TSP-Portraits (Gesichter), Knights-Problem im
Schach, Routenplanung,...
108The Travelling Salesman Problema brief survey
The END
- Martin Grötschel
- Vorausschau auf die VorlesungDas
Travelling-Salesman-Problem (ADM III)14.
Oktober 2013