Accessibility / Report Error

Integer linear models with a polynomial number of variables and constraints for some classical combinatorial optimization problems

Abstracts

We present integer linear models with a polynomial number of variables and constraints for combinatorial optimization problems in graphs: optimum elementary cycles, optimum elementary paths and optimum tree problems.

modeling combinatorial optimization problems; optimization in graphs; characterization of connected subgraphs


Apresentamos modelos lineares inteiros com um número polinomial de variáveis e restrições para problemas de otimização combinatória em grafos: ciclos elementares ótimos, caminhos elementares ótimos e problemas em árvores ótimas.

modelos de problemas de otimização combinatória; otimização em grafos; caracterização de subgrafos conexos


Integer linear models with a polynomial number of variables and constraints for some classical combinatorial optimization problems

Nelson MaculanI, * * Corresponding author / autor para quem as correspondências devem ser encaminhadas ; Gérard PlateauII; Abdel LisserIII

ICOPPE – Prog. de Eng. de Sistemas e Computação. Universidade Federal do Rio de Janeiro. Rio de Janeiro – RJ. maculan@cos.ufrj.br

IILIPN – Institut Galilée. Université Paris 13. Villetaneuse – France. gp@lipn.univ-paris13.fr

IIILRI – Université Paris Sud. Orsay Cedex – France. abdel.lisser@lri.fr

ABSTRACT

We present integer linear models with a polynomial number of variables and constraints for combinatorial optimization problems in graphs: optimum elementary cycles, optimum elementary paths and optimum tree problems.

Keywords: modeling combinatorial optimization problems; optimization in graphs; characterization of connected subgraphs.

RESUMO

Apresentamos modelos lineares inteiros com um número polinomial de variáveis e restrições para problemas de otimização combinatória em grafos: ciclos elementares ótimos, caminhos elementares ótimos e problemas em árvores ótimas.

Palavras-chave: modelos de problemas de otimização combinatória; otimização em grafos; caracterização de subgrafos conexos.

1. Introduction and Definitions

Sometimes we have to solve small and median size combinatorial optimization problems using commercial codes of mixed linear integer programming as CPLEX, LINDO, OSL, XPRESS, etc. The use of branch and cut techniques to solve these problems needs a hard work of implementation. For the traveling salesman problem (TSP) and the Steiner tree problem (STP) in graphs one uses mathematical models with an exponential number of constraints to avoid subtours, these constraints are implicitly considered. The aim of this paper is to present 0-1 mixed linear programs with a polynomial number of variables and constraints to solve some combinatorial optimization problems using commercial codes.

When we solve integer linear programming by column generation techniques, we have to generate paths, cycles and trees with additional constraints in small graphs, 40 to 60 nodes, 120 to 180 edges, at each iteration. For this we can use a commercial code to solve the master problem and the same code to solve the optimization problem which generates at each iteration a new column.

We define our notation as follows.

Let G = (V,E) be a connected graph, where V = {1,2,3,...,n} is the set of nodes or vertices and E the set of edges. Let Gd = (V, A) be a directed graph derived from G, where A={ (i,j), (j,i) | {i,j} Î E}, that is, each edge u = {i,j} Î E is associated with two arcs (i,j) and (j,i) Î A. We define two news graphs: G0=(V0,E0), and =(V0,A0) where V0=V È {0}, E0 = E È {{0, jj Î V}, A0AÈ{(0,j) ½jÎ V}.

Let x=(xi)iÎVÎ {0,1}½V½, y= (yu)uÎÎ {0,1} ½

½ two 0-1 vectors, and > 0, (i,j) ÎA0, KÎV' where V' is a subset of V, and is a real flow in the arc (i,jA0 having 0 as source and k as terminal. We consider E(i) the set of edges u Î E such that an endpoint is i,G+ (i)={j½ (i,J) Î A0} and G-(i)={j ½(j,i) Î A0},m =½E½ and n= ½V½.

All combinatorial optimization problems that will be treated in this paper are associated with connected subgraphs of G. In the section 2 we present a nonsimultaneous flow formulation based on Claus & Maculan (1983), Beasley (1994), Wong (1984), Guyard (1985), Maculan (1986), Maculan (1987) and Maculan, Arpin & Nguyen (1988) for the Steiner tree problem in graphs and in Claus (1984) and Figueiredo & Maculan (2000) for the Travelling Salesman Problem (TSP) to guarantee that a subgraph has to be connected. We characterize all elementary cycles in a graph in section 3, and a particular model is developed for Hamiltonian cycles. In section 4 we propose a formulation to characterize all elementary paths in a graph. The characterization of subtrees with a fixed number of nodes in a graph is shown in section 5. In section 6 we associate with each type of combinatorial optimization problem an objective function whose minimum has to be searched; the minimum Steiner tree problem in a graph is also formulated by a particular nonsimultaneous flow problem in this section. All theorems presented in this paper are easy to be proved.

2. Modeling a connected subgraph of G

The 0-1 vectors x=(xi)i ÎV and y=(yu)uÎE defined above are associated with a subgraph of G as follows: if Xi=1 then the node i belongs to the subgraph, xi=0 otherwise; if yu=1 then the edge u belongs to the subgraph, yu=0 otherwise. These vectors will characterize a subgraph of G.

The dummy node 0 is included to be a source node for a nonsimultaneous flow problem. Our idea is the use of the nonsimultaneous flow problem to obtain connected graphs as follows.

Theorem 1: All vectors x and y satisfying (1-8) are associated with connected subgraphs of G.

We consider that the subgraph associated with xi=0, for all ÎV, is a connected graph. If a connected subgraph has to have at least 2 nodes, then we include a new constraint as follows.

or

Number of variables and constraints for the model defined by (1-8):

3. Elementary Cycles

We introduce new constraints which guarantee that each node in the subgraph has degree 2.

Constraints in (5) will be replaced by (11).

Number of variables and constraints for the this last model:

Theorem 2: All vectors x and y satisfying (1-4) and (6-11) are associated with elementary cycles of G.

The formulation presented in theorem 2 can be used to describe all x and y associated with Hamiltonian cycles, for this we put xi=1, for all i ÎV . In this case we will be able to propose another formulation using only G and Gd , it is not necessary to include the 0 dummy node. We choose any node in V to be the source node, we will take node 1 to be this source. Thus we present a new model as follows, where G+(i)= {j½(i,jA} and G–(i)={j ½(j,iA}.

Theorem 3: Each vector y satisfying (12 - 18) is associated with a Hamiltonian cycle of G.

Number of variables and constraints for the Hamiltonian cycle model:

4. Elementary Paths

Given two different nodes , iÎ V¸ and jÎV we would like to characterize all elementary paths in G between i and j. For this xi = xj = 1, and replace in the connected subgraph model constrains in (5) by

Theorem 4: All vectors x and y satisfying (1 - 4), (6 - 8) and (19 - 20) are associated with elementary paths of G between nodes i and j.

5. Trees

First of all we characterize all subtrees in G with a given number p < n of nodes, see Fischetti et al. (1984). For this we have to consider new constraints as follows.

Theorem 5: All vectors x and y satisfying (1 - 8) and (21 - 22) are associated with subtrees with p < n nodes of G.

For characterizing all spanning trees of G we just put p=n. In this case we can propose a new model, as we did for Hamiltonian cycles in G. Thus we propose the following mathematical model.

Theorem 6: Each vector y satisfying (23 - 29) is associated with a spanning tree of G.

6. Combinatorial Optimization

We associate real numbers (costs, weights, etc.) ci with nodes i Î V, and wu(costs, distances, weights, etc.) with edges u Î E. Thus we are concerned to deal with an objective function f as follows.

That is f:{0,1}½V ½x{0,1}½E ½®. We would like to find a connected subgraph of G which minimizes (30). The connected subgraph optimization problem (CSP) bellow will give an optimal solution.

The traveling salesman problem (TSP) is to obtain a Hamiltonian cycle of G such that this cycle minimizes an objective function which represents the total distance of Hamiltonian cycles. Thus

Where Wu,u={i,j} Î E , is the distance between the extremes i and j of the edge u.

If G is not a Hamiltonian graph, we will have no solution.

This TSP-formulation was used in Figueiredo & Maculan (2000) to solve small and median size TSP-problems.

We can define the minimum Steiner tree problem (MSTP) in G=(V, E) as follows. Given a subset of V. With each edge u Î E a cost cu> 0 is associated. Find a minimum total cost subtree of G that spans . The following mathematical programming solves the (MSTP), where we suppose that node 1 Î .

subject to:

The linear programming relaxation of this MSTP-formulation has given very good lower bounds for large scale Steiner problems in rectangular grid graphs, see Bahiense, Maculan & Sagastizábal (2002).

7. Conclusions

Mathematical programming formulations for small and median size combinatorial optimization problems in graphs developed in this paper can give us optimal solutions using standard mixed integer programming softwares. Well-known modeling languages as AMPL, GAMS, LINGO, MP-MODEL (XPRESS) would be used to create the data of a mixed integer programming which will be solved by standard softwares.

Recebido em 04/2002, aceito em 11/2002 após 1 revisão

  • (1) Bahiense, L.; Maculan, N. & Sagastizábal, C. (2002). The volume algorithm revisited: relation with bundle methods. Mathematical Programming, 94, 41-69.
  • (2) Beasley, J.E. (1994). An algorithm for the Steiner problem in graphs. NETWORKS, 4, 1-1.
  • (3) Claus, A. (1984). A new formulation for the travelling salesman problem. SIAM Journal of Algebraic and Discrete Methods, 5, 21-25.
  • (4) Claus, A. & Maculan, N. (1983). Une nouvelle formulation du problčme de Steiner sur un graphe. Publication 280, Centre de Recherche sur les Transports, Université de Montréal, Canada.
  • (5) Figueiredo, R.M.V. & Maculan, N. (2000). O problema do caixeiro viajante assimétrico: limites inferiores e um novo algoritmo de separaçăo. Investigaçăo Operacional, 20, 127-146.
  • (6) Fischetti, M.; Hamacher, H.W.; Jornsten, K. & Maffioli, F. (1984). Weighted K-cardinality trees: Complexity and polyhedral structure. NETWORKS, 14, 147-159.
  • (7) Guyard, L. (1985). Le problčme de l'arbre de Steiner: modélisation par la programation linéaire et résolution par des techniques de décomposition. Thčse de Docteur Ingénieur, Ecole Nationale Supérieure des Télécommunications, Paris, France, 1985.
  • (8) Maculan, N. (1986). A new linear programming problem for the shortest s-directed spanning tree problem. Journal of Combinatorics, Information and System Science, 11, 53-56.
  • (9) Maculan, N. (1987). Steiner problem in graphs. Annals of Discrete Mathematics, 31, 185-212.
  • (10) Maculan, N.; Arpin, D. & Nguyen, S. (1988). Le problčme de Steiner sur un graphe orienté: formulations et relaxations. Computational and Applied Mathematics, 7, 1988, 109-118.
  • (11) Wong, R.T. (1984). A dual ascent approach to Steiner tree problem on a directed graph. Mathematical Programming, 28, 271-287.
  • *
    Corresponding author / autor para quem as correspondências devem ser encaminhadas
  • Publication Dates

    • Publication in this collection
      26 May 2003
    • Date of issue
      Jan 2003

    History

    • Accepted
      Nov 2002
    • Received
      Apr 2002
    Sociedade Brasileira de Pesquisa Operacional Rua Mayrink Veiga, 32 - sala 601 - Centro, 20090-050 Rio de Janeiro RJ - Brasil, Tel.: +55 21 2263-0499, Fax: +55 21 2263-0501 - Rio de Janeiro - RJ - Brazil
    E-mail: sobrapo@sobrapo.org.br