Travelling Salesman Problem

Similar documents
Asymmetric Traveling Salesman Problem (ATSP): Models

Introduction to Mathematical Programming IE406. Lecture 21. Dr. Ted Ralphs

Chapter 3: Discrete Optimization Integer Programming

Math Models of OR: Traveling Salesman Problem

MVE165/MMG631 Linear and integer optimization with applications Lecture 8 Discrete optimization: theory and algorithms

Introduction to Bin Packing Problems

New Integer Programming Formulations of the Generalized Travelling Salesman Problem

3.7 Cutting plane methods

Week 8. 1 LP is easy: the Ellipsoid Method

Bounds on the Traveling Salesman Problem

Technische Universität München, Zentrum Mathematik Lehrstuhl für Angewandte Geometrie und Diskrete Mathematik. Combinatorial Optimization (MA 4502)

Integer Programming ISE 418. Lecture 8. Dr. Ted Ralphs

15.081J/6.251J Introduction to Mathematical Programming. Lecture 24: Discrete Optimization

3.8 Strong valid inequalities

21. Set cover and TSP

The traveling salesman problem

A New Approximation Algorithm for the Asymmetric TSP with Triangle Inequality By Markus Bläser

16.410/413 Principles of Autonomy and Decision Making

Lecture 8: Column Generation

MVE165/MMG630, Applied Optimization Lecture 6 Integer linear programming: models and applications; complexity. Ann-Brith Strömberg

CS 320, Fall Dr. Geri Georg, Instructor 320 NP 1

Determine the size of an instance of the minimum spanning tree problem.

Chapter 3: Discrete Optimization Integer Programming

Part III: Traveling salesman problems

Introduction to Integer Programming

3.7 Strong valid inequalities for structured ILP problems

Week Cuts, Branch & Bound, and Lagrangean Relaxation

EXACT ALGORITHMS FOR THE ATSP

Lecture 4: NP and computational intractability

Part III: Traveling salesman problems

CHAPTER 3 FUNDAMENTALS OF COMPUTATIONAL COMPLEXITY. E. Amaldi Foundations of Operations Research Politecnico di Milano 1

3.4 Relaxations and bounds

Algorithms and Theory of Computation. Lecture 22: NP-Completeness (2)

Compact vs. exponential-size LP relaxations

NP-completeness. Chapter 34. Sergey Bereg

Discrete Optimization 2010 Lecture 8 Lagrangian Relaxation / P, N P and co-n P

Discrete Optimization 2010 Lecture 7 Introduction to Integer Programming

Resource Constrained Project Scheduling Linear and Integer Programming (1)

Discrete (and Continuous) Optimization WI4 131

VIII. NP-completeness

to work with) can be solved by solving their LP relaxations with the Simplex method I Cutting plane algorithms, e.g., Gomory s fractional cutting

Integer Linear Programming (ILP)

Solving Elementary Shortest-Path Problems as Mixed-Integer Programs

Integer Linear Programming

NP-Completeness. NP-Completeness 1

NP-Completeness. CptS 223 Advanced Data Structures. Larry Holder School of Electrical Engineering and Computer Science Washington State University

The Ellipsoid (Kachiyan) Method

The quest for finding Hamiltonian cycles

The Traveling Salesman Problem with Pickup and Delivery. A polyhedral approach. IBM Research - Australia. Irina Dumitrescu

Lecture 23 Branch-and-Bound Algorithm. November 3, 2009

The Traveling Salesman Problem: An Overview. David P. Williamson, Cornell University Ebay Research January 21, 2014

CS/COE

15.083J/6.859J Integer Optimization. Lecture 2: Efficient Algorithms and Computational Complexity

Data Structures in Java

1 Column Generation and the Cutting Stock Problem

Lecture #21. c T x Ax b. maximize subject to

Solving a Production Scheduling Problem as a Time-Dependent Traveling Salesman Problem

NP-Completeness. Until now we have been designing algorithms for specific problems

The Traveling Salesman Problem: Inequalities and Separation

Fakultät für Mathematik

Modeling with Integer Programming

Cable Trench Problem

Lecture 9: Dantzig-Wolfe Decomposition

Combinatorial Optimization

NP-Completeness. ch34 Hewett. Problem. Tractable Intractable Non-computable computationally infeasible super poly-time alg. sol. E.g.

4/12/2011. Chapter 8. NP and Computational Intractability. Directed Hamiltonian Cycle. Traveling Salesman Problem. Directed Hamiltonian Cycle

Introduction to Integer Linear Programming

Branch-and-Bound. Leo Liberti. LIX, École Polytechnique, France. INF , Lecture p. 1

A simple LP relaxation for the Asymmetric Traveling Salesman Problem

A Time Bucket Formulation for the TSP with Time Windows

Network Flows. 6. Lagrangian Relaxation. Programming. Fall 2010 Instructor: Dr. Masoud Yaghini

Tractable & Intractable Problems

where X is the feasible region, i.e., the set of the feasible solutions.

15.083J/6.859J Integer Optimization. Lecture 10: Solving Relaxations

SAT, Coloring, Hamiltonian Cycle, TSP

In complexity theory, algorithms and problems are classified by the growth order of computation time as a function of instance size.

Part 4. Decomposition Algorithms

A maritime version of the Travelling Salesman Problem

Deciding Emptiness of the Gomory-Chvátal Closure is NP-Complete, Even for a Rational Polyhedron Containing No Integer Point

IE418 Integer Programming

Time Dependent Traveling Salesman Problem with Time Windows: Properties and an Exact Algorithm

Teaching Integer Programming Formulations Using the Traveling Salesman Problem

8.3 Hamiltonian Paths and Circuits

Algorithms. Outline! Approximation Algorithms. The class APX. The intelligence behind the hardware. ! Based on

Limits to Approximability: When Algorithms Won't Help You. Note: Contents of today s lecture won t be on the exam

Combinatorial optimization problems

Revisiting the Hamiltonian p-median problem: a new formulation on directed graphs and a branch-and-cut algorithm

The Multiple Traveling Salesperson Problem on Regular Grids

On the strength of approximate linear programming relaxations for the traveling salesman problem

Decision Procedures An Algorithmic Point of View

5 Integer Linear Programming (ILP) E. Amaldi Foundations of Operations Research Politecnico di Milano 1

Integer Programming Part II

ECS122A Handout on NP-Completeness March 12, 2018

Chapter 34: NP-Completeness

Duality of LPs and Applications

Approximation Algorithms for Asymmetric TSP by Decomposing Directed Regular Multigraphs

An Exact Algorithm for the Steiner Tree Problem with Delays

Maximum Flow Problem (Ford and Fulkerson, 1956)

Multicommodity Flows and Column Generation

Vehicle Routing and MIP

Transcription:

Travelling Salesman Problem Fabio Furini November 10th, 2014 Travelling Salesman Problem 1

Outline 1 Traveling Salesman Problem Separation Travelling Salesman Problem 2

(Asymmetric) Traveling Salesman Problem - ATSP Given n cities and the distance d ij between any pair (i, j) of them, find the shortest tour which goes trough all cities and back to the starting city. Formally, given a directed, complete graph G = (V, A) and a positive distance d ij for each arc a = (i, j) A, find the shortest circuit of G which visits each vertex i V exactly once. We use binary variables x a, a A, taking value 1 when arc a is selected and 0 otherwise. Is that enough? min a A d a x a a δ (i) a δ + (i) x a = 1, x a = 1, x a {0, 1}, i V i V a A Travelling Salesman Problem 3

(Asymmetric) Traveling Salesman Problem - ATSP In order to forbid solutions with subtours, we can impose the following condition: for any subset S of vertices, there must be at least one arc leaving the subset. Equivalently, there can be at most S 1 arcs within the subset. Subtour Eliminations Constrains, in exponential number, read: a A(S) x a S 1, S V, 1 < S < V 1 Travelling Salesman Problem 4

Strong formulations for ILP We have seen that different ILP formulations provide different continuous relaxations, with a strong impact on the practical solvability of the problem. Theorem - For any ILP, it exists an LP formulation whose optimal solution is integer (thus feasible and optimal for the ILP). Unfortunately, this ideal formulation has in general exponentially many inequalities, and it is NP-complete to generate one of these inequalities. However, producing some strong inequalities which improve the LB provided by the continuous relaxation can be very useful for the solution of generic ILPs. Modern ILP solvers are all based on a Branch-and-Cut framework: at each node of the B&B, the solver generates some inequalities (cuts) to improve the LB associated with the node. Travelling Salesman Problem 5

LP Models with too many constraints Solving an ILP with exponentially many constraints (like the TSP model) asks to solve an LP with the same constraints (and then apply B&B). Consider the generic LP: min c x Ax b x 0 where A is too large to be explicitly given to an LP solver. Key observation: not all the constraints are active at an optimal solution. Thus, consider a subset of them which are enough. Travelling Salesman Problem 6

Separation Algorithm Branch and Cut 1 Initialize Ã, b with a subset of the constrains defined by A and b 2 Solve the corresponding LP and get x : min c x Ãx b x 0 3 If x satisfies all the constraints Ax b then it is optimal for the complete problem, otherwise add the violated constrains and go to 2) The crucial point is checking the condition (3) (separation). Theorem - (Grötschel, Lovász, Schrijver, 1981) - If (3) can be solved in polynomial time, the whole procedure converges in polynomial time. Observation If we stop the Separation Algorithm before convergence, we have a lower bound on the optimal solution value of the LP. Travelling Salesman Problem 7

ATSP - Separation of the Subtour Elimination Constraints Given x, we are looking for a violated constraint of the form: x a S 1, S V, 1 < S < V 1 a A(S) That is, given x we want to find, if it exists, a subset S V such that: xa > S 1 a A(S ) 1 < S < V 1 If such a subset does not exist, x is feasible (i.e., there are no subtours in the solution). Travelling Salesman Problem 8

ATSP - Separation of the Subtour Elimination Constraints To find S, we solve an associated ILP, where binary variables y i take value 1 if vertex i is in S ; and binary variables z a take value 1 if arc a is in A(S ) (here x is a parameter). S exists if and only if there is a solution to the system: xa z a > y i 1 a A i V z a=(i,j) = 1 y i = y j = 1, 1 < y i < V 1 i V y i, z a {0, 1}, (i, j) A i V, a A If such a subset does not exist, x is feasible (i.e., there are no subtours in the solution). Travelling Salesman Problem 9

ATSP - Separation of the Subtour Elimination Constraints We can look for the set S, corresponding to the most violated constraint by solving: min i V y i a A x a z a z a=(i,j) = 1 y i = y j = 1, 1 < y i < V 1 i V y i, z a {0, 1}, (i, j) A i V, a A If the optimal solution has value 1 then x satisfies all subtour elimination constrains (i.e., there are no subtours in the solution), otherwise S = {i V : ȳ = 1} defines the most violated constraint by x. Travelling Salesman Problem 10

ATSP - Separation of the Subtour Elimination Constraints The logical condition z a=(i,j) = 1 y i = y j = 1, (i, j) A can be expressed by: z i,j y i, (i, j) A z i,j y j, (i, j) A z i,j y i + y j 1, (i, j) A Travelling Salesman Problem 11

fabio.furini@dauphine.fr Travelling Salesman Problem 12