1 The Travelling Salesman Problem (TSP) H.P. Williams Professor of Operational Research London School of Economics.

Slides:



Advertisements
Similar presentations
Vehicle Routing: Coincident Origin and Destination Points
Advertisements

Copyright © 2005 Pearson Education, Inc. Slide 13-1.
Approximating Graphic TSP by Matchings Tobias Mömke and Ola Svensson KTH Royal Institute of Technology Sweden.
22C:19 Discrete Math Graphs Fall 2010 Sukumar Ghosh.
22C:19 Discrete Math Graphs Fall 2014 Sukumar Ghosh.
H.P. WILLIAMS LONDON SCHOOL OF ECONOMICS
Lecture 24 Coping with NPC and Unsolvable problems. When a problem is unsolvable, that's generally very bad news: it means there is no general algorithm.
Traveling Salesman Problem By Susan Ott for 252. Overview of Presentation Brief review of TSP Examples of simple Heuristics Better than Brute Force Algorithm.
VEHICLE ROUTING PROBLEM
CS171 Introduction to Computer Science II Graphs Strike Back.
The Subtour LP for the Traveling Salesman Problem (or, What I did on my sabbatical) David P. Williamson Cornell University 11 Oct 2011 Joint work with.
BY: MIKE BASHAM, Math in Scheduling. The Bridges of Konigsberg.
The 2 Period Travelling Salesman Problem Applied to Milk Collection in Ireland By Professor H P Williams,London School of Economics Dr Martin Butler, University.
9.2 The Traveling Salesman Problem. Let us return to the question of finding a cheapest possible cycle through all the given towns: We have n towns (points)
Vehicle Routing & Scheduling: Part 1
Rohit Ray ESE 251. The goal of the Traveling Salesman Problem (TSP) is to find the most economical way to tour of a select number of “cities” with the.
Graphs and Trees This handout: Eulerian Cycles: Sufficiency of the condition Hamiltonian tour.
Vehicle Routing & Scheduling
Introduction THE PROBLEM The Traveling Salesman Problem (TSP) is one of the most intensively studied problems in computational mathematics. In TSP it is.
Approximation Algorithms Motivation and Definitions TSP Vertex Cover Scheduling.
The Travelling Salesman Problem (TSP)
The Traveling Salesperson Problem Algorithms and Networks.
Chapter 12 Coping with the Limitations of Algorithm Power Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
The Traveling Salesman Problem Approximation
University of Texas at Arlington Srikanth Vadada Kishan Kumar B P Fall CSE 5311 Solving Travelling Salesman Problem for Metric Graphs using MST.
1 1 1-to-Many Distribution Vehicle Routing John H. Vande Vate Spring, 2005.
Combinatorial Optimization Chapter 1. Problems and Algorithms  1.1 Two Problems (representative problems)  The Traveling Salesman Problem 47 drilling.
6.1 Hamilton Circuits and Paths: Hamilton Circuits and Paths: Hamilton Path: Travels to each vertex once and only once… Hamilton Path: Travels to each.
MODELING AND ANALYSIS OF MANUFACTURING SYSTEMS Session 12 MACHINE SETUP AND OPERATION SEQUENCING E. Gutierrez-Miravete Spring 2001.
CS 200 Algorithms and Data Structures
Finite Mathematics, Feodor F. Dragan, Kent State University 1.
Notes 5IE 3121 Knapsack Model Intuitive idea: what is the most valuable collection of items that can be fit into a backpack?
The Traveling Salesman Problem Over Seventy Years of Research, and a Million in Cash Presented by Vladimir Coxall.
Vehicle Routing & Scheduling
Traveling Salesman Problem (TSP)
1 Approximation Algorithm Updated on 2012/12/25. 2 Approximation Algorithm Up to now, the best algorithm for solving an NP-complete problem requires exponential.
I can describe the differences between Hamilton and Euler circuits and find efficient Hamilton circuits in graphs. Hamilton Circuits I can compare and.
Management Science 461 Lecture 7 – Routing (TSP) October 28, 2008.
1 Euler and Hamilton paths Jorge A. Cobb The University of Texas at Dallas.
Copyright © 2008 Pearson Education, Inc. Slide 13-1 Unit 13B The Traveling Salesman Problem.
Grade 11 AP Mathematics Graph Theory Definition: A graph, G, is a set of vertices v(G) = {v 1, v 2, v 3, …, v n } and edges e(G) = {v i v j where 1 ≤ i,
Traveling Salesman Problem DongChul Kim HwangRyol Ryu.
1 Minimum Spanning Tree: Solving TSP for Metric Graphs using MST Heuristic Soheil Shafiee Shabnam Aboughadareh.
D1 Discrete Mathematics
Optimization problems such as
Routing Through Networks - 1
School of Computing Clemson University Fall, 2012
Joint work with Frans Schalekamp and Anke van Zuylen
Hamiltonian Cycle and TSP
Week 11 - Monday CS221.
The Subtour LP for the Traveling Salesman Problem
EECS 203 Lecture 20 More Graphs.
Traveling Salesman Problem
Chapter 2: Business Efficiency Lesson Plan
1.3 Modeling with exponentially many constr.
Heuristics Definition – a heuristic is an inexact algorithm that is based on intuitive and plausible arguments which are “likely” to lead to reasonable.
Approximation Algorithms for TSP
The Travelling Salesperson problem
D1 Discrete Mathematics
… The traveling salesman problem on the WWW 49 cities Dantzig, Fulkerson, and Johnson (1954) 120 cities Groetschel (1977). Padberg and Rinaldi.
Maximum Flows of Minimum Cost
Chapter 2: Business Efficiency Business Efficiency
Great Ideas: Algorithm Implementation
Heuristic Algorithms via VBA
1.3 Modeling with exponentially many constr.
Heuristic Algorithms via VBA
Heuristic Algorithms via VBA
CSC 380: Design and Analysis of Algorithms
Approximation Algorithms
Vehicle Routing John H. Vande Vate Fall,
Presentation transcript:

1 The Travelling Salesman Problem (TSP) H.P. Williams Professor of Operational Research London School of Economics

2 A Salesman wishes to travel around a given set of cities, and return to the beginning, covering the smallest total distance Easy to State Difficult to Solve

3 If there is no condition to return to the beginning. It can still be regarded as a TSP. Suppose we wish to go from A to B visiting all cities. A B

4 If there is no condition to return to the beginning. It can still be regarded as a TSP. Connect A and B to a ‘dummy’ city at zero distance (If no stipulation of start and finish cities connect all to dummy at zero distance) A B

5 If there is no condition to return to the beginning. It can still be regarded as a TSP. Create a TSP Tour around all cities A B

6 A route returning to the beginning is known as a Hamiltonian Circuit A route not returning to the beginning is known as a Hamiltonian Path Essentially the same class of problem

7 Applications of the TSP Routing around Cities Computer Wiring -connecting together computer components using minimum wire length Archaeological Seriation - ordering sites in time Genome Sequencing - arranging DNA fragments in sequence Job Sequencing - sequencing jobs in order to minimise total set-up time between jobs Wallpapering to Minimise Waste NB: First three applications generally symmetric Last three asymmetric

8 8am-10am 2pm-3pm 3am-5am 7am-8am10am-1pm 4pm-7pm Major Practical Extension of the TSP Vehicle Routing - Meet customers demands within given time windows using lorries of limited capacity Depot 6am-9am 6pm-7pm Much more difficult than TSP

9 History of TSP 1800’s Irish Mathematician, Sir William Rowan Hamilton 1930’s Studied by Mathematicians Menger, Whitney, Flood etc. 1954Dantzig, Fulkerson, Johnson, 49 cities (capitals of USA states) problem solved Cities Cities Cities Cities Cities Cities (Electronic Wiring Example) Cities Cities (all towns in the USA with population > 500) Cities (towns in Germany) Cities (places in Sweden) But many smaller instances not yet solved (to proven optimality) But there are still many smaller instances which have not been solved.

10 Recent TSP Problems and Optimal Solutions from Web Page of William Cook, Georgia Tech, USA with Thanks

11 TSP History > TSP in Pictures > 2004: 24978TSP History > TSP in Pictures > 2004: 24978TSP History > TSP in Pictures > 2004: 24978TSP History > TSP in Pictures > 2004: Printed Circuit Board 2392 cities 1987 Padberg and Rinaldi 1954 n= n= n= n= n= n= n= n=13509 n= n=24978 HomeHome | TSP History TSP History HomeTSP History Back Last Updated: Jan 2005

12 USA Towns of 500 or more population cities 1998 Applegate, Bixby, Chvátal and Cook

13 Towns in Germany Cities 2001Applegate, Bixby, Chvátal and Cook

14 Sweden Cities 2004 Applegate, Bixby, Chvátal, Cook and Helsgaun

15 Solution Methods I.Try every possibility(n-1)! possibilities – grows faster than exponentially If it took 1 microsecond to calculate each possibility takes centuries to calculate all possibilities when n = 100 II.Optimising Methodsobtain guaranteed optimal solution, but can take a very, very, long time III. Heuristic Methods obtain ‘good’ solutions ‘quickly’ by intuitive methods. No guarantee of optimality (Place problem in newspaper with cash prize)

16 The Nearest Neighbour Method (Heuristic) – A ‘Greedy’ Method 1.Start Anywhere 2.Go to Nearest Unvisited City 3.Continue until all Cities visited 4.Return to Beginning

17 A 42-City Problem The Nearest Neighbour Method (Starting at City 1)

18 The Nearest Neighbour Method (Starting at City 1)

19 The Nearest Neighbour Method (Starting at City 1) Length

20 29 Remove Crossovers

21 Remove Crossovers

22 Remove Crossovers Length

23 Christofides Method (Heuristic) 1.Create Minimum Cost Spanning Tree (Greedy Algorithm) 2.‘Match’ Odd Degree Nodes 3.Create an Eulerian Tour - Short circuit cities revisited

Christofides Method 42 – City Problem Minimum Cost Spanning Tree Length 1124

25 Minimum Cost Spanning Tree by Greedy Algorithm Match Odd Degree Nodes

Match Odd Degree Nodes in Cheapest Way – Matching Problem

27 1.Create Minimum Cost Spanning Tree (Greedy Algorithm) 2.‘Match’ Odd Degree Nodes 3.Create an Eulerian Tour - Short circuit cities revisited

28 Create a Eulerian Tour – Short Circuiting Cities revisited Length

29 27 Optimising Method 1.Make sure every city visited once and left once – in cheapest way (Easy) -The Assignment Problem - Results in subtours Length

30 Put in extra constraints to remove subtours (More Difficult) Results in new subtours Length

31 Remove new subtours Results in further subtours Length

32 Further subtours Length

33 Further subtours Length

34 Further subtours Length

35 Optimal Solution Length