Docsity

travling salesman problem, Essays (university) of Mathematics for Computing

Toggle sidebar
bg1
Integer Programming Formulation of Traveling
Salesman Problems*
C. E. MILLER
Standard Ozl Company of California, San Francisco, California
A. W. TUCKER
Pmnceton University, Pmneeton, New Jersey
AND
R. A.
ZEMLIN~
Standard Od Company of Californta, San Francisco, Cal*fornza
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 pro-
gramming as a mathematical modeling device by representing a generalization
of the well-known "Traveling Salesman Problem" in integer programming
terms. The authors have developed several such models, of which the one pre-
sented 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 n cities, indexed by 1, .-- , n. He
leaves from a "base city" indexed by 0, visits each of the n other cities
exactly once, and returns to city 0. During his travels he must return to 0
exactly t times, including his final return (here t may be allowed to vary),
and he must visit no more than 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 t is fixed, then for the problem to have a solution we must have
tp _-> n.
For t = 1, p ~ n, we have the standard traveling salesman problem.
Let d~ (~ ~ j -- 0, 1, • • • , n) be the distance covered in traveling from city
i to city j. The following integer programming problem will be shown to be
• Received January, 1960; revised June, 1960.
t Now with Control Data Corp., Sunnyvale, Calif.
326
pf3
pf4

Partial preview of the text

Download travling salesman problem and more Essays (university) Mathematics for Computing in PDF only on Docsity!

Integer Programming Formulation of Traveling

Salesman Problems*

C. E. MILLER

Standard Ozl Company of California, San Francisco, California

A. W. TUCKER

Pmnceton University, Pmneeton, New Jersey

AND

R. A. ZEMLIN~

Standard Od Company of Californta, San Francisco, Cal*fornza

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 pro-

gramming as a mathematical modeling device by representing a generalization

of the well-known "Traveling Salesman Problem" in integer programming

terms. The authors have developed several such models, of which the one pre-

sented 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 n cities, indexed by 1, .-- , n. He

leaves from a "base city" indexed by 0, visits each of the n other cities

exactly once, and returns to city 0. During his travels he must return to 0

exactly t times, including his final return (here t m a y be allowed to vary),

and he must visit no more than p cities in one tour. ( B y 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 t is fixed, then for the problem to have a solution we must have

tp _-> n. For t = 1, p ~ n, we have the standard traveling salesman problem.

Let d~ (~ ~ j -- 0, 1, • • • , n) be the distance covered in traveling from city

i to city j. The following integer programming problem will be shown to be

  • Received January, 1960; revised June, 1960. t Now with Control Data Corp., Sunnyvale, Calif. 326

I N T E G E R P R O G R A M M I N G F O R M U L A T I O N OF T R A V E L I N G S A L E S M A N P R O B L E M S 327

equivalent to (1) :

(2) Minimize the linear form

ONs#3Nn over the set determined by the relations

~ x s ~ = 1 ~=0s#

n x~j = 1 := 3#*

(3 = l,... , n )

( i = 1 ,... , n )

u s - - us + p x ~ =< p - - 1 (1 ~ i # j _ _ < n)

where the x~3 are non-negative integers and the us (i = 1,... , n) are arbitrary real numbers. (We shall see t h a t it is permissible to restrict the us to be non-negative integers as well.) If t is fixed it is necessary to add the additional relation:

~ X s 0 = t

Note t h a t the constraints require t h a t x , = 0 or 1, so t h a t a natural eorre- spondence between these two problems exists if the x , are interpreted as follows: The salesman proceeds from city i to city j if and only if x,: = 1. Under this correspondence the form to be minimized in (2) is the total distance to be trav- eled b y the salesman in (1), so the burden of proof is to show t h a t the two feasible sets correspond; i.e., a feasible solution to (2) has x~ which do define a legitimate itinerary in (1), and, conversely a legitimate itinerary in (1) de- fines x ~ , which, together with appropriate u~, satisfy the constraints of (2). Consider a feasible solution to (2). The number of returns to city 0 is given b y

~ X ~ 0.

The constraints of the form xs~ = 1, all x , non-negative integers,

represent the conditions that each city (other than zero) is visited exactly once. The us 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 p cities. Consider any Xr0rl = 1 @1 ~ 0). There exists a unique r2 such t h a t x~,~ = 1. Unless r~ = 0, there is a unique r~ with x~2~~ = 1. We proceed in this fashion until some r: -- 0. This must happen since the al- ternative is t h a t at some point we reach an rk = r~, j + 1 < k. Since none of

INTEGER PROGRAMMING FORMULATION OF TRAVELING SALESMAN PROBLEMS 329

The first three experiments were simple model verification tests on a four-city

standard traveling salesman problem with distance matrix

30 7_ 27

253 5 2_

_ 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 con-

straints 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 x,0 and x0~ 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 x,0 and x0~ elimi-

nated, 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.

I t 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 m a y be succinctly formulated in integer

programming terms.

REFERENCES

1. DANTZIG, FULKERSONANn JOHNSON On a linear-programming, combinatorial approach

to the traveling salesman problem. JORSA, 7 (1959), 1.

2. GOMORY, R. E. An algorithm for integer solutions to linear programs. Princeton--

IBM Math. Research Project Techn. Report No. 1, 1958.

3. - - - , All-integer integer programming algorithm IBM Research Center Report RC-189,

4. TUCKER,A. W On directed graphs and integer programs, Princeton--IBM Math. Re-

search Project Techn. Report, 1960.