H.P. WILLIAMS LONDON SCHOOL OF ECONOMICS

Slides:



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

The simplex algorithm The simplex algorithm is the classical method for solving linear programs. Its running time is not polynomial in the worst case.
C&O 355 Mathematical Programming Fall 2010 Lecture 22 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A.
Introduction to Algorithms
DMOR Networks. Graphs: Koenigsberg bridges Leonard Euler problem (1736)
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.
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.
2. Valid Inequalities for the 0-1 Knapsack Polytope Integer Programming
Management Science 461 Lecture 2b – Shortest Paths September 16, 2008.
Branch and Bound Searching Strategies
Math443/543 Mathematical Modeling and Optimization
Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy under contract.
Linear Programming Applications
Network Simplex Method Fatme Elmoukaddem Jignesh Patel Martin Porcelli.
1 Integrality constraints Integrality constraints are often crucial when modeling optimizayion problems as linear programs. We have seen that if our linear.
The Problem with Integer Programming H.P.Williams London School of Economics.
The Travelling Salesman Problem (TSP)
1.3 Modeling with exponentially many constr.  Some strong formulations (or even formulation itself) may involve exponentially many constraints (cutting.
Network Models (2) Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology Tran Van Hoai.
The Chvátal Dual of a Pure Integer Programme H.P.Williams London School of Economics.
Notes 6IE3121 Knapsack Model Intuitive idea: what is the most valuable collection of items that can be fit into a backpack?
MODELING AND ANALYSIS OF MANUFACTURING SYSTEMS Session 12 MACHINE SETUP AND OPERATION SEQUENCING E. Gutierrez-Miravete Spring 2001.
Notes 5IE 3121 Knapsack Model Intuitive idea: what is the most valuable collection of items that can be fit into a backpack?
Lecture 6 – Integer Programming Models Topics General model Logic constraint Defining decision variables Continuous vs. integral solution Applications:
Chap 10. Integer Prog. Formulations
and 6.855J Lagrangian Relaxation I never missed the opportunity to remove obstacles in the way of unity. —Mohandas Gandhi.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
An Integrated Approach to Load Matching, Routing, and Equipment Balancing Problem Sarah Root June 8, 2005 Joint work with advisor Amy M. Cohn.
1 Network Models Transportation Problem (TP) Distributing any commodity from any group of supply centers, called sources, to any group of receiving.
Integer Linear Programming Terms Pure integer programming mixed integer programming 0-1 integer programming LP relaxation of the IP Upper bound O.F. Lower.
Branch-and-Cut Valid inequality: an inequality satisfied by all feasible solutions Cut: a valid inequality that is not part of the current formulation.
Integer Programming (정수계획법)
1 An Arc-Path Model for OSPF Weight Setting Problem Dr.Jeffery Kennington Anusha Madhavan.
Flow in Network. Graph, oriented graph, network A graph G =(V, E) is specified by a non empty set of nodes V and a set of edges E such that each edge.
Lagrangean Relaxation
8/14/04 J. Bard and J. W. Barnes Operations Research Models and Methods Copyright All rights reserved Lecture 6 – Integer Programming Models Topics.
Lecture 6 – Integer Programming Models Topics General model Logic constraint Defining decision variables Continuous vs. integral solution Applications:
The Multicommodity Flow Problem Updated 21 April 2008.
1.3 Modeling with exponentially many constr. Integer Programming
The minimum cost flow problem. Solving the minimum cost flow problem.
Approximation Algorithms Duality My T. UF.
Tuesday, March 19 The Network Simplex Method for Solving the Minimum Cost Flow Problem Handouts: Lecture Notes Warning: there is a lot to the network.
Traveling Salesman Problem DongChul Kim HwangRyol Ryu.
EMIS 8373: Integer Programming Combinatorial Optimization Problems updated 27 January 2005.
Discrete Optimization MA2827 Fondements de l’optimisation discrète Material from P. Van Hentenryck’s course.
Part 3 Linear Programming
St. Edward’s University
EMIS 8373: Integer Programming
Joint work with Frans Schalekamp and Anke van Zuylen
The minimum cost flow problem
The Subtour LP for the Traveling Salesman Problem
1 The Travelling Salesman Problem (TSP) H.P. Williams Professor of Operational Research London School of Economics.
Traveling Salesman Problem
Networks.
1.3 Modeling with exponentially many constr.
Chapter 4 Linear Programming: The Simplex Method
2 TSP algorithms: (1) AP+B&B, (2) min spanning tree.
Part 3 Linear Programming
Integer Programming (정수계획법)
Unit 4: Dynamic Programming
1.206J/16.77J/ESD.215J Airline Schedule Planning
Neural Networks Chapter 4
András Sebő and Anke van Zuylen
1.3 Modeling with exponentially many constr.
Integer Programming (정수계획법)
Chapter 5 Transportation, Assignment, and Transshipment Problems
Chapter 6 Network Flow Models.
Flow Feasibility Problems
Part 3 Linear Programming
Lecture 6 – Integer Programming Models
Presentation transcript:

H.P. WILLIAMS LONDON SCHOOL OF ECONOMICS         H.P. WILLIAMS   LONDON SCHOOL OF ECONOMICS   MODELS FOR SOLVING THE TRAVELLING SALESMAN PROBLEM h.p.williams@lse.ac.uk

Conventional Formulation: STANDARD FORMULATION OF THE (ASYMMETRIC) TRAVELLING SALESMAN PROBLEM Conventional Formulation: (cities 1,2, …, n) (Dantzig, Fulkerson, Johnson) (1954). is a link in tour Minimise:  subject to:

0(2n) Constraints = (2n-1 + n –2) 0(n2) Variables = n(n – 1) e.g. 2 6 3 0(2n) Constraints = (2n-1 + n –2)   0(n2) Variables = n(n – 1)

all EQUIVALENT FORMULATION Replace subtour elimination constraints with   all ____ S S   Add second set of constraints for all i in S and subtract from subtour elimination constraints for S

OPTIMAL SOLUTON TO A 10 CITY TRAVELLING SALESMAN PROBLEM 8 6 3 2 7 9 5 4 Cost = 881

FRACTIONAL SOLUTION FROM CONVENTIONAL (EXPONENTIAL) FORMULATION) Cost = 878 (Optimal Cost = 881)

Subtour elimination constraints replaced by Sequential Formulation (Miller, Tucker, Zemlin (1960))   ui = Sequence Number in which city i visited Defined for i = 2,3, …, n Subtour elimination constraints replaced by S: ui - uj +nxij n – 1 i,j = 2,3, …, n Avoids subtours but allows total tours (containing city 1) u2 – u6+ nx26 n-1 u6 – u3+ nx63 n-1 u3 – u2+ nx32 n-1 2 6 3 3n 3(n – 1) 0(n2) Constraints = (n2 – n + 2) 0(n2) Variables = (n – 1) (n + 1) Weak but can add 'Logic Cuts' e.g.

FRACTIONAL SOLUTION FROM SEQUENTIAL FORMULATION   Subtour Constraints Violated : e.g.   Logic Cuts Violated: e.g. Cost = 773 3/5 (Optimal Cost = 881)

Single Commodity (Gavish & Graves (1978)) Flow Formulations   Single Commodity (Gavish & Graves (1978)) Introduce extra variables (‘Flow’ in an arc) Replace subtour elimination constraints by F1: Can improve (F1’) by amended constraints: all

Network Flow formulation in variables over complete graph   Network Flow formulation in variables over complete graph 4 2 1 3 n-1 Graph must be connected. Hence no subtours possible. Constraints Variables

FRACTIONAL SOLUTION FROM SINGLE COMMODITY FLOW FORMULATION Cost = 794 (Optimal solution = 881)

FRACTIONAL SOLUTION FROM MODIFIED SINGLE COMMODITY FLOW FORMULATION     Cost = (Optimal solution = 881) (192=3x64)

Two Commodity Flow (Finke, Claus Gunn (1983)) =   = 1 Commodity 1 1 3 2 1 1 Commodity 2 1 n-1 n-1 Commodity 2 Commodity 1 Constraints Variables

F3 Multi-Commodity (Wong (1980) Claus (1984))   “Dissaggregate” variables is flow in arc destined for F3   Constraints Variables LP Relaxation of equal strength to Conventional Formulation.   But of polynomial size. Tight Formulation of Min Cost Spanning Tree + (Tight) Assignment Problem

FRACTIONAL SOLUTION FROM MULTI COMMODITY FLOW FORMULATION (= FRACTIONAL SOLUTION FROM CONVENTIONAL (EXPONENTIAL) FORMULATION)   Cost = 878 (Optimal Cost = 881)

Stage Dependent Formulations   First (Fox, Gavish, Graves (1980))    = 1 if arc traversed at stage t = 0 otherwise T1:     (Stage at which i left 1 more than stage at which entered) Also convenient to introduce variables with constraints

FRACTIONAL SOLUTION FROM 1ST (AGGREGATED) TIME-STAGED FORMULATION Cost = 364.5 (Optimal solution = 881)  NB ‘Lengths’ of Arcs can be > 1

Initial conditions no longer necessary 0(n) Constraints = 4 n – 1 Second (Fox, Gavish, Graves (1980)) T2: Disaggregate to give all j all i all t Initial conditions no longer necessary   0(n) Constraints = 4 n – 1   0(n3) Variables = n2 (n – 1)

FRACTIONAL SOLUTION FROM 2nd TIME-STAGED FORMULATION Cost = (optimal solution = 881) (714 = 2 x 3 x 7 x 17)

Third (Vajda/Hadley (1960)) interpreted as before all j all i all t = 0 all j, t = 1 = 1 0 (n2) Constraints = (2n2+ 3) 0 (n3) Variables = n2(n-1)  

FRACTIONAL SOLUTION FROM 2nd TIME 2nd TIME-STAGED FORMULATION Optimal solution = 881 Cost =

Multicommodity Flow Formulation OBSERVATION  Multicommodity Flow Formulation is flow destined for node t Time Staged Formulation   Are these formulations related? Can extra variables , introduced syntactically, be given different semantic interpretations?

This is the projection of formulation into space of original variables COMPARING FORMULATIONS Minimise: Subject to: W forms a cone which can be characterised by its extreme rays giving matrix Q such that Hence   This is the projection of formulation into space of original variables

COMPARING FORMULATIONS Project out variables by Fourier-Motzkin elimination to reduce to space of conventional formulation. P (r) is polytope of LP relaxation of projection of formulation r. Formulation S (Sequential) Project out around each directed cycle S by summing weaker than |S|-1 (for S a ie subset of nodes) Hence

Formulation F1 (1 Commodity Network Flow) Projects to Hence Formulation F1' (Amended 1 Commodity Network Flow) Projects to Hence Formulation F2 (2 Commodity Network Flow) Projects to Hence P(F2) = P(F1)

Formulation T1 (First Stage Dependant) Formulation F3 (Multi Commodity Network Flow)   Projects to Hence P(F3) = P(C) Formulation T1 (First Stage Dependant) Projects to (Cannot convert 1st constraint to ‘ ‘form since Assignment Constraints not present)

Hence P(T3) P(T2) Formulation T2 (Second Stage Dependant) Projects to   Formulation T2 (Second Stage Dependant) Projects to + others   Hence P(T2) P(F1') Formulation T3 (Third Stage Dependant) Projects to + others   Can show stronger than T2  Hence P(T3) P(T2)

Solutions obtained using NEW MAGIC and EMSOL Computational Results of a 10-City TSP in order to compare sizes and strengths of LP Relaxations Solutions obtained using NEW MAGIC and EMSOL

P(TSP) TSP Polytope – not fully known P(X) Polytope of Projected LP relaxations

Reference AJ Orman and HP Williams, A Survey of Different Formulations of the Travelling Salesman Problem, in C Gatu and E Kontoghiorghes (Eds), Advances in Computational Management Science 9 Optimisation, Econometric and Financial Analysis (2006) Springer