### Integer Programming Formulation of Traveling Salesman ProblemsInteger Programming Formulation of Traveling Salesman Problems

Access Restriction
Subscribed

 Author Miller, C. E. ♦ Tucker, A. W. ♦ Zemlin, R. A. Source ACM Digital Library Content type Text Publisher Association for Computing Machinery (ACM) File Format PDF Copyright Year ©1960 Language English
 Subject Domain (in DDC) Computer science, information & general works ♦ Data processing & computer science Abstract It has been observed by many people that a striking number of quite diverse mathematical problems can be formulated as problems in integer programming, that is, linear programming problems in which some or all of the variables are required to assume integral values. This fact is rendered quite interesting by recent research on such problems, notably by R. E. Gomory [2, 3], which gives promise of yielding efficient computational techniques for their solution. The present paper provides yet another example of the versatility of integer programming as a mathematical modeling device by representing a generalization of the well-known “Travelling Salesman Problem” in integer programming terms. The authors have developed several such models, of which the one presented here is the most efficient in terms of generality, number of variables, and number of constraints. This model is due to the second author [4] and was presented briefly at the Symposium on Combinatorial Problems held at Princeton University, April 1960, sponsored by SIAM and IBM. The problem treated is: (1) A salesman is required to visit each of $\textit{n}$ cities, indexed by 1, ··· , $\textit{n}.$ He leaves from a “base city” indexed by 0, visits each of the $\textit{n}$ other cities exactly once, and returns to city 0. During his travels he must return to 0 exactly $\textit{t}$ times, including his final return (here $\textit{t}$ may be allowed to vary), and he must visit no more than $\textit{p}$ cities in one tour. (By a tour we mean a succession of visits to cities without stopping at city 0.) It is required to find such an itinerary which minimizes the total distance traveled by the salesman. Note that if $\textit{t}$ is fixed, then for the problem to have a solution we must have $\textit{tp}$ ≧ $\textit{n}.$ For $\textit{t}$ = 1, $\textit{p}$ ≧ $\textit{n},$ we have the standard traveling salesman problem.Let $\textit{dij}$ $(\textit{i}$ ≠ $\textit{j}$ = 0, 1, ··· , $\textit{n})$ be the distance covered in traveling from city $\textit{i}$ to city $\textit{j}.$ The following integer programming problem will be shown to be equivalent to (1): (2) Minimize the linear form $∑0≦\textit{i}≠\textit{j}≦\textit{n}∑$ $\textit{dijxij}$ over the set determined by the relations $∑\textit{n}\textit{i}=0\textit{i}≠\textit{j}$ $\textit{xij}$ = 1 $(\textit{j}$ = 1, ··· , $\textit{n})$ $∑\textit{n}\textit{j}=0\textit{j}≠\textit{i}$ $\textit{xij}$ = 1 $(\textit{i}$ = 1, ··· , $\textit{n})$ $\textit{ui}$ - $\textit{uj}$ + $\textit{pxij}$ ≦ $\textit{p}$ - 1 (1 ≦ $\textit{i}$ ≠ $\textit{j}$ ≦ $\textit{n})$ where the $\textit{xij}$ are non-negative integers and the $\textit{ui}$ $(\textit{i}$ = 1, …, $\textit{n})$ are arbitrary real numbers. (We shall see that it is permissible to restrict the $\textit{ui}$ to be non-negative integers as well.) If $\textit{t}$ is fixed it is necessary to add the additional relation: $∑\textit{n}\textit{u}=1$ $\textit{x}\textit{i}0$ = $\textit{t}$ Note that the constraints require that $\textit{xij}$ = 0 or 1, so that a natural correspondence between these two problems exists if the $\textit{xij}$ are interpreted as follows: The salesman proceeds from city $\textit{i}$ to city $\textit{j}$ if and only if $\textit{xij}$ = 1. Under this correspondence the form to be minimized in (2) is the total distance to be traveled by the salesman in (1), so the burden of proof is to show that the two feasible sets correspond; i.e., a feasible solution to (2) has $\textit{xij}$ which do define a legitimate itinerary in (1), and, conversely a legitimate itinerary in (1) defines $\textit{xij},$ which, together with appropriate $\textit{ui},$ satisfy the constraints of (2).Consider a feasible solution to (2). The number of returns to city 0 is given by $∑\textit{n}\textit{i}=1$ $\textit{x}\textit{i}0.$ The constraints of the form ∑ $\textit{xij}$ = 1, all $\textit{xij}$ non-negative integers, represent the conditions that each city (other than zero) is visited exactly once. The $\textit{ui}$ play a role similar to node potentials in a network and the inequalities involving them serve to eliminate tours that do not begin and end at city 0 and tours that visit more than $\textit{p}$ cities. Consider any $\textit{x}\textit{r}0\textit{r}1$ = 1 $(\textit{r}1$ ≠ 0). There exists a unique $\textit{r}2$ such that $\textit{x}\textit{r}1\textit{r}2$ = 1. Unless $\textit{r}2$ = 0, there is a unique $\textit{r}3$ with $\textit{x}\textit{r}2\textit{r}3$ = 1. We proceed in this fashion until some $\textit{rj}$ = 0. This must happen since the alternative is that at some point we reach an $\textit{rk}$ = $\textit{rj},$ $\textit{j}$ + 1 < $\textit{k}.$ Since none of the $\textit{r}'s$ are zero we have $\textit{uri}$ - $\textit{u}\textit{r}\textit{i}$ + 1 + $\textit{px}\textit{ri}\textit{r}\textit{i}$ + 1 ≦ $\textit{p}$ - 1 or $\textit{uri}$ - $\textit{u}\textit{r}\textit{i}$ + 1 ≦ - 1. Summing from $\textit{i}$ = $\textit{j}$ to $\textit{k}$ - 1, we have $\textit{urj}$ - $\textit{urk}$ = 0 ≦ $\textit{j}$ + 1 - $\textit{k},$ which is a contradiction. Thus all tours include city 0. It remains to observe that no tours is of length greater than $\textit{p}.$ Suppose such a tour exists, $\textit{x}0\textit{r}1$ , $\textit{x}\textit{r}1\textit{r}2$ , ···· , $\textit{x}\textit{rpr}\textit{p}+1$ = 1 with all $\textit{ri}$ ≠ 0. Then, as before, $\textit{u}\textit{r}1$ - $\textit{u}\textit{r}\textit{p}+1$ ≦ - $\textit{p}$ or $\textit{u}\textit{r}\textit{p}+1$ - $\textit{u}\textit{r}1$ ≧ $\textit{p}.$ But we have $\textit{u}\textit{r}\textit{p}+1$ - $\textit{u}\textit{r}1$ + $\textit{px}\textit{r}\textit{p}+1\textit{r}1$ ≦ $\textit{p}$ - 1 or $\textit{u}\textit{r}\textit{p}+1$ - $\textit{u}\textit{r}1$ ≦ $\textit{p}$ (1 - $\textit{x}\textit{r}\textit{p}+1\textit{r}1)$ - 1 ≦ $\textit{p}$ - 1, which is a contradiction.Conversely, if the $\textit{xij}$ correspond to a legitimate itinerary, it is clear that the $\textit{ui}$ can be adjusted so that $\textit{ui}$ = $\textit{j}$ if city $\textit{i}$ is the $\textit{j}th$ city visited in the tour which includes city $\textit{i},$ for we then have $\textit{ui}$ - $\textit{uj}$ = - 1 if $\textit{xij}$ = 1, and always $\textit{ui}$ - $\textit{uj}$ ≦ $\textit{p}$ - 1. The above integer program involves $\textit{n}2$ + $\textit{n}$ constraints (if $\textit{t}$ is not fixed) in $\textit{n}2$ + $2\textit{n}$ variables. Since the inequality form of constraint is fundamental for integer programming calculations, one may eliminate $2\textit{n}$ variables, say the $\textit{x}\textit{i}0$ and $\textit{x}0\textit{j},$ by means of the equation constraints and produce an equivalent problem with $\textit{n}2$ + $\textit{n}$ inequalities and $\textit{n}2$ variables.The currently known integer programming procedures are sufficiently regular in their behavior to cast doubt on the heuristic value of machine experiments with our model. However, it seems appropriate to report the results of the five machine experiments we have conducted so far. The solution procedure used was the all-integer algorithm of R. E. Gomory [3] without the ranking procedure he describes.The first three experiments were simple model verification tests on a four-city standard traveling salesman problem with distance matrix [ 20 23 4 30 7 27 25 5 25 3 21 26 ]The first experiment was with a model, now obsolete, using roughly twice as many constraints and variables as the current model (for this problem, 28 constraints in 21 variables). The machine was halted after 4000 pivot steps had failed to produce a solution. The second experiment used the earlier model with the $\textit{x}\textit{i}0$ and $\textit{x}0\textit{j}$ eliminated, resulting in a 28-constraint, 15-variable problem. Here the machine produced the optimal solution in 41 pivot steps.The third experiment used the current formulation with the $\textit{x}\textit{i}0$ and $\textit{x}0\textit{j}$ eliminated, yielding 13 constraints and 9 variables. The optimal solution was reached in 7 pivot steps.The fourth and fifth experiments were used on a standard ten-city problem, due to Barachet, solved by Dantzig, Johnson and Fulkerson [1]. The current formulation was used, yielding 91 constraints in 81 variables. The fifth problem differed from the fourth only in that the ordering of the rows was altered to attempt to introduce more favorable pivot choices. In each case the machine was stopped after over 250 pivot steps had failed to produce the solution. In each case the last 100 pivot steps had failed to change the value of the objective function.It seems hopeful that more efficient integer programming procedures now under development will yield a satisfactory algorithmic solution to the traveling salesman problem, when applied to this model. In any case, the model serves to illustrate how problems of this sort may be succinctly formulated in integer programming terms. ISSN 00045411 Age Range 18 to 22 years ♦ above 22 year Educational Use Research Education Level UG and PG Learning Resource Type Article Publisher Date 1960-10-01 Publisher Place New York e-ISSN 1557735X Journal Journal of the ACM (JACM) Volume Number 7 Issue Number 4 Page Count 4 Starting Page 326 Ending Page 329

#### Open content in new tab

Source: ACM Digital Library