Integer Programming
Integer Programming
Laurence A. Wolsey
UCLouvain
Second Edition
This edition first published 2021
Copyright 2021 © by John Wiley & Sons, Inc. All rights reserved.
Edition History
John Wiley & Sons (1e, 1998)
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system,
or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording or
otherwise, except as permitted by law. Advice on how to obtain permission to reuse material
from this title is available at http://www.wiley.com/go/permissions.
The right of Laurence A. Wolsey to be identified as the author of this work. has been asserted in
accordance with law.
Registered Offices
John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, USA
John Wiley & Sons Ltd, The Atrium, Southern Gate, Chichester, West Sussex, PO19 8SQ, UK
Editorial Office
111 River Street, Hoboken, NJ 07030, USA
For details of our global editorial offices, customer services, and more information about Wiley
products visit us at www.wiley.com.
Wiley also publishes its books in a variety of electronic formats and by print-on-demand. Some
content that appears in standard print versions of this book may not be available in other
formats.
Limit of Liability/Disclaimer of Warranty
While the publisher and authors have used their best efforts in preparing this work, they make
no representations or warranties with respect to the accuracy or completeness of the contents of
this work and specifically disclaim all warranties, including without limitation any implied
warranties of merchantability or fitness for a particular purpose. No warranty may be created or
extended by sales representatives, written sales materials or promotional statements for this
work. The fact that an organization, website, or product is referred to in this work as a citation
and/or potential source of further information does not mean that the publisher and authors
endorse the information or services the organization, website, or product may provide or
recommendations it may make. This work is sold with the understanding that the publisher is
not engaged in rendering professional services. The advice and strategies contained herein may
not be suitable for your situation. You should consult with a specialist where appropriate.
Further, readers should be aware that websites listed in this work may have changed or
disappeared between when this work was written and when it is read. Neither the publisher nor
authors shall be liable for any loss of profit or any other commercial damages, including but not
limited to special, incidental, consequential, or other damages.
Library of Congress Cataloging-in-Publication Data Applied for
ISBN: 9781119606536
Cover Design: Wiley
Cover Images: Concept of applied astronomy © Jackie Niam/Shutterstock,
LowPoly Trendy Banner © Isniper/Shutterstock
Set in 9.5/12.5pt STIXTwoText by SPi Global, Chennai, India
Printed in the United States of America
10 9 8 7 6 5 4 3 2 1
To Marguerite.
vii
Contents
Preface to the Second Edition xii
Preface to the First Edition xiii
Abbreviations and Notation xvii
About the Companion Website xix
1
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.8
1.9
Formulations 1
Introduction 1
What Is an Integer Program? 3
Formulating IPs and BIPs 5
The Combinatorial Explosion 8
Mixed Integer Formulations 9
Alternative Formulations 12
Good and Ideal Formulations 15
Notes 18
Exercises 19
2
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
Optimality, Relaxation, and Bounds 25
Optimality and Relaxation 25
Linear Programming Relaxations 27
Combinatorial Relaxations 28
Lagrangian Relaxation 29
Duality 30
Linear Programming and Polyhedra 32
Primal Bounds: Greedy and Local Search
Notes 38
Exercises 38
34
viii
Contents
3
3.1
3.2
3.3
3.4
3.4.1
3.4.2
3.5
3.6
3.7
3.8
3.9
Well-Solved Problems 43
Properties of Easy Problems 43
IPs with Totally Unimodular Matrices 44
Minimum Cost Network Flows 46
Special Minimum Cost Flows 48
Shortest Path 48
Maximum s − t Flow 49
Optimal Trees 50
Submodularity and Matroids 54
Two Harder Network Flow Problems 57
Notes 59
Exercises 60
4
4.1
4.2
4.3
4.4
4.5
4.6
Matchings and Assignments 63
Augmenting Paths and Optimality 63
Bipartite Maximum Cardinality Matching 65
The Assignment Problem 67
Matchings in Nonbipartite Graphs 73
Notes 74
Exercises 75
5
5.1
5.2
5.3
5.4
5.4.1
5.4.2
5.5
5.6
5.7
Dynamic Programming 79
Some Motivation: Shortest Paths 79
Uncapacitated Lot-Sizing 80
An Optimal Subtree of a Tree 83
Knapsack Problems 84
0–1 Knapsack Problems 85
Integer Knapsack Problems 86
The Cutting Stock Problem 89
Notes 91
Exercises 92
6
6.1
6.2
6.3
6.4
6.5
6.6
6.7
6.8
6.9
Complexity and Problem Reductions 95
Complexity 95
Decision Problems, and Classes and 96
Polynomial Reduction and the Class 98
Consequences of = or ≠ 103
Optimization and Separation 104
The Complexity of Extended Formulations 105
Worst-Case Analysis of Heuristics 106
Notes 109
Exercises 110
Contents
7
7.1
7.2
7.3
7.4
7.5
7.6
7.7
7.8
Branch and Bound 113
Divide and Conquer 113
Implicit Enumeration 114
Branch and Bound: an Example 116
LP-Based Branch and Bound 120
Using a Branch-and-Bound/Cut System 123
Preprocessing or Presolve 129
Notes 134
Exercises 135
8
8.1
8.2
8.3
8.4
8.5
8.6
8.7
8.7.1
8.7.2
8.7.3
8.7.4
8.8
8.9
8.10
Cutting Plane Algorithms 139
Introduction 139
Some Simple Valid Inequalities 140
Valid Inequalities 143
A Priori Addition of Constraints 147
Automatic Reformulation or Cutting Plane Algorithms 149
Gomory’s Fractional Cutting Plane Algorithm 150
Mixed Integer Cuts 153
The Basic Mixed Integer Inequality 153
The Mixed Integer Rounding (MIR) Inequality 155
The Gomory Mixed Integer Cut 155
Split Cuts 156
Disjunctive Inequalities and Lift-and-Project 158
Notes 161
Exercises 162
9
9.1
9.2
9.3
9.3.1
9.3.2
9.3.3
9.4
9.4.1
9.4.2
9.5
9.5.1
9.6
9.7
9.8
Strong Valid Inequalities 167
Introduction 167
Strong Inequalities 168
0–1 Knapsack Inequalities 175
Cover Inequalities 175
Strengthening Cover Inequalities 176
Separation for Cover Inequalities 178
Mixed 0–1 Inequalities 179
Flow Cover Inequalities 179
Separation for Flow Cover Inequalities 181
The Optimal Subtour Problem 183
Separation for Generalized Subtour Constraints 183
Branch-and-Cut 186
Notes 189
Exercises 190
ix
x
Contents
10
10.1
10.2
10.3
10.4
10.5
10.6
10.7
Lagrangian Duality 195
Lagrangian Relaxation 195
The Strength of the Lagrangian Dual
Solving the Lagrangian Dual 202
Lagrangian Heuristics 205
Choosing a Lagrangian Dual 207
Notes 209
Exercises 210
11
11.1
11.2
11.3
11.4
11.5
11.5.1
11.5.2
11.5.3
11.6
11.7
11.7.1
11.7.2
11.7.3
11.8
11.9
Column (and Row) Generation Algorithms 213
Introduction 213
The Dantzig–Wolfe Reformulation of an IP 215
Solving the LP Master Problem: Column Generation 216
Solving the Master Problem: Branch-and-Price 219
Problem Variants 222
Handling Multiple Subproblems 222
Partitioning/Packing Problems with Additional Variables 223
Partitioning/Packing Problems with Identical Subsets 224
Computational Issues 225
Branch-Cut-and-Price: An Example 226
A Capacitated Vehicle Routing Problem 226
Solving the Subproblems 229
The Load Formulation 230
Notes 231
Exercises 232
12
12.1
12.2
12.3
12.4
12.5
12.5.1
12.5.2
12.6
12.7
Benders’ Algorithm 235
Introduction 235
Benders’ Reformulation 236
Benders’ with Multiple Subproblems 240
Solving the Linear Programming Subproblems 242
Integer Subproblems: Basic Algorithms 244
Branching in the (x, 𝜂, y)-Space 244
Branching in (x, 𝜂)-Space and “No-Good” Cuts 246
Notes 247
Exercises 248
13
13.1
13.2
13.3
Primal Heuristics 251
Introduction 251
Greedy and Local Search Revisited 252
Improved Local Search Heuristics 255
200
Contents
13.3.1
13.3.2
13.3.3
13.4
13.4.1
13.4.2
13.5
13.6
13.7
Tabu Search 255
Simulated Annealing 256
Genetic Algorithms 257
Heuristics Inside MIP Solvers 259
Construction Heuristics 259
Improvement Heuristics 261
User-Defined MIP heuristics 262
Notes 265
Exercises 266
14
14.1
14.2
14.3
14.4
14.5
14.6
14.7
14.8
From Theory to Solutions 269
Introduction 269
Software for Solving Integer Programs 269
How Do We Find an Improved Formulation? 272
Multi-item Single Machine Lot-Sizing 277
A Multiplexer Assignment Problem 282
Integer Programming and Machine Learning 285
Notes 287
Exercises 287
References 291
Index 311
xi
xii
Preface to the Second Edition
There has been remarkable progress in the development of mixed integer programming solvers in the past 22 years since the first edition of this book appeared.
Though branch-and-cut has replaced branch-and-bound as the basic computational tool, the underlying theory has changed relatively little and most of the
cutting planes were already known at that time, but not yet implemented in the
solvers. The other most significant developments in the solvers are much improved
preprocessing/presolving and many new ideas for primal heuristics. The result
has been a speed-up of several orders of magnitude in the codes. The other major
change has been the widespread use of decomposition algorithms, in particular
column generation (branch-(cut)-and-price) and Benders’ decomposition.
The changes in this edition reflect these developments. Chapter 11 on column
generation has been almost completely rewritten, Chapter 12 on Benders’ algorithm is new and the material on preprocessing (Section 7.6), heuristics (Chapter
13), and branch-and-cut (Section 9.6) has been expanded. Other minor changes are
the inclusion of a few more basic and extended formulations (for instance on fixed
cost network flows in Section 3.7) and brief subsections on other topics, such as
nonbipartite matching, the complexity of extended formulations or a good linear
program for the implementation of lift-and-project.
Most of the exercises on formulations and algorithms are very small and typically are solved at the top node by the latest mixed integer programming (MIP)
solvers. In such cases, the idea is to understand the algorithm and essentially solve
the problem manually just working with a linear programming solver as a black
box, or alternatively to program an algorithm for the problem. A small number of
sections/subsections have a ∗ indicating that they may be of interest, but are not
essential.
I am most grateful to a variety of colleagues and friends for making suggestions and/or commenting on different chapters, including Karen Aardal, Daniele
Catanzaro, Michele Conforti, Bernard Fortz, Martine Labbé, Andrea Lodi, Fabrizio Rossi, Stefano Smriglio, Eduardo Uchoa, and Dieter Weninger. Thanks again
go to Fabienne Henry for her help with my latex difficulties. As before, the errors
are all my own.
xiii
Preface to the First Edition
Intended Audience
The book is addressed to undergraduates and graduates in operations research,
mathematics, engineering, and computer science. It should be suitable for
advanced undergraduate and Masters level programs. It is also aimed at users of
integer programming who wish to understand why some problems are difficult
to solve, how they can be reformulated so as to give better results, and how mixed
integer programming systems can be used more effectively.
The book is essentially self-contained, though some familiarity with linear programming is assumed, and a few basic concepts from graph theory are used.
The book provides material for a one-semester course of two to three hours
per week.
What and How
Integer Programming is about ways to solve optimization problems with discrete
or integer variables. Such variables are used to model indivisibilities, and 0/1 variables are used to represent on/off decisions to buy, invest, hire, and so on. Such
problems arise in all walks of life, whether in developing train or aircraft timetables, planning the work schedule of a production line or a maintenance team, or
planning nationally or regionally the daily or weekly production of electricity.
The last 10 years have seen a remarkable advance in our ability to solve to near
optimality difficult practical integer programs. This is due to a combination of
(i) Improved modeling
(ii) Superior linear programming software
(iii) Faster computers
(iv) New cutting plane theory and algorithms
xiv
Preface to the First Edition
(v) New heuristic methods
(vi) Branch-and-cut and integer programming decomposition algorithms
Today many industrial users still build an integer programming model and stop
at the first integer feasible solution provided by their software. Unless the problem
is very easy, such solutions can be 5%, 10%, or 100% away from optimal, resulting in
losses running into mega-dollars. In many cases, it is now possible to obtain solutions that are proved to be optimal, or proven within 0.1%, 1%, or 5% of optimal,
in a reasonable amount of computer time. There is, however, a cost: better models must be built, and either specially tailored algorithms must be constructed, or
better use must be made of existing commercial software.
To make such gains, it is necessary to understand why some problems are more
difficult than others, why some formulations are better than others, how effective
different algorithms can be, and how integer programming software can be best
used. The aim of this book is to provide some such understanding.
Chapter 1 introduces the reader to various integer programming problems and
their formulation and introduces the important distinction between good and bad
formulations. Chapter 2 explains how it is possible to prove that feasible solutions
are optimal or close to optimal.
Chapters 3–5 study integer programs that are easy. The problems and algorithms
are interesting in their own right, but also because the algorithmic ideas can often
be adapted so as to provide good feasible solutions for more difficult problems.
In addition, these easy problems must often be solved repeatedly as subproblems
in algorithms for the more difficult problems. We examine when linear programs
automatically have integer solutions, which is in particular the case for network
flow problems. The greedy algorithm for finding an optimal tree, the primal-dual
algorithm for the assignment problem, and a variety of dynamic programming
algorithms are presented, and their running times examined.
In Chapter 6, we informally address the question of the apparent difference
in difficulty between the problems presented in Chapters 3–5 that can be solved
rapidly, and the “difficult” problems treated in the rest of the book.
The fundamental branch-and-bound approach is presented in Chapter
7. Certain features of commercial integer programming systems based on
branch-and-bound are discussed. In Chapters 8 and 9, we discuss valid inequalities and cutting planes. The use of inequalities to improve formulations and
obtain tighter bounds is the area in which probably the most progress has been
made in the last 10 years. We give examples of the cuts and also the routines to
find cuts that are being added to the latest systems.
In Chapters 10 and 11, two important ways of decomposing integer programs
are presented. The first is by Lagrangian relaxation and the second by column generation. It is often very easy to implement a special-purpose algorithm based on
Preface to the First Edition
Lagrangian relaxation, and many applications are reported in the literature. Integer programming column generation, which is linear programming based, is more
recent, but several recent applications suggest that its importance will grow.
Whereas the emphasis in Chapters 7–11 is on obtaining “dual” bounds (upper
bounds on the optimal value of a maximization problem), the need to find good
feasible solutions that provide “primal” (lower) bounds is addressed in Chapter 12.
We present the basic ideas of various modern local search metaheuristics, introduce briefly the worst-case analysis of heuristics, and also discuss how an integer
programming system can be used heuristically to find solutions of reasonable quality for highly intractable integer programs.
Finally, in Chapter 13 we change emphasis. By looking at a couple of applications and asking a series of typical questions, we try to give a better idea of how
theory and practice converge when confronted with the choice of an appropriate
algorithm, and the question of how to improve a formulation, or how to use a
commercial mixed integer programming system effectively.
In using the book for a one-semester course, the chapters can be taken in order.
In any case, we suggest that the basics consisting of Chapters 1, 2, 3, 6, 7 should be
studied in sequence. Chapter 4 is interesting for those who have had little exposure
to combinatorial optimization. Chapter 5 can be postponed, and parts of Chapter
12 can be studied at any time after Chapter 2. There is also no difficulty in studying
Chapter 10 before Chapters 8 and 9. The longer Chapters 7, 8, 9, and 11 contain
starred sections that are optional. The instructor may wish to leave out some material from these chapters, or alternatively devote more time to them. Chapter 13
draws on material from most of the book, but can be used as motivation much
earlier.
I am sincerely grateful to the many people who have contributed in some way
to the preparation of this book. Marko Loparic has voluntarily played the role of
teaching assistant in the course for which this material was developed. Michele
Conforti, Cid de Souza, Eric Gourdin, and Abilio Lucena have all used parts of it
in the classroom and provided feedback. John Beasley, Marc Pirlot, Yves Pochet,
James Tebboth, and François Vanderbeck have criticized one or more chapters in
detail, and Jan Karel Lenstra has both encouraged and provided rapid feedback
when requested. Finishing always takes longer than expected, and I am grateful to my colleagues and doctoral students at Core for their patience when they
have tried to interest me in other more pressing matters, to the Computer Science
Department of the University of Utrecht for allowing me to finish off the book in
congenial and interesting surroundings, and to Esprit program 20118, MEMIPS,
for support during part of the 1997–1998 academic year. Sincere thanks go to Fabienne Henry for her secretarial help over many years, and for her work in producing
the final manuscript.
xv
xvi
Preface to the First Edition
Scientifically, I am deeply indebted to the many researchers with whom I
have had the good fortune and pleasure to collaborate. Working with George
Nemhauser for many years has, I hope, taught me a little about writing. His earlier
book on integer programming with R. Garfinkel provided an outstanding model
for an undergraduate textbook. Yves Pochet is a considerate and stimulating
colleague, and together with Bob Daniel, who has always been ready to provide
a “practical problem per day,” they provide a constant reminder that integer
programming is challenging both theoretically and practically. However, the bias
and faults that remain are entirely my own.
xvii
Abbreviations and Notation
BIP:
BM:
BR:
Bn :
C-G:
CLS:
conv(S):
COP:
D:
DP:
DSP:
ej :
eS :
E(S):
FCNF:
GAP:
GSEC:
GUB:
IKP:
IP:
LD:
lhs:
LP:
LM:
L(X):
M:
M:
MIP:
MIR:
Binary or zero-one integer program/programming
Benders’ Master problem
Relaxation of linear program of Benders’ Master problem
{0, 1}n the set of n-dimensional 0,1 vectors
Chvátal–Gomory
Capacitated lot-sizing problem
The convex hull of S
Combinatorial optimization problem
Dual problem
Dynamic programming
LP dual of column generation or cut generation subproblem
The jth unit vector
The characteristic vector of S
All edges with both endpoints in the node set S
Fixed charge network flow problem
Generalized assignment problem
Generalized subtour elimination constraint
Generalized upper bound
Integer knapsack problem
Integer program/programming
Lagrangian dual problem
Left-hand side
Linear program/programming
Linear programming relaxation of column generation
Master problem
Length of the input of a problem instance X
A large positive number
Column generation Master problem
Mixed integer program/programming
Mixed integer rounding
xviii
Abbreviations and Notation
N:
:
:
P:
:
(N):
rhs:
RLM:
ℝn :
ℝn+ :
S:
SOS:
SP:
STSP:
TSP:
TU:
UFL:
ULS:
V − (i):
V + (i):
X:
(x)+ :
Z:
ℤn+ :
𝛿 − (S):
𝛿 + (S):
𝛿(S) or 𝛿(S, V ∖S):
𝛿(i) or 𝛿({i}):
𝜙(x):
𝜁:
1:
0:
Generic set {1, 2, … , n}
Class of NP problems
Class of NP-complete problems
Generic problem class, or polyhedron
Class of polynomially solvable problems
Set of subsets of N
Right-hand side
Restricted linear programming Master problem
The n-dimensional real numbers
The n-dimensional nonnegative real numbers
Feasible region of IP, or subset of N
Special ordered set
Column generation or cut generation
separation/subproblem
Symmetric traveling salesman problem
(Asymmetric) Traveling salesman problem
Totally unimodular
Uncapacitated facility location problem
Uncapacitated lot-sizing problem
Node set {k ∈ V ∶ (k, i) ∈ A}
Node set {k ∈ V ∶ (i, k) ∈ A}
Feasible region of IP, or a problem instance
The maximum of x and 0
Objective function of main or Master problem
The n-dimensional nonnegative integers
All arcs going from a node not in S to a node in S
All arcs going from a node in S to a node not in S
All edges with one endpoint in S and the other in V ∖S
The set of edges incident to node i
Objective function of Benders’ subproblem
Objective function value of cut or column generation
subproblem
The vector (1, 1, … , 1)
The vector (0, 0, … , 0)
xix
About the Companion Website
This book is accompanied by a companion website:
www.wiley.com/go/wolsey/integerprogramming2e
The Instructor companion site contains the Solutions to Exercises.
1
1
Formulations
1.1 Introduction
A wide variety of practical problems can be formulated and solved using integer
programming. We start by describing briefly a few such problems.
1. Train Scheduling. Certain train schedules repeat every hour. For each line, the
travel times between stations are known, and the time spent in a station must
lie within a given time interval. Two trains traveling on the same line must
for obvious reasons be separated by at least a given number of minutes. To
make a connection between trains A and B at a particular station, the difference
between the arrival time of A and the departure time of B must be sufficiently
long to allow passengers to change, but sufficiently short so that the waiting
time is not excessive. The problem is to find a feasible schedule.
2. Airline Crew Scheduling. Given the schedule of flights for a particular aircraft
type, one problem is to design weekly schedules for the crews. Each day a crew
must be assigned a duty period consisting of a set of one or more linking flights
satisfying numerous constraints such as limited total flying time, minimum
rests between flights, and so on. Then putting together the duty periods, weekly
schedules or pairings are constructed which must satisfy further constraints on
overnight rests, flying time, returning the crew to its starting point, and so on.
The objective is to minimize the amount paid to the crews, which is a function
of flying time, length of the duty periods and pairings, a guaranteed minimum
number of flying hours, and so forth.
3. Production Planning. A multinational company holds a monthly planning
meeting in which a three-month production and shipping plan is drawn up
based on their latest estimates of potential sales. The plan covers 200–400
products produced in five different factories with shipments to 50 sales areas.
Integer Programming, Second Edition. Laurence A. Wolsey.
© 2021 John Wiley & Sons, Inc. Published 2021 by John Wiley & Sons, Inc.
Companion website: www.wiley.com/go/wolsey/integerprogramming2e
2
1 Formulations
Solutions must be generated on the spot, so only about 15 minutes’ computation time is available. For each product, there is a minimum production
quantity, and production is in batches – multiples of some fixed amount. The
goal is to maximize contribution.
4. Electricity Generation Planning. A universal problem is the unit commitment
problem of developing an hourly schedule spanning a day or a week so as to
decide which generators will be producing and at what levels. Constraints to
be satisfied include satisfaction of estimated hourly or half-hourly demand,
reserve constraints to ensure that the capacity of the active generators is sufficient should there be a sudden peak in demand, and ramping constraints to
ensure that the rate of change of the output of a generator is not excessive.
Generators have minimum on- and off-times, and their start-up costs are a nonlinear function of the time they have been idle.
5. Telecommunications. A typical problem given the explosion of demand in
this area concerns the installation of new capacity so as to satisfy a predicted demand for data/voice/video transmission. Given estimates of the
requirements between different centers, the existing capacity and the costs
of installing new capacity which is only available in discrete amounts, the
problem is to minimize cost taking into account the possibility of failure of a
line or a center due to a breakdown or accident.
6. Radiation Therapy Treatment. In intensity modulated radiation therapy,
both the shape of the beam and its intensity need to be controlled by opening and closing multileaf collimators. The goal is to provide the tumor
coverage required while maintaining low radiation on critical and normal
tissues.
7. Kidney Exchange Programs. Patients suffering from kidney failures require
a transplant. Though a patient may have a donor willing to donate a kidney, an exchange between the donor–patient pair may be impossible for
reasons of blood or tissue incompatibility. The problem is to organize a
“best possible” set of exchanges between a number of such pairs in which a
patient from one pair receives a compatible kidney from a donor in another
pair.
8. Cutting Problems. Whether cutting lengths of paper from rolls, plastic from
large rectangular sheets, or patterns to make clothes, the problem is in each
case to follow precisely determined cutting rules, satisfy demand, and minimize
waste.
Other recent application areas include problems in molecular biology, statistics,
VLSI, and machine learning.
This book tries to provide some of the understanding and tools necessary for
tackling such problems.
1.2 What Is an Integer Program?
1.2 What Is an Integer Program?
Suppose that we have a linear program
(LP)
max{cx ∶ Ax ≤ b, x ≥ 0}
where A is an m by n matrix, c an n-dimensional row vector, b an m-dimensional
column vector, and x an n-dimensional column vector of variables or unknowns.
Now, we add in the restriction that certain variables must take integer values.
If some but not all variables are integer, we have a
(Linear) Mixed Integer Program, written as
(MIP)
max cx + hy
Ax + Gy ≤ b
x ≥ 0 and integer, y ≥ 0
where A is again m by n, G is m by p, c is an n row-vector, h is a p row-vector,
x is an n column-vector of integer variables, and y is a p column-vector of real
variables.
If all variables are integer, we have a
(Linear) Integer Program, written as
(IP)
max cx
Ax ≤ b
x ≥ 0 and integer,
and if all variables are restricted to 0–1 values, we have a
0–1 or Binary Integer Program
(BIP)
max cx
Ax ≤ b
x ∈ {0, 1}n .
Throughout the text, we will normally use the convention that if there is only one
set of variables, they are denoted by x. If there are both real and integer variables,
x and possibly z will denote integer variables and y and 𝑤 real variables. Note that
this differs from the choice of x and y in the 1st edition.
Another type of problem that we wish to study is a “combinatorial optimization
problem.” Here typically we are given a finite set N = {1, … , n}, weights cj for each
j ∈ N, and a set of feasible subsets of N. The problem of finding a minimum
weight feasible subset can be expressed as follows:
3
4
1 Formulations
Combinatorial Optimization Problem
}
{
∑
(COP)
min
cj ∶ S ∈ .
S⊆N
j∈S
In Section 1.3, we will see various examples of integer programs (IPs) and combinatorial optimization problems (COPs), and also see that often a COP can be
formulated as an IP or a 0–1 IP.
Given that integer programs look very much like linear programs, it is not
surprising that linear programming theory and practice is fundamental in understanding and solving integer programs. However, the first idea that springs to
mind, namely “rounding,” is often insufficient, as the following example shows:
Example 1.1 Consider the integer program:
max
1.00x1
50x1
3x1
x1 ,
+0.64x2
+31x2
−2x2
x2
≤
≥
≥
250
−4
0 and integer.
As we see from Figure 1.1, the linear programming solution (376∕193, 950∕193) is
a long way from the optimal integer solution (5, 0).
◽
For 0–1 IPs, the situation is often even worse. The linear programming solution
may well be (0.5, … , 0.5), giving no information whatsoever. What is more, it is
typically very difficult just to answer the question whether there exists a feasible
0–1 solution.
Figure 1.1
5
950
( 376
193 , 193 )
4
3
2
1
0
(5, 0)
1
2
3
4
5
LP and IP solutions.
1.3 Formulating IPs and BIPs
1.3 Formulating IPs and BIPs
As in linear programming, translating a problem description into a formulation
should be done systematically. A clear distinction should be made between the
data of the problem instance and the variables (or unknowns) used in the model.
(i) Define what appear to be the necessary variables.
(ii) Use these variables to define a set of constraints so that the feasible points
correspond to the feasible solutions of the problem.
(iii) Use these variables to define the objective function.
If difficulties arise, define an additional or alternative set of variables and iterate.
Defining variables and constraints may not always be as easy as in linear
programming. Especially for COPs, we are often interested in choosing a subset
S ⊆ N. For this, we typically make use of the incidence vector of S, which is the
n-dimensional 0–1 vector xS such that xjS = 1 if j ∈ S, and xjS = 0 otherwise.
Below we formulate four well-known integer programming problems.
The Assignment Problem
There are n people available to carry out n jobs. Each person is assigned to carry out
exactly one job. Some individuals are better suited to particular jobs than others,
so there is an estimated cost cij if person i is assigned to job j. The problem is to
find a minimum cost assignment.
Definition of the variables.
xij = 1 if person i does job j, and xij = 0 otherwise.
Definition of the constraints.
Each person i does one job:
n
∑
xij = 1 for i = 1, … , n.
j=1
Each job j is done by one person:
n
∑
xij = 1 for j = 1, … , n.
i=1
The variables are 0–1:
xij ∈ {0, 1} for i = 1, … , n, j = 1, … , n.
Definition of the objective function.
The cost of the assignment is minimized:
min
n
n
∑
∑
i=1 j=1
cij xij .
5
6
1 Formulations
The 0–1 Knapsack Problem
There is a budget b available for investment in projects during the coming year
and n projects are under consideration, where aj is the outlay for project j and cj is
its expected return. The goal is to choose a set of projects so that the budget is not
exceeded and the expected return is maximized.
Definition of the variables.
xj = 1 if project j is selected, and xj = 0 otherwise.
Definition of the constraints.
The budget cannot be exceeded:
n
∑
aj xj ≤ b.
j=1
The variables are 0–1:
xj ∈ {0, 1}
for j = 1, … , n.
Definition of the objective function.
The expected return is maximized:
max
n
∑
cj xj .
j=1
The Set Covering Problem
Given a certain number of regions, the problem is to decide where to install a set of
emergency service centers. For each possible center, the cost of installing a service
center and which regions it can service are known. For instance, if the centers are
fire stations, a station can service those regions for which a fire engine is guaranteed to arrive on the scene of a fire within eight minutes. The goal is to choose a
minimum cost set of service centers so that each region is covered.
First, we can formulate it as a more abstract COP. Let M = {1, … , m} be the set
of regions, and N = {1, … , n} the set of potential centers. Let Sj ⊆ M be the regions
that can be serviced by a center at j ∈ N and cj its installation cost. We obtain the
problem:
}
{
∑
min
cj ∶ ∪j∈T Sj = M .
T⊆N
j∈T
Now, we formulate it as a 0–1 IP. To facilitate the description, we first construct
a 0–1 incidence matrix A such that aij = 1 if i ∈ Sj and aij = 0, otherwise. Note that
this is nothing but processing of the data.
1.3 Formulating IPs and BIPs
Definition of the variables.
xj = 1 if center j is selected, and xj = 0 otherwise.
Definition of the constraints.
At least one center must service region i:
n
∑
aij xj ≥ 1 for i = 1, … , m.
j=1
The variables are 0–1:
xj ∈ {0, 1}
for j = 1, … , n.
Definition of the objective function.
The total cost is minimized:
n
∑
min
cj xj .
j=1
The Traveling Salesman Problem (TSP)
This is perhaps the most notorious problem in Operations Research because it is
so easy to explain, and so tempting to try and solve. A salesman must visit each of
n cities exactly once and then return to his starting point. The time taken to travel
from city i to city j is cij . Find the order in which he should make his tour so as to
finish as quickly as possible.
This problem arises in a multitude of forms: a truck driver has a list of clients
he must visit on a given day, or a machine must place modules on printed circuit
boards, or a stacker crane must pick up and depose crates. Now, we formulate it
as a 0–1 IP.
Definition of the variables.
xij = 1 if the salesman goes directly from town i to town j, and xij = 0, otherwise.
(xii is not defined for i = 1, … , n.)
Definition of the constraints.
He leaves town i exactly once:
∑
xij = 1 for i = 1, … , n.
j∶j≠i
He arrives at town j exactly once:
∑
xij = 1 for j = 1, … , n.
i∶i≠j
So far these are precisely the constraints of the assignment problem. A solution
to the assignment problem might give a solution of the form shown in Figure 1.2
(i.e. a set of disconnected subtours). To eliminate these solutions, we need more
7
8
1 Formulations
10
Figure 1.2
2
11
3
1
7
6
5
Subtours.
9
8
4
constraints that guarantee connectivity by imposing that the salesman must
pass from one set of cities to another, so-called cut-set constraints:
∑∑
xij ≥ 1 for S ⊂ N, S ≠ 𝜙.
i∈S j∉S
An alternative is to replace these constraints by subtour elimination constraints:
∑∑
xij ≤∣ S ∣ −1 for S ⊂ N, 2 ≤ |S| ≤ n − 1.
i∈S j∈S
The variables are 0–1:
xij ∈ {0, 1} for i = 1, … , n, j = 1, … , n, i ≠ j.
Definition of the objective function.
The total travel time is minimized:
min
n
n
∑
∑
cij xij .
i=1 j=1
1.4 The Combinatorial Explosion
The four problems we have looked at so far are all combinatorial in the sense that
the optimal solution is some subset of a finite set. Thus, in principle, these problems can be solved by enumeration. To see for what size of problem instances this
is a feasible approach, we need to count the number of possible solutions.
The Assignment Problem. There is a one-to-one correspondence between assignments and permutations of {1, … , n}. Thus, there are n! solutions to compare.
The Knapsack and Covering Problems. In both cases, the number of subsets is 2n .
∑n
For the knapsack problem with b = j=1 aj ∕2, at least half of the subsets are
feasible and thus there are at least 2n−1 feasible subsets.
1.5 Mixed Integer Formulations
Table 1.1
Some typical functions.
n
log n
n0.5
n2
2n
n!
10
100
1000
3.32
6.64
9.97
3.16
10.00
31.62
102
104
106
1.02 × 103
1.27 × 1030
1.07 × 10301
3.6 × 106
9.33 × 10157
4.02 × 102567
The Traveling Salesman Problem. Starting at city 1, the salesman has n − 1 choices.
For the next choice n − 2 cities are possible, and so on. Thus, there are (n − 1)!
feasible tours.
In Table 1.1, we show how rapidly certain functions grow. Thus, a traveling salesman problem (TSP) with n = 101 has approximately 9.33 × 10157 tours.
The conclusion to be drawn is that using complete enumeration we can only
hope to solve such problems for very small values of n. Therefore, we have to devise
some more intelligent algorithms, otherwise, the reader can throw this book out
of the window.
1.5 Mixed Integer Formulations
Modeling Fixed Costs
Suppose we wish to model a typical nonlinear fixed charge cost function:
h(y) = f + py if 0 < y ≤ C and h(y) = 0 if y = 0
with f > 0 and p > 0 (see Figure 1.3).
Definition of an additional variable.
x = 1 if y > 0 and x = 0 otherwise.
Figure 1.3
Fixed cost function.
h(y)
f + py
f
C
y
9
10
1 Formulations
Definition of the constraints and objective function.
We replace h(y) by fx + py, and add the constraints y ≤ Cx, x ∈ {0, 1}.
Note that this is not a completely satisfactory formulation, because although
the costs are correct when y > 0, it is possible to have the solution y = 0, x = 1.
However, as the objective is minimization, this will typically not arise in an optimal
solution.
Uncapacitated Facility Location (UFL)
Given a set of potential depots N = {1, … , n} and a set M = {1, … , m} of clients,
suppose there is a fixed cost fj associated with the use of depot j, and a transportation cost cij if all of client i’s order is delivered from depot j. The problem is to
decide which depots to open and which depot serves each client so as to minimize
the sum of the fixed and transportation costs. Note that this problem is similar to
the covering problem, except for the addition of the variable transportation costs.
Definition of the variables.
We introduce a fixed cost or depot opening variable xj = 1 if depot j is used, and
xj = 0 otherwise.
yij is the fraction of the demand of client i satisfied from depot j.
Definition of the constraints.
Satisfaction of the demand of client i:
n
∑
yij = 1 for i = 1, … , m.
j=1
∑
To represent the link between the yij and the xj variables, we note that i∈M yij ≤
m, and use the fixed cost formulation above to obtain:
∑
yij ≤ mxj for j ∈ N, yij ≥ 0 for i ∈ M, j ∈ N, xj ∈ {0, 1} for j ∈ N.
i∈M
Definition of the objective function.
∑
∑
The objective is j∈N hj (y1j , … , ymj ), where hj (y1j , … , ymj ) = fj + i∈M cij yij if
∑
i∈M yij > 0, so we obtain
∑
∑∑
cij yij +
fj xj .
min
i∈M j∈N
j∈N
Uncapacitated Lot-Sizing (ULS)
The problem is to decide on a production plan for a single product over an n-period
horizon. The basic model can be viewed as having data:
1.5 Mixed Integer Formulations
ft is the fixed cost of producing in period t.
pt is the unit production cost in period t.
ht is the unit storage cost in period t.
dt is the demand in period t.
We use the natural (or obvious) variables:
yt is the amount produced in period t.
st is the stock at the end of period t.
xt = 1 if production occurs in t, and xt = 0 otherwise.
To handle the fixed costs, we observe that a priori no upper bound is given on yt .
Thus, we either must use a very large value C = M, or calculate an upper bound
based on the problem data.
For constraints and objective, we obtain:
min
n
∑
t=1
pt yt +
n
∑
ht st
+
st−1 + yt
yt
s0 = 0, st , yt
=
≤
≥
t=1
n
∑
t=1
ft xt
dt + st for t = 1, … , n
Mxt for t = 1, … , n
0, xt ∈ {0, 1} for t = 1, … , n.
If we impose that sn = 0, then we can tighten the variable upper bound con)
(∑n
∑t
∑t
st = i=1 yi − i=1 di ,
straints to yt ≤
i=t di xt . Note also that by substituting
∑n
∑n
cy +
f x − K where
the objective function can be rewritten as
t=1
(∑tt t ) t=1 t t
∑n
ct = pt + ht + · · · + hn and the constant K = t=1 ht
i=1 di .
Discrete Alternatives or Disjunctions
Suppose y ∈ ℝn satisfies 0 ≤ y ≤ u, and either a1 y ≤ b1 or a2 y ≤ b2 (see Figure 1.4
in which the feasible region is shaded). We introduce binary variables xi for i = 1, 2.
Then if M ≥ max{ai y − bi ∶ 0 ≤ y ≤ u} for i = 1, 2, we take as constraints:
ai y − bi ≤ M (1 − xi ) for i = 1, 2
x1 + x2 = 1, xi ∈ {0, 1} for i = 1, 2
0 ≤ y ≤ u.
Now if x1 = 1, y satisfies a1 y ≤ b1 , whereas a2 x ≤ b2 is inactive, and conversely if
x2 = 1.
Such disjunctions arise naturally in scheduling problems. Suppose that two jobs
must be processed on the same machine and cannot be processed simultaneously.
If pi are the processing times and the variables ti the start times for i = 1, 2, then
either job 1 precedes job 2 and so t2 ≥ t1 + p1 , or job 2 comes first and t1 ≥ t2 + p2 .
11
12
1 Formulations
y2
a1y ≤ b1
a2y ≤ b2
y1
Figure 1.4
Either/or constraints.
1.6 Alternative Formulations
In Sections 1.3 and 1.5, we have formulated a small number of integer programs
for which it is not too difficult to verify that the formulations are correct. Here
and in Section 1.7, we examine alternative formulations and try to understand
why some might be better than others. First, we make precise what we mean by a
formulation.
Definition 1.1 A subset of ℝn described by a finite set of linear constraints
P = {x ∈ ℝn ∶ Ax ≤ b} is a polyhedron.
Definition 1.2 A polyhedron P ⊆ ℝn+p is a formulation for a set X ⊆ ℤn × ℝp if
and only if X = P ∩ (ℤn × ℝp ).
Note that this definition is restrictive. For example we saw in modeling fixed
costs in Section 1.5 that we did not model the set X = {(0, 0), ( y, 1) for 0 < y ≤ C},
but the set X ∪ {(0, 1)}.
Example 1.2 In Figure 1.5, we show two different formulations for the set:
X = {(1, 1), (2, 1), (3, 1), (1, 2), (2, 2), (3, 2), (2, 3)}.
◽
Note that it would not be easy to write a formulation for the set X∖{(2, 2)} without introducing many more variables, see Exercise 2.
1.6 Alternative Formulations
P1
Figure 1.5 Two different
formulations of an IP.
3
P2
2
1
0
1
2
3
4
Equivalent Formulations for a 0–1 Knapsack Set
Consider the set of points X =
{(0, 0, 0, 0), (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1), (0, 1, 0, 1), (0, 0, 1, 1)}.
Check that the three polyhedra below are formulations for X.
P1 = {x ∈ ℝ4 ∶ 0 ≤ x ≤ 1, 83x1 + 61x2 + 49x3 + 20x4 ≤ 100},
P2 = {x ∈ ℝ4 ∶ 0 ≤ x ≤ 1, 4x1 + 3x2 + 2x3 + 1x4 ≤ 4},
P3 = {x ∈ ℝ4 ∶
1x1
1x1
+1x2
+1x3
x
+1x4
≥0
≤1
≤1
}.
An Equivalent Formulation for UFL
For fixed j, consider the constraints:
∑
yij ≤ mxj ,
xj ∈ {0, 1}, 0 ≤ yij ≤ 1 for i ∈ M.
i∈M
Logically, these constraints express the condition: if any yij > 0 for one or more
i ∈ M, then xj = 1, or stated a little differently: for each i, if yij > 0, then xj = 1.
This immediately suggests a different set of constraints:
0 ≤ yij ≤ xj
for i ∈ M, xj ∈ {0, 1}.
13
14
1 Formulations
This leads to the alternative formulation:
m n
n
∑
∑
∑
min
cij yij + fj xj
i=1 j=1
j=1
n
∑
yij
=
1 for i ∈ M
yij − xj
yij ≥ 0 for i ∈ M, j ∈ N,
≤
0 for i ∈ M, j ∈ N
xj ∈ {0, 1}for j ∈ N.
j=1
In the two examples, we have just examined, the variables have been the same in
each formulation, and we have essentially modified or added constraints. Another
possible approach is to add or choose different variables, in which case we talk of
extended formulations.
An Extended Formulation for ULS
What variables, other than production and stock levels, might be useful in describing an optimal solution of the lot-sizing problem? Suppose we would like to know
when the items being produced now will actually be used to satisfy demand. Following the same steps as before, this leads to:
Definition of the variables.
𝑤it is the amount produced in period i to satisfy demand in period t
xt = 1 if production occurs in period t (as above), and xt = 0 otherwise.
Definition of the constraints.
Satisfaction of demand in period t:
t
∑
𝑤it = dt
for all t.
i=1
Variable upper-bound constraints:
𝑤it ≤ dt xi
for all i, t, i ≤ t.
The variables are mixed:
𝑤it ≥ 0 for all i, t, i ≤ t, xt ∈ {0, 1}for all t.
Definition of the objective function.
min
n
n
∑
∑
ci 𝑤it +
i=1 t=i
n
∑
ft xt .
t=1
Note that here we are again using modified costs with ct the production cost in
period t and zero storage costs. It is optional whether we choose to define the
old variables in terms of the new by adding defining equalities:
yi =
n
∑
t=i
𝑤it .
1.7 Good and Ideal Formulations
P1
Figure 1.6 The ideal
formulation.
3
P2
2
P3
1
0
1
2
3
4
1.7 Good and Ideal Formulations
In Figure 1.5, we show two different formulations of the same problem. We have
also seen two possible formulations for the uncapacitated facility location problem. Geometrically, we can see that there must be an infinite number of formulations, so how can we choose between them?
The geometry again helps us to find an answer. Look at Figure 1.6 in which we
have repeated the two formulations shown in Figure 1.5 and added a third one
P3 . Formulation P3 is ideal, because now if we solve a linear program over P3 , the
optimal solution is at a vertex (extreme point). In this ideal case, each vertex is
integer and so the IP is solved.
We can now formalize this idea.
Definition 1.3 Given a set X ⊆ ℝn , the convex hull of X, denoted conv(X), is
∑t
∑t
defined as follows: conv(X) = {x ∶ x = i=1 𝜆i xi , i=1 𝜆i = 1, 𝜆i ≥ 0 for i = 1, … , t
over all finite subsets {x1 , … , xt } of X}.
Proposition 1.1 If X = {x ∈ ℤn ∶ Ax ≤ b}, conv(X) is a polyhedron.
Definition 1.4 Given a polyhedron P, x is an extreme point of P if x1 , x2 ∈ P with
x = 𝜆x1 + (1 − 𝜆)x2 , 0 < 𝜆 < 1 implies that x = x1 = x2 . Note that extreme points
correspond to the geometric idea of vertices.
Proposition 1.2 When a linear program: max{cx ∶ x ∈ PX} where P is a polyhedron has finite optimal value, there exists an extreme point of P that is optimal.
15
16
1 Formulations
Because of these two results, we can replace the IP: {max cx ∶ x ∈ X} by the
equivalent linear program: max{cx ∶ x ∈ conv(X)}. This ideal reduction to a linear
program holds for unbounded integer sets X = {x ∶ Ax ≤ b and integer}, and also
mixed integer sets X = {(x, y) ∶ Ax + Gy ≤ b, x ≥ 0 and integer, y ≥ 0} with A, G, b
rational. However, whether X is bounded or not, this is in general only a theoretical
solution, because in most cases, there is an enormous (exponential) number of
inequalities needed to describe conv(X), and there is no simple characterization
of all these inequalities.
So we might rather ask the question: Given two formulations P1 and P2 for X,
when can we say that one is better than the other? Because the ideal solution
conv(X) has the property that X ⊆ conv(X) ⊆ P for all formulations P, this suggests
the following definition.
Definition 1.5 Given a set X ⊆ ℤn , and two formulations P1 and P2 for X, P1 is
a better formulation than P2 if P1 ⊂ P2 .
In Chapter 2, we will see that this turns out to be a useful definition and a very
important idea for the development of effective formulations. For the moment, we
examine some of our formulations in the light of these definitions.
Equivalent Formulations for a Knapsack Set
Looking again at the set X =
{(0, 0, 0, 0), (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1), (0, 1, 0, 1), (0, 0, 1, 1)}
and the three formulations
P1 = {x ∈ ℝ4 ∶ 0 ≤ x ≤ 1, 83x1 + 61x2 + 49x3 + 20x4 ≤ 100},
P2 = {x ∈ R4 ∶ 0 ≤ x ≤ 1, 4x1 + 3x2 + 2x3 + 1x4 ≤ 4},
P3 = {x ∈ ℝ4 ∶
1x1
1x1
+1x2
+1x3
+1x4
x≥0
≤1
≤1
},
it is easily seen that P3 ⊂ P2 ⊂ P1 . It can be checked that P3 = conv(X) and P3 is
thus an ideal formulation.
Formulations for UFL
Let P1 be the formulation given in Section 1.5 with a single constraint
∑
yij ≤ mxj
i∈M
1.7 Good and Ideal Formulations
for each j, and P2 be the formulation given in Section 1.5 with the m constraints
yij ≤ xj
for i ∈ M
for each j. Note that if a point (x, y) satisfies the constraints yij ≤ xj for i ∈ M,
∑
then summing over i ∈ M shows that it also satisfies the constraints i yij ≤ mxj .
Thus P2 ⊆ P1 . To show that P2 ⊂ P1 , we need to find a point in P1 that is not in
P2 . Suppose for simplicity that n divides m, that is, m = kn with k ≥ 2 and integer. Then a point in which each depot serves k clients, yij = 1 for i = k( j − 1) +
1, … , k( j − 1) + k, j = 1, … , n, yij = 0 otherwise, and xj = k∕m for j = 1, … , n lies
in P1 ∖P2 .
The two formulations that we have seen for the lot-sizing problem (ULS) have
different variables, so it is not immediately obvious how they can be compared.
We now examine this question briefly.
Formally, assuming for simplicity that all the variables are integer, we have a
first formulation
min{cx ∶ x ∈ P ∩ ℤn }
with P ⊆ ℝn , and a second extended formulation
min{cx ∶ (x, 𝑤) ∈ Q ∩ (ℤn × ℝp )}
with Q ⊆ ℝn × ℝp .
Definition 1.6 Given a polyhedron Q ⊆ ℝn × ℝp , the projection of Q onto the
subspace ℝn , denoted projx Q, is defined as follows:
projx Q = {x ∈ ℝn ∶ (x, 𝑤) ∈ Q for some 𝑤 ∈ ℝp }.
Thus, projx Q ⊆ ℝn is the formulation obtained from Q in the space ℝn of the
original x variables, and it allows us to compare Q with other formulations
P ⊆ ℝn .
Comparing Formulations for ULS
We can now compare the formulation P1 :
st−1 + yt
yt
s0 = sn = 0, st , yt
=
≤
≥
dt + st for t = 1, … , n
Mxt for t = 1, … , n
0, 0 ≤ xt ≤ 1 for t = 1, … , n
17
18
1 Formulations
and P2 = projy,s,x Q2 , where Q2 takes the form:
for t = 1, … , n
st−1 + yt
t
∑
𝑤it
=
d t + st
=
dt
𝑤it
≤
yi
=
dt xi for all i, t, i ≤ t
n
∑
𝑤it for i = 1, … , n
𝑤it
0
≥
≤
0 for all i, t, i ≤ t
xt ≤ 1 for all t.
i=1
for t = 1, … , n
t=i
It can be shown that P2 describes the convex hull of solutions to the problem and
is thus an ideal formulation. It is easily seen that P2 ⊂ P1 . For instance the point
yt = dt , xt = dt ∕M for all t is an extreme point of P1 that is not in P2 .
1.8 Notes
Introduction
Much of the material in this book except for the later chapters on decomposition
algorithms and heuristics are treated in greater detail and at a more advanced
level in Nemhauser and Wolsey [233] and the excellent recent book of Conforti
et al. [74]. An even more advanced theoretical treatment of integer programming
is given in Schrijver [266]. Other books treating integer programming from a somewhat different angle include Martin [226] and Bertsimas and Weismantel [51]. The
book of Jünger et al. [190] to celebrate 50 years of integer programming includes
chapters of reminiscences from the founders of the field and up-to-date surveys
of many of the major topics. For the related area of combinatorial optimization,
there is the undergraduate text of Papadimitriou and Stieglitz [243] and the graduate level texts of Cook et al. [79] and of Korte and Vygen [198] and the ultimate
3-volume bible of Schrijver [267].
The journals publishing articles on integer programming cover a wide spectrum
from theory to applications. The more theoretical include Mathematical Programming, Mathematics of Operations Research, the SIAM Journal on Discrete Mathematics, the SIAM Journal on Optimization and Discrete Applied Mathematics, while
Operations Research, the European Journal of Operations Research, Networks, Management Science, Transportation Science, OR Letters, Optimization Letters, etc. contain more integer programming applications.
For those unfamiliar with linear programming, Dantzig [91] is the ultimate classic, and the book of Chvatal [71] is exceptional. Vanderbei [283] treats interior
point as well as simplex methods, see also Wright [300]. For graph theory, the
1.9 Exercises
books of Berge [45] and Bondy and Murty [57] are classics. For network flows
Ford and Fulkerson [125] and Lawler [204] remain remarkably stimulating, while
Ahuja et al. [9] is clear and comprehensive and Williamson [292] is hot off the
press.
In the notes at the end of each chapter, we will cite only selected references, a few
of the important original sources, and also some, where possible, recent surveys
and articles that can be used for further reading.
Notes for the Chapter
The importance of formulations in integer programming is well established. Certain special classes of problems that are often tackled as integer programs have
had books dedicated to them: knapsack problems by Martello and Toth [224] and
Kellerer et al. [195], traveling salesman problems by Applegate et al. [12], location problems by Mirchandani and Francis [230] and Laporte et al. [203], network
models and network routing by Ball et al. [30, 31], vehicle routing by Golden et al.
[152] and Toth and Vigo [276], and production planning by Pochet and Wolsey
[250]. For machine scheduling problems, Queyranne and Schultz [254] contains a
variety of integer programming formulations.
The documentation provided by some of the different mathematical programming systems, such as CPLEX [84], GUROBI [171], LINDO [210], SCIP [144, 268],
and XPRESS [301], includes a wide range of formulations.
1.9 Exercises
1.
Suppose that you are interested in choosing a set of investments {1, … , 7}
using 0–1 variables. Model the following constraints:
(i) You cannot invest in all of them.
(ii) You must choose at least one of them.
(iii) Investment 1 cannot be chosen if investment 3 is chosen.
(iv) Investment 4 can be chosen only if investment 2 is also chosen.
(v) You must choose either both investments 1 and 5 or neither.
(vi) You must choose either at least one of the investments 1,2,3, or at least
two investments from 2,4,5,6.
2.
Formulate the following as mixed integer programs:
(i) u = min{y1 , y2 }, assuming that 0 ≤ yj ≤ C for j = 1, 2
(ii) 𝑣 = |y1 − y2 | with 0 ≤ yj ≤ C, for j = 1, 2
(iii) the set X∖{x∗ } where X = {x ∈ {0, 1}n ∶ Ax ≤ b} and x∗ ∈ X.
3.
Modeling disjunctions.
19
20
1 Formulations
(i) Extend the formulation of discrete alternatives of Section 1.5 to the union
of two bounded polyhedra (polytopes) Pk = {y ∈ ℝn ∶ Ak y ≤ bk , 0 ≤ y ≤
u} for k = 1, 2 where maxk maxi {aki y − bki ∶ 0 ≤ y ≤ u} ≤ M.
(ii) Show that an extended formulation for P1 ∪ P2 is the set Q:
y = 𝑤1 + 𝑤2
Ak 𝑤k ≤ bk xk
for k = 1, 2
0 ≤ 𝑤k ≤ uxk
for k = 1, 2
x1 + x2 = 1
y ∈ ℝn , 𝑤k ∈ ℝn , xk ∈ {0, 1} for k = 1, 2.
4.
Show that
X = {x ∈ {0, 1}4 ∶ 97x1 + 32x2 + 25x3 + 20x4 ≤ 139}
= {x ∈ {0, 1}4 ∶ 2x1 + x2 + x3 + x4 ≤ 3}
= {x ∈ {0, 1}4 ∶ x1 + x2 + x3 ≤ 2
x1 + x2 + x4 ≤ 2
x1 + x3 + x4 ≤ 2}.
5.
John Dupont is attending a summer school where he must take four courses
per day. Each course lasts an hour, but because of the large number of students, each course is repeated several times per day by different teachers.
Section i of course k denoted (i, k) meets at the hour tik , where courses start
on the hour between 10 a.m. and 7 p.m. John’s preferences for when he takes
courses are influenced by the reputation of the teacher, and also the time of
day. Let pik be his preference for section (i, k). Unfortunately, due to conflicts,
John cannot always choose the sections he prefers.
(i) Formulate an integer program to choose a feasible course schedule that
maximizes the sum of John’s preferences.
(ii) Modify the formulation so that John never has more than two consecutive hours of classes without a break.
(iii) Modify the formulation so that John chooses a schedule in which he
starts his day as late as possible.
6.
Prove that the set of feasible solutions to the formulation of the traveling
salesman problem in Section 1.3 is precisely the set of incidence vectors of
tours.
7.
The QED Company must draw up a production program for the next nine
weeks. Jobs last several weeks and once started must be carried out without
1.9 Exercises
interruption. During each week, a certain number of skilled workers are
required to work full-time on the job. Thus, if job i lasts pi weeks, li,u workers
are required in week u for u = 1, … , pi . The total number of workers available
in week t is Lt . Typical job data (i, pi , li1 , … , lipi ) is shown below.
Job
Length
Week1
Week2
Week3
Week4
1
3
2
3
1
—
2
2
4
5
—
—
3
4
2
4
1
5
4
4
3
4
2
2
5
3
9
2
3
—
(i) Formulate the problem of finding a feasible schedule as an IP.
(ii) Formulate when the objective is to minimize the maximum number of
workers used during any of the nine weeks.
(iii) Job 1 must start at least two weeks before job 3. Formulate.
(iv) Job 4 must start not later than one week after job 5. Formulate.
(v) Jobs 1 and 2 both use the same machine and cannot be carried out simultaneously. Formulate.
8.
Show that the uncapacitated facility location problem of Section 1.5 with a
set N = {1, … , n} of depots can be written as the COP
{
}
∑
min c(S) +
fj
S⊆N
where c(S) =
9.
i=1 minj∈S cij .
Show that the set covering problem of Section 1.3 can be written as the COP
{
}
∑
fj ∶ 𝑣(S) = 𝑣(N) ,
min
S⊆N
where 𝑣(S) =
10.
j∈S
∑m
j∈S
∑m
i=1 min{
∑
j∈S aij , 1}.
A set of n jobs must be carried out on a single machine that can do only one
job at a time. Each job j takes pj hours to complete. Given job weights 𝑤j for
j = 1, … , n, in what order should the jobs be carried out so as to minimize
the weighted sum of their start times? Formulate this scheduling problem as
a mixed integer program.
21
22
1 Formulations
11.
Given a graph G = (V, E) with edge weights c ∈ ℝ|E| and a subset X ⊆ V, the
set of edges E(X) = {e = (i, j) ∈ E ∶ |X ∩ {i, j}| = 1} is a cut. Formulate the
problem of finding a maximum weight cut as
(i) a quadratic 0–1 integer program,
(ii) a linear integer program.
12.
Using a mixed integer programming system, solve an instance of the
uncapacitated facility location problem, where fj is the cost of opening depot
j, and cij is the cost of satisfying all client i’s demand from depot j, with
f = (4, 3, 4, 4, 7) and
⎛ 12 13 6 0 1 ⎞
⎟
⎜
⎜ 8 4 9 1 2⎟
⎜ 2 6 6 0 1⎟
(cij ) = ⎜
⎟.
⎜ 3 5 2 1 8⎟
⎜ 8 0 5 10 8 ⎟
⎜ 2 0 3 4 1⎟
⎠
⎝
13.
The symmetric traveling salesman problem is a TSP in which cij = cji for all
(i, j) ∈ A. Consider an instance on the graph shown in Figure 1.7, where the
missing edges have a very high cost. Solve with a mixed integer programming
system.
14.
Formulate and solve an instance of the lot-sizing problem over six periods,
with demands (6, 7, 4, 6, 3, 8), unit production costs (3, 4, 3, 4, 4, 5), unit storage costs (1, 1, 1, 1, 1, 1), set-up costs (12, 15, 30, 23, 19, 45), and a maximum
production capacity of 10 items per period.
15.
Formulate the problem of placing N queens on an N by N chessboard such
that no two queens share any row, column, or diagonal. Solve for N = 10.
16.
Frequency Assignment. Frequencies from the range {1, … , 6} must be
assigned to 10 stations. For each pair of stations, there is an interference
Figure 1.7
2
2
1
1
5
1
4
1
2
1
3
4
1
2
1
2
1
TSP Instance.
1.9 Exercises
parameter which is the minimum amount by which the frequencies of the
two stations must differ. The pairs with nonzero parameter are given below:
e = (5, 7) (2, 3) (3, 4) (4, 5) (5, 6) (6, 7) (7, 8) (8, 9)
3
2
4
2
3
1
1
2
e = (9, 10) (1, 8) (2, 10) (3, 10) (5, 10) (7, 10) (2, 5) (5, 9)
3
2
1
1
4
2
2
2
The goal is to minimize the difference between the smallest and largest
frequency assigned. Formulate and solve.
23
25
2
Optimality, Relaxation, and Bounds
2.1 Optimality and Relaxation
Given an IP or COP
Z = max{c(x) ∶ x ∈ X ⊆ ℤn },
how is it possible to prove that a given point x∗ is optimal? Put differently, we are
looking for some optimality conditions that will provide stopping criteria in an
algorithm for IP.
The “naive” but nonetheless important reply is that we need to find a lower
bound Z ≤ Z and an upper bound Z ≥ Z such that Z = Z = Z. Practically, this
means that any algorithm will find a decreasing sequence
Z1 > Z2 > · · · > Zs ≥ Z
of upper bounds, and an increasing sequence
Z 1 < Z 2 < · · · < Z t ≤ Z,
of lower bounds, and stop when
Z s − Z t ≤ 𝜖,
where 𝜖 is some suitably chosen small nonnegative value (see Figure 2.1). Thus,
we need to find ways of deriving such upper and lower bounds.
Primal Bounds
Every feasible solution x∗ ∈ X provides a lower bound Z = c(x∗ ) ≤ Z. This is
essentially the only way we know to obtain lower bounds. For some IP problems,
finding feasible solutions is easy, and the real question is how to find good
solutions. For instance in the traveling salesman problem, if the salesman is
allowed to travel between any pair of cities, any permutation of the cities leads to
Integer Programming, Second Edition. Laurence A. Wolsey.
© 2021 John Wiley & Sons, Inc. Published 2021 by John Wiley & Sons, Inc.
Companion website: www.wiley.com/go/wolsey/integerprogramming2e
26
2 Optimality, Relaxation, and Bounds
Figure 2.1
Bounds for IP.
Z1
Z2
Z3
Z4
Z
Z3
Z2
Z1
a feasible tour, and it suffices to evaluate the length of the tour to have a primal
bound on Z. Some simple ways to find feasible solutions and then improve them
are discussed later in this chapter. For other IPs, finding feasible solutions may
be very difficult (as difficult as the IP itself). This topic is raised again when we
discuss complexity in Chapter 6, and heuristics to find primal bounds are treated
in more detail in Chapter 13.
Dual Bounds
Finding upper bounds for a maximization problem (or lower bounds for a
minimization problem) presents a different challenge. These are called dual
bounds in contrast to the primal bounds for reasons that should become obvious
in Section 2.5. The most important approach is by “relaxation,” the idea being
to replace a “difficult” max(min) IP by a simpler optimization problem whose
optimal value is at least as large (small) as Z.
For the “relaxed” problem to have this property, there are two obvious
possibilities:
(i) Enlarge the set of feasible solutions so that one optimizes over a larger set, or
(ii) Replace the max(min) objective function by a function that has the same or a
larger (smaller) value on all the original feasible solutions.
Definition 2.1 A problem (RP) Z RP = max{f (x) ∶ x ∈ T ⊆ ℝn } is a relaxation of
(IP) Z = max{c(x) ∶ x ∈ X ⊆ ℝn } if
(i) X ⊆ T, and
(ii) f (x) ≥ c(x) for all x ∈ X.
2.2 Linear Programming Relaxations
Proposition 2.1 If RP is a relaxation of IP, Z RP ≥ Z.
Proof. If x∗ is an optimal solution of IP, x∗ ∈ X ⊆ T and Z = c(x∗ ) ≤ f (x∗ ).
As x∗ ∈ T, f (x∗ ) is a lower bound on Z RP and so Z ≤ f (x∗ ) ≤ Z RP .
◽
The question then arises of how to construct interesting relaxations. One of the
most useful and natural ones is the linear programming relaxation.
2.2 Linear Programming Relaxations
Definition 2.2 For the integer program Z = max{cx ∶ x ∈ P ∩ ℤn } with formulation P = {x ∈ ℝn+ ∶ Ax ≤ b}, the linear programming relaxation is the linear program Z LP = max{cx ∶ x ∈ P}.
As P ∩ ℤn ⊆ P and the objective function is unchanged, this is clearly a relaxation.
Example 2.1 Consider the integer program
Z = max 4x1 − x2
7x1 − 2x2 ≤ 14
x2 ≤ 3
2x1 − 2x2 ≤ 3
x ∈ ℤ2+ .
To obtain a primal (lower) bound, observe that (2, 1) is a feasible solution, so we
have the lower bound Z ≥ 7. To obtain a dual (upper) bound, consider the linear
, 3) with value Z LP = 59
.
programming relaxation. The optimal solution is x∗ = ( 20
7
7
59
Thus, we obtain an upper bound Z ≤ 7 . Observing that the optimal value must
be integer, we can round down to the nearest integer and so obtain Z ≤ 8.
◽
Note that the definition of better formulations is intimately related to that of linear programming relaxations. In particular, better formulations give tighter (dual)
bounds.
Proposition 2.2 Suppose P1 , P2 are two formulations for the integer program max{cx ∶ x ∈ X ⊆ ℤn } with P1 a better formulation than P2 , i.e. P1 ⊂ P2 .
If ZiLP = max{cx ∶ x ∈ Pi } for i = 1, 2 are the values of the associated linear
programming relaxations, then Z1LP ≤ Z2LP for all c.
27
28
2 Optimality, Relaxation, and Bounds
Relaxations do not just give dual bounds. They sometimes allow us to prove
optimality.
Proposition 2.3
(i) If a relaxation RP is infeasible, the original problem IP is infeasible.
(ii) Let x∗ be an optimal solution of RP. If x∗ ∈ X and f (x∗ ) = c(x∗ ), then x∗ is an
optimal solution of IP.
Proof.
(i) As RP is infeasible, T = 𝜙 and thus X = 𝜙.
(ii) As x∗ ∈ X, Z ≥ c(x∗ ) = f (x∗ ) = Z RP . As Z ≤ Z RP , we obtain c(x∗ ) = Z = Z RP . ◽
Example 2.2 The linear programming relaxation of the integer program:
max 7x1 + 4x2 + 5x3 + 2x4
3x1 + 3x2 + 4x3 + 2x4 ≤ 6
x ∈ {0, 1}4
has optimal solution x∗ = (1, 1, 0, 0). As x∗ is integral, it solves the integer
program.
◽
2.3 Combinatorial Relaxations
Whenever the relaxed problem is a combinatorial optimization problem, we speak
of a combinatorial relaxation. In many cases, such as (i)–(iii) below, the relaxation
is an easy problem that can be solved rapidly. Some of the problems arising in this
way are studied in Chapters 3 and 4. Here we illustrate with four examples.
(i) The Traveling Salesman Problem: We saw in formulating the traveling
salesman problem with digraph D = (V, A) and arc weights cij for (i, j) ∈ A
that the (Hamiltonian or salesman) tours are precisely the assignments (or
permutations) containing no subtours. Thus,
}
{
∑
TSP
= min
cij ∶ T forms a tour ≥
Z
T⊆A
Z ASS = min
T⊆A
{(i,j)∈T
∑
}
cij ∶ T forms a assignment
.
(i,j)∈T
(ii) A closely related problem is the Symmetric Traveling Salesman Problem
(STSP) specified by a graph G = (V, E) and edge weights ce for e ∈ E. The
problem is to find an undirected tour of minimum weight. An interesting
relaxation of this problem is obtained by observing that
2.4 Lagrangian Relaxation
(a) Every tour consists of two edges adjacent to node 1, and a path through
nodes {2, … , n}.
(b) A path is a special case of a tree.
Definition 2.3 A 1-tree is a subgraph consisting of two edges adjacent to
node 1, plus the edges of a tree on nodes {2, … , n}.
Clearly, every tour is a 1-tree, and thus
}
{
∑
STSP
Z
= min
ce ∶ T forms a tour ≥
T⊆E
e∈T
}
{
∑
1−tree
Z
= min
ce ∶ T forms a 1–tree .
T⊆E
e∈T
(iii) The Quadratic 0–1 Problem is the problem:
{
}
n
∑
∑
n
max
qij xi xj −
pj xj , x ≠ 0, x ∈ {0, 1}
.
i,j∶1≤i<j≤n
j=1
Replacing all terms qij xi xj with qij < 0 by 0 gives a relaxation
{
}
n
∑
∑
R
n
Z = max
max{qij , 0}xi xj −
pj xj , x ≠ 0, x ∈ {0, 1}
.
i,j∶1≤i<j≤n
j=1
In Section 9.5, it will be shown how this relaxation can be solved as a series
of maximum flow problems.
(iv) The Integer Knapsack Problem. A relaxation of the set X = {x ∈ ℤn+ ∶
∑n
j=1 aj xj ≤ b} is the set
{
}
n
∑
n
′
X = x ∈ ℤ+ ∶ ⌊aj ⌋xj ≤ ⌊b⌋ ,
j=1
where ⌊a⌋ is the largest integer less than or equal to a.
2.4 Lagrangian Relaxation
Suppose we are given an integer program (IP) in the form Z = max{cx ∶ Ax ≤ b,
x ∈ X ⊆ ℤn }. If the problem is too difficult to solve directly, one possibility is just to
drop the constraints Ax ≤ b. Clearly, the resulting problem: Z ′ = max{cx ∶ x ∈ X}
is a relaxation of IP. In the asymmetric traveling salesman problem above, the
assignment problem is obtained by dropping the subtour constraints. An important extension of this idea, dealt with in much greater detail in Chapter 10, is not
just to drop complicating constraints, but then to add them into the objective function with Lagrange multipliers (dual variables).
29
30
2 Optimality, Relaxation, and Bounds
Proposition 2.4 Let Z(u) = max{cx + u(b − Ax) ∶ x ∈ X}. Then Z(u) ≥ Z for all
u ≥ 0.
Proof. Let x∗ be optimal for IP. As x∗ is feasible in IP, x∗ ∈ X. Again, by feasibility
Ax∗ ≤ b, and thus as u ≥ 0, cx∗ ≤ cx∗ + u(b − Ax∗ ) ≤ Z(u), where the last inequality is by definition of Z(u).
◽
2.5 Duality
For linear programs, duality provides a standard way to obtain upper bounds. It
is therefore natural to ask whether it is possible to find duals for integer programs.
The important property of a dual is that the value of any feasible solution provides
an upper bound on the objective value Z. This suggests the following definition:
Definition 2.4
The two problems
(IP)
Z = max{c(x) ∶ x ∈ X}
(D)
W = min{𝜔(u) ∶ u ∈ U}
form a (weak)-dual pair if c(x) ≤ 𝜔(u) for all x ∈ X and all u ∈ U. When Z = W,
they form a strong-dual pair.
The advantage of a dual problem as opposed to a relaxation is that any dual
feasible solution provides an upper bound on Z, whereas a relaxation of IP must
be solved to optimality to provide such a bound. Do such dual problems exist?
Not surprisingly, a linear programming relaxation immediately leads to a
weak dual.
Proposition 2.5 The integer program Z = max{cx ∶ Ax ≤ b, x ∈ ℤn+ } and the linear program W LP = min{ub ∶ uA ≥ c, u ∈ ℝm
+ } form a weak-dual pair.
By analogy with Proposition 2.3, dual problems sometimes allow us to prove
optimality.
Proposition 2.6 Suppose that IP and D are a weak-dual pair.
(i) If D is unbounded, IP is infeasible.
(ii) If x∗ ∈ X and u∗ ∈ U satisfy c(x∗ ) = 𝜔(u∗ ), then x∗ is optimal for IP and u∗ is
optimal for D.
We now present another example of a dual pair of problems.
2.5 Duality
Figure 2.2
by nodes.
Matching and cover
1
∗ 2
3
∗
5
4
∗ 8
6
∗
7
A Matching Dual.
Given a graph G = (V, E), a matching M ⊆ E is a set of disjoint edges. A covering by
nodes is a set R ⊆ V of nodes such that every edge has at least one endpoint in R.
A graph on eight nodes is shown in Figure 2.2. The edges (1, 2), (3, 4), (5, 6), and
(7, 8) form a matching, and the nodes {2, 3, 6, 8} a cover by nodes.
Proposition 2.7
The problem of finding a maximum cardinality matching:
max{|M| ∶ M is a matching }
M⊆E
and the problem of finding a minimum cardinality covering by nodes:
min{|R| ∶ R is a co𝑣ering by nodes }
R⊆V
form a weak-dual pair.
Proof. If M is a matching with M = {(i1 , j1 ), … , (ik , jk )}, then the 2k nodes
{i1 , j1 , … , ik , jk } are distinct, and any covering by nodes R must contain at least
one node from each pair {is , js } for s = 1, … , k. Therefore, |R| ≥ k = |M|.
◽
We can also establish this result using linear programming duality.
Definition 2.5 The node-edge incidence matrix of a graph G = (V, E) is an n =
|V| by m = |E| 0–1 matrix A with aj,e = 1 if node j is an endpoint of edge e, and
aj,e = 0 otherwise.
The maximum cardinality matching problem can now be formulated as the integer program:
Z = max{1x ∶ Ax ≤ 1, x ∈ ℤm
+}
and the minimum cardinality covering by nodes problem as follows:
W = min{1y ∶ yA ≥ 1, y ∈ ℤn+ }.
31
32
2 Optimality, Relaxation, and Bounds
Figure 2.3
1
e3
2
Weak duality for matching.
e2
e1
3
Let Z LP and W LP be the values of their corresponding linear programming relaxations. Then Z ≤ Z LP = W LP ≤ W, and the duality is again established.
Example 2.3 It is easily seen that there is not a strong duality between the two
problems. Consider the graph shown in Figure 2.3.
First, observe that Z = 1 and W = 2. What is more, xe1 = xe2 = xe3 = 1∕2 is feasible for the first LP relaxation, and y1 = y2 = y3 = 1∕2 is feasible for the second LP
relaxation, so Z LP = W LP = 3∕2.
◽
Later, we will see that strong duality holds for this pair of problems when the
graph G is bipartite.
A Superadditive Dual. For integer programs, there is a generalization of linear
programming duality, but unfortunately, it does not involve linear functions.
Definition 2.6 A function F ∶ ℝm → ℝ is superadditive if F(0) = 0 and F(u) +
F(𝑣) ≤ F(u + 𝑣) for u, 𝑣 ∈ ℝm .
It is nondecreasing if F(u) ≤ F(𝑣) for u, 𝑣 ∈ ℝm with u ≤ 𝑣.
One simple nondecreasing superadditive function that is not a linear function is
F 1 ∶ ℝ → ℝ with F 1 (u) = ⌊u⌋. Another is the value function of an integer program:
F 2 ∶ ℝm → ℝ with F 2 (d) = max{cx ∶ Ax ≤ d, x ∈ ℤn+ }.
Theorem 2.1 Provided it is feasible, and its linear programming relaxation has
finite optimal value:
max{cx ∶ Ax ≤ b, x ∈ ℤn+ } = min{F(b) ∶ F(aj ) ≥ cj for j ∈ [1, n], F ∈ },
where is the set of nondecreasing superadditive functions.
Several of the inequalities for integer programs developed in later chapters can
be represented by such functions.
2.6 Linear Programming and Polyhedra
Here we remind the reader of some basic properties of linear programs and present
some of the properties and alternative ways of representing polyhedra that will be
used in later chapters.
2.6 Linear Programming and Polyhedra
Consider a linear program max{cx ∶ x ∈ P}, where P = {x ∈ ℝn+ ∶ Ax ≤ b} with
A an m × n matrix and its dual min{ub ∶ u ∈ U} where U = {u ∈ ℝm
+ ∶ uA ≥ c}.
We are interested in different characterizations of feasibility and optimality.
P ≠ ∅ if and only if ub ≥ 0 for all u ∈ ℝm
+
Proposition 2.8 (Farkas’ Lemma)
such that uA ≥ 0.
Similarly, U ≠ ∅ if and only if cx ≤ 0 for all x ∈ ℝn+ such that Ax ≤ 0.
Definition 2.7 Given a nonempty polyhedron P = {x ∈ ℝn+ ∶ Ax ≤ b},
(i) x ∈ P is an extreme point of P if x = x1 𝜆 + x2 (1 − 𝜆), 0 < 𝜆 < 1, x1 , x2 ∈ P
implies that x = x1 = x2 . (Repeat of Definition 1.4)
(ii) r is a ray of P if r ≠ 0 and x ∈ P implies x + 𝜇r ∈ P for all 𝜇 ∈ ℝ1+ .
(iii) r is an extreme ray of P if r = r 1 𝜇1 + r 2 𝜇2 , 𝜇1 , 𝜇2 > 0, with r 1 , r 2 rays of P
implies r 1 = 𝛼r 2 for some 𝛼 > 0.
Note that the same rays are obtained for the cone P0 = {x ∈ ℝn+ ∶ Ax ≤ 0} that
is always nonempty.
Theorem 2.2 (Minkowski) Every nonempty polyhedron P = {x ∈ ℝn+ ∶ Ax ≤
b} can be represented in the form
{
}
S
T
S
∑
∑
∑
P = x ∈ ℝn ∶ x =
𝜆s x s +
𝜇t 𝑣t ,
𝜆s = 1, 𝜆 ∈ ℝS+ , 𝜇 ∈ ℝT+ ,
s=1
t=1
s=1
where {xs }Ss=1 are the extreme points of P and {𝑣t }Tt=1 the extreme rays of P.
Example 2.4 The polyhedron, see Figure 2.4,
U = {u ∈ ℝ2+ ∶ 4u1 + 2u2 ≥ 2, −2u1 + 3u2 ≥ −3, 3u1 − u2 ≥ 1}
has extreme points ( 25 , 15 )T , ( 12 , 0)T , ( 32 , 0)T and extreme rays (3, 2)T , (1, 3)T giving
the extended formulation:
( )
( )
(1)
( )
( )
2
3
3
1
𝜇1 +
𝜇,
U = {u ∈ ℝ2 ∶ u = 51 𝜆1 + 2 𝜆2 + 2 𝜆3 +
2
3 2
0
0
5
𝜆1 + 𝜆2 + 𝜆3 = 1, (𝜆, 𝜇) ∈ ℝ3+ × ℝ2+ }.
◽
There is also a converse stating that if Q = {(x, 𝑤) ∈ ℝn × ℝp ∶ Ax + B𝑤 ≤ d}
and P =projx (Q), then P is a polyhedron. (See Exercise 12).
Now we return to the pair of primal and dual linear programs cited above,
33
34
2 Optimality, Relaxation, and Bounds
(1, 3)
(3, 2)
( 25 , 15 )
( 12 , 0)
Figure 2.4
( 32 , 0)
Extreme points and rays.
Proposition 2.9 Consider the linear program Z = max{cx ∶ x ∈ P} where
P = {x ∈ ℝn+ ∶ Ax ≤ b} and its dual W = min{ub ∶ u ∈ U} where U = {u ∈ ℝm
+ ∶
uA ≥ c}.
(i) If P ≠ ∅ and cr > 0 for some (extreme) ray of P, then U = ∅ and Z → +∞.
(ii) If U ≠ ∅ and 𝑣b < 0 for some (extreme) ray of U, then P = ∅ and W → −∞.
(iii) If P ≠ ∅ and U ≠ ∅, then Z = max cxs = min uk b = W, where {xs }Ss=1 ,
s=1,…,S
k=1,…,K
{uk }Kk=1 are the extreme points of P and U, respectively.
2.7 Primal Bounds: Greedy and Local Search
Now, we briefly consider some simple ways to obtain feasible solutions and primal
bounds. This topic is treated in considerably more detail in Chapter 13.
Heuristics from Restrictions
The converse of a relaxation is a restriction.
Definition 2.8 A problem (RE) Z RE = max{f (x) ∶ x ∈ T ⊆ ℝn } is a restriction of
the integer program Z = max{c(x) ∶ x ∈ X ⊆ ℝn } if
(i) T ⊆ X, and
(ii) f (x) ≤ c(x) for all x ∈ X.
2.7 Primal Bounds: Greedy and Local Search
Proposition 2.10 If RE is a restriction of IP with optimal solution xRE , xRE is feasible solution to IP and c(xRE ) ≤ Z.
Obvious ways to construct a restriction are to fix the values of some variables, to
replace inequalities by equalities, or to add additional constraints. Typically, this is
done so that the resulting restriction is an easier problem that can be solved fairly
quickly.
Example 2.5 Consider the single-item lot-sizing problem with varying capacities (CLS) that can be written in the form:
min
n
∑
ct yt +
t=1
n
∑
ft xt
t=1
st−1 + yt = dt + st for t = 1, … , n
yt ≤ Ct xt for t = 1, … , n
s0 = 0, st , yt ≥ 0, xt ∈ {0, 1} for t = 1, … , n.
Replacing the inequalities yt ≤ Ct xt by yt = Ct xt and using these equations to eliminate the yt variables leads to the restriction:
min
n
n
∑
∑
(ft + Ct ct )xt
t=1 t=1
t
∑
u=1
Cu xu ≥
t
∑
du for t = 1, … , n
u=1
xt ∈ {0, 1}n
This lot-sizing problem in which production is always at full capacity can usually
be solved quickly so as to obtain a good feasible solution to CLS.
◽
Greedy and Local Search Heuristics
The idea of a greedy heuristic is to construct a solution from scratch (the empty set),
choosing at each step the item bringing the “best” immediate reward. We present
two examples.
Example 2.6 The 0–1 Knapsack Problem. Consider the instance:
max12x1 + 8x2 + 17x3 + 11x4 + 6x5 + 2x6 + 2x7
4x1 + 3x2 + 7x3 + 5x4 + 3x5 + 2x6 + 3x7 ≤ 9
x ∈ {0, 1}7 .
c
c
Noting that the variables are ordered so that aj ≥ aj+1 for j = 1, … , n − 1, a greedy
j
solution is
j+1
35
36
2 Optimality, Relaxation, and Bounds
c
(i) As a1 is maximum, and there is enough space (9 units) available, fix x1 = 1.
1
c
(ii) In the remaining problem, as a2 is maximum, and there is enough space
2
(5=9−4) units available, fix x2 = 1.
(iii) As each item 3,4,5 in that order requires more space than the 2 = 5 − 3 units
available, set x3 = x4 = x5 = 0.
c
(iv) As a6 is maximum in the remaining problem, and there is enough space (2
6
units) available, fix x6 = 1.
(v) Set x7 = 0 as no further space is available.
Therefore, the greedy solution is xG = (1, 1, 0, 0, 0, 1, 0) with value Z G =
◽
cxG = 22.
Example 2.7 The Symmetric Traveling Salesman Problem. Consider an
instance with cost/distance matrix:
⎛ − 9 2 8 12 11 ⎞
⎟
⎜
⎜ − 7 19 10 32 ⎟
⎜
− 29 18 6 ⎟
.
(ce ) = ⎜
− 24 3 ⎟⎟
⎜
− 19 ⎟
⎜
⎜
− ⎟⎠
⎝
Greedy examines the edges in order of nondecreasing cost.
The cheapest edge is e1 = (1, 3) with ce1 = 2. Select the edge by setting xe1 = 1.
The next cheapest edge remaining is e2 = (4, 6) with ce2 = 3. As edges e1 and e2
can appear together in a tour, set xe2 = 1.
Set xe3 = 1, where e3 = (3, 6) and ce3 = 6.
Set xe4 = 0, where e4 = (2, 3) as node 3 already has degree 2, and all three edges
(1, 3), (3, 6), (2, 3) cannot be in a tour.
Set xe5 = 0, where e5 = (1, 4) as edge (1,4) forms a subtour with the edges already
chosen.
Set xe6 = 1, where e6 = (1, 2) and ce6 = 9.
Continue as above, choosing edges (2, 5) with length 10 and (4,5) with length 24
to complete the tour.
∑
◽
The greedy tour is (1, 3, 6, 4, 5, 2, 1) with cost e ce xe = 54.
Once an initial feasible solution, called the incumbent, has been found, it is natural to try to improve the solution. The idea of a local search heuristic is to define
a neighborhood of solutions close to the incumbent. Then the best solution in the
neighborhood is found. If it is better than the incumbent, it replaces it, and the procedure is repeated. Otherwise, the incumbent is “locally optimal” with respect to
the neighborhood and the heuristic terminates. Again, we present two examples.
2.7 Primal Bounds: Greedy and Local Search
Example 2.8 Uncapacitated Facility Location. Consider an instance with m = 6
clients and n = 4 depots, and costs as shown below
⎛ 6 2 3 4 ⎞
⎟
⎜
⎜ 1 9 4 11 ⎟
⎜ 15 2 6 3 ⎟
(cij ) = ⎜
⎟ and fj = (21, 16, 11, 24).
⎜ 9 11 4 8 ⎟
⎜ 7 23 2 9 ⎟
⎜ 4 3 1 5 ⎟
⎠
⎝
Note that if N = {1, 2, 3, 4} denotes the set of depots, and S ⊆ N the set of open
depots, the associated cost is
c(S) =
6
∑
i=1
min cij +
j∈S
∑
fj .
j∈S
Thus, if S0 = {1, 2} is the initial incumbent, c(S0 ) = (2 + 1 + 2 + 9 + 7 + 3) + 21 +
16 = 61.
Now, we need to define a neighborhood of S. One possibility is to consider as
neighbors all sets obtained from S by the addition or removal of a single element:
Q(S) = {T ⊆ N ∶ T = S ∪ {j} for j ∉ S or T = S∖{i} for i ∈ S}.
Thus, Q(S0 ) = {{1}, {2}, {1, 2, 3}, {1, 2, 4}} with costs
c(123) = 60, c(124) = 84.
The new incumbent is S1 = {1, 2, 3} with c(S1 ) = 60, and
c(1) = 63, c(2) = 66,
Q(S1 ) = {{1, 2}, {1, 3}, {2, 3}, {1, 2, 3, 4}}.
The new incumbent is S2 = {2, 3} with c(S2 ) = 42, and
Q(S2 ) = {{2}, {3}, {1, 2, 3}, {2, 3, 4}}.
The new incumbent is S3 = {3} with c(S3 ) = 31, and
Q(S3 ) = {{1, 3}, {2, 3}, {3, 4}, 𝜙}.
There is no improvement, so S3 = {3} is a locally optimal solution.
◽
Example 2.9 The Graph Equipartition Problem. Given a graph G = (V, E)
and n =∣ V ∣, the problem is to find a subset of nodes S ⊂ V with ∣ S ∣= ⌊ n2 ⌋,
for which the number of edges in the cutset 𝛿(S, V∖S) is minimized, where
𝛿(S, V∖S) = {(i, j) ∈ E ∶ i ∈ S, j ∈ V∖S}.
Again, we need to define a neighborhood. As the feasible sets S are all of the
same size, one possibility is to consider as neighbors all sets obtained by replacing
one element in S by one element not in S:
Q(S) = {T ⊂ V ∶∣ T∖S ∣=∣ S∖T ∣= 1}.
37
38
2 Optimality, Relaxation, and Bounds
We consider an instance on 6 nodes with edges {(1, 4), (1, 6), (2, 3), (2, 5),
(2, 6), (3, 4), (3, 5), (4, 6)}.
Starting with S0 = {1, 2, 3}, c(S0 )=∣ (𝛿(S0 , V∖S0 ) ∣= 6 as 𝛿(S0 , V∖S0 ) =
{(1, 4), (1, 6), (2, 5), (2, 6), (3, 4), (3, 5)}.
Here
Q(S0 ) = {(1, 2, 4), (1, 2, 5), (1, 2, 6), (1, 3, 4), (1, 3, 5), (1, 3, 6), (2, 3, 4),
(2, 3, 5), (2, 3, 6)} with c(T) = 6, 5, 4, 4, 5, 6, 5, 2, 5, respectively.
The new incumbent is S1 = {2, 3, 5} with c(S1 ) = 2.
◽
Q(S1 ) does not contain a better solution, and so S1 is locally optimal.
2.8 Notes
2.1 The concept of a relaxation, and the complementary idea of a are formalized
in Geoffrion and Marsten [139].
2.2 Linear programming relaxations have been present ever since combinatorial
problems were first formulated as linear integer programs, see Dantzig et al.
[93] and Dantzig [90].
2.3 The assignment relaxation for the traveling salesman problem was already
used in Little et al. [211], and the 1-tree relaxation was introduced in Held
and Karp [174].
2.4 Chapter 10 is on Lagrangian relaxation. Other relaxations studied include
group or modular relaxations, see Gomory [156] and also Ch. II.3 in
Nemhauser and Wolsey [233] and surrogate relaxations Glover [145].
2.5 A strong duality for the general matching problem appears in the classic paper
of Edmonds [102], which has had a major influence on the development of
combinatorial optimization. See also Section 4.4. Several of the most beautiful
results in this field are strong duality theorems, see Cook et al. [79] and Korte
and Vygen [198]. For integer programs, a general superadditive duality theory
was developed in the 1970s based on the work of Gomory [157] and Gomory
and Johnson [159].
2.6 The converse of Theorem 2.10 of Minkowski [228] is due to Weyl [291]. Some
further properties of polyhedra are developed in Section 9.2.
2.7 The greedy and local exchange heuristics are formalized in Chapter 13. Other
metaheuristics such as simulated annealing and tabu search are also introduced, as well as heuristics for finding good feasible solutions with an MIP
solver.
2.9 Exercises
1.
Find a maximum cardinality matching in the graph of Figure 2.5a by inspection. Give a proof that the solution found is optimal.
2.9 Exercises
6
5
7
9
1
1
3
2
6
7
9
8
4
5
2
10
3
4
12
15
7
11
13
3
6
14
(a)
(b)
Figure 2.5
(a) Matching instance. (b) Stable set instance.
2.
A stable set is a set of nodes U ⊆ V such that there are no edges between
any two nodes of U. A clique is a set of nodes U ⊆ V such that there is an
edge between every pair of nodes in U. Show that the problem of finding a
maximum cardinality stable set is dual to the problem of finding a minimum
cover of the nodes by cliques. Use this observation to find bounds on the
maximum size of a stable set in the graph shown in Figure 2.5b.
3.
Find primal and dual bounds for the integer knapsack problem:
max 42x1 + 26x2 + 35x3 + 71x4 + 53x5
14x1 + 10x2 + 12x3 + 25x4 + 20x5 ≤ 69
x ∈ ℤ5+ .
4.
Consider the 0–1 integer program:
{
}
n
∑
n
max cx ∶
aij xj = bi for i = 1, … , m, x ∈ {0, 1}
,
(P1 )
j=1
and the 0–1 equality knapsack problem
{
}
n
m
m
∑
∑
∑
n
max cx ∶
( ui aij )xj =
ui bi , x ∈ {0, 1}
,
(P2 ),
j=1 i=1
i=1
where u ∈ Rm . Show that P2 is a relaxation of P1 .
39
40
2 Optimality, Relaxation, and Bounds
5.
Consider the equality integer knapsack problem:
}
{ 5
∑
7
2
5
5
19
8
5
min
cj xj ∶ x1 − x2 + x3 − x4 + x5 = , x ∈ ℤ+
(P1 ).
4
3
2
12
6
3
j=1
(i) Show that the problem
{ 5
∑
3
1
1
7
1
2
min
cj xj ∶ x1 + x2 + x3 + x4 + x5 = + 𝑤,
(P2 )
4
3
2
12
6
3
j=1
}
x ∈ ℤ5+ , 𝑤 ∈ ℤ1+
is a relaxation of P1 .
(ii) Show that the problem
{ 5
}
∑
3
1
1
7
1
2
min
cj xj ∶ x1 + x2 + x3 + x4 + x5 ≥ , x ∈ ℝ5+
(P3 )
4
3
2
12
6
3
j=1
is a relaxation of P2 .
6.
Consider a directed graph D = (V, A) with arc lengths ce ≥ 0 for e ∈ A. Taking two distinct nodes s, t ∈ V, consider the problem of finding a shortest
path from s to t. Show that
max{𝜋t ∶ 𝜋j − 𝜋i ≤ cij for e = (i, j) ∈ A, 𝜋 ∈ ℝ∣V∣
+ , 𝜋s = 0}
is a strong dual problem.
7.
Network formulation of the integer knapsack problem with positive integer
coefficients aj > 0 for j = 1, … , n and b > 0. Let
{
}
n
∑
n
aj xj ≤ b, x ∈ ℤ+
G(d) = max cx ∶
j=1
denoted problem P(d).
(i) Show that G(d) ≥ G(d − aj ) ∀ aj ≤ d ≤ b and j = 1, … , n and G(d) ≥
G(d − 1) ∀ 1 ≤ d ≤ b.
(ii) Show that
min y(b)
y(d) − y(d − aj ) ≥ cj aj ≤ d ≤ b, j = 1, … , n
y(d) − y(d − 1) ≥ 0 1 ≤ d ≤ b
y(0) = 0
is a strong dual of the knapsack problem.
(iii) Take the dual of this linear program and interpret the variables and constraints of the resulting LP.
2.9 Exercises
8.
Formulate the maximum cardinality matching problem of Figure 2.5(a) as an
integer program and solve its linear programming relaxation. Find a maximum weight matching with the weights shown. Check that the linear programming relaxation is again integral.
9.
(i) Show that the value function of an IP: 𝜙(d) = max{cx ∶ Ax ≤ d, x ∈ ℤn+ }
is superadditive and nondecreasing.
(ii) Prove the Strong Duality Theorem 2.1.
10.
Use LP duality to demonstrate Farkas’ Lemma.
11.
Fourier–Motzkin Elimination. Let Q be the polyhedron
ai y
cj y
ek y
≤
bi i = 1, … , m
≤
dj j = 1, … , n
≤
fk k = 1, … , K
p
1
y∈ℝ , 𝑤∈ℝ .
+𝑤
−𝑤
Show that P =projy (Q) is the polyhedron
(ai + cj )y
ek y
≤
bi + dj i = 1, … , m, j = 1, … , n
≤
fk
k = 1, … , K
y ∈ ℝp .
Repeating this procedure allows one to project any polyhedron onto a subset
of its variables. Note that the number of constraints in the projected polyhedron can increase exponentially.
12.
(Weyl’s Theorem). Show that the projection of a polyhedron is again a polyhedron.
13.
Show that if X ⊂ {0, 1}n , every point in X is an extreme point of conv(X).
14.
Apply a greedy heuristic to the instance of the uncapacitated facility location
problem in Example 2.8.
15.
Define greedy and local search heuristics for the maximum cardinality stable
set problem discussed in Exercise 2.
16.
Devise a greedy heuristic for the set covering problem.
41
43
3
Well-Solved Problems
3.1 Properties of Easy Problems
Here we plan to study some integer and combinatorial optimization problems that
are “well-solved” in the sense that an “efficient” algorithm is known for solving all
instances of the problem. Clearly, an instance with 1000 variables or data values
ranging up to 1020 can be expected to take longer than an instance with 10 variables and integer data never exceeding 100. So we need to define what we mean
by efficient.
For the moment, we will be very imprecise and say that an algorithm on a graph
G = (V, E) with n nodes and m edges is efficient if, in the worst-case, the algorithm
requires 0(mp ) elementary calculations (such as additions, divisions, comparisons,
etc.) for some integer p, where we assume that m ≥ n.
In considering the COP max{cx ∶ x ∈ X ⊆ ℝn }, it is not just of interest to find
a dual problem, but also to consider a related problem, called the separation
problem.
Definition 3.1 The Separation Problem associated with COP is the problem:
Given x∗ ∈ ℝn , is x∗ ∈ conv(X)? If not, find an inequality 𝜋x ≤ 𝜋0 satisfied by all
points in X, but violated by the point x∗ .
Now, in examining a problem to see if it has an efficient algorithm, we will see
that the following four properties often go together:
(i) Efficient Optimization Property: For a given class of optimization problems (P)
max{cx ∶ x ∈ X ⊆ ℝn }, there exists an efficient (polynomial) algorithm.
(ii) Strong Dual Property: For the given problem class, there exists a strong dual
problem (D) min{𝜔(u) ∶ u ∈ U} allowing us to obtain optimality conditions
that can be quickly verified:
x∗ ∈ X is optimal in P if and only if there exists u∗ ∈ U with cx∗ = 𝜔(u∗ ).
(iii) Efficient Separation Property: There exists an efficient algorithm for the separation problem associated with the problem class.
Integer Programming, Second Edition. Laurence A. Wolsey.
© 2021 John Wiley & Sons, Inc. Published 2021 by John Wiley & Sons, Inc.
Companion website: www.wiley.com/go/wolsey/integerprogramming2e
44
3 Well-Solved Problems
(iv) Explicit Convex Hull Property: A compact description of the convex hull
conv(X) is known, which in principle allows us to replace every instance by
the linear program: max{cx ∶ x ∈ conv(X)}.
Note that if a problem has the Explicit Convex Hull Property, then the dual of
the linear program max{cx ∶ x ∈ conv(X)} suggests that the Strong Dual Property
should hold, and also using the description of conv(X), there is some likelihood
that the Efficient Separation Property holds. So some ties between the four properties are not surprising. The precise relationship will be discussed later. In the
next sections, we examine several classes of problems for which we will see that
typically all four properties hold.
3.2 IPs with Totally Unimodular Matrices
A natural starting point in solving integer programs :
(IP)
max{cx ∶ Ax ≤ b, x ∈ ℤn+ }
with integral data (A, b) is to ask when we will be lucky, and the linear programming (LP) relaxation max{cx ∶ Ax ≤ b, x ∈ ℝn+ } will have an optimal solution that
is integral.
From linear programming theory, we know that basic feasible solutions take the
form: x = (xB , xN ) = (B−1 b, 0) where B is an m × m nonsingular submatrix of (A, I)
and I is an m × m identity matrix.
Observation 3.1 (Sufficient Condition) If the optimal basis B has det(B) =
±1, then the linear programming relaxation solves IP.
Proof. From Cramer’s rule, B−1 = B∗ ∕ det(B), where B∗ is the adjoint matrix. The
entries of B∗ are all products of terms of B. Thus, B∗ is an integral matrix, and as
det(B) = ±1, B−1 is also integral. Thus, B−1 b is integral for all integral b.
◽
The next step is to ask when we will always be lucky. When do all bases or all
optimal bases satisfy det(B) = ±1?
Definition 3.2 A matrix A is totally unimodular (TU) if every square submatrix
of A has determinant +1, −1, or 0.
First, we consider whether such matrices exist, and how we can recognize them.
Some simple observations follow directly from the definition.
3.2 IPs with Totally Unimodular Matrices
Table 3.1
Matrices that are not TU.
⎛1 1 0⎞
⎟
⎜
⎜0 1 1⎟
⎟
⎜
⎜1 0 1⎟
⎠
⎝
(
)
1−1
1 1
Table 3.2
Matrices that are TU.
⎛ 1 − 1 −1 0 ⎞
⎟
⎜
⎜ −1 0 0 1 ⎟
⎟
⎜
⎜ 0 1 0 −1 ⎟
⎟
⎜
⎜ 0 0 1 0⎟
⎠
⎝
⎛0 1 0 0 0⎞
⎟
⎜
⎜0 1 1 1 1⎟
⎟
⎜
⎜1 0 1 1 1⎟
⎟
⎜
⎜1 0 0 1 0⎟
⎟
⎜
⎜1 0 0 0 0⎟
⎠
⎝
Observation 3.2 If A is TU, aij ∈ {+1, −1, 0} for all i, j.
Observation 3.3 The matrices in Table 3.1 are not TU. The matrices in Table 3.2
are TU.
Proposition 3.1 A matrix A is TU if and only if
(i) the transpose matrix AT is TU, if and only if
(ii) the matrix (A, I) is TU.
There is a simple and important sufficient condition for total unimodularity, that
can be used to show that the first matrix in Table 3.2 is TU.
Proposition 3.2 (Sufficient Condition)
A matrix A is TU if
(i) aij ∈ {+1, −1, 0} for all i, j.
∑m
(ii) Each column contains at most two nonzero coefficients ( i=1 |aij | ≤ 2).
(iii) There exists a partition (M1 , M2 ) of the set M of rows such that each column j
∑
∑
containing two nonzero coefficients satisfies i∈M1 aij − i∈M2 aij = 0.
Proof. Assume that A is not TU, and let B be the smallest square submatrix
of A for which det(B) ∉ {0, 1, −1}. B cannot contain a column with a single
nonzero entry, as otherwise B would not be minimal. So B contains two nonzero
entries in each column. Now by condition (iii), adding the rows in M1 and
45
46
3 Well-Solved Problems
subtracting the rows in M2 gives the zero vector, and so det(B) = 0, and we have a
contradiction.
◽
Note that condition (iii) means that if the nonzeros are in rows i and k, and if
aij = −akj , then {i, k} ∈ M1 or {i, k} ∈ M2 , whereas if aij = akj , i ∈ M1 and k ∈ M2 ,
or vice versa. This leads to a simple algorithm to test whether the conditions of
Proposition 3.2 hold. In the next section, we will see an important class of matrices
arising from network flow problems that satisfy this sufficient condition.
Now returning to IP, it is clear that when A is TU, the linear programming relaxation solves IP. In some sense, the converse holds.
Proposition 3.3 The linear program max{cx ∶ Ax ≤ b, x ∈ ℝn+ } has an integral
optimal solution for all integer vectors b for which it has a finite optimal value if and
only if A is totally unimodular.
On the question of efficient algorithms, we have essentially proved that for the
IP: max{cx ∶ Ax ≤ b, x ∈ ℤn+ } with A totally unimodular:
(a) The Strong Dual Property Holds: The linear program (D) ∶ min{ub ∶ uA ≥
c, u ≥ 0} is a strong dual.
(b) The Explicit Convex Hull Property Holds: The convex hull of the set of feasible
solutions conv(X) = {x ∈ ℝn ∶ Ax ≤ b, x ≥ 0} is known.
(c) The Efficient Separation Property Holds: the separation problem is easy as it
suffices to check if Ax∗ ≤ b and x∗ ≥ 0.
Given that these three properties hold, we have suggested that the Efficient Optimization Property should also hold, so there should be an efficient algorithm for
IP. This turns out to be true, but it is a nontrivial result beyond the scope of this text.
This is in turn related to the fact that efficient algorithms to recognize whether a
matrix A is TU are also nontrivial.
3.3 Minimum Cost Network Flows
Here we consider an important class of problems with many applications lying at
the frontier between linear and integer programming.
Given a digraph D = (V, A) with arc capacities hij for all (i, j) ∈ A, demands bi
(positive inflows or negative outflows) at each node i ∈ V, and unit flow costs cij
for all (i, j) ∈ A, the minimum cost network flow problem is to find a feasible flow
that satisfies all the demands at minimum cost. This has the formulation:
∑
cij xij
(3.1)
min
∑
(i,j)∈A
k∈V + (i)
∑
xik −
xki = bi
for i ∈ V
(3.2)
k∈V − (i)
0 ≤ xij ≤ hij
for (i, j) ∈ A,
(3.3)
3.3 Minimum Cost Network Flows
where xij denotes the flow in arc (i, j), V + (i) = {k ∶ (i, k) ∈ A} and V − (i) = {k ∶
(k, i) ∈ A}.
It is evident that for the problem to be feasible, the total sum of all the demands
∑
must be zero (i.e. i∈V bi = 0).
Example 3.1 The digraph in Figure 3.1 leads to the following set of balance
equations:
x12
x14
x23
x31
x32
x35
x36
x45
x51
x53
x65
1
1
0
−1
0
0
0
0
−1
0
0
=
3
−1
0
1
0
−1
0
0
0
0
0
0
=
0
0
0
−1
1
1
1
1
0
0
−1
0
=
0
0
−1
0
0
0
0
0
1
0
0
0
=
−2
0
0
0
0
0
−1
0
−1
1
1
−1
=
4
0
0
0
0
0
0
−1
0
0
0
1
=
−5
The additional constraints are the bound constraints: 0 ≤ xij ≤ hij .
◽
Proposition 3.4 The constraint matrix A arising in a minimum cost network flow
problem is totally unimodular.
( )
C
, where C comes from the flow conservaI
tion constraints, and I from the upper bound constraints. Therefore, it suffices to
show that C is TU. The sufficient conditions of Proposition 3.2 are satisfied with
◽
M1 = M and M2 = 𝜙.
Proof. The matrix A is of the form
Corollary 3.1 In a minimum cost network flow problem, if the demands {bi } and
the capacities {hij } are integral,
(i) Each extreme point is integral.
(ii) The constraints (3.2) and (3.3) describe the convex hull of the integral feasible
flows.
0
Figure 3.1 Digraph for minimum
cost network flow.
2
3
0
3
1
6
4
2
5
4
5
47
48
3 Well-Solved Problems
3.4 Special Minimum Cost Flows
The Shortest Path Problem: Given a digraph D = (V, A), two distinguished nodes
s, t ∈ V, and nonnegative arc costs cij for (i, j) ∈ A, find a minimum cost s −
−t path.
The Max Flow Problem: Given a digraph D = (V, A), two distinguished nodes s, t ∈
V, and nonnegative capacities hij for (i, j) ∈ A, find a maximum flow from s to t.
Both these problems are special cases of the minimum cost network flow problem, so we can use total unimodularity to analyze them. However, the reader has
probably already seen combinatorial polynomial algorithms for these two problems in a course on network flows.
What are the associated dual problems?
3.4.1 Shortest Path
Observe first that the shortest path problem can be formulated as follows:
∑
Z = min
cij xij
∑
xik −
k∈V + (i)
∑
∑
xki = 1
for i = s
(3.5)
xki = 0
for i ∈ V∖{s, t}
(3.6)
xki = −1
for i = t
(3.7)
k∈V − (i)
xik −
k∈V + (i)
∑
(3.4)
(i,j)∈A
∑
k∈V − (i)
xik −
k∈V + (i)
∑
k∈V − (i)
xij ≥ 0 for (i, j) ∈ A
(3.8)
x ∈ Z |A| ,
(3.9)
where xij = 1 if arc (i, j) is in the minimum cost (shortest) s − t path.
Theorem 3.1 Z is the length of a shortest s − t path if and only if there exist values
𝜋i for i ∈ V such that 𝜋s = 0, 𝜋t = Z, and 𝜋j − 𝜋i ≤ cij for (i, j) ∈ A.
Proof. The linear programming dual of (3.4)–(3.8) is precisely
W LP = max 𝜋t − 𝜋s
𝜋j − 𝜋i ≤ cij
for (i, j) ∈ A.
Replacing 𝜋j by 𝜋j + 𝛼 for all j ∈ V does not change the dual, so we can fix
𝜋s = 0 without loss of generality. As the primal matrix is totally unimodular,
strong duality holds and the claim follows.
◽
3.4 Special Minimum Cost Flows
We note that one optimal dual solution is obtained by taking 𝜋i to be the cost of
a shortest path from s to i.
3.4.2 Maximum s − t Flow
Adding a backward arc from t to s, the maximum s − t flow problem can be formulated as follows:
∑
k∈V + (i)
max xts
∑
xik −
xki = 0 for i ∈ V
k∈V − (i)
0 ≤ xij ≤ hij
The dual is
∑
min
for (i, j) ∈ A.
hij 𝑤ij
(i,j)∈A
ui − uj + 𝑤ij ≥ 0 for (i, j) ∈ A
u t − us ≥ 1
𝑤ij ≥ 0 for (i, j) ∈ A.
As the dual is unchanged if we replace uj by uj + 𝛼 for all j ∈ V, we can set us = 0.
From total unimodularity, an optimal solution is an integer. Given such an integer
solution, let X = {j ∈ V ∶ uj ≤ 0} and X = V∖X = {j ∈ V ∶ uj ≥ 1}. Now,
∑
∑
∑
hij 𝑤ij ≥
hij 𝑤ij ≥
hij ,
(i,j)∈A
(i,j)∈A,i∈X,j∈X
(i,j)∈A,i∈X,j∈X
where the first inequality follows from h ≥ 0, 𝑤 ≥ 0 and the second as 𝑤ij ≥ uj −
ui ≥ 1 for (i, j) ∈ A with i ∈ X and j ∈ X.
∑
However, this lower bound (i,j)∈A,i∈X,j∈X hij is attained by the solution uj = 0
for j ∈ X, uj = 1 for j ∈ X, 𝑤ij = 1 for (i, j) ∈ A with i ∈ X and j ∈ X, and 𝑤ij = 0
otherwise. So there is an optimal 0–1 solution.
We see that s ∈ X, t ∈ X, {(i, j) ∶ 𝑤ij = 1} is the set of arcs of the s − t cut
(X, V∖X), and we obtain the standard result that the maximum value of an s − t
flow equals the minimum capacity of an s − t cut.
Theorem 3.2 A strong dual to the max s − t flow problem is the minimum s − t
cut problem:
{
}
∑
hij ∶ s ∈ X ⊂ V∖{t} .
min
X
(i,j)∈A∶i∈X,j∉X
49
50
3 Well-Solved Problems
3.5 Optimal Trees
Definition 3.3 Given a graph G = (V, E), a forest is a subgraph G′ = (V, E′ ) containing no cycles.
Definition 3.4 Given a graph G = (V, E), a tree is a subgraph G′ = (V, E′ ) that is
a forest and is connected (contains a path between every pair of nodes of V).
Some well-known consequences of these definitions are listed below:
Proposition 3.5 A graph G = (V, E) is a tree if and only if
(i) it is a forest containing exactly n − 1 edges, if and only if
(ii) it is an edge-minimal connected graph spanning V, if and only if
(iii) it contains a unique path between every pair of nodes of V, if and only if
(iv) the addition of an edge not in E creates a unique cycle.
The Maximum Weight Forest (Tree) Problem
Given a graph G = (V, E) and edge weights ce for e ∈ E, find a maximum weight
subgraph that is a forest (tree).
This problem arises naturally in many telecommunications and computer network applications, where it is necessary that there is at least one path between
each pair of nodes. When one wishes to minimize installation costs, the optimal
solution is clearly a minimum weight tree.
As in the greedy heuristic in Section 2.7, the idea of a greedy algorithm is to take
the best element and run. It is very shortsighted. It just chooses one after the other
whichever element gives the maximum profit and still gives a feasible solution.
For a graph G = (V, E), we let n = |V| and m = |E|.
Greedy Algorithm for a Maximum Weight Tree
Initialization. Set E0 = E, T 0 = 𝜙. Order the edges by nonincreasing weight c1 ≥
c2 ≥ · · · ≥ cm , where ct is the cost of edge et .
Iteration t. If T t−1 ∪ {et } contains no cycle, set T t = T t−1 ∪ {et }. Otherwise, T t =
T t−1 .
Set Et = Et−1 ∖{et }. If |T t | = n − 1, stop with T t optimal. If t = m, stop with no
feasible solution.
To obtain a maximum weight forest, it suffices to modify the greedy algorithm
to stop as soon as ct+1 ≤ 0.
3.5 Optimal Trees
Figure 3.2 Graph for optimal
weight tree.
3
2
5
5
3
4
12
10
1
5
6
9
3
9
4
2
6
7
9 8
6
Example 3.2 Consider the graph shown in Figure 3.2 with the weights on the
edges as shown. We consider the edges in the order:
e2
e3
e4
e5
e6
e7
e1
(i, j) (3, 4) (1, 5) (1, 3) (3, 6) (5, 6) (6, 7) (5, 7)
ce 12
10
9
9
9
8
6
+
+
+
+
+
e8
e9
e10 e11 e12 e13 e14
(2, 6) (1, 2) (2, 5) (4, 7) (2, 3) (2, 4) (4, 5)
.
6
5
5
4
3
3
2
+
The algorithm chooses the edges marked with a + and rejects the others. For
example, the first edge rejected is e5 = (5, 6) because it forms a cycle with e2 , e3 ,
◽
and e4 , which have already been selected.
Theorem 3.3 The greedy algorithm terminates with an optimal weight tree.
Proof. Suppose for simplicity that all the edge weights are different. Let T = {g1 ,
… , gn−1 } be the edges chosen by the greedy algorithm with cg1 > · · · > cgn−1 . Let
F = {f1 , … , fn−1 } be the edges of an optimal solution with cf1 > · · · > cfn−1 .
If the solutions are the same, the result is proved. So suppose the two solutions
differ with g1 = f1 , … , gk−1 = fk−1 but gk ≠ fk .
(i) We observe that cgk > cfk because the greedy algorithm chooses gk and not
fk and neither edge creates a cycle with {g1 , … , gk−1 }. Also by construction
cf1 > · · · > cfn−1 , and so, gk ∉ F.
(ii) Now consider the edge set F ∪ {gk }. As F is a tree, it follows from Proposition 3.5 that F ∪ {gk } contains exactly one cycle C. Note, however, that the
set of edges {f1 , … , fk−1 , gk } = {g1 , … , gk−1 , gk } forms part of the tree T and
thus does not contain a cycle. Therefore, one of the other edges fk , … , fn−1
must be in the cycle C. Suppose f ∗ is one such edge.
(iii) As C contains a unique cycle and f ∗ is in this cycle, T ′ = F ∪ {gk }∖{f ∗ } is cycle
free. As it has n − 1 edges, it is a tree.
51
52
3 Well-Solved Problems
(iv) Finally, as cgk > cfk and cfk ≥ cf ∗ , the weight of T ′ exceeds that of F.
(v) As F is an optimal tree, we have arrived at a contradiction, and so T and F
cannot differ.
◽
As the greedy algorithm is easily seen to be polynomial, the Efficient Optimization Property holds for the maximum weight tree problem. So we can again consider the other three properties. To do this, we need a formulation of the problem
as an integer program. In modeling the traveling salesman problem in Section 1.3
we saw how to avoid cycles. Thus, the maximum weight forest problem can be
formulated as follows: (E(S) = {e = (i, j) ∈ E ∶ i ∈ S, j ∈ S}).
∑
max
ce xe
(3.10)
e∈E
∑
xe ≤ |S| − 1 for 2 ≤ |S| ≤ n, S ⊆ V
(3.11)
xe ≥ 0 for e ∈ E
(3.12)
|E|
(3.13)
e∈E(S)
x∈ℤ .
Theorem 3.4 The convex hull of the incidence vectors of the forests in a graph is
given by the constraints (3.11) and (3.12).
The incidence vectors of the spanning trees are obtained by setting (3.11) with
S = V as an equality. It follows that
Corollary 3.2 The convex hull of the incidence vectors of the spanning trees in a
graph is given by the constraints (3.11) and (3.12) and the equation
∑
xe = n − 1.
(3.14)
e∈E
Theorem 3.4 shows that the Explicit Convex Hull Property holds for the Maximum Weight Forest Problem. We generalize and prove this result in the next
section, and later in Section 9.5, we show that the Efficient Separation Property
holds for this problem.
The formulation (3.11), (3.12), and (3.14) has an exponential number of constraints. Is there a formulation for the convex hull of the incidence vectors of the
spanning trees with only a polynomial number of constraints and variables?
In fact, there are numerous formulations for this set. Here, we present two that
give two different viewpoints on spanning trees, one based on directed cuts and
the other on flows.
3.5 Optimal Trees
A Directed Flow and a Directed Cut Formulation
If we replace each edge of the graph by two directed arcs, we obtain a digraph
D = (V, A). Selecting a root node r, the subdigraph obtained from a tree contains
a directed path from r to every node k ∈ V∖{r}. So one unit of flow can be sent
from r to each node k.
Define variables zij = 1 if arc (i, j) lies on one of these directed paths and 𝑤kij if
the unit of flow destined for node k uses the arc (i, j). This leads to the extended
formulation (Qflow ):
∑
−
𝑤krj = −1 for k ∈ V∖{r}
j∈V∖{r}
∑
𝑤kij −
i∈V∖{j}
∑
𝑤kji = 0 for j, k ∈ V∖{r}, j ≠ k
i∈V∖{j}
∑
𝑤kik = 1 for k ∈ V∖{r}
i∈V∖{k}
∑
𝑤kij ≤ zij
for (i, j) ∈ A, k ∈ V∖{r}
zij = n − 1
(i,j)∈A
∑
xe = zij + zji
for e ∈ E
zjr = 0
j∈V∖{r}
|E|
𝑤 ∈ ℝ|A|(|V|−1)
, z ∈ ℝ|A|
+
+ , x ∈ [0, 1] .
Now, by the max flow min cut Theorem 3.2, there is a such a flow if and only
if the capacity of every cut set separating r from some nodes of V∖{r}is at least 1
unit. This leads to the extended formulation (Qdicut ):
∑
zij ≥ 1 for S ⊆ V∖{r}, S ≠ ∅
(i,j)∈𝛿 − (S)
∑
zij = n − 1
(i,j)∈A
∑
xe = zij + zji
for e ∈ E
zjr = 0
j∈V∖{r}
|E|
zij ∈ ℝ|A|
+ , x ∈ [0, 1] .
Theorem 3.5 Both projx (Qflow ) and projx (Qdicut ) give the convex hull of the incidence vectors of the spanning trees in a graph.
See Exercise 15 for a proof based on Theorem 3.4.
53
54
3 Well-Solved Problems
3.6 Submodularity and Matroids∗
Here we examine a larger class of problems for which a greedy algorithm provides an optimal solution. This generalizes the maximum weight forest problem
examined in the last section. ( ) denotes the set of subsets of N.
Definition 3.5
(i) A set function f ∶ (N) → ℝ1 is submodular if
f (A) + f (B) ≥ f (A ∩ B) + f (A ∪ B)
for all A, B ⊆ N.
(ii) A set function f is nondecreasing if
f (A) ≤ f (B) for all A, B with A ⊂ B ⊆ N.
An alternative representation of such functions is useful.
Proposition 3.6 A set function f is nondecreasing and submodular if and only if
∑
f (A) ≤ f (B) +
[f (B ∪ {j}) − f (B)] for all A, B ⊆ N.
j∈A∖B
Proof. Suppose f is nondecreasing and submodular. Let A∖B = {j1 , … , jr }. Then
∑r
f (A) − f (B) ≤ f (A ∪ B) − f (B) = i=1 [f (B ∪ {j1 , … , ji }) − f (B ∪ {j1 , … , ji−1 })] ≤
∑r
∑
j∈A∖B [f (B ∪ {j}) − f (B)], where the first inequality
i=1 [f (B ∪ {ji }) − f (B)] =
follows from f nondecreasing and the second from submodularity. The other
direction is immediate.
◽
Now given a nondecreasing submodular function f on N with f (∅) = 0, we consider the submodular polyhedron:
}
{
∑
n
xj ≤ f (S) for S ⊆ N ,
P(f ) = x ∈ ℝ+ ∶
j∈S
and the associated submodular optimization problem:
max{cx ∶ x ∈ P(f )}.
The Greedy Algorithm for the Submodular Optimization Problem
(i) Order the variables so that c1 ≥ c2 ≥ · · · ≥ cr > 0 ≥ cr+1 ≥ · · · ≥ cn .
(ii) Set xi = f (Si ) − f (Si−1 ) for i = 1, … , r and xj = 0 for j > r, where Si = {1, … , i}
for i = 1, … , r and S0 = ∅.
3.6 Submodularity and Matroids
Theorem 3.6 The greedy algorithm solves the submodular optimization problem.
Proof. As f is nondecreasing, xi = f (Si ) − f (Si−1 ) ≥ 0 for i = 1, … , r. Also for each
T ⊆ N,
∑
∑
xj =
[f (Sj ) − f (Sj−1 )]
j∈T∩Sr
j∈T
∑
≤
[f (Sj ∩ T) − f (Sj−1 ∩ T)]
j∈T∩Sr
∑
≤
[f (Sj ∩ T) − f (Sj−1 ∩ T)]
j∈Sr
= f (Sr ∩ T) − f (∅) ≤ f (T),
where the first inequality follows from the submodularity of f , and the others as f is
∑r
nondecreasing. So the greedy solution is feasible with value i=1 ci [f (Si ) − f (Si−1 )].
Now consider the linear programming dual:
∑
f (S)yS
min
S⊆N
∑
yS ≥ cj
for j ∈ N
S∶j∈S
yS ≥ 0 for S ⊆ N.
Let ySi = ci − ci+1 for i = 1, … , r − 1, ySr = cr , and yS = 0 otherwise. Clearly, yS ≥
∑r
∑r−1
∑
0 for all S ⊆ N. Also for j ≤ r, S∶j∈S yS ≥ i=j ySi = i=j (ci − ci+1 ) + cr = cj , and
∑
for j > r, S∶j∈S yS ≥ 0 ≥ cj . Thus, the solution y is dual feasible. Finally, the dual
objective value is
r
∑
f (Si )ySi =
i=1
r−1
∑
i=1
f (Si )(ci − ci+1 ) + f (Sr )cr =
r
∑
ci [f (Si ) − f (Si−1 )].
i=1
So the value of the dual feasible solution has the same value as the greedy solution, and so from linear programming duality, the greedy solution is optimal. ◽
Note that when f is integer-valued, the greedy algorithm provides an integral
solution. In the special case, when f (S ∪ {j}) − f (S) ∈ {0, 1} for all S ⊂ N and j ∈
N∖S, we call f a submodular rank function, and the greedy solution is a 0–1 vector.
What is more, we now show that the feasible 0–1 points in the submodular rank
polyhedron generate an interesting combinatorial structure called a matroid.
Proposition 3.7
r(∅) = 0.
Suppose that r is a submodular rank function on a set N with
(i) r(A) ≤ |A| for all A ⊆ N.
(ii) If r(A) = |A|, then r(B) = |B| for all B ⊂ A ⊆ N.
(iii) If xA is the incidence vector of A ⊆ N, xA ∈ P(r), if and only if r(A) = |A|.
55
56
3 Well-Solved Problems
Proof.
(i) Using Proposition 3.6 and the property of a submodular rank function, r(A) ≤
∑
r(∅) + j∈A [r({j}) − r(∅)] ≤ |A|.
∑
(ii) Again using the same properties, |A| = r(A) ≤ r(B) + j∈A∖B [r(B ∪ {j}) −
r(B)] ≤ |B| + |A∖B| = |A|. Equality must hold throughout, and thus
r(B) = |B|.
∑
∑
(iii) If r(A) < |A|, j∈A xjA = |A| > r(A) and xA ∉ P(r). If r(A) = |A|, j∈S xjA =
|A ∩ S| = r(A ∩ S) ≤ r(S), where the second equality uses (ii). This inequality
holds for all S ⊆ N, and thus xA ∈ P(r).
◽
Definition 3.6 Given a submodular rank function r, a set A ⊆ N is independent
if r(A) = |A|. The pair (N, ), where is the set of independent sets, is called a
matroid .
Based on Theorem 3.6, we know how to optimize on matroids.
Theorem 3.7 The greedy algorithm solves the maximum weight independent set
problem in a matroid.
Given a connected graph G = (V, E), it is not difficult to verify that the edge
sets of forests form a matroid and that the function r ∶ (E) → ℝ1 , where r(E′ ) is
the size of the largest forest in (V, E′ ), is a submodular rank function. Specifically
when S ⊆ V, E′ = E(S) and the subgraph (S, E(S)) is connected, we clearly have
r(E(S)) = |S| − 1, so the forest polyhedron (3.11) and (3.12) is a special case of a
submodular polyhedron.
The constraint set associated with a submodular polyhedron has another interesting property.
Definition 3.7 A set of linear inequalities Ax ≤ b is called totally dual integral
(TDI) if, for all c ∈ ℤn for which the linear program max{cx ∶ Ax ≤ b} has a finite
optimal value, the dual linear program
min{yb ∶ yA = c, y ≥ 0}
has an optimal solution with y integral.
{∑
We have seen in the proof of Theorem 3.6 that the linear system
j∈S xj ≤ f (S)
}
for S ⊆ N, xj ≥ 0 for j ∈ N is TDI. Based on the following result, the TDI property provides another useful way of showing that certain linear programs always
have integer solutions.
3.7 Two Harder Network Flow Problems
Theorem 3.8 If Ax ≤ b is TDI, b is an integer vector, and P = {x ∈ ℝn ∶ Ax ≤ b}
has vertices, then all vertices of P are integral.
Note also that if A is a TU matrix, then Ax ≤ b is TDI.
3.7 Two Harder Network Flow Problems*
Here we present two problems that are important generalizations of the maximum/minimum weight spanning tree problem and the minimum cost flow problem, respectively.
The Steiner Tree Problem
Given a graph G = (V, E) and a set T ⊆ V of terminals, a Steiner tree is a tree connecting all the nodes in T. Note that the Steiner tree may or may not contain each
node in V∖T. Given weights c ∈ ℝ|E|
+ and the set T, the problem is to find a minimum weight Steiner tree.
A first formulation involves the selection of a root node r ∈ T and cut sets.
Let xe = 1 if edge e is part of the Steiner tree. There must be a path between node
r and nodes in T∖{r} that in turn must intersect a cut. This leads to
∑
min
ce xe
e∈E
∑
xe ≥ 1 for S ⊂ V, r ∈ S, T∖S ≠ ∅
e∈𝛿(S)
x ∈ {0, 1}|V|
Unfortunately, this formulation is fairly weak. One way to strengthen it is again to
pass to a directed version. Having chosen the root r ∈ T, let zij = 1 if the arc i, j lies
on the directed path from r to a node in T∖{r}. Now we obtain:
∑
min
ce xe
e∈E
∑
zij ≥ 1 for S ⊆ V, r ∈ S, T∖S ≠ ∅
(3.15)
for e = (i, j) ∈ E
(3.16)
(i,j)∈𝛿 + (S)
zij + zji = xe
z ∈ {0, 1}|A| , x ∈ {0, 1}|E| .
(3.17)
The associated formulation is tighter than the undirected formulation, but is not
always integral. See Exercise 16.
57
58
3 Well-Solved Problems
Observe that when T = V, this is the optimal tree problem, and when |T| = 2, it
is the shortest path problem.
The Fixed Charge Network Flow Problem
Given a directed graph (network) D = (V, A), arc weights c ∈ ℝ|A|
+ , unit flow costs
|V| , where b > 0 denotes a demand and
and
demands/supplies
b
∈
ℝ
f ∈ ℝ|A|
i
+
∑
bi < 0 a supply at node i. For feasibility i∈V bi = 0. The problem is to find a
feasible flow minimizing the sum of the arc costs plus the unit flow costs. Let
T + = {i ∶ bi > 0} be the set of demand (or sink) nodes and T − = {i ∶ bi < 0}
the set of supply (or source) nodes. B is the maximum flow in an arc. In the
∑
uncapacitated case, we can take B = i∈T + bi . Taking xij = 1 if arc (i, j) is used and
yij to be the flow in arc (i, j), a natural formulation is
∑
min
(cij xij + fij yij )
(3.18)
(i,j)∈A
∑
yji −
j∈V∖{i}
∑
yij = bi
for i ∈ V
(3.19)
j∈V∖{i}
yij ≤ Bxij for (i, j) ∈ A
|A|
yij ∈ ℝ+ , x ∈ {0, 1}|A| .
(3.20)
(3.21)
Again, a useful idea for obtaining a tighter formulation is to consider the flow
going to each node in T + as a separate commodity. So we define 𝑤kij to be the flow
in arc (i, j) with destination node k ∈ T + . This leads to the extended formulation:
∑
(cij xij + fij yij )
min
(i,j)∈A
∑
𝑤kji −
j∈V∖{i}
∑
j∈V∖{i}
𝑤kji = 𝛽ik
for i ∈ T − , k ∈ T +
j∈V∖{i}
𝑤kji −
j∈V∖{i}
∑
∑
∑
𝑤kji = 0 for i ∈ V∖(T + ∪ T − ), k ∈ T +
j∈V∖{i}
𝑤kji −
∑
𝑤kji = bk
for i = k, k ∈ T +
j∈V∖{i}
∑
𝑤kij ≤ bk xij
for k ∈ T + , (i, j) ∈ A
𝑤kij = yij
for (i, j) ∈ A
𝛽ik = bk
for k ∈ T +
k∈T +
∑
i∈T −
3.8 Notes
|
|A|
𝑤 ∈ ℝ|A|⋅|T
, y ∈ ℝ|A|
+
+ , x ∈ {0, 1} .
+
Note that the extended formulation for the uncapacitated lot-sizing problem presented in Section 1.6 is of this type with |T − | = 1, i.e just a single source node. In
this very special case, the tightened multicommodity formulation gives the convex
hull of solutions.
3.8 Notes
3.1 The theoretical importance of the separation problem is discussed at the end
of Chapter 6. Its solution provides a way to generate strong valid inequalities
as cutting planes, see Chapter 9.
3.2 Totally unimodular matrices have been studied since the 1950s. The characterization of Proposition 3.1 is due to Hoffman and Kruskal [179]. The interval
or consecutive 1’s property of Exercise 3 is due to Fulkerson and Gross [128],
and the stronger necessary condition is from Ghoula-Houri [140]. A complete
characterization of TU matrices is much more difficult; see Seymour [269] or
the presentation in Schrijver [266].
3.3 We again refer to Ahuja et al. [9] for network flows, as well as shortest path and
max flow problems. The former book also contains a large number of applications and a wealth of exercises. See also Williamson [292].
3.4 The max flow min cut theorem was already part of the max flow algorithm of
Ford and Fulkerson [124]. The min cut problem arises as a separation problem
in solving TSP and other network design problems. The problem of finding all
minimum cuts was answered in Gomory and Hu [158]. For an algorithm that
find minimum cuts directly without using flows, see Ch. 3 in Cook et al. [79].
3.5 The greedy algorithm for finding minimum weight trees is from Kruskal [199].
A faster classical algorithm is that of Prim [251]. The O(n3 ) extended formulation for the spanning tree polytope is due to Wong [299]. An alternative O(n3 )
extended formulation was given by Martin [225].
3.6 Submodular polyhedra and the greedy algorithm for matroids are studied in
Edmonds [103, 104], see also Lawler [204]. Volume B of Schrijver [267] covers
the topic in depth. For total dual integrality, see Edmonds and Giles [105].
3.7 The multicommodity extended formulation for fixed charge network flows
was proposed by Rardin and Choe [257]. Magnanti and Wolsey [217] and
Goemans [149] contain a discussion of alternative formulations for tree and
Steiner tree problems, respectively.
59
60
3 Well-Solved Problems
3.9 Exercises
1.
Are the following matrices totally unimodular or not?
⎞
⎛ −1 1 −1
⎛1 0 1 0 1⎞
⎜
1 1 1
1⎟
⎟
⎜
⎟
⎜
0 1 1 1 0⎟
, A = −1 1
A1 = ⎜
⎟.
⎜ 0 0 0 1 1 ⎟ 2 ⎜⎜
⎟
1
1
1
⎜1 1 0 0 0⎟
⎟
⎜
⎠
⎝
1
−1
⎠
⎝
2.
Prove that the polyhedron P = {(x, y1 , … , ym ) ∈ ℝ+m+1 ∶ x ≤ 1, yi ≤ x for
i = 1, … , m} has integer vertices.
3.
A 0–1 matrix B has the consecutive 1’s property if for any column j, bij =
bi′ j = 1 with i < i′ implies blj = 1 for i < l < i′ .
A more general sufficient condition for total unimodularity is: Matrix A is
TU if
(i) aij ∈ {+1, −1, 0} for all i, j.
(ii) For any subset M of the rows, there exists a partition (M1 , M2 ) of M such
that each column j satisfies
∑
∑
|
aij −
aij | ≤ 1.
i∈M1
i∈M2
Use this to show that a matrix with the consecutive 1’s property is TU.
4.
Consider a scheduling model in which a machine can be switched on at
∑
most k times: t zt ≤ k, zt − yt + yt−1 ≥ 0, zt ≤ yt , 0 ≤ yt , zt ≤ 1 for all t, where
yt = 1 if the machine is on in period t, and zt = 1 if it is switched on in period
t. Show that the resulting matrix is TU.
5.
Prove Proposition 3.3.
6.
Use linear programming to find the length of a shortest path from node s to
node t in the directed graph of Figure 3.3a. Use an optimal dual solution to
prove that your solution is optimal.
7.
Use linear programming to find a minimum s − t cut in the capacitated network of Figure 3.3b.
8.
Find a minimum weight spanning tree in the graph shown in Figure 3.4a.
9.
Prove that the greedy algorithm produces an optimal weight tree when edge
weights can be equal.
3.9 Exercises
4
1
4
s
1 2
2
2
2
1
6
t
12
5
4
2
1
(a)
Figure 3.3
4
1
5
3
7
6
8
6
4
12
6
6
9
1
4
8
7
7
9
(a)
2
e2
1
e1
8
4
11
Figure 3.4
4
(a) Shortest path instance. (b) Network instance.
2
9
5
(b)
3
2
t
6
3
2
12
2
6
3
4
s
6
2
7
1
4
6
3
2
4
4
4
3
7
e4
e3
4
e7
e8
1
2
e5
e6
3
3
(b)
(a) Tree instance, (b) fixed charge network flow instance.
10.
Consider a single source fixed charge network instance with four nodes
and node 1 as the source, see Figure 3.4b, The demands at each node
are b = (−6, 2, 3, 1). There are eight arcs with tails and heads given by
t = (1, 1, 4, 1, 2, 3, 4, 3) and h = (4, 2, 2, 3, 3, 2, 3, 4), respectively. The capacity
of each arc is 6 and the fixed costs on the arcs are c = (5, 2, 7, 3, 2, 4, 9, 12).
Solve using the basic formulation (3.18)–(3.21).
11.
Show that a set function f is submodular on N if and only if 𝜌j (S) ≥ 𝜌j (T) for
all S ⊆ T, where 𝜌j (S) = f (S ∪ j) − f (S). Show that it is nondecreasing if and
only if 𝜌j (S) ≥ 0 for all S ⊆ N. See Definition 3.5.
12.
Show that the 0–1 covering problem
z = min
n
∑
fj xj
j=1
n
∑
aij xj ≥ bi
for i ∈ M
j=1
x ∈ {0, 1}n
with aij ≥ 0 for i ∈ M, j ∈ N can be written in the form
∑
z = min{ fj ∶ g(S) = g(N)},
j∈S
61
62
3 Well-Solved Problems
where g ∶ (N) → R1+ is a nondecreasing set function.
(i) What is g?
(ii) Show that g is a submodular set function.
13.
Consider a real matrix C with n columns. Let N = {1, … , n} and
= {S ⊆ N ∶ the columns {cj }j∈S are linearly independent}. Show that (N, )
is a matroid. What is the associated rank function r?
14.
Given a matroid, show that
(i) if A and B are independent sets with |A| > |B|, then there exists j ∈ A∖B
such that B ∪ {j} is independent, and
(ii) for an arbitrary set A ⊆ N, every maximal independent set in A has the
same cardinality.
15.
Prove Theorem 3.5 for Qdicut . Specifically:
Show that if (x, z) ∈ Qdicut , then
(i) zjr = 0 for all j ∈ V∖{r}.
∑
(ii) i∈V∖{j} zij = 1 for all j ∈ V∖{r}.
∑
(iii) (i,j)∈A(S) zij ≤ |S| − 1 for all S ⊆ V
(iv) x satisfies (3.11) and (3.12) and (3.14).
The opposite direction is simple.
16.
Consider the Steiner tree problem on the graph of Figure 3.5 with terminal
nodes 0, 4, 5, 6 and a weight of 1 on all the edges. Show that the LP relaxation
of the directed cut formulation (3.15)–(3.17) is not integral by describing
a fractional LP solution of smaller value than that of the optimal integer
solution.
Figure 3.5
0
1
2
3
4
5
6
Steiner tree instance.
63
4
Matchings and Assignments
4.1 Augmenting Paths and Optimality
Here we demonstrate two other important ideas used in certain combinatorial
algorithms. One idea is that of a primal algorithm systematically moving from one
feasible solution to a better one. The second is that of iterating between primal and
dual problems using the linear programming complementarity conditions.
First a few reminders. We suppose that a graph G = (V, E) is given.
Definition 4.1 A matching M ⊆ E is a set of disjoint edges, that is, at most one
edge of a matching is incident to any node 𝑣 ∈ V.
Definition 4.2 A covering by nodes is a set of nodes R ⊆ V such that every edge
e ∈ E is incident to at least one of the nodes of R.
We have shown in Section 2.5 that there is a weak duality between matchings
and coverings by nodes, namely for every matching M and covering by nodes R,
∣ M ∣≤∣ R ∣. Here we consider the Maximum Cardinality Matching Problem
max{∣ M ∣∶ M is a matching}. To solve it, we examine first how to construct
matchings of larger and larger cardinality.
Definition 4.3 An alternating path with respect to a matching M is a path
P = 𝑣0 , e1 , 𝑣1 , e2 , … , ep , 𝑣p such that
(i) e1 , e3 , … , eodd ∈ E ∖ M.
(ii) e2 , e4 , … , eeven ∈ M.
(iii) 𝑣0 is not incident to the matching M (𝑣0 is an exposed node).
An augmenting path is an alternating path that in addition satisfies the
condition:
(iv) The number of edges p is odd, and 𝑣p is not incident to the matching M.
Integer Programming, Second Edition. Laurence A. Wolsey.
© 2021 John Wiley & Sons, Inc. Published 2021 by John Wiley & Sons, Inc.
Companion website: www.wiley.com/go/wolsey/integerprogramming2e
64
4 Matchings and Assignments
Edges of M
1
Edges of M′
2
M = {(3,4), (2,6)}
6
Augmenting path
5
3
(1, 2), (2, 6), (6, 3), (3, 4), (4, 5)
4
Figure 4.1
An augmenting path.
Augmenting paths are what we need (see Figure 4.1).
Proposition 4.1 Given a matching M and an augmenting path P relative to M,
the symmetric difference M ′ = (M ∪ P) ∖ (M ∩ P) is a matching with ∣ M ′ ∣>∣ M ∣.
Proof. As 𝑣1 and 𝑣p do not touch M, M ′ is a matching. As p is odd, ∣ P ∩ (E ∖ M) ∣=
◽
∣ P ∩ M ∣ +1. Thus, ∣ M ′ ∣=∣ M ∣ +1.
So the existence of an augmenting path implies that M is not optimal. Is the
converse also true? If there is no augmenting path, can we conclude that M is
optimal?
Proposition 4.2 If there is no augmenting path relative to a matching M, then M
is of maximum cardinality.
Proof. We show the contrapositive. We suppose that M is not optimal. Thus, there
exists a matching M ′ with ∣ M ′ ∣>∣ M ∣. Consider the graph whose edges are given
by (M ∪ M ′ ) ∖ (M ∩ M ′ ). The degree of each node in this graph is 0, 1, or 2. Thus,
the connected components of the graph are paths and cycles. For a cycle C, the
edges alternate between M and M ′ , and so the cycles are of even length and contain
the same number of edges from M and M ′ . The paths can contain either an even
or an odd number of edges. As ∣ M ′ ∣>∣ M ∣, one of the paths must contain more
◽
edges from M ′ than from M. This path is an augmenting path.
Can we find whether there is an augmenting path or not in polynomial time? If
there is no augmenting path, can we give a simple way to verify that the matching we have is maximum? In Section 4.2, we give a positive answer to both these
questions when the graph is bipartite.
4.2 Bipartite Maximum Cardinality Matching
4.2 Bipartite Maximum Cardinality Matching
Given a bipartite graph G = (V1 , V2 , E), where V = V1 ∪ V2 and every edge has one
endpoint in V1 and the other in V2 , we wish to find a maximum size matching in
G. We suppose that a matching M (possibly empty) has been found, and we wish
either to find an augmenting path, or to demonstrate that there is no such path
and that the matching M is optimal.
We try to systematically examine all augmenting paths.
Observation 4.1 As augmenting paths P are of odd length and the graph is
bipartite, one of the exposed nodes of P is in V1 and the other in V2 . Thus, it
suffices to start enumerating from V1 .
Outline of the Algorithm. We start by labeling all the nodes of V1 disjoint from
M. These are candidates to be the first node of an alternating path.
The first (and subsequent odd) edges of an alternating path are in E ∖ M, and
thus all such edges from the labeled nodes in V1 are candidates. The endpoints of
these edges in V2 are then labeled.
The second (and subsequent even) edges of an alternating path are in M, and
thus any edge in M touching a labeled node in V2 is a candidate. The endpoints of
these edges in V1 are then labeled, and so on.
The labeling stops: either when a node of V2 is labeled that is not incident to M,
so an augmenting path has been found, or when no more edges can be labeled,
and so none of the alternating paths can be extended further.
Algorithm for Bipartite Maximum Cardinality Matching
Step 0. G = (V1 , V2 , E) is given. M is a matching. No nodes are labeled or scanned.
Step 1. (Labeling) .
1.0 Give the label ∗ to each exposed node in V1 .
1.1 If there are no unscanned labels, go to Step 3. Choose a labeled unscanned
node i. If i ∈ V1 , go to 1.2. If i ∈ V2 , go to 1.3.
1.2 Scan the labeled node i ∈ V1 . For all (i, j) ∈ E ∖ M, give j the label i if j is
unlabeled. Return to 1.1.
1.3 Scan the labeled node i ∈ V2 . If i is exposed, go to Step 2. Otherwise, find
the edge (j, i) ∈ M and give node j ∈ V1 the label i. Return to 1.1.
Step 2 (Augmentation). An augmenting path P has been found. Use the labels to
backtrack from j ∈ V2 to find the path.
Augment M. M ← (M ∪ P) ∖ (M ∩ P). Remove all labels. Return to Step 1.
65
66
4 Matchings and Assignments
Step 3 (No Augmenting Path). Let V1+ , V2+ be the nodes of V1 and V2 that are
labeled and V1− , V2− the unlabeled nodes.
Theorem 4.1 On termination of the algorithm,
(i) R = V1− ∪ V2+ is a node covering of the edges E of G.
(ii) ∣ M ∣=∣ R ∣, and M is optimal.
Proof.
(a) As no more nodes can be labeled, from Step 1.2, it follows that there is no edge
from V1+ to V2− . This means that V1− ∪ V2+ covers E.
(b) As no augmenting path is found, every node of V2+ is incident to an edge e of
M, and from Step 1.3, the other endpoint is in V1+ .
(c) Every node of V1− is incident to an edge e of M, as otherwise, it would have
received the label ∗ in Step 1.0. The other endpoint is necessarily in V2− , as
otherwise, the node would have been labeled in Step 1.2.
◽
(d) Thus ∣ V1− ∪ V2+ ∣≤∣ M ∣. But ∣ R ∣≥∣ M ∣ and thus ∣ R ∣=∣ M ∣.
Example 4.1 Consider the bipartite graph shown in Figure 4.2 and the initial
matching M = {(3, 8), (5, 10)}. The algorithm leads to the labeling shown, and
the construction of the set of alternating paths shown. Two alternating paths are
found: (1, 8), (3, 8), (3, 7) and (4, 10), (5, 10), (5, 9).
In Figure 4.3, we show the new matching M = {(1, 8), (3, 7), (4, 10), (5, 9)} and
the labeling obtained from the algorithm. Now, we see that we cannot add any
more labels, and no augmenting path has been found. It is easily checked that the
node set R = {3, 4, 5, 8} is an edge cover. As ∣ M ∣=∣ R ∣= 4, M is optimal.
◽
∗ 1
∗ 2
6
5
1
7
8
3
3
2
8 3
8
∗ 4
9
6
1
4
10
5
M = {(3, 8), (5, 10)}
5
Figure 4.2
7
10 4
Bipartite matching.
9
4.3 The Assignment Problem
8
1
6
∗
2
7
2
3
8
4
9
8
1
2
M = {(1, 8), (3, 7), (4, 10), (5, 9)}
5
10
Figure 4.3
Bipartite matching 2.
4.3 The Assignment Problem
Given a bipartite graph G = (V1 , V2 , E) and weights ce for e ∈ E, one problem is to
find a matching of maximum weight. From the results on total unimodularity, we
know that it suffices to solve the linear program:
Z = max
∑
e∈𝛿(i)
∑
e∈E
ce xe
xe ≤ 1 for i ∈ V1 ∪ V2
xe ≥ 0 for e ∈ E.
When ∣ V1 ∣=∣ V2 ∣= n, and the problem is to find a matching of size n of maximum weight, we obtain the assignment problem:
Z = max
n n
∑
∑
i=1 j=1
n
∑
j=1
n
∑
i=1
cij xij
xij = 1 for i = 1, … , n
xij = 1 for j = 1, … , n
xij ≥ 0 for i, j = 1, … , n.
Below we develop an algorithm for the assignment problem. Afterward, we show
how the maximum weight bipartite matching problem can be solved as an assignment problem.
67
68
4 Matchings and Assignments
Taking the linear programming dual of the assignment problem, we get:
W = min
n
∑
i=1
ui +
n
∑
j=1
𝑣j
ui + 𝑣j ≥ cij for i, j = 1, … , n.
First, we make an important observation that is valid for the assignment and traveling salesman problems allowing us to change the cost matrix in a certain way.
Proposition 4.3 For all values {ui }ni=1 and {𝑣j }nj=1 , the value of any assignment
with weights cij differs by a constant amount from its value with weights cij = cij −
ui − 𝑣j .
This means that a solution is optimal with weights cij if and only if it is optimal
with weights cij .
Proof. For every primal feasible solution,
n
n
∑
∑
cij xij =
i=1 j=1
n
n
∑
∑
(cij − ui − 𝑣j )xij
i=1 j=1
=
n
n
∑
∑
cij xij −
i=1 j=1
=
n
n
∑
∑
i=1 j=1
n
∑
ui
( n
∑
i=1
cij xij −
n
∑
i=1
)
xij
−
j=1
ui −
n
∑
n
∑
𝑣j
j=1
( n
∑
)
xij
i=1
𝑣j .
j=1
So for any feasible solution of the primal, the difference in values of the two objec∑n
∑n
◽
tives is always the constant i=1 ui + j=1 𝑣j , and the claim follows.
Now, we wish to characterize an optimal solution.
Proposition 4.4 If there exist values ui , 𝑣j , and an assignment x such that
(i)
cij = cij − ui − 𝑣j ≤ 0 for all i, j, and
(ii)
xij = 1 only when cij = 0,
then the assignment x is optimal and has value
∑n
i=1 ui +
∑n
j=1 𝑣j .
4.3 The Assignment Problem
Proof. Because cij ≤ 0 for all i, j, the value of an optimal assignment with weights
cij is necessarily nonpositive. But by condition (ii), with weights cij , the assignment
∑n ∑n
x has value i=1 j=1 cij xij = 0 and is thus optimal. Now, by Proposition 4.3, x is
∑n
∑n
◽
also optimal with weights cij and has value i=1 ui + j=1 𝑣j .
Note that this is another way of writing the linear programming complementarity conditions. In fact, (i) tells us that u, 𝑣 is a dual feasible solution, and (ii) that
complementary slackness holds.
Idea of the Algorithm. We are going to use a so-called “primal-dual” algorithm
on the graph G = (V1 , V2 , E), where V1 = {1, … , n}, V2 = {1′ , … , n′ }, and E consists of all edges with one endpoint in V1 and the other in V2 .
At all times, we will have a dual feasible solution u, 𝑣, or in other words, cij ≤ 0
for all i ∈ V1 , j ∈ V2 .
Then we will try to find an assignment (a matching of size n) using only the
edges E ⊆ E where E = {(i, j) ∶ cij = 0}. To do this, we will solve the maximum
cardinality matching problem on the graph G = (V1 , V2 , E).
If we find a matching of size n, then by Proposition 4.4, we have an optimal
weight assignment. Otherwise, we return to the dual step and change the dual
variables.
Algorithm for the Assignment Problem
Step 0. Let u, 𝑣 be initial weights such that cij ≤ 0 for all i, j. Let E = {(i, j) ∶ cij =
0}. Find a maximum cardinality matching M ∗ in the graph G = (V1 , V2 , E) using
the algorithm described in Section 4.2.
If ∣ M ∗ ∣= n, stop. M ∗ is optimal.
Otherwise, note the matching M = M ∗ and the labeled nodes V1+ , V2+ on termination. Go to Step 2.
Step 1 (Primal Step). Let E = {(i, j) ∶ cij = 0}. M is a feasible matching, and V1+ , V2+
are feasible labels. Continue with the maximum cardinality matching algorithm
of Section 4.2 to find an optimal matching M ∗ .
If ∣ M ∗ ∣= n, stop. M ∗ is optimal.
Otherwise, note the matching M = M ∗ and the labeled nodes V1+ , V2+ on termination. Go to Step 2.
Step 2 (Dual Step). Change the dual variables as follows:
Set 𝛿 = + min + (−cij ).
i∈V1 , j∈V2 ∖ V2
Set ui ← ui − 𝛿 for i ∈ V1+ .
Set 𝑣j ← 𝑣j + 𝛿 for j ∈ V2+ .
Return to Step 1.
69
70
4 Matchings and Assignments
We now need to show that the algorithm terminates correctly, and then see how
long it takes.
Proposition 4.5 Each time that Step 1 terminates with labeled nodes V1+ , V2+ ,
∣ V1+ ∣>∣ V2+ ∣.
Proof. Every node of V2+ touches a matching edge whose other endpoint is in V1+ .
In addition, V1+ contains at least one node that is not incident to the matching and
received an initial label ∗.
◽
Proposition 4.6 In the dual step, 𝛿 > 0.
Proof. We observed in the proof of Theorem 4.1 that there are no edges of E
◽
between V1+ and V2 ∖ V2+ . Therefore, cij < 0 for all i ∈ V1+ , j ∈ V2 ∖ V2+ .
Proposition 4.7
After a dual change,
cij ← cij for i ∈ V1+ , j ∈ V2+
cij ← cij for i ∈ V1 ∖ V1+ , j ∈ V2 ∖ V2+
cij ← cij − 𝛿 for i ∈ V1 ∖ V1+ , j ∈ V2+
cij ← cij + 𝛿 for i ∈ V1+ , j ∈ V2 ∖ V2+
and the new solution is dual feasible.
Proof. cij only increases when i ∈ V1+ , j ∈ V2 ∖ V2+ . So we must check that the new
values are nonpositive. However, 𝛿 was chosen precisely so that this condition is
◽
satisfied and at least one of these edges now has value cij = 0.
Proposition 4.8 The labels V1+ and V2+ remain valid after a dual change.
Proof. During a dual change, cij is unchanged for i ∈ V1+ , j ∈ V2+ , and so the labeling remains valid.
◽
The above observations tell us that the primal step can restart with the old labels,
and the dual objective value decreases by a positive amount 𝛿(∣ V1+ ∣ − ∣ V2+ ∣) at
each iteration. However, to see that the algorithm runs fast, we can say much more.
Observation 4.2 ∣ V2+ ∣ increases after a dual change because of the previous
proposition and the choice of 𝛿.
4.3 The Assignment Problem
Observation 4.3 The cardinality of the maximum cardinality matching must
increase after at most n dual changes, as ∣ V2+ ∣ cannot exceed n.
Observation 4.4 The cardinality of the maximum cardinality matching can
increase at most n times, as ∣ M ∗ ∣ cannot exceed n.
Proposition 4.9 The algorithm has complexity O(n4 ).
Proof. By Observations 4.2–4.4, the total number of dual changes in the course
of the algorithm is O(n2 ). Work in a dual step is O(∣ E ∣). The work in the primal
step between two augmentations is also O(∣ E ∣).
◽
Example 4.2 Consider an instance of the assignment problem with n = 4 and
the profit matrix
⎛ 27 17 7 8 ⎞
⎜
⎟
14 2 10 2 ⎟
(cij ) = ⎜
.
⎜ 12 19 4 4 ⎟
⎜ 8 6 12 6 ⎟
⎝
⎠
We apply the assignment algorithm. In step 0, we find a first dual feasible solution
by setting 𝑣1j = max cij for j = 1, … , n and u1i = 0 for i = 1, … , n. This gives a dual
i
feasible solution, and the reduced profit matrix
⎛ 0 −2 −5 0 ⎞
( ) ⎜ −13 −17 −2 −6 ⎟
1
⎟
cij = ⎜
⎜ −15 0 −8 −4 ⎟
⎜ −19 −13 0 −2 ⎟
⎠
⎝
with u = (0, 0, 0, 0), 𝑣 = (27, 19, 12, 8).
∑
∑
The corresponding dual solution has value 4i=1 u1i + 4j=1 𝑣1j = 66. Now, we
observe that there is no zero entry in the second row of this matrix, so we can
immediately improve the dual solution, and more importantly, add another edge
1
to E by setting u22 = max c2j = −2. This gives the new reduced profit matrix
j
⎛ 0 −2 −5 0 ⎞
( ) ⎜ −11 −15 0 −4 ⎟
2
⎟
cij = ⎜
⎜ −15 0 −8 −4 ⎟
⎜ −19 −13 0 −2 ⎟
⎠
⎝
with u = (0, −2, 0, 0), 𝑣 = (27, 19, 12, 8),
and a dual objective value of 64.
In the primal step, we now construct the bipartite graph shown in Figure 4.4.
We find an initial matching easily by a greedy approach. Suppose we obtain
the matching M = {(1, 1′ ), (3, 2′ ), (4, 3′ )} with ∣ M ∣= 3. The augmenting path
algorithm leads to the labels shown in Figure 4.4.
71
72
4 Matchings and Assignments
1
1′
∗ 2
2′
3
3′
4
4′
3′
Figure 4.4
Primal step.
2
Node 2 receives the label *.
Node 3′ receives the label 2.
Node 4 receives the label 3′ , and then no more labels can be given.
Thus, V1+ = {2, 4} and V2+ = {3′ }.
2
In the dual step, we find that 𝛿 = −c44 = 2. This leads to a modified dual feasible
solution and the reduced profit matrix
⎛ 0 −2 −7 0 ⎞
( ) ⎜ −9 −13 0 −2 ⎟
3
⎟
cij = ⎜
⎜ −15 0 −10 −4 ⎟
⎜ −17 −11 0 0 ⎟
⎠
⎝
with u = (0, −4, 0, −2), 𝑣 = (27, 19, 14, 8).
The dual solution now has value 62.
Now, in the primal step, the edge (4, 4′ ) is added to E. The same labels can be
given as before and in addition node 4′ now receives the label 4. An augmenting
path {(2, 3′ ), (4, 3′ ), (4, 4′ )} has been found. M = {(1, 1′ ), (2, 3′ ), (3, 2′ ), (4, 4′ )} is a
larger matching, and as it is of size n = 4, it is optimal. It can also be checked that
its value is 62, equal to that of the dual solution.
◽
Now, we return to the maximum weight bipartite matching problem. We demonstrate by example how the assignment algorithm can be used to solve it. Consider
the instance shown in Figure 4.5.
As ∣ V1 ∣ − ∣ V2 ∣= 2, we add two nodes 4′ and 5′ to V2 . All existing edges are
given a weight max{ce , 0}. All missing edges are added with a weight of 0. The
resulting assignment weight matrix is
⎛2 0 0 0 0⎞
⎜0 3 4 0 0⎟
⎜
⎟
(cij ) = ⎜ 2 0 6 0 0 ⎟ .
⎜0 1 0 0 0⎟
⎜
⎟
⎝7 0 3 0 0⎠
4.4 Matchings in Nonbipartite Graphs
Figure 4.5
Maximum weight bipartite matching.
1
2
−3
2
3
2
4
3
6
1
4
7
1′
2′
3′
3
5
The assignment algorithm terminates with an optimal solution x15′ = x22′ = x33′ =
x44′ = x51′ = 1. The edges with positive weight (22′ ), (33′ ), (51′ ) provide a solution
of the matching problem.
4.4 Matchings in Nonbipartite Graphs∗
When the graph G = (V, E) is nonbipartite, we saw in Section 2.5 that the obvious
integer programming formulation for the maximum weight matching problem:
∑
ce xe
Z = max
e∈E
∑
xe ≤ 1 for i ∈ V,
(4.1)
x ∈ ℤ|E|
+ ,
(4.2)
e∈𝛿(i)
does not provide the convex hull of the set X M of incidence vectors of the matchings
when G is a triangle.
For the triangle with edges e1 , e2 , e3 , it is clear that a matching can contain at
most one edge, so all the corresponding incidence vectors satisfy
xe1 + xe2 + xe3 ≤ 1.
More generally, as any edge is incident to two vertices, the blossom inequality
∑
|S|
(4.3)
xe ≤ ⌊ ⌋,
2
e∈E(S)
is valid for any S ∈ = {S ⊆ V ∶ |S| is odd}.
73
74
4 Matchings and Assignments
One of the most beautiful and far-reaching results that launched the field of
combinatorial optimization is the following:
Theorem 4.2 conv(X M ) is completely described by the degree constraints (4.1), the
blossom inequalities (4.3), and the nonnegativity constraints.
What is more, there is a fast combinatorial algorithm based on augmenting
paths and a “shrinking operation for odd sets” to find a maximum weight
matching.
Another interesting aspect of the algorithm is that the linear programming
dual
∑
∑ |S|
min
ui +
⌊ ⌋yS
2
i∈V
S∈
∑
ui + uj +
yS ≥ ce for e = (i, j) ∈ E,
S∈∶(i,j)∈E(S)
u ∈ ℝ|V|
+ , yS ≥ 0 for S ∈ ,
has an integer optimal solution when c ∈ ℤ|E| .
In particular, taking ce = 1 for all e ∈ E gives a strong dual for the size of a maximum cardinality matching. Specifically an odd set edge cover is a set of subsets of V
with associated edge sets whose union covers all edges in E. The subsets are either
singletons i that cover all adjacent edges in 𝛿(i), or odd subsets S with |S| ≥ 3 that
cover all edges in E(S). The weight of a singleton is 1 and the weight of an odd
subset S is ⌊ S2 ⌋.
Corollary 4.1 The maximum cardinality of a matching equals the minimum
weight of an odd set edge cover.
4.5 Notes
More detailed chapters on assignment problems are in Ahuja et al. [9], and on general matchings in Cook et al. [79] and Nemhauser and Wolsey [233]. For the complete story on both bipartite and nonbipartite matchings, see Lovasz and Plummer
[213] and Volume A of Schrijver [267].
4.1 The results on alternating paths are from Berge [44] and Norman and Rabin
[235].
4.3 The primal-dual algorithm can be found in Kuhn [200] and Ford and Fulkerson [125]. Primal dual algorithms for linear programming were also proposed
in Dantzig et al. [92]. Many of the first algorithms for combinatorial optimiza-
4.6 Exercises
3
10
1
9
7
5
2
6
(a)
Figure 4.6
3
8
4
12
11
Edge of M
1
7
2
8
3
9
4
10
5
11
6
12
(b)
(a) Matching to be augmented and (b) maximum cardinality matching.
tion problems were primal-dual, such as the matching algorithm of Edmonds
[102] and the matroid intersection algorithm of Edmonds [103].
4.4 An algorithm to find a maximum cardinality matching in a general graph is
due to Edmonds [101] and an algorithm for the weighted case in [102]. The
latter also contains the description of the convex hull of the incidence vectors
of the matchings. Padberg and Rao [240] present an efficient algorithm for the
separation of the blossom inequalities (4.3).
4.6 Exercises
1.
Find two augmenting paths for the matching M shown in the graph of
Figure 4.6a. Is the new matching M ′ obtained after augmentation optimal?
Why?
2.
Find a maximum cardinality matching in the bipartite graph of Figure 4.6b.
Demonstrate that your solution is optimal.
3.
If a graph has n = 2k nodes, a matching with k edges is called perfect. Show
directly that the graph of Figure 4.7 does not contain a perfect matching.
4.
Show how a maximum flow algorithm can be used to find a maximum cardinality matching in a bipartite graph.
75
76
4 Matchings and Assignments
3
1
2
3
4
1′
7
8
4
8
6
5
Weighted bipartite graph.
2′
4
2
8
1
3
Figure 4.7
3′
4′
2
5′
1
6
2
5.
Find a maximum weight assignment with the weight matrix:
⎛6 2 3 4 1⎞
⎜9 2 7 6 0⎟
⎜
⎟
(cij ) = ⎜ 8 2 1 4 9 ⎟ .
⎜2 1 3 4 4⎟
⎜
⎟
⎝1 6 2 9 1⎠
6.
Find a maximum weight matching in the weighted bipartite graph of
Figure 4.7.
7.
Show how an algorithm for the maximum weight bipartite matching problem can be used to solve the (equality) assignment problem.
8.
Find a lower bound on the optimal value of a 6-city TSP instance with distance matrix
⎛ – 2 3 4 1 11 ⎞
⎟
⎜
⎜9 – 7 6 0 5 ⎟
⎜8 2 – 4 9 8 ⎟
(cij ) = ⎜
⎟.
⎜2 1 3 – 4 6 ⎟
⎜1 6 2 9 – 3 ⎟
⎜ 7 4 6 12 7 – ⎟
⎠
⎝
4.6 Exercises
9.
Ten researchers are engaged in a set of 10 projects. Let Si denote the
researchers working on project i for i = 1, … , 10. To keep track of progress
or problems, the management wishes to designate one person working
on each project to report at their weekly meeting. Ideally, no person
should be asked to report on more than one project. Is this possible or
not, when S1 = {3, 7, 8, 10}, S2 = {4, 8}, S3 = {2, 5, 7}, S4 = {1, 2, 7, 9}, S5 =
{2, 5, 7}, S6 = {1, 4, 5, 7}, S7 = {2, 7}, S8 = {1, 6, 7, 10}, S9 = {2, 5}, S10 =
{1, 2, 3, 6, 7, 8, 10}?
10.
Suggest a way to solve Exercise 5(i) of Chapter 1.
11.
Given a connected graph G = (V, E) and positive edge lengths ce for e ∈ E,
the Chinese Postman (or garbage collection) Problem consists of visiting each
edge of G at least once beginning and finishing at the same vertex, and minimizing the total distance traveled.
∑
(i) Show that the minimum distance traveled is e∈E ce if and only if the
graph is Eulerian (all nodes have even degree).
(ii) Show that if G is not Eulerian, and k is the number of nodes of odd
degree, then k is even and at least k2 edges must be traversed more
than once.
(iii) Show that the minimum additional distance that must be traveled
can be found by solving a minimum weight perfect matching problem
in a certain subgraph (suppose that if e = (i, j) ∈ E, the shortest path
between i and j is via edge e).
12.
Show that the convex hull of perfect matchings in a graph on an even number of nodes is described by the degree constraints (4.1), the nonnegativity
constraints (4.2) and the inequalities
∑
xe ≥ 1 for S odd, |S| ≥ 3, S ⊂ V.
e∈𝛿(S)
13.
(i) For their annual Christmas party the 30 members of staff of the thriving
company Ipopt were invited/obliged to dine together and then spend
the night in a fancy hotel. The boss’s secretary had the unenviable task
of allocating the staff two to a room. Knowing the likes and dislikes of
everyone, she drew up a list of all the compatible pairs. How could you
help her to fill all 15 rooms?
(ii) Recently, a summer camp was organized for an equal number of
English and French children. After a few days, the children had to
participate in an orienteering competition in pairs, each pair made
77
78
4 Matchings and Assignments
up of one French and one English child. To allocate the pairs, each
potential pair was asked to give a weight from 1 to 10 representing
their willingness to form a pair. Formulate the problem of choosing the
pairs so as to maximize the sum of the weights.
(iii) If you have a linear programming code available, can you help either
the boss’s secretary or the camp organizer or both?
79
5
Dynamic Programming
5.1 Some Motivation: Shortest Paths
Here we look at another approach to solving certain combinatorial optimization
problems. To see the basic idea, consider the shortest path problem again. Given
a directed graph D = (V, A), nonnegative arc distances ce for e ∈ A, and an initial
node s ∈ V, the problem is to find the shortest path from s to every other node
𝑣 ∈ V ∖ {s}. See Figure 5.1, in which a shortest path from s to t is shown, as well
as one intermediate node p on the path.
Observation 5.1 If the shortest path from s to t passes by node p, the subpaths
(s, p) and (p, t) are shortest paths from s to p, and p to t, respectively.
If this were not true, the shorter subpath would allow us to construct a shorter
path from s to t, leading to a contradiction.
The question is how to use this idea to find shortest paths.
Observation 5.2 Let d(𝑣) denote the length of a shortest path from s to 𝑣. Then
(5.1)
d(𝑣) = min
{d(i) + ci𝑣 }.
−
i∈V (𝑣)
Figure 5.1
Shortest s − t path.
s
p
t
Integer Programming, Second Edition. Laurence A. Wolsey.
© 2021 John Wiley & Sons, Inc. Published 2021 by John Wiley & Sons, Inc.
Companion website: www.wiley.com/go/wolsey/integerprogramming2e
80
5 Dynamic Programming
In other words, if we know the lengths of the shortest paths from s to every neighbor (predecessor) of 𝑣, then we can find the length of the shortest path from s to 𝑣.
This still does not lead to an algorithm for general digraphs because we may
need to know d(i) to calculate d(j), and d(j) to calculate d(i). However, for certain
digraphs, it does provide a simple algorithm.
Observation 5.3 Given an acyclic digraph D = (V, A) with n = |V|, m = |A|,
where the nodes are ordered so that i < j for all arcs (i, j) ∈ A, then for the problem
of finding shortest paths from node 1 to all other nodes, the recurrence (5.1) for
𝑣 = 2, … , n leads to an O(m) algorithm.
For arbitrary directed graphs with nonnegative weights c ∈ R∣A∣
+ , we need to
somehow impose an ordering. One way to do this is to define a more general
function Dk (i) as the length of a shortest path from s to i containing at most k arcs.
Then we have the recurrence:
Dk (j) = min{Dk−1 (j), min
[Dk−1 (i) + cij ]}.
−
i∈V (j)
Now, by increasing k from 1 to n − 1, and each time calculating Dk (j) for all j ∈ V
by the recursion, we end up with an O(mn) algorithm and d(j) = Dn−1 (j).
This approach whereby an optimal solution value for one problem is calculated
recursively from the optimal values of slightly different problems is called Dynamic
Programming (DP). Below we will see how it is possible to apply similar ideas to
derive a recursion for several interesting problems. The standard terminology used
is the Principle of Optimality for the property that pieces of optimal solutions are
themselves optimal, states that correspond to the nodes for which values need to
be calculated, and stages for the steps which define the ordering.
5.2 Uncapacitated Lot-Sizing
The uncapacitated lot-sizing problem (ULS) was introduced in Chapter 1 where
two different mixed integer programming formulations were presented. The problem again is to find a minimum cost production plan that satisfies all the nonnegative demands {dt }nt=1 , given the costs of production {pt }nt=1 , storage {ht }nt=1 and
set-up {ft }nt=1 . We assume ft ≥ 0 for all t.
To obtain an efficient dynamic programming algorithm, it is necessary to understand the structure of the optimal solutions. For this it is useful to view the problem
as a network design problem. Repeating the MIP formulation of Section 1.4, we
have
n
n
n
∑
∑
∑
min
pt yt +
ht st +
ft xt
(5.2)
t=1
t=1
t=1
5.2 Uncapacitated Lot-Sizing
0
y1
1
s1
d1
2
y2
s2
d2
Figure 5.2
y3
3
d3
y4
y5
s3
4
s4
d4
y6
5
d5
s5
6
d6
Network for lot-sizing problem.
st−1 + yt = dt + st
yt ≤ Mxt
for t = 1, … , n
for t = 1, … , n
s0 = sn = 0, s ∈ ℝ+n+1 , y ∈ ℝn+ , x ∈ {0, 1}n ,
(5.3)
(5.4)
(5.5)
where yt denotes the production in period t and st the stock at the end of period t.
We see that every feasible solution corresponds to a flow in the network shown in
Figure 5.2, where pt is the flow cost on arc (0, t), ht is the flow cost on arc (t, t + 1),
and the fixed costs ft are incurred if yt > 0 on arc (0, t).
Thus, ULS is a fixed charge network flow problem in which one must choose
which arcs (0, t) are open (which are the production periods) and then find a minimum cost flow through the network. Optimal solutions to ULS have two important
structural properties that follow from this network viewpoint.
Proposition 5.1
(i) There exists an optimal solution with st−1 yt = 0 for all t. (Production takes place
only when the stock is zero.)
∑t+k
(ii) There exists an optimal solution such that if yt > 0, yt = i=t di for some k ≥ 0.
(If production takes place in t, the amount produced exactly satisfies demand for
periods t to t + k.)
Proof. Suppose that the production periods have been chosen optimally (certain
arcs (0, t) are open). Now, as an optimal extreme flow uses a set of arcs forming a
tree, the set of arcs with positive flow contains no cycle, and it follows that only one
of the arcs arriving at node t can have a positive flow (i.e. st−1 yt = 0). The second
statement then follows immediately.
◽
Property (ii) is the important property we need to derive a DP algorithm for ULS.
81
82
5 Dynamic Programming
For the rest of this section, we let dit denote the sum of demands for periods i
∑t
up to t ( i.e., dit = j=i dj ). The next observation is repeated from Section 1.4 to
simplify the calculations.
∑t
Observation 5.4 As st = i=1 yi − d1t , the stock variables can be elimi∑n
∑n
∑n
= t=1 pt yt +
nated from the objective function giving
t=1 pt yt +
t=1 ht st ∑
∑t
∑n
∑n
∑n
n
ct = pt + i=t hi . This
t=1 ht ( i=1 yi − d1t ) =
t=1 ct yt −
t=1 ht d1t , where
∑n
∑n
∑n
allows us to work with the modified cost function t=1 ct yt + 0 t=1 st + t=1 ft xt .
∑n
Then the constant term
t=1 ht d1t must be subtracted at the end of the
calculations.
Let H(k) be the minimum cost of a solution for periods 1, … , k. If t ≤ k is the
last period in which production occurs (namely xt = dtk ), what happens in periods
1, … , t − 1? Clearly, the least cost solution must be optimal for periods 1, … , t − 1,
and thus has cost H(t − 1). This gives the recursion.
Forward Recursion
H(k) = min {H(t − 1) + ft + ct dtk }
1≤t≤k
with H(0) = 0.
Calculating H(k) for k = 1, … , n leads to the value H(n) of an optimal solution
of ULS. Working back gives a corresponding optimal solution. It is also easy to see
that O(n2 ) calculations suffice to obtain H(n) and an optimal solution.
Example 5.1 Consider an instance of ULS with n = 4, d = (2, 4, 5, 1), p =
(3, 3, 3, 3), h = (1, 2, 1, 1), and f = (12, 20, 16, 8). We start by calculating
∑4
c = (8, 7, 5, 4), (d11 , d12 , d13 , d14 ) = (2, 6, 11, 12) and the constant t=1 ht d1t = 37.
Now, we successively calculate the values of H(k) using the recursion.
H(1) = f1 + c1 d1 = 28.
H(2) = min[28 + c1 d2 , H(1) + f2 + c2 d2 ] = min[60, 76] = 60.
H(3) = min[60 + c1 d3 , 76 + c2 d3 , H(2) + f3 + c3 d3 ] = min[100, 111, 101] = 100.
H(4) = min[100 + c1 d4 , 111 + c2 d4 , 101 + c3 d4 , H(3) + f4 + c4 d4 ]
= min[108,118, 106,112] = 106.
Working backward, we see that H(4) = 106 = H(2) + f3 + c3 d34 , so x3 = 1, y3 =
6, y4 = x4 = 0. Also, H(2) = f1 + c1 d12 , so x1 = 1, y1 = 6, y2 = x2 = 0. Thus, we have
found an optimal solution y = (6, 0, 6, 0), x = (1, 0, 1, 0), s = (4, 0, 1, 0), whose value
in the original costs is 106 − 37 = 69. Checking we have 6p1 + f1 + 6p3 + f3 + 4h1 +
◽
1h3 = 69.
Another possibility is to solve ULS directly as a shortest path problem. Consider
a directed graph with nodes {0, 1, … , n} and arcs (i, j) for all i < j. The cost fi+1 +
5.3 An Optimal Subtree of a Tree
Figure 5.3
ULS.
108
Shortest path for
100
60
0
28
1
46
48
2
41
3
12
4
83
90
ci+1 di+1,j of arc (i, j) is the cost of starting production in i + 1 and satisfying the
demand for periods i + 1 up to j. Figure 5.3 shows the shortest path instance arising
from the data of Example 5.1. Now a least cost path from node 0 to node n provides
a minimum cost set of production intervals and solves ULS.
We observe that H(k) is the cost of a cheapest path from nodes 0 to k, and as the
directed graph is acyclic, we know from Observation 5.3 that the corresponding
shortest path algorithm is O(m) = O(n2 ).
5.3 An Optimal Subtree of a Tree
Here we consider another problem that can be tackled by dynamic programming.
However, the recursion here is not related at all to shortest paths.
The Optimal Subtree of a Tree Problem involves a tree T = (V, E) with a root r ∈ V
and weights c𝑣 for 𝑣 ∈ V. The problem is to choose a subtree of T rooted at r of
maximum weight, or the empty tree if there is no positive weight rooted subtree.
To describe a dynamic programming recursion, we need some notation. For a
rooted tree, each node 𝑣 has a well-defined predecessor p(𝑣) on the unique path
from the root r to 𝑣, and, for 𝑣 ≠ r, a set of immediate successors S(𝑣) = {𝑤 ∈ V ∶
p(𝑤) = 𝑣}. Also, we let T(𝑣) be the subtree of T rooted at 𝑣 containing all nodes 𝑤
for which the path from r to 𝑤 contains 𝑣.
For any node 𝑣 of T, let H(𝑣) denote the optimal solution value of the rooted
subtree problem defined on the tree T(𝑣) with node 𝑣 as the root. If the optimal
subtree is empty, clearly H(𝑣) = 0. Otherwise, the optimal subtree contains 𝑣. It
may also contain subtrees of T(𝑤) rooted at 𝑤 for 𝑤 ∈ S(𝑣). By the principle of
optimality, these subtrees must themselves be optimal rooted subtrees. Hence, we
obtain the recursion:
}
{
∑
H(𝑤) .
H(𝑣) = max 0, c𝑣 +
𝑤∈S(𝑣)
83
84
5 Dynamic Programming
Root
2
−1
−6
4
5
Figure 5.4
9
1
−2
2
3
5
6
3
−1
10
−8
−1
7
−2
11
8
3
12
2
13
3
Rooted tree with node weights c𝑣 .
To initialize the recursion, we start with the leaves (nodes having no successors) of the tree. For a leaf 𝑣 ∈ V, H(𝑣) = max[c𝑣 , 0]. The calculations are then
carried out by working in from the leaves to the root, until the optimal value H(r)
is obtained. As before, an optimal solution is then easily found by working backward out from the root, eliminating every subtree T(𝑣) encountered with H(𝑣) = 0.
Finally, note that each of the terms c𝑣 and H(𝑣) occurs just once on the right-hand
side during the recursive calculations, and so the algorithm is O(n).
Example 5.2 For the instance of the optimal subtree of a tree problem shown
in Figure 5.4 with root r = 1, we start with the leaf nodes H(4) = H(6) = H(7) =
H(11) = 0, H(9) = 5, H(10) = 3, H(12) = 3, and H(13) = 3. Working in, H(5) =
max[0, −6 + 5 + 3] = 2 and H(8) = max[0, 2 + 0 + 3 + 3] = 8. Now, the values of
H(𝑣) for all successors of nodes 2 and 3 are known, and so H(2) = 4 and H(3) = 0
can be calculated. Finally, H(1) = max[0, −2 + 4 + 0] = 2. Cutting off subtrees
T(3), T(4), and T(6) leaves an optimal subtree with nodes 1,2,5,9,10 of value
H(1) = 2.
◽
5.4 Knapsack Problems
Here we examine various knapsack problems. Whereas ULS and the optimal subtree problems have the Efficient Optimization Property, knapsack problems in
general are more difficult. This is made more precise in the next chapter. Dynamic
programming provides an effective approach for such problems if the size of the
data is restricted.
5.4 Knapsack Problems
5.4.1 0–1 Knapsack Problems
First, we consider the 0–1 knapsack problem:
Z = max
n
∑
cj xj
j=1
n
∑
aj xj ≤ b
j=1
x ∈ {0, 1}n ,
where the coefficients {aj }nj=1 and b are positive integers.
Thinking of the right-hand side 𝜆 taking values from 0, 1, … , b as the state, and
the subset of variables x1 , … , xr represented by r as the stage, leads us to define the
problem Pr (𝜆) and the optimal value function fr (𝜆) as follows:
fr (𝜆) = max
r
∑
cj xj
j=1
(Pr (𝜆))
r
∑
aj xj ≤ 𝜆
j=1
x ∈ {0, 1}r .
Then Z = fn (b) gives us the optimal value of the knapsack problem. Thus, we need
to define a recursion that allows us to calculate fr (𝜆) in terms of values of fs (𝜇) for
s ≤ r and 𝜇 < 𝜆.
What can we say about an optimal solution x∗ for problem Pr (𝜆) with value fr (𝜆)?
Clearly, either xr∗ = 0 or xr∗ = 1.
(i) If xr∗ = 0, then by the same optimality argument we used for shortest paths,
fr (𝜆) = fr−1 (𝜆).
(ii) If xr∗ = 1, then fr (𝜆) = cr + fr−1 (𝜆 − ar ).
Thus, we arrive at the recursion:
fr (𝜆) = max{fr−1 (𝜆), cr + fr−1 (𝜆 − ar )}.
Now, starting the recursion with f0 (𝜆) = 0 for 𝜆 ≥ 0, or alternatively with f1 (𝜆) =
0 for 0 ≤ 𝜆 < a1 and f1 (𝜆) = max[c1 , 0] for 𝜆 ≥ a1 , we then use the recursion to
successively calculate f2 , f3 , … , fn for all integral values of 𝜆 from 0 to b.
The question that then remains is how to find an associated optimal solution. For
this, we have two related options. In both cases, we iterate back from the optimal
value fn (b). Either we must keep all the fr (𝜆) values, or an indicator pr (𝜆) which is
0 if fr (𝜆) = fr−1 (𝜆), and 1 otherwise.
If pn (b) = 0, then as fn (b) = fn−1 (b), we set xn∗ = 0 and continue by looking for an
optimal solution of value fn−1 (b).
85
86
5 Dynamic Programming
Table 5.1
𝜆=0
1
2
3
4
5
6
7
fr (𝜆) for a 0–1 knapsack problem.
f1
f2
f3
f4
p1
p2
p3
p4
0
0
10
10
10
10
10
10
0
7
10
17
17
17
17
17
0
7
10
17
17
17
25
32
0
7
10
17
17
24
31
34
0
0
1
1
1
1
1
1
0
1
0
1
1
1
1
1
0
0
0
0
0
0
1
1
0
0
0
0
0
1
1
1
If pn (b) = 1, then as fn (b) = cn + fn−1 (b − an ), we set xn∗ = 1 and then look for an
optimal solution of value fn−1 (b − an ).
Iterating n times allows us to obtain an optimal solution.
Counting the number of calculations required to arrive at Z = fn (b), we see that
for each calculation fr (𝜆) for 𝜆 = 0, 1, … , b and r = 1, … , n, there are a constant
number of additions, subtractions, and comparisons. Calculating the optimal solution requires at most the same amount of work. Thus, the DP algorithm is O(nb).
Example 5.3 Consider the 0–1 knapsack instance:
Z = max 10x1 +7x2 +25x3 +24x4
2x1 +1x2 +6x3 +5x4
≤7
x
∈ {0, 1}4 .
The values of fr (𝜆) and pr (𝜆) are shown in Table 5.1. The values of f1 (𝜆) are calculated by the formula described above. The next column is then calculated from
top to bottom using the recursion. For example, f2 (7) = max{f1 (7), 7 + f1 (7 − 1)} =
max{10, 7 + 10} = 17, and as the second term of the maximization gives the value
of f2 (7), we set p2 (7) = 1. The optimal value Z = f4 (7) = 34.
Working backward, p4 (7) = 1 and hence, x4∗ = 1. p3 (7 − 5) = p3 (2) = p2 (2) = 0
and hence, x3∗ = x2∗ = 0. p1 (2) = 1 and hence, x1∗ = 1. Thus, x∗ = (1, 0, 0, 1) is an
optimal solution.
◽
5.4.2 Integer Knapsack Problems
Now, we consider the integer knapsack problem:
Z = max
n
∑
cj xj
j=1
n
∑
aj xj ≤ b
j=1
x ∈ ℤn+ ,
5.4 Knapsack Problems
where again the coefficients {aj }nj=1 and b are positive integers. Copying from the
0–1 case, we define Pr (𝜆) and the value function gr (𝜆) as follows:
gr (𝜆) = max
r
∑
cj xj
j=1
r
∑
(Pr (𝜆))
aj xj ≤ 𝜆
j=1
x ∈ ℤr+ .
Then Z = gn (b) gives us the optimal value of the integer knapsack problem.
To build a recursion, a first idea is to again copy from the 0–1 case. If x∗ is an
optimal solution to Pr (𝜆) giving value gr (𝜆), then we consider the value of xr∗ . If
xr∗ = t, then using the principle of optimality gr (𝜆) = cr t + gr−1 (𝜆 − tar ) for some
t = 0, 1, … , ⌊ a𝜆 ⌋, and we obtain the recursion:
r
gr (𝜆) =
max
{cr t + gr−1 (𝜆 − tar )}.
t=0,1,…,⌊𝜆∕ar ⌋
As ⌊ a𝜆 ⌋ = b in the worst-case, this gives an algorithm of complexity O(nb2 ).
r
Can we do better? Is it possible to reduce the calculation of gr (𝜆) to a comparison
of only two cases?
(i) Taking xr∗ = 0, we again have gr (𝜆) = gr−1 (𝜆).
(ii) Otherwise, we must have xr∗ ≥ 1. Here we can no longer copy from above.
However, as xr∗ = 1 + t with t a nonnegative integer, we claim, again by the
principle of optimality, that if we reduce the value of xr∗ by 1, the resulting
∗
, t) must be optimal for the problem Pr (𝜆 − ar ). Thus, we
vector (x1∗ , … , xr−1
have gr (𝜆) = cr + gr (𝜆 − ar ), and we arrive at the recursion:
gr (𝜆) = max{gr−1 (𝜆), cr + gr (𝜆 − ar )}.
This now gives an algorithm of complexity O(nb), which is the same as that
of the 0–1 problem. We again set pr (𝜆) = 0 if gr (𝜆) = gr−1 (𝜆) and pr (𝜆) = 1
otherwise.
Example 5.4 Consider the knapsack instance:
z = max 7x1 + 9x2 + 2x3 + 15x4
3x1 + 4x2 + 1x3 + 7x4 ≤ 10
x ∈ ℤ4+ .
The values of gr (𝜆) are shown in Table 5.2. With c1 ≥ 0, the values of g1 (𝜆) are easily
calculated to be c1 ⌊ a𝜆 ⌋. The next column is then calculated from top to bottom
1
using the recursion. For example, g2 (8) = max{g1 (8), 9 + g2 (8 − 4)} = max{14, 9 +
9} = 18.
87
88
5 Dynamic Programming
Table 5.2
𝜆=0
1
2
3
4
5
6
7
8
9
10
gr (𝜆) for an integer knapsack problem.
g1
g2
g3
g4
p1
p2
p3
p4
0
0
0
7
7
7
14
14
14
21
21
0
0
0
7
9
9
14
16
18
21
23
0
2
4
7
9
11
14
16
18
21
23
0
2
4
7
9
11
14
16
18
21
23
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
1
1
0
1
1
0
1
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Working back, we see that p4 (10) = p3 (10) = 0 and thus x4∗ = x3∗ = 0. p2 (10) = 1
and p2 (6) = 0 and so x2∗ = 1. p1 (6) = p1 (3) = 1 and thus x1∗ = 2. Hence, we obtain
an optimal solution x∗ = (2, 1, 0, 0).
◽
Another recursion can be used for the integer knapsack problem. Looking at
the example above, we see that in fact all the important information is contained
in the nth column containing the values of gn (𝜆). Writing h in place of gn , can we
directly write a recursion for h(𝜆)?
Again, the principle of optimality tells us that if x∗ is an optimal solution of Pn (𝜆)
of value
{ n
}
n
∑
∑
n
cj xj ∶
aj xj ≤ 𝜆, x ∈ ℤ+
h(𝜆) = max
j=1
j=1
with xj∗ ≥ 1, then h(𝜆) = cj + h(𝜆 − aj ).
Thus, we obtain the recursion:
h(𝜆) = max [h(𝜆 − 1), max {cj + h(𝜆 − aj )}]
j∶aj ≤𝜆
for 𝜆 ∈ [1, b]
(5.6)
with h(0) = 0. This also leads to an O(nb) algorithm. Applied to the instance of
Example 5.4, it gives precisely the values in the g4 column of Table 5.2.
A Longest Path Extended Formulation
The dynamic programming approach for knapsack problems can also be viewed
as a longest path problem. For the integer knapsack problem with the recursion
(5.6), construct an acyclic digraph D = (V, A) with nodes 0, 1, … , b, arcs (𝜆, 𝜆 + aj )
5.5 The Cutting Stock Problem
24
24
24
0
7
1
7
2
10
7
3
7
4
10
10
7
5
7
6
7
7
10
10
10
25
25
Figure 5.5
Knapsack longest path problem.
for 𝜆 ∈ ℤ1+ , 𝜆 ≤ b − aj with weight cj for j = 1, … , n, and 0-weight arcs (𝜆, 𝜆 + 1)
for 𝜆 ∈ ℤ1+ , 𝜆 ≤ b − 1. h(𝜆) is precisely the value of a longest path from node 0 to
node 𝜆. Figure 5.5 shows the digraph arising from the instance:
Z = max 10x1 + 7x2 + 25x3 + 24x4
2x1 + 1x2 + 6x3 + 5x4 ≤ 7
x ∈ ℤ4+ ,
except that the 0-weight arcs (𝜆, 𝜆 + 1) are omitted by dominance.
To obtain an extended formulation, let z(j, 𝜆) = 1 if the path includes the arc
(𝜆, 𝜆 + aj ) and z(0, 𝜆) = 1 if it uses the arc (𝜆, 𝜆 + 1). This gives
∑n
Z = max j=1 cj xj
∑
∑
0≤j≤n∶𝜆≥aj z(j, 𝜆 − aj ) −
0≤j≤n∶𝜆+aj ≤b z(j, 𝜆) = 0 for 𝜆 = 1, … , b − 1
∑n
= 1
j=0 z(j, 0)
∑
xj − 𝜆 z(j, 𝜆)
= 0
for j = 1, … , n
x ∈ ℝn , z ∈ {0, 1}(n+1)b .
As the matrix corresponding to the z-variables is TU, the linear programming relaxation in which the integrality of the z-variables is dropped has integral solutions
and thus solves the knapsack problem.
5.5 The Cutting Stock Problem*
This well-known problem can be stated as follows: Given an unlimited number of
sheets of length L and demands for qj pieces of length aj for j = 1, … , n, propose
a cutting plan that uses the minimum number of sheets of length L. We present
briefly two formulations.
89
90
5 Dynamic Programming
Formulation 1 Let {xt }Tt=1 be the set of all cutting patterns, where xjt is the number
of pieces of length aj in pattern t. In other words, these are all the feasible solu∑n
tions to the knapsack set X = {x ∈ ℤn+ ∶ j=1 aj xj ≤ L}. The problem can now
be formulated as
Z CS = min
T
∑
𝑤t
t=1
T
∑
x t 𝑤t ≥ q
t=1
𝑤 ∈ ℤT+ ,
where 𝑤t is the number of times that pattern xt is selected. Note that this
formulation involves an exponential number of variables. Ways to treat such
formulations are discussed in Chapter 11.
Formulation 2 Here we make use of the extended formulation for the knapsack
problem from the previous section. This uses the nontrivial property that an
integral s − t network flow of size K can be decomposed into K unit s − t flows.
The problem is then to find the smallest possible flow between nodes 0 and L
such that each type j arc representing a piece of length aj appears at least qj
times. This leads to the formulation:
Z CS = min 𝜂
∑n
= 0
j=0 z(j, 0) − 𝜂
∑
∑
z(j,
𝜆
−
a
)
−
z(j,
𝜆)
=
0 for 𝜆 = 1, … , b − 1
j
0≤j≤n∶𝜆≥aj
0≤j≤n∶𝜆+aj ≤b
∑
≥ qj
for j = 1, … , n
𝜆 z(j, 𝜆)
𝜂 ∈ ℤ1+ , z ∈ ℤ(n+1)b
.
+
Example 5.5 Consider an instance with standard pieces of length L = 5. There
is demand for n = 3 different lengths a = (1, 2, 4) and the number required is q =
(10, 6, 3). Noting that it suffices to take just maximal cutting patterns, the first formulation gives
min 𝑤1 + 𝑤2 + 𝑤3 + 𝑤4
⎛1⎞
⎛3⎞
⎛1⎞
⎛ 10 ⎞
⎛5⎞
⎜0⎟𝑤 + ⎜2⎟𝑤 + ⎜1⎟𝑤 + ⎜0⎟𝑤 ≥ ⎜ 6 ⎟
⎜ ⎟ 1 ⎜ ⎟ 2 ⎜ ⎟ 3 ⎜ ⎟ 4 ⎜ ⎟
⎝0⎠
⎝0⎠
⎝1⎠
⎝ 3 ⎠
⎝0⎠
𝑤 ∈ ℤ4+
with optimal solution 𝑤 = (0, 2, 2, 3) of value 7. In Figure 5.6, a feasible flow of 7
units is shown for formulation 2 as well as its decomposition giving the cutting
patterns.
◽
5.6 Notes
3
0
2
1
2
2
2
3
4
7
5
4
z(2, 0) = z(2, 2) = z(1, 4) = 2:
x2 = (1, 2, 0), w2 = 2
z(1, 0) = z(1, 1) = z(2, 2) = z(1, 4) = 2:
x3 = (3, 1, 0), w3 = 2
z(3, 0) = z(1, 4) = 3:
x4 = (1, 0, 1), w4 = 3
Figure 5.6
Decomposition of integer flow of 7 units.
5.6 Notes
5.1 The principle of optimality and dynamic programming originated with Bellman [39]. One of the more recent books on dynamic programming is Bertsekas
[48]. Shortest path problems with additional restrictions that arise as subproblems in many routing problems are solved by dynamic programming, see
Desrosiers et al. [97].
5.2 The uncapacitated lot-sizing model and the dynamic programming algorithm
for it are from Wagner–Whitin [288]. Dynamic programming recursions have
been developed for many generalizations including lot-sizing with backlogging by Zangwill [303], with constant production capacities by Florian and
Klein [123], with start-up costs by Fleischmann [122] and with lower bounds
on production by Constantino [77]. Wagelmans et al. [287] among others have
shown how the running time of the DP algorithm for the basic model can be
significantly improved to O(n log n) and even O(n) in certain cases.
5.3 Various generalizations of the subtree problem are of interest. The more general problem of finding an optimal upper/lower set in a partially ordered set is
examined in Gröflin and Liebling [161] and shown to be solvable as a network
flow problem.
The problem of partitioning a tree into subtrees is tackled using dynamic programming in Barany et al. [33] and this model is further studied in Aghezzaf
et al. [8]. A telecommunications problem with such structure is studied in
Balakrishnan et al. [19].
Many other combinatorial optimization problems become easy when the
underlying graph is a tree, see Magnanti and Wolsey [217], or more generally
when it is a series-parallel graph, see Takamizawa et al. [273].
5.4 The classical paper on the solution of knapsack problems by dynamic programming is by Gilmore and Gomory [143]. The longest path or dynamic
91
92
5 Dynamic Programming
programming viewpoint was later extended by Gomory leading to the group
relaxation of an integer program [156], and later to the superadditive duality
theory for integer programs; see Notes of Section 2.5. The idea of reversing the
roles of the objective and constraint rows (Exercise 7) is from Ibarra and Kim
[181].
5.5 The first cutting stock formulation is due to Gilmore and Gomory [141] and
the second appeared in Wolsey [296], see also Valerio de Carvalho [277]. Computational results with the latter pseudo-polynomial formulation and graph
compression can be found in Brandao and Pedroso [60].
The dynamic programming approach to TSP (Exercise 9) was first described
by Held and Karp [173]. Relaxations of this approach, known as state space
relaxation, have been used for a variety of constrained path and routing problems; see Christofides et al. [68]. Psaraftis [252] and Balas [24] show how such
a recursion is of practical interest when certain restrictions on the tours or
arrival sequences are imposed.
5.7 Exercises
1.
Solve the uncapacitated lot-sizing problem with n = 4 periods, unit production costs p = (1, 1, 1, 2), unit storage costs h = (1, 1, 1, 1), set-up costs f =
(20, 10, 45, 15), and demands d = (8, 5, 13, 4).
2.
Consider the uncapacitated lot-sizing problem with backlogging (ULSB).
Backlogging means that demand in a given period can be satisfied from
production in a later period. If rt ≥ 0 denotes the amount backlogged in
period t, the flow conservation constraints (5.3) become
st−1 − rt−1 + yt = dt + st − rt .
Show that there always exists an optimal solution to ULSB with
(i) st−1 yt = yt rt = st−1 rt = 0.
∑q
(ii) yt > 0 implies yt = i=p di with p ≤ t ≤ q.
Use this to derive a dynamic programming recursion for ULSB, or to reformulate ULSB as a shortest path problem.
3.
Find a maximum weight rooted subtree for the rooted tree shown in
Figure 5.7.
4.
Formulate the optimal subtree of a tree problem as an integer program. Is
this IP easy to solve?
5.7 Exercises
−2
1
−1
−1
2
4
3
−6
4
−1
5
2
Figure 5.7
9
6
3
−1
7
−2
10
11
8
3
1
12
Rooted tree with node weights c𝑣 .
5.
Given a digraph D = (V, A), travel times cij for (i, j) ∈ A for traversing the
arcs, and earliest passage times rj for j ∈ V, consider the problem of minimizing the time required to go from node 1 to node n.
(i) Describe a dynamic programming recursion.
(ii) Formulate as a mixed integer program. Is this mixed integer program
easy to solve?
6.
Solve the knapsack problem
min 5x1 − 3x2 + 7x3 + 10x4
2x1 − x2 + 4x3 + 5x4 ≥ 𝜆
x1 , x4 ∈ ℤ1+ , x2 , x3 ∈ {0, 1}
for all values of 𝜆 between 7 and 10.
7.
∑n
∑n
Let f (𝜆) = max{ j=1 cj xj ∶ j=1 aj xj ≤ 𝜆, x ∈ X} with X ⊆ ℤn+ and
∑n
∑n
h(t) = min{ j=1 aj xj ∶ j=1 cj xj ≥ t, x ∈ X}. Show that
(i) f (𝜆) ≥ t if and only if h(t) ≤ 𝜆.
(ii) f (b) = max{t ∶ h(t) ≤ b}.
Use these observations to solve the knapsack problem
max 3x1 + 4x2 + 6x3 + 5x4 + 8x5
412x1 + 507x2 + 714x3 + 671x4 + 920x5 ≤ 1794
x ∈ {0, 1}5
by dynamic programming.
93
94
5 Dynamic Programming
8.
Solve the problem
1
max x13 + 2x22 + 4x3 + 4x4
2x12 + 4x2 + 6x3 + 5x4 ≤ t
x1 ≤ 3, x2 ≤ 2, x4 ≤ 1
x ∈ ℤ4+
for t ≤ 12. (Hint. One of the recursions in the chapter is easily adapted.)
9.
Derive a dynamic programming recursion for the STSP using f (S, j) with
1, j ∈ S, where f (S, j) denotes the length of a shortest Hamiltonian path
starting at node 1, passing through the nodes of S ∖ {1, j} and terminating
at node j.
10.
Given the weighted rooted subtree of Figure 5.7, devise a dynamic programming algorithm to find optimal weighted subtrees with k = 2, 3, … , n − 1
nodes.
11.
Given a tree T and a list of T1 , … , Tm of subtrees of T with weights c(Ti )
for i = 1, … , m, describe an algorithm to find a maximum weight packing of
node disjoint subtrees.
12.
∗ Given a rooted tree T on n nodes, and an n by n matrix C, describe an
algorithm to find a maximum weight packing of rooted subtrees of T, where
∑
the value of a subtree on node set S with root i ∈ S is j∈S cij .
95
6
Complexity and Problem Reductions
6.1 Complexity
If we consider a list of the problems we have examined so far, we have either shown
or it can be shown that the following have the Efficient Optimization Property:
The Uncapacitated Lot-Sizing Problem (Chapter 5)
The Maximum Weight Tree Problem (Chapter 3)
The Maximum Weight Matching Problem (Chapter 4)
The Shortest Path Problem (Chapter 5)
The Max Flow Problem (Chapter 3)
The TU Integer Programming Problem (Chapter 3)
The Assignment Problem (Chapter 4)
Below we make this more precise: there is a polynomial algorithm for these optimization problems.
On the other hand, no one to date has found an efficient (polynomial) algorithm
for any of the following optimization problems:
The 0–1 Knapsack Problem (Chapter 1)
The Set Covering Problem (Chapter 1)
The Traveling Salesman Problem (Chapter 1)
The Uncapacitated Facility Location Problem (Chapter 1)
The Integer Programming Problem (Chapter 1)
The Steiner Tree Problem (Chapter 3)
The Cutting Stock Problem (Chapter 5)
The remainder of this book will in large part be devoted to examining how to
tackle problems in this second group. However, it is first useful to discuss the distinction (real or imaginary) between these two groups, so that when we encounter
a new optimization problem we have an idea how we might classify and then
attempt to solve it.
Integer Programming, Second Edition. Laurence A. Wolsey.
© 2021 John Wiley & Sons, Inc. Published 2021 by John Wiley & Sons, Inc.
Companion website: www.wiley.com/go/wolsey/integerprogramming2e
96
6 Complexity and Problem Reductions
To develop such a method of classification, we need just four concepts:
A class of legitimate problems to which the theory applies
A nonempty subclass ⊆ of “easy” problems
A nonempty subclass ⊆ of “difficult” problems
A relation “not more difficult than” between pairs of legitimate problems.
This immediately leads to:
Proposition 6.1 (Reduction Lemma)
problems.
Suppose that P and Q are two legitimate
If Q is “easy” and P is “not more difficult than” Q, then P is “easy.”
If P is “difficult” and P is “not more difficult than” Q, then Q is “difficult.”
We have already used the first part of the lemma implicitly in Chapter 4. There
we show that the maximum weight bipartite matching problem is “easy” by showing that it is reducible to the assignment problem. Also Exercise 11 in Chapter
4 involves showing that the Chinese postman problem is reducible to maximum
weight matching. The goal of the rest of this chapter is to somewhat formalize
these notions. In the next section, we introduce the class of legitimate problems
and the “easy” class, and in Section 6.3, we discuss the concept of problem reduction which allows us to then define the “difficult” class. Then we will have another
tool at our disposal: namely a way to show that certain problems are “difficult” by
using the second part of the reduction lemma.
6.2 Decision Problems, and Classes and
Unfortunately, the theory does not exactly address optimization problems in the
form we have posed them so far. To define the class of legitimate problems, it is
appropriate to pose decision problems having YES–NO answers. Thus, an optimization problem:
max{cx ∶ x ∈ S}
for which an instance consists of {c and a “standard” representation of S} is
replaced by the decision problem:
Is there an x ∈ S with value cx ≥ k?
for which an instance consists of {c, a “standard” representation of S, and an integer k}.
So, in this and Section 6.3, when we refer to an optimization problem, we have
in mind the corresponding decision problem. We will use the notation TSP, UFL
6.2 Decision Problems, and Classes and
and IP, etc. to denote the class of decision problems associated to the optimization
problems TSP, UFL and IP respectively.
Next, we give a slightly more formal definition of the running time of an algorithm than that given at the start of Chapter 3. It is not just the number of variables
and constraints or nodes and edges that defines the input length but also the size
of the numbers occurring in the data.
Definition 6.1 For a problem instance X, the length of the input L = L(X) is the
length of the binary representation of a “standard” representation of the instance.
Definition 6.2 Given a problem P, an algorithm A for the problem, and an
instance X, let fA (X) be the number of elementary calculations required to run
the algorithm A on the instance X. fA∗ (l) = supX {fA (X) ∶ L(X) = l} is the running
time of algorithm A. An algorithm A is polynomial for a problem P if fA∗ (l) = O(lp )
for some positive integer p.
Now, we can define the class of “legitimate” problems.
Definition 6.3 is the class of decision problems with the property that for
any instance for which the answer is YES, there is a “short” (polynomial) proof of
the YES.
We note immediately that if a decision problem associated to an optimization
problem is in , then the optimization problem can be solved by answering
the decision problem a polynomial number of times (by using bisection on the
objective function value).
Proposition 6.2 For each optimization problem in the two lists in Section 6.1,
posed as a maximization, the associated decision problem is “Does there exist a
primal solution of value as good as or better than k?” lies in .
Now, we can define the class of “easy” problems.
Definition 6.4 is the class of decision problems in for which there exists
a polynomial algorithm.
Example 6.1
(i) Uncapacitated Lot Sizing. A dynamic programming algorithm for ULS is
presented in Chapter 5. For an instance X with integral data (n, d, p, h, f , k),
∑n
∑n
∑n
the input has length L(X) = j=1 ⌈log dj ⌉ + j=1 ⌈log pj ⌉ + j=1 ⌈log hj ⌉ +
∑n
j=1 ⌈log fj ⌉ + ⌈log k⌉.
97
98
6 Complexity and Problem Reductions
The DP algorithm requires only O(n2 ) additions and comparisons of the numbers occurring in the data, and hence the size of numbers required to give a
YES answer, and the running time are certainly O(L2 ). Thus, ULS ∈ .
∑n
(ii) 0–1 Knapsack. For an instance X of 0–1 KNAPSACK: { j=1 cj xj ≥
∑
∑n
n
k, j=1 aj xj ≤ b, x ∈ {0, 1}n }, the length of the input is L(X) = j=1 ⌈log cj ⌉
∑n
+ j=1 ⌈log aj ⌉ + ⌈log b⌉ + ⌈log k⌉.
For an instance for which the answer is YES, it suffices to (a) read a solution
x∗ ∈ {0, 1}n , and (b) check that ax∗ ≤ b and cx∗ ≥ k. Both (a) and (b) can be
carried out in time polynomial in L, so 0–1 KNAPSACK ∈ .
From Section 5.4, dynamic programming provides an O(nb) algorithm. As b
is not equal to (log b)p for any fixed p, this algorithm is not polynomial, and
in fact no polynomial algorithm is known for 0–1 KNAPSACK.
(iii) Symmetric Traveling Salesman. For an instance of STSP with data (G, c∣E∣ , k)
with minimization, it suffices to check that a proposed set of edges forms a
tour and that its length does not exceed k. So STSP ∈ . The argument for
most other problems on the second list is similar.
(iv) Integer Programming. Problem IP requires a little more work, because one
needs to show that there always exists an appropriate solution x∗ whose
∑n
description length j=1 ⌈log xj∗ ⌉ is polynomial in L.
◽
Do the optimization problems in the second set listed in Section 6.1 above have
anything in common apart from the fact that their decision problems are in ,
and that nobody has yet discovered a polynomial algorithm for any of them?
Surprisingly, they have a second property in common: their decision problems
are all among the most difficult problems in .
6.3 Polynomial Reduction and the Class
This is the formal definition of “is not more difficult than” that we need.
Definition 6.5 If P, Q ∈ , and if an instance of P can be converted in polynomial time to an instance of Q, then P is polynomially reducible to Q.
Note that this means that if we have an algorithm for problem Q, it can be used
to solve problem P with an overhead that is polynomial in the size of the instance.
We now define the class of “most difficult” problems.
Definition 6.6 , the class of -complete problems, is the subset of problems P ∈ such that for all Q ∈ , Q is polynomially reducible to P.
6.3 Polynomial Reduction and the Class
It is a remarkable fact not only that is nonempty, but that all of the decision
problems in our second list are in . So how can one prove that a problem is
in ?
The most important step is to prove that is nonempty. Written as an 0–1
integer program, an instance of SATISFIABILITY is the decision problem:
and {Di }m
of N, does the 0–1 integer
Given N = {1, … , n}, and 2m subsets {Ci }m
i=1
i=1
program:
∑
∑
xj +
(1 − xj ) ≥ 1 for i = 1, … , m
j∈Ci
j∈Di
x ∈ {0, 1}n
have a feasible solution?
It is obvious that SATISFIABILITY ∈ . Cook showed in 1970 that
SATISFIABILITY ∈ .
Now, we indicate how the reduction lemma can be used to show that all the
problems of the second list and many others are in .
For example, to see that 0-1 IP is in , all we need to observe is that
(i) 0-1 IP ∈ , (which is immediate) and
(ii) SATISFIABILITY reduces to 0-1 IP. (Above we actually described SATISFIABILITY as a 0-1 integer program, and so this is also immediate).
We now restate the Reduction Lemma (Proposition 6.1) more formally.
Proposition 6.3 Suppose that problems P, Q ∈ .
(i) If Q ∈ and P is polynomially reducible to Q, then P ∈ .
(ii) If P ∈ and P is polynomially reducible to Q, then Q ∈ .
Proof. (ii) Consider any problem R ∈ . As P ∈ , R is polynomially
reducible to P. However, P is polynomially reducible to Q by hypothesis, and thus
R is polynomially reducible to Q. As this holds for all R ∈ , Q ∈ .
◽
This has an important corollary.
Corollary 6.1 If ∩ ≠ ∅, then = .
Proof. Suppose Q ∈ ∩ and take R ∈ . As R ∈ and Q ∈ , R
is polynomially reducible to Q. By (i), as Q ∈ and R is polynomially reducible to
Q, R ∈ . So ⊆ and thus = .
◽
99
100
6 Complexity and Problem Reductions
The list of problems known to be in is now enormous. Some of the most
basic problems in are the problems in our second list. Below we show that
the CLS and NODE COVER can be added to the list.
Example 6.2 We show that CLS ∈ .
Consider the lot-sizing problem introduced in Chapter 1, with a production
capacity constraint in each period. CLS has a formulation:
min
n
∑
n
∑
+
st−1 + yt
=
d t + st
yt
≤
Ct xt
s0 = sn = 0, s
∈
ℝ+n+1 , y ∈ ℝn+ , x ∈ {0, 1}n .
t=1
t=1
ht st +
n
∑
pt yt
t=1
ft xt
for t = 1, … , n
for t = 1, … , n
First, is CLS ∈ ? One answer lies in the observation that there is always an
optimal solution of the form: x ∈ {0, 1}n with y a basic feasible solution of the network flow problem in which x is fixed. So there exists an optimal solution whose
length is polynomial in the length of the input, and can be used to verify a YES
answer in polynomial time. One just needs to check that it satisfies the constraints
and its value is sufficiently small.
We now show that 0–1 KNAPSACK is polynomially reducible to CLS. To do this,
we show how an instance of the 0–1 knapsack problem can be solved as a capacitated lot-sizing problem. Given an instance:
}
{ n
n
∑
∑
n
,
cj xj ∶
aj xj ≥ b, x ∈ {0, 1}
min
j=1
j=1
we solve a lot-sizing instance with n periods, pt = ht = 0, ft = ct , Ct = at for all t,
dt = 0 for t = 1, … , n − 1 and dn = b.
An equivalent formulation of the lot-sizing problem, obtained by eliminating
the stock variables as described in Section 1.4, is
min
n
∑
t=1
p′t yt
t
∑
+
n
∑
t=1
t
∑
ft xt
yi
≥
yi
=
yt
≤
Ct xt
y ∈ ℝn+ , x
∈
{0, 1}n .
i=1
n
∑
i=1
i=1
n
∑
i=1
di
for t = 1, … , n − 1
di
for t = 1, … , n
6.3 Polynomial Reduction and the Class
Rewriting this with the chosen values for the data, we obtain
min
n
∑
t=1
ct xt
t
∑
i=1
n
∑
i=1
yi
≥
0 for t = 1, … , n − 1
yi
=
b
yt
≤
at xt
∈
{0, 1}n .
y ∈ ℝn+ , x
for t = 1, … , n
Dropping the n − 1 redundant demand constraints leaves
min
n
∑
ct xt
t=1
n
∑
t=1
yt
=
b
yt
≤
at xt
∈
ℝn+ , x ∈ {0, 1}n .
y
for t = 1, … , n
Now, let (x∗ , y∗ ) be an optimal solution of this lot-sizing instance. Combining the
∑n
constraint t=1 yt = b with the constraints yt ≤ at xt for t = 1, … , n, we see that
∑
∗
∗
t at xt ≥ b and so x is feasible in the knapsack instance. It is also optimal because
a better knapsack solution x with cx < cx∗ would also provide a better lot-sizing
solution ((y)t = at xt , x). So an optimal x vector for the lot-sizing instance solves
the knapsack instance. So 0–1 KNAPSACK is polynomially reducible to CLS, and
as 0–1 KNAPSACK ∈ , CLS ∈ .
◽
Example 6.3 NODE COVER ∈ , where the associated decision problem is:
Given G = (V, E), does there exist U ⊆ V such that every edge is incident to a
node of U and |U| ≤ k?
First, we consider the problem 3-SAT which is the special case of
SATISFIABILITY that we rewrite in the form
∑
∑
xj +
xj ≥ 1 for i = 1, … , m
j∈Ci
j∈Di
,
where xj = 1 − xj and in which |Ci ∪ Di | = 3 with Ci , Di disjoint for all i. It is easy to
see how to reduce SATISFIABILITY to 3-SAT in polynomial time and so 3-SAT ∈
.
Now, we reduce 3 − SAT to NODE COVER. Given an instance of 3-SAT, we associate the following instance of NODE COVER. First, we describe the nodes. For
101
102
6 Complexity and Problem Reductions
each clause i, there are three nodes 𝑣i1 , 𝑣i2 , 𝑣i3 . Also create 2n nodes representing
each of the terms xj and xj for j = 1, … , n. The edges are as follows: fikk′ = (𝑣ik , 𝑣ik′ )
for 1 ≤ k < k′ ≤ 3. Also, there is an edge hj = (xj , xj ) for j = 1, … , n. If the kth term
of clause i is the term xj , there is an edge gik = (𝑣ik , xj ) and if it is the term xj , there
is an edge gik = (𝑣ik , xj ).
CLAIM. The 3-SAT instance is satisfiable if and only if there is a node cover of size
n + 2m.
Note first that either two or three of the nodes 𝑣ik are needed to cover the
edges fikk′ for each i and at least one of the nodes xj , xj is needed to cover
edge hj .
Suppose that the 3-SAT instance is satisfiable with assignment xj = 1 for j ∈ S
and xj = 0 otherwise. Select nodes xj for j ∈ S and nodes xj for j ∈ {1, … , n} ∖S. As
clause i is satisfied, one of the edges gik (at least) is covered. It suffices to select the
two nodes 𝑣ik′ and 𝑣ik” with {k′ , k”} = {1, 2, 3} ∖ {k} to obtain a node cover with
n + 2m nodes.
Conversely, consider a node cover with n + 2m nodes. As at least n nodes are
needed to cover the edges of type hj for j = 1, … , n and at least 2m to cover the
edges of type fikk′ , it follows that exactly one node, xj or xj covers the hj edge, and
two 𝑣ik nodes cover the remaining edges associated to clause i. But then the assignment provided by the nodes covering hj for j = 1, … , n satisfies each of the clauses
i = 1, … , m and the 3-SAT instance is satisfied.
The corresponding node cover problem written as an IP is
min
∑
∑
(xj + xj ) +
𝑣ik
j
i,k
xj + xj ≥ 1 for j = 1, … , n
xj + 𝑣ik ≥ 1 if term k of clause i is xj for i = 1, … , m, k = 1, 2, 3
xj + 𝑣ik ≥ 1 if term k of clause i is xj for i = 1, … , m, k = 1, 2, 3
𝑣ik + 𝑣ik′ ≥ 1 for i = 1, … , m, 1 ≤ k < k′ ≤ 3
x, x ∈ {0, 1}n , 𝑣 ∈ {0, 1}3m .
The 3-SAT instance with n = 3 and m = 4
(x1 ∨ x2 ∨ x3 ) ∧ (x1 ∨ x2 ∨ x3 ) ∧ (x1 ∨ x2 ∨ x3 ) ∧ (x1 ∨ x2 ∨ x3 )
is satisfiable with x1 = x2 = x3 = 1. The corresponding graph is shown in
Figure 6.1, where starred nodes show a corresponding node cover with
n + 2m = 11 nodes.
◽
6.4 Consequences of = or ≠
x1
∗
v11
v12
Figure 6.1
∗
v13
x̄1
∗
∗
v21
∗
x2
v22
∗
x̄2
∗
v23
∗
x3
v31
x̄3
∗
v32
v33
∗
v41
∗
v42
v43
Node Cover for 3-SAT.
6.4 Consequences of = or ≠
Most problems of interest have either been shown to be in or in . What is
more, nobody has succeeded either in proving that = or in showing that
≠ . However, given the huge number of problems in for which no
polynomial algorithm has been found, it is a practical working hypothesis that
≠ .
So how should we interpret the above results and observations?
A first important remark concerns the class . Typically, problems in this
class have a very large (exponentially large) set of feasible solutions, and these
problems can in theory be solved by enumerating the feasible solutions. As we
saw in Table 1.1, this is impractical for instances of any reasonable size.
A pessimist might say that as most problems appear to be hard (i.e. their decision
version lies in ), we have no hope of solving instances of large size (because
in the worst case we cannot hope to do better than enumeration) and so we should
give up.
A mathematician (courageous) might set out to become famous by proving that
≠ .
A mathematician (thoughtful) might decide to ask a different question: Can I find
an algorithm that is guaranteed to find a solution “close to optimal” in polynomial
time in all cases?
A probabilist (thoughtful) might also ask a different question: Can I find an algorithm that runs in polynomial time with high probability and that is guaranteed
to find an optimal or “close to optimal” solution with high probability?
An engineer would start looking for a heuristic algorithm that produces practically usable solutions.
Your boss might say: I don’t care a damn about integer programming theory. You
just worry about our scheduling problem. Give me a feasible production schedule
103
104
6 Complexity and Problem Reductions
for tomorrow in which John Brown and Daughters’ order is out of the door by
4 p.m.
A struggling professor might say: Great. Previously I was trying to develop one
algorithm to solve all integer programs, and publishing one paper every two years
explaining why I was not succeeding. Now, I know that I might as well study each
problem individually. As there are thousands of them, I should be able to
write 20 papers a year.
Needless to say they are nearly all right. There is no easy and rapid solution,
but the problems will not go away, and more and more fascinating and important practical problems are being formulated as integer programs. So in spite of
the -completeness theory, using an appropriate combination of theory, algorithms, experience, and intensive calculation, verifiably good solutions for large
instances can and must be found.
Definition 6.7 An optimization problem for which the decision problem lies in
is called -hard.
The following chapters are devoted to ways to tackle such -hard problems. First, however, we return briefly to the Separation Problem introduced in
Chapter 3, discuss briefly the existence of polynomial size extended formulations and close with a few examples of approximation algorithms (analysis of
polynomial time heuristics with worst-case performance guarantees).
6.5 Optimization and Separation
Here we consider the question of whether there are ties between problems in .
How can we show that a problem is in ? The most obvious way is by finding a
polynomial algorithm. We have also seen that another indirect way is by reduction.
There is, however, one general and important result tying together pairs of problems. Put imprecisely, it says:
Given a family of polyhedra associated with a class of problems (such as the convex hulls of the incidence vectors of feasible points S ⊆ {0, 1}n ), the family of
optimization problems:
max{cx ∶ x ∈ conv(S)}
is polynomially solvable if and only if the family of separation problems:
Is x ∈ conv(S)? If not, find an inequality satisfied by all points of S, but cutting
off x.
is polynomially solvable.
6.6 The Complexity of Extended Formulations
In other words, the Efficient Optimization and Efficient Separation Properties
introduced in Chapter 3 are really equivalent. The other two properties are not
exactly equivalent. As we indicated earlier, if a problem has the Efficient Separation Property, it suggests that it may have the Explicit Convex Hull Property. Also
if a problem has the Explicit Convex Hull Property, then its linear programming
dual may lead to the Strong Dual Property.
6.6 The Complexity of Extended Formulations
In earlier chapters we have seen that, for several optimization problems max{cx ∶
x ∈ X}, there exist extended formulations of polynomial or pseudo-polynomial
size describing conv(X): among others the uncapacitated lot-sizing problem in
Section 1.7 and the maximum weight spanning tree problem in Section 3.5 of polynomial size and the integer knapsack problem in Section 5.4 of pseudo-polynomial
size. In particular, if Q = {(x, 𝑤) ∈ ℝn × ℝp ∶ Ax + G𝑤 ≤ d} is such an extended
formulation and projx (Q) = conv(X) ⊆ ℝn , the following useful results follow:
1. The optimization problem max{cx ∶ x ∈ X} can be solved by the linear program: max{cx + 0𝑤 ∶ Ax + G𝑤 ≤ d}.
2. The separation problem: Is x∗ ∈ conv(X) can be solved by solving the LP:
max{0𝑤 ∶ G𝑤 ≤ d − Ax∗ }. Either it is feasible and x∗ ∈ conv(X), or it is
infeasible and the linear program provides an extreme ray 𝑣 of the set
∗
{u ∈ ℝm
+ ∶ uG = 0} with 𝑣(d − Ax ) < 0. The valid inequality 𝑣(d − Ax) ≥ 0
∗
then cuts off the point x
For the problems in which the extended formulation Q is of polynomial size,
the (associated decision) problem is necessarily in . This leads naturally to the
question whether there is a polynomial size extended formulation for conv(X) for
all optimization problems in .
We now present two recent very impressive, but negative results (whose proofs
are beyond the scope of this book) related to this question.
Theorem 6.1 Every extended formulation for the perfect matching polytope
requires at least O(2cn ) constraints for some c > 0.
This has as a corollary that the same holds for the STSP polytope.
Theorem
6.2 Every extended formulation for the stable set polytope has at least
√
(1.5) n constraints.
So Theorem 6.1 tells us that for problems in , there is no guarantee of a compact
extended formulation. The corollary and Theorem 6.2 tell us that we are wasting
105
106
6 Complexity and Problem Reductions
our time if we are looking for a polynomial-size linear program to solve matching,
STSP or stable set problems.
6.7 Worst-Case Analysis of Heuristics∗
Here we take the viewpoint of the thoughtful mathematician: The goal is to find an
approximation algorithm that runs in polynomial time and guarantees a solution
of a certain quality.
To start with, we consider a very simple example, the integer knapsack problem:
{
}
n
n
∑
∑
n
cj xj ∶ aj xj ≤ b, x ∈ ℤ+ ,
(IKP) Z = max
j=1
j=1
where {aj }nj=1 , b ∈ Z+ . Without loss of generality, we assume that aj ≤ b for j ∈ N
c
c
and a1 ≥ aj for j ∈ N∖{1}.
1
j
The greedy heuristic solution for IKP is xH = (⌊ ab ⌋, 0, … , 0) with value
1
Z H = cxH .
Theorem 6.3
ZH
≥ 12 .
Z
Proof. The solution to the linear programming relaxation of IKP is x1 = ab , xj = 0
c b
1
for j = 2, … , n giving an upper bound Z LP = a1 ≥ Z.
1
Now, as a1 ≤ b, ⌊ ab ⌋ ≥ 1. Setting ab = ⌊ ab ⌋ + f with 0 ≤ f < 1, we have that
1
b
⌊ ⌋
⌊ ab ⌋∕ ab = ba1
⌊ ⌋+f
1
1
a1
1
⌊ ab ⌋
1
≥ b
= 12 .
⌊ ⌋+⌊ b ⌋
1
b
a1
a1
b
c1 ⌊ ⌋
⌊ ⌋
H
H
So ZZ ≥ ZZLP = ab1 = ab1 ≥ 12 .
c1
a1
a1
◽
It is important to observe that the analysis depends on finding both a lower bound
on Z from the heuristic solution, and also an upper bound on Z coming from a
relaxation or dual solution.
As a second problem, we consider STSP on a complete graph with the edge
lengths satisfying the triangle inequality, that is, if ei ∈ E for i = 1, 2, 3 are the three
sides of a triangle, then cei + cej ≥ cek for i ≠ j ≠ k, i, j, k ∈ {1, 2, 3}. Note that when
this inequality holds, the shortest path between two nodes i, j is along the edge (i, j)
(see Figure 6.2).
To understand the heuristics and their analysis, we need to introduce Eulerian
graphs.
Definition 6.8
G = (V, E) is a Eulerian graph if the degree of each node is even.
6.7 Worst-Case Analysis of Heuristics
Figure 6.2
i+2
Triangle Inequality.
i +1
j−1
j
i
cij ≤ ci,i+1 + ci+1,i+2 + · · · + cj−1,j
Proposition 6.4 If G = (V, E) is a connected Eulerian graph and 𝑣 ∈ V is an arbitrary node, it is possible to construct a walk starting and ending at 𝑣 in which each
edge is traversed exactly once.
Note that a walk is an alternating set of nodes and edges 𝑣0 , e1 , 𝑣1 , e2 , … , er , 𝑣r ,
where ei = (𝑣i−1 , 𝑣i ) ∈ E for i = 1, … , r.
For the analysis below, we need the following.
Proposition 6.5 Given a complete graph H on node set V with edge lengths satisfying the triangle inequality, let G = (V, E) be a connected Eulerian subgraph of
H. Then the original graph contains a Hamiltonian (STSP) tour of length at most
∑
e∈E ce .
Proof. The proof is by construction. Suppose m =∣ E ∣ and 𝑣 = 𝑣0 , e1 , 𝑣1 , e2 , … ,
em , 𝑣m = 𝑣 is a walk through the edges of G, where each edge e1 , … , em occurs
once and ei = (𝑣i−1 , 𝑣i ) for i = 1, … , m. Consider the list of nodes encountered in
order 𝑣0 , 𝑣1 , … , 𝑣m . Suppose 𝑣ik is the kth distinct node to appear in the sequence.
Then 𝑣i1 , 𝑣i2 , … , 𝑣in , 𝑣in+1 is a tour with 𝑣i1 = 𝑣in+1 . We now estimate its length. By
the triangle property, the length of the subwalk between nodes 𝑣ik and 𝑣ik+1 is at
∑ik+1
least as long as the length of edge fk = (𝑣ik , 𝑣ik+1 ). More precisely, j=i
cej ≥ cfk .
k +1
∑n ∑ik+1
∑
∑n
◽
So the tour length k=1 cfk ≤ k=1 j=i +1 cej = e∈E ce .
k
Now, we can describe a first heuristic.
The Tree Heuristic for STSP
1. In the complete graph, find a minimum-length spanning tree with edges ET
∑
and length ZT = e∈ET ce .
2. Double each edge of ET to form a connected Eulerian graph.
3. Using Proposition 6.5, convert the Eulerian graph into a tour of length Z H .
107
108
6 Complexity and Problem Reductions
Note that in Step 1 the degree of each node of the tree is nonzero. So when the
edges are duplicated in Step 2, the degree of each node is even and positive.
ZH
≤ 2.
Z
Proposition 6.6
Proof. As every tour consists of a tree plus an additional edge, we obtain the lower
bound ZT ≤ Z. By construction, the length of the Eulerian subgraph is 2ZT . By the
tour construction procedure, Z H ≤ 2ZT provides the upper bound. Thus, we have
ZH
≤ ZT ≤ Z ≤ Z H .
◽
2
Now, we describe a second heuristic based on the construction of a shorter Eulerian subgraph. A matching is perfect if it is incident to every node of the graph.
The Tree/Matching Heuristic for STSP
1. In the complete graph, find a minimum-length spanning tree with edges ET
∑
and length ZT = e∈ET ce .
2. Let V ′ be the set of nodes of odd degree in (V, ET ). Find a perfect matching M
of minimum length ZM in the graph G′ = (V ′ , E′ ) induced on V ′ , where E′ is
the set of edges of ET with both endpoints in V ′ . (V, ET ∪ M) is a connected
Eulerian graph.
3. Using Proposition 6.5, convert the Eulerian graph into a tour of length Z C .
Note that here the perfect matching M has degree 1 for each node of V ′ , and
thus (V, ET ∪ M) has positive even degree at every node.
ZC
≤ 32 .
Z
Proposition 6.7
Proof. As above, ZT ≤ Z. Now, suppose without loss of generality that the optimal
tour of length Z is the tour 1, 2, … , n. Let j1 , j2 , … , j2k be the nodes of V ′ in increasing order. Consider the matchings M1 = {(j1 , j2 ), (j3 , j4 ), … , (j2k−1 , j2k )} of length
j1
j2
Figure 6.3 Optimal tour longer than
two matchings on V ′ .
M1
M2
j3
M2
M1
j6
M1
M2
j5
j4
6.8 Notes
ZM1 and M2 = {(j2 , j3 ), (j4 , j5 ), … , (j2k , j1 )} of length ZM2 , both with endpoints V ′ .
∑n−1
Again, by the triangle inequality cj1 ,j2 + cj2 ,j3 + … +cj2k ,j1 ≤ i=1 ci,i+1 + cn,1 = Z
(see Figure 6.3). But now ZM ≤ ZMi for i = 1, 2 and so 2ZM ≤ ZM1 + ZM2 =
cj1 ,j2 + cj2 ,j3 + … + cj2k ,j1 ≤ Z. Finally, again using Proposition 6.5, Z C ≤ ZT + ZM ≤
Z + Z∕2 = (3∕2)Z.
◽
6.8 Notes
6.2 An important step in understanding the distinction between easy and difficult
problems is the concept of a certificate of optimality, see Edmonds [101, 102].
6.3 Cook [78] formally introduced the class and showed the existence of an
-complete problem. The reduction of many decision versions of integer
and combinatorial optimization problems to a -complete problem was
shown in Karp [193, 194]. The book of Garey and Johnson [134] lists an enormous number of -complete problems and their reductions, including that
from 3-SAT to NODE COVER. For a site with a 2005 update, see Crescenzi and
Kann [85].
6.5 The equivalence of optimization and separation is shown in Grötschel et al.
[162, 163]. A more thorough exploration of the equivalence appears in their
book [164]. Other results of importance for integer programming concern the
difficulty of finding a short description of all facets for -hard problems
Papadimitriou and Yannakakis [244], and the polynomiality of integer programming with a fixed number of variables Lenstra [206]. Some separation
problems are examined in Chapter 9.
6.6 Yannakakis [302] showed that there is no polynomial-size extended formulation for the matching polytope under certain symmetry assumptions. He
showed that the fundamental importance of two concepts and a result that
is the basis of later work: the nonnegative rank of the slack matrix associated
with a polytope P gives a lower bound on the number of constraints needed
in an extended formulation of P. Theorem 6.1 is due to Rothvoss [260] and
Theorem 6.2 to Fiorini et al. [110]. Following on these important results it has
been shown that several other -hard problems cannot have polynomial
size extended formulations.
6.7 The first worst-case analysis of a heuristic for a scheduling problem is in Graham [160], but the analysis of bin packing heuristics of Johnson et al. [187]
seems to have initiated much of the work in this area. The tree/matching
heuristic for STSP is from Christofides [67].
For certain problems, it has been shown that finding a heuristic giving a performance guarantee of 𝛼 or better is only possible if = , while for others
109
110
6 Complexity and Problem Reductions
one can find so-called fully polynomial approximation schemes with performance guarantees of 𝛼 for any 𝛼 in a time polynomial in the input length and
1∕𝛼.
For two recent books on the design and analysis of approximation algorithms,
see Vazarani [286] and Williamson and Shmoys [293].
6.9 Exercises
1.
The 2-PARTITION problem is specified by n positive integers (a1 , … , an ).
∑
The problem is to find a subset S ⊂ N = {1, … , n} such that j∈S aj =
∑
j∈N ∖ S aj , or prove that it is impossible. Show that 2-PARTITION is polynomially reducible to 0–1 KNAPSACK. Does this imply that 2-PARTITION is
-complete?
2.
Show that SATISFIABILITY is polynomially reducible to STABLE SET and
thus that STABLE SET is -complete, where STABLE SET is the decision
problem related to finding a maximum weight set of nonadjacent nodes in a
graph.
3.
Show that STABLE SET is polynomially reducible to SET PACKING, where
SET PACKING is the decision problem related to finding a maximum weight
set of disjoint columns in a 0–1 matrix.
4.
Show that SATISFIABILTY is polynomially reducible to 3-SAT.
5.
Show that SET COVERING is polynomially reducible to UFL.
6.
Show that SET COVERING is polynomially reducible to DIRECTED
STEINER TREE.
7.
Given D = (V, A), ce for e ∈ A, a subset F ⊆ A, and a node r ∈ V, ARC ROUTING is the decision problem related to finding a minimum length directed
subtour that contains the arcs in F and starts and ends at node r. Show that
TSP is polynomially reducible to ARC ROUTING.
8.
∗ Show that the decision problem associated to IP is an integer programming
feasibility problem and is in .
9.
∑
Consider a 0–1 knapsack set X = {x ∈ {0, 1}n ∶ j∈N aj xj ≤ b} with
0 ≤ aj ≤ b for j ∈ N and let {xt }Tt=1 be the points of X. With it, associate the
bounded polyhedron Π1 = {𝜋 ∈ ℝn+ ∶ xt 𝜋 ≤ 1 for t = 1, … , T} with extreme
points {𝜋 s }Ss=1 . Consider a point x∗ with 0 ≤ xj∗ ≤ 1 for j ∈ N. )
6.9 Exercises
∑T
∑T
(i) Show that x∗ ∈ conv(X) if and only if min{ t=1 𝜆t ∶ x∗ ≤ t=1 xt 𝜆t , 𝜆 ∈
T
∗
1
ℝ+ } = max{x 𝜋 ∶ 𝜋 ∈ Π } ≤ 1.
(ii) Deduce that if x∗ ∉ conv(X), then for some s = 1, … , S, 𝜋 s x∗ > 1.
10.
11.
12.
Compare with Definition 6.3. co− is the class of decision problems with
the property that: for any instance for which the answer is NO, there is a
“short” (polynomial) proof of the NO. Verify that several of the decision problems associated to the problems with the Efficient Optimization property in
the first list at the beginning of the chapter lie in ∩ co− .
∑
∑
Consider the 0–1 knapsack problem: Z = max{ j∈N cj xj ∶ j∈N aj xj ≤ b, x ∈
{0, 1}n } with 0 < aj ≤ b for j ∈ N. Consider a greedy heuristic that chooses
the better of the integer round down of the linear programming solution,
and the best solution in which just one variable xk = 1, where ck = maxj cj .
Show that Z G ≥ 12 Z.
Consider the problem of finding a maximum cardinality matching from
Chapter 4. A matching M ⊆ E is maximal if M ∪ {f } is not a matching
for any f ∈ E ∖ M. Let Z be the size of a maximum matching. Show that
|M| ≥ 12 Z for any maximal matching M.
111
113
7
Branch and Bound
7.1 Divide and Conquer
Consider the problem:
Z = max{cx ∶ x ∈ S}.
How can we break the problem into a series of smaller problems that are easier,
solve the smaller problems and then put the information together again to solve
the original problem?
Proposition 7.1 Let S = S1 ∪ … ∪ SK be a decomposition of S into smaller sets,
and let Z k = max{cx ∶ x ∈ Sk } for k = 1, … , K. Then Z = maxk Z k .
A typical way to represent such a divide and conquer approach is via an enumeration tree. For instance, if S ⊆ {0, 1}3 , we might construct the enumeration
tree shown in Figure 7.1.
Here we first divide S into S0 = {x ∈ S ∶ x1 = 0} and S1 = {x ∈ S ∶ x1 = 1},
then S00 = {x ∈ S0 ∶ x2 = 0} = {x ∈ S ∶ x1 = x2 = 0}, S01 = {x ∈ S0 ∶ x2 = 1},
and so on. Note that a leaf of the tree Si1 i2 i3 is nonempty if and only if x = (i1 , i2 , i3 )
is in S. Thus, the leaves of the tree correspond precisely to the points of {0, 1}3
that we would examine if we carried out complete enumeration. Note that by
convention the tree is drawn upside down with its root at the top.
Another example is the enumeration of all the tours of the traveling salesman
problem. One way to divide up S, the set of all tours on four cities, is to take the
union of the sets S(12) , S(13) , S(14) where S(ij) is the set of all tours containing arc (ij).
Then S(12) is divided again into S(12)(23) and S(12)(24) , and so on. Note that at the first
level, we have arbitrarily chosen to branch on the arcs leaving node 1, and at the
second level on the arcs leaving node 2 that do not immediately create a subtour
with the previous branching arc. The resulting tree is shown in Figure 7.2. Here the
six leaves of the tree correspond to the (n − 1)! tours shown, where i1 i2 i3 i4 means
Integer Programming, Second Edition. Laurence A. Wolsey.
© 2021 John Wiley & Sons, Inc. Published 2021 by John Wiley & Sons, Inc.
Companion website: www.wiley.com/go/wolsey/integerprogramming2e
114
7 Branch and Bound
S
x1 = 0
x2 = 0
x1 = 1
S0
S1
S00
S01
x2 = 1
S10
S11
x3 = 1
x3 = 0
S000
Figure 7.1
S001
S010
S011
S100
S101
S110
S111
Binary enumeration tree.
(1, 2)
(1, 4)
(1, 3)
(2, 3)
(2, 4)
(2, 1)
(2, 4)
(2, 1)
(2, 3)
1234
1243
1342
1324
1432
1423
Figure 7.2
TSP enumeration tree.
that the cities are visited in the order i1 , i2 , i3 , i4 , i1 respectively. Note that this is an
example of multiway as opposed to binary branching, in which a set can be divided
into more than two parts.
7.2 Implicit Enumeration
We saw in Chapter 1 that complete enumeration is totally impossible for most
problems as soon as the number of variables in an integer program, or nodes in a
graph exceeds 20 or 30. So we need to do more than just divide indefinitely. How
can we use some bounds on the values of {Z k } intelligently? First, how can we put
k
together bound information? Note that as we are maximizing, we take Z = −∞
when Sk = ∅ and Z k = −∞ when no feasible solution in Sk has been found.
Proposition 7.2
Let S = S1 ∪ · · · ∪ SK be a decomposition of S into smaller sets,
k
and let Z k = max{cx ∶ x ∈ Sk } for k = 1, … , K, Z be an upper bound on Z k and Z k
k
be a lower bound on Z k . Then Z = maxk Z is an upper bound on Z and Z = maxk Z k
is a lower bound on Z.
7.2 Implicit Enumeration
Figure 7.3 Pruned by
optimality.
Max
S
20
20
Figure 7.4
bound.
Pruned by
S1
S
18
S1
S
13
S2
Max
20
27
25
20
15
20
S1
27
S2
26
20
21
18
S1
20
S2
S
13
25
25
15
26
21
S2
26
21
Now, we examine three hypothetical examples to see how bound information,
or partial information about a subproblem can be put to use. What can be deduced
about lower and upper bounds on the optimal value Z and which sets need further
examination in order to find the optimal value?
Example 7.1 In Figure 7.3, we show a decomposition of S into two sets S1 and
S2 as well as upper and lower bounds on the corresponding problems.
k
We note first that Z = maxk Z = max{20, 25} = 25 and Z = maxk Z k =
max{20, 15} = 20. This is clearly an improvement on the initial lower and upper
bounds of 13 and 27, respectively.
Second, we observe that as the lower and upper bounds on Z 1 are equal, Z 1 = 20,
and there is no further reason to examine the set S1 . Therefore, the branch S1 of
the enumeration tree can be pruned by optimality.
◽
Example 7.2 In Figure 7.4, we again decompose S into two sets S1 and S2 and
show upper and lower bounds on the corresponding problems.
k
We note first that Z = maxk Z = max{20, 26} = 26 and Z = maxk Z k =
max{18, 21} = 21.
Second, we observe that as the optimal value has value at least 21, and the upper
1
bound Z = 20, no optimal solution can lie in the set S1 . Therefore, the branch S1
of the enumeration tree can be pruned by bound.
◽
Example 7.3 In Figure 7.5, we again decompose S into two sets S1 and S2 with
different upper and lower bounds.
k
We note first that Z = maxk Z = max{24, 37} = 37 and Z = maxk Z k =
max{13, −∞} = 13. Here no other conclusion can be drawn and we need to
explore both sets S1 and S2 further.
◽
115
116
7 Branch and Bound
Max
S
24
13
S1
40
S2
S
37
24
13
S1
Figure 7.5
possible.
37
No pruning
13
S2
37
Based on these examples, we can list at least three reasons that allow us to prune
the tree and thus enumerate a large number of solutions implicitly.
(i) Pruning by optimality: Z t = {max cx ∶ x ∈ St } has been solved.
t
(ii) Pruning by bound: Z ≤ Z.
(iii) Pruning by infeasiblity: St = 𝜙.
If we now ask how the bounds are to be obtained, the reply is no different from
in Chapter 2. The primal (lower) bounds are provided by feasible solutions and the
dual (upper) bounds by relaxation or duality.
Building an implicit enumeration algorithm based on the above ideas is now in
principle a fairly straightforward task. There are, however, many questions that
must be addressed before such an algorithm is well defined. Some of the most
important questions are
What relaxation or dual problem should be used to provide upper bounds? How
should one choose between a fairly weak bound that can be calculated very rapidly
and a stronger bound whose calculation takes a considerable time?
How should the feasible region be separated into smaller regions S = S1 ∪ · · · ∪
SK ? Should we separate into two or more parts? Should we use a fixed a priori rule
for dividing up the set, or should the divisions evolve as a function of the bounds
and solutions obtained en route?
In what order should the subproblems be examined? Typically, there is a list of
active problems that have not yet been pruned. Should the next one be chosen on
the basis of last-in first-out, of best/largest upper bound first, or of some totally
different criterion?
These and other questions will be discussed further once we have seen an
example.
7.3 Branch and Bound: an Example
The most common way to solve integer programs is to use implicit enumeration, or
branch and bound, in which linear programming relaxations provide the bounds.
We first demonstrate the approach by an example.
7.3 Branch and Bound: an Example
Example 7.4
(7.1)
Z = max 4x1 − x2
7x1 − 2x2 ≤ 14
(7.2)
x2 ≤ 3
(7.3)
2x1 − 2x2 ≤ 3
(7.4)
x∈
ℤ2+ .
(7.5)
Bounding. To obtain a first upper bound, we add slack variables x3 , x4 , x5 and
solve the linear programming relaxation in which the integrality constraints
are dropped. The resulting optimal basis representation is
Z = max 59
7
− 47 x3 − 17 x4
x1
+ 17 x3 + 27 x4
= 20
7
+x4
= 3
x2
x +x5 = 23
− 27 x3 + 10
7 4
7
x1 , x2 , x3 ,
x4 ,
x5 ≥ 0.
Thus, we obtain an upper bound Z = 59
and a nonintegral solution (x1 , x2 ) =
7
( 20
,
3).
Is
there
any
straightforward
way
to
find a feasible solution? Apparently
7
not. As no feasible solution is yet available, we take as lower bound Z = −∞.
Branching. Now, because Z < Z, we need to divide or branch. How should we split
up the feasible region? One simple idea is to choose an integer variable that is
basic and fractional in the linear programming solution, and split the problem
into two about this fractional value. If xj = xj ∉ ℤ1 , one can take:
S1 = S ∩ {x ∶ xj ≤ ⌊xj ⌋}
S2 = S ∩ {x ∶ xj ≥ ⌈xj ⌉}.
It is clear that S = S1 ∪ S2 and S1 ∩ S2 = 𝜙. Another reason for this choice
is that the solution x of LP(S) is not feasible in either LP(S1 ) or LP(S2 ). This
implies that if there is no degeneracy (i.e. multiple optimal LP solutions), then
max{Z 1 , Z 2 } < Z, so the upper bound will strictly decrease.
Following this idea, as x1 = 20∕7 ∉ ℤ1 , we take S1 = S ∩ {x ∶ x1 ≤ 2} and S2 =
S ∩ {x ∶ x1 ≥ 3}. We now have the tree shown in Figure 7.6. The subproblems
(nodes) that must still be examined are called active. Note that the new nodes
immediately inherit the upper (dual) bound of their predecessor, so we have Z 1 =
Z 2 = 59
.
7
117
118
7 Branch and Bound
S
x1 ≤ 2
S1
59
7
Figure 7.6
Partial branch-and-bound tree 1.
−∞
x1 ≥ 3
S2
Choosing a Node. The list of active problems (nodes) to be examined now contains
S1 , S2 . We arbitrarily choose S1 .
Reoptimizing. How should we solve the new modified linear programs LP(Si ) for
i = 1, 2 without starting again from scratch?
As we have just added one single upper or lower bound constraint to the linear
program, our previous optimal basis remains dual feasible, and it is therefore natural to reoptimize from this basis using the dual simplex algorithm. Typically, only
a few pivots will be needed to find the new optimal linear programming solution.
Applying this to the linear program LP(S1 ), we can write the new constraint
x1 ≤ 2 as x1 + s = 2, s ≥ 0. Replacing the basic variable x1 using the equation
x1 + 17 x3 + 27 x4 = 20
permits us to rewrite the new constraint in terms of the
7
nonbasic variables as
− 17 x3 − 27 x4 + s = − 67 .
Thus, we have the dual feasible representation:
Z 1 = max 59
7
− 47 x3 − 17 x4
+ 17 x3 + 27 x4
x1
x2
=
20
7
+x4
= 3
2
10
− 7 x3 + 7 x4 +x5
= 23
7
1
2
− 7 x3 − 7 x4
+s = − 67
x1 , x2 , x3 ,
x4 ,
x5 , s ≥ 0.
After two simplex pivots, the linear program is reoptimized, giving:
Z 1 = max 15
2
− 12 x5 −3s
+s = 2
x1
− 12 x5
x2
+s = 12
−x5 −5s = 1
x3
x4 + 12 x5 +6s = 52
x1 , x2 , x3 , x4 , x5 ,
1 1
with Z 1 = 15
, and (x1 , x2 ) = (2, 12 ).
2
s
≥0
7.3 Branch and Bound: an Example
Figure 7.7
Partial branch-and-bound tree 2.
S
x1 ≤ 2
15
2
59
7
−∞
x1 ≥ 3
S1
S2
x2 = 0
x2 ≥ 1
S3
S4
Branching. S1 cannot be pruned, so using the same branching rule as before, we
create two new nodes S3 = S1 ∩ {x ∶ x2 ≤ 0} and S4 = S1 ∩ {x ∶ x2 ≥ 1}, and
add them to the node list. The tree is now as shown in Figure 7.7.
Choosing a Node. The active node list now contains S2 , S3 , S4 . Arbitrarily choosing
S2 , we remove it from the node list and examine it in more detail.
Reoptimizing. To solve LP(S2 ), we use the dual simplex algorithm in the same
way as above. The constraint x1 ≥ 3 is first written as x1 − t = 3, t ≥ 0, which
expressed in terms of the nonbasic variables becomes
1
x + 27 x4 + t = − 17 .
7 3
As x3 , x4 , t ≥ 0, this equation cannot be satisfied. So the resulting linear program
is infeasible, Z 2 = −∞, and node S2 is pruned by infeasibility.
Choosing a Node. The node list now contains S3 , S4 . Arbitrarily choosing S4 , we
remove it from the list.
Reoptimizing. S4 = S ∩ {x ∶ x1 ≤ 2, x2 ≥ 1}. The resulting linear program has opti4
4
mal solution x = (2, 1) with value 7. As x is integer, Z 4 = 7.
Updating the Incumbent. As the solution of LP(S4 ) is an integer, we update the
value of the best feasible solution found Z ← max{Z, 7}, and store the corresponding solution (2, 1). S4 is now pruned by optimality. Note that the value Z
is applicable at each node of the tree.
Choosing a Node. The node list now contains only S3 .
Reoptimizing. S3 = S ∩ {x ∶ x1 ≤ 2, x2 ≤ 0}. The resulting linear program has opti3
mal solution x = ( 32 , 0) with value 6. As Z = 7 > Z 3 = 6, the node is pruned by
bound.
Choosing a Node. As the node list is empty, the algorithm terminates. The incumbent solution x = (2, 1) with value Z = 7 is optimal.
The complete branch-and-bound tree is shown in Figure 7.8. In Figure 7.9, we
show graphically the feasible node sets Si , the branching, the relaxations LP(Si ),
and the solutions encountered in the example.
◽
119
120
7 Branch and Bound
Max
Figure 7.8
59
7
Complete branch-and-bound tree.
S
x1 ≤ 2
15
2
x2 = 0
6
S3
x2
x1 ≥ 3
S1
S2
−∞
x2 ≥ 1
S4
7
7
x1 ≤ 2
x1 ≥ 3
( 20
7 , 3)
1st bound constraints
2nd bound constraints
x2 ≥ 1
(2, 1)
(2, 12 )
x2 ≤ 0
Figure 7.9
x1
Division of the feasible region.
7.4 LP-Based Branch and Bound
In Figure 7.10, we present a flowchart of a simple branch and bound algorithm.
Though not appearing in Example 7.4, the flowchart includes an initial heuristic
step designed to find a good starting solution. We then discuss in more detail some
of the practical aspects of developing and using such an algorithm.
7.4 LP-Based Branch and Bound
Initialization
Initial problem S with
reformulation P on list
Z = −∞
Incumbent x∗ void
Call primal heuristic
If solution xH of value Z H ,
Z = Z H , x∗ = xH
List
Empty?
Y
N
Remove problem S i from list
with formulation P i
i
and dual bound Z
Y
i
If Z ≤ Z, prune by bound
N
Solve LP relaxation over P i
i
Dual bound Z = LP value
i
x (LP ) = LP solution
Y
Y
If P i is empty, prune by infeasibility
N
i
If Z ≤ Z, prune by bound
N
Y
If xi (LP ) integer, update primal bound
i
Z = Z and incumbent x∗ = xi (LP )
Prune by optimality
N
Y
Figure 7.10
Return two subproblems S1i and S2i
with formulations P1i and P2i
i
and upper bounds Z
Branch-and-bound flow chart.
STOP
Incumbent optimal
121
122
7 Branch and Bound
Storing the Tree
In practice we do not store a tree, but just the list of active nodes or subproblems
that have not been pruned and that still need to be explored further. Here the question arises of how much information should kept. Should we keep a minimum of
information and be prepared to repeat certain calculations, or should we keep all
the information available? At a minimum, the best-known dual bound and the
variable lower and upper bounds needed to restore the subproblem are stored.
Usually, an optimal or near-optimal basis is kept so that the linear programming
relaxation can be reoptimized rapidly.
Returning to the questions raised earlier, there is no single answer that is best for
all instances. The rules used are based on a combination of theory, common sense,
and practical experimentation. In our example, the question of how to bound
was solved by using an LP relaxation; how to branch was solved by choosing an
integer variable that is fractional in the LP solution. However, as there is typically
a choice of a set C of several candidates, we need a rule to choose between them.
One common, but not very effective, choice is the most fractional variable:
arg max min[ fj , 1 − fj ],
j∈C
where fj = xj∗ − ⌊xj∗ ⌋, so that a variable with fractional value fj = 12 is best. Other
rules, based on the idea of estimating the cost of forcing the variable xj to become
integer, are presented in the next section.
Choosing a node
This question was avoided in Example 7.4 by by making an arbitrary choice. In
practice, there are several contradictory arguments that can be invoked:
(i) It is only possible to prune the tree significantly with a (primal) feasible solution, giving a hopefully good lower bound. Therefore, we should descend as
quickly as possible in the enumeration tree to find a first feasible solution. This
suggests the use of a Depth-First Search strategy. Another argument for such a
strategy is the observation that it is always easy to resolve the linear programming relaxation when a simple constraint is added, and the optimal basis is
available. Therefore, passing from a node to one of its immediate descendants
is to be encouraged. In the example, this would imply that after treating node
S1 , the next node treated would be S3 or S4 rather than S2 .
(ii) To minimize the total number of nodes evaluated in the tree, the optimal strategy is to always choose the active node with the best (largest upper) bound (i.e.
choose node s, where Z s = maxt Z t ). With such a rule, we will never divide any
node whose upper bound Z t is less than the optimal value Z. This leads to a
Best Node First strategy. In Example 7.4, this would imply that after treating
7.5 Using a Branch-and-Bound/Cut System
node S1 , the next node chosen would be S2 with bound 59
from its predecessor,
7
15
rather than S3 or S4 with bound 2 .
In practice, a compromise between these ideas is often adopted, involving an
initial depth-first strategy until at least one feasible solution has been found, followed by a strategy mixing best node and depth first so as to try to prove optimality
and also find better feasible solutions.
7.5 Using a Branch-and-Bound/Cut System
To go from a simple LP-based branch-and-bound algorithm to the highly impressive branch-and-cut algorithms that are now available, many important ideas and
options have been introduced, some of which we now describe. The three most
important are probably:
1. Preprocessing to clean up and tighten the model and possibly reduce its size
(described in this chapter),
2. Cutting planes to improve the formulation in the course of the algorithm and
provide better dual bounds (see Chapters 8 and 9),
3. Primal heuristics to find good primal feasible solutions and provide better primal bounds (see Chapter 13),
Other important options include:
A choice of linear programming algorithms, primal or dual simplex, or an interior point algorithm
● A choice of pivot strategies for the simplex algorithms
● A choice of branching and node selection strategies including strong branching
and pseudo-costs
● Special modeling functions: special ordered sets and semicontinuous variables
● Reduced cost fixing (see Exercise 7)
● User-selected priorities among the integer variables and among branching directions
● Symmetry breaking
●
We now describe in a little more detail these options, several of which can be
modified by the user.
Simplex Strategies
Though the linear programming algorithms are finely tuned, the default strategy
will not be best for all classes of problems. Different simplex pricing strategies may
123
124
7 Branch and Bound
make a huge difference in running times for a given class of models, so if similar models are resolved repeatedly or the linear programs seem very slow, some
experimentation by the user with pricing strategies may be worthwhile. In addition, on very large models, interior point methods may be best for the solution of
the first linear program. Unfortunately, up to now such methods are still not good
for reoptimizing quickly at each node of the tree.
Branching and Node Selection
We assume a maximization problem. To choose a node from the node list, a
natural idea is to try to estimate the optimal value that will be obtained from
pursuing that branch. For an integer variable xj taking a fractional value xj∗ ,
the down-fractionality is fj = xj∗ − ⌊xj∗ ⌋ and the up-fractionality is 1 − fj . Now,
let Pj− , Pj+ , called pseudo-costs, be estimates of the cost per unit of forcing xj
down, respectively up, to become integral. Then the estimated cost of setting
xj → ⌊xj∗ ⌋ is the down degradation D−j = fj Pj− and the cost of setting xj → ⌈xj∗ ⌉ is
D+j = (1 − fj )Pj+ . Now, if ZLP is the value of the LP solution at a node, one estimate
∑
of the value of that node is ZLP − j min[D−j , D+j ].
The question that arises is how to obtain the pseudocosts Pj− , Pj+ . Let Zj− be the
cost when resolving the LP with xj = ⌊xj∗ ⌋, with Zj+ defined analogously. Then
natural estimates are Pj− =
ZLP −Zj−
fj
and Pj+ =
ZLP −Zj+
1−fj
. However, as calculating such
estimates at each node is time-consuming, the same pseudo-cost values are used at
different nodes of the tree and even then the values of Zj− , Z+− may only be approximated by carrying out a few dual simplex pivots.
These values can also be used to choose a branching variable. Two possible criteria designed to choose a variable for which the degradations due to integrality
are important are ̂j =argmaxj [(D−j + D+j )] or ̂j =argmaxj [min(D−j , D+j )].
Strong Branching
The idea behind strong branching is that on difficult problems it should be worthwhile to do more work to try to choose a better branching variable. The system
chooses a set C of basic integer variables that are fractional in the LP solution,
branches up and down on each of them in turn, and reoptimizes on each branch
either to optimality, or for a specified number of dual simplex pivots. Now, for
each variable j ∈ C, it has upper bounds ZjD for the down-branch and ZjU for the
up-branch. The variable having the largest effect (smallest dual bound)
j∗ = arg min max[ZjD , ZjU ]
j∈C
7.5 Using a Branch-and-Bound/Cut System
is then chosen, and branching really takes place on this variable. Obviously, solving
two LPs for each variable in C is costly, so such branching is either used selectively
as a default or can be called by the user.
Special Ordered Sets
A special ordered set of type 1 (SOS1) is a set of variables x1 , … , xk of which at most
one can be positive. To see why such sets are interesting, consider the special SOS1
case, also called a generalized upper bound (GUB) constraint, in which x ∈ {0, 1}n .
Now, the set can be expressed explicitly in the form
k
∑
xj = 1
j=1
with xj ∈ {0, 1} for j = 1, … , k. If the linear programming solution x∗ has some
of the variables x1∗ , … , xk∗ fractional, then the standard branching rule is to
impose S1 = S ∩ {x ∶ xj = 0} and S2 = S ∩ {x ∶ xj = 1} for some j ∈ {1, … , k}.
However, because of the SOS1 constraint, {x ∶ xj = 0} leaves k − 1 possibilities
{x ∶ xi = 1}i≠j , whereas {x ∶ xj = 1} leaves only one possibility. So set S1 is
typically a much larger set than set S2 and the tree is unbalanced.
SOS1 branching is designed to provide a more balanced division of S into S1
and S2 . Specifically, the user specifies an ordering of the variables in the SOS1 set
j1 , … , jk , and the branching scheme is then to set
S1 = S ∩ {x ∶ xji = 0 i = 1, … , r} and
S2 = S ∩ {x ∶ xji = 0 i = r + 1, … , k},
∑t
where r = min{t ∶ i=1 xj∗ ≥ 12 }. In many cases, such a branching scheme is much
i
more effective than the standard scheme of branching on a single variable and the
number of nodes in the tree is significantly reduced.
∑k
SOS2 are sets of the form {𝜆 ∈ ℝk+ ∶ i=1 𝜆i = 1} in which at most two variables can be nonzero and if two are nonzero they must be adjacent, i.e. xj and xj+1
for some j ∈ [1, k − 1]. They are used among others to linearize one-dimensional
nonlinear functions. In Figure 7.11, the nonlinear function f ∶ ℝ1 → ℝ1 is represented over the interval [x1 , xk ] by the piecewise linear function f with break points
∑k
∑k
x1 , … , xk . Using the linear constraints x = i=1 𝜆i xi and f (x) = i=1 𝜆i f (xi ) and
imposing the SOS2 condition, we have that x = 𝜆i xi + (1 − 𝜆i )xi+1 with 0 < 𝜆i ≤ 1
for some i and f (x) = 𝜆i f (xi ) + (1 − 𝜆i )f (xi+1 ) as required. So separable functions of
∑n
the form f (x1 , … , xn ) = j=1 fj (xj ) can be linearized in this way.
125
126
7 Branch and Bound
f (x)
f¯ (x)
x1
Figure 7.11
x2
x3
x4
x5
Piecewise linear approximation.
Semicontinuous Variables
If x = 0 or 𝓁 ≤ x ≤ u with 𝓁 > 0, this can be modeled as a semicontinuous variable
sc(x, 𝓁, u). Note that if, at some stage in the tree, the lower bound on x is tightened
to 𝓁 ′ > 0, the semi-continuous variables can be replaced by a normal variable with
max[𝓁, 𝓁 ′ ] ≤ x ≤ u. On the other hand, if the upper bound on x becomes u′ < 𝓁,
we can be set x = 0.
Indicator Variables
Suppose that a constraint ax ≤ b is active when some logical condition is satisfied,
represented by an indicator variable z ∈ {0, 1} taking the value z = 1. Certain MIP
systems accept such variables and handle them directly, rather than introducing
a big M constraint of the form ax ≤ b + M(1 − z) that can lead to numerical problems.
Priorities
Priorities allow the user to tell the system the relative importance of the integer
variables. The user provides a file specifying a value (importance) of each integer
variable. When it has to decide on a branching variable, the system will choose
the highest priority integer variable whose current linear programming value is
fractional. At the same time, the user can specify a preferred branching direction
telling the system which of the two branches to explore first.
Symmetry Breaking/Orbital Branching
Many problem formulations contain symmetries, meaning that certain variables
can be interchanged so that one feasible solution is converted into another feasible
7.5 Using a Branch-and-Bound/Cut System
solution of the same value. This is the case in graph coloring in which the colors
can be interchanged, or in room assignments, when the rooms are identical. To
give an example, consider the simple 0–1 integer program:
max 3
3
∑
j=1
xj + 2
6
∑
xj
j=4
x1 + x2 + x3 ≤ 2
x4 + x5 + x6 ≥ 1
xi + xj + xk ≤ 2 for 1 ≤ i ≤ 3, 4 ≤ j, k ≤ 6, j ≠ k
x ∈ {0, 1}6 .
It is not difficult to see that variables {1, 2, 3} are interchangeable and also variables {4, 5, 6}. What are the consequences when branching?
Before pursuing the example, we now formalize a little. We consider the problem
max{cx ∶ Ax ≤ b, x ∈ {0, 1}n }.
Given a permutation 𝜋 of the columns {1, … , n} and a vector x1 , … , xn , 𝜋(x) =
(x𝜋(1) , … , x𝜋(n) ). Note that 𝜋 can also be represented by the n by n matrix P with
pi,𝜋(i) = 1 for all i and pij = 0 otherwise.
Let G(A, b, c) be the set of column permutations P for which there exists a row
permutation R such that RAP = A, Rb = b, and cP = c.
Proposition 7.3 Suppose that x ∈ ℝn+ satisfies Ax ≤ b and 𝜋 ∈ G(A, b, c), then
𝜋(x) satisfies Ax ≤ b and cx = c𝜋(x).
Proof. Rewrite Ax ≤ b as RAPx ≤ Rb, or RA𝜋(x) ≤ Rb. As multiplication by R is
just a permutation of the rows, this is the same as A𝜋(x) ≤ b.
◽
For a column j, let Orb(j) = {k ∶ 𝜋(j) = k for some 𝜋 ∈ G(A, b, c)}
Proposition 7.4 At the root node, consider branching on xi with xi = 1 on the left
branch and xi = 0 on the right branch. If j ∈ Orb(i), every solution x̂ on the right
branch with xj = 1 has an equivalent solution in the left branch. Thus, the right
branch can be replaced by a branch with xj = 0 for all j ∈ Orb(i).
Proof. Take i = 1 and j = 2 wlog. The solution x̂ = (0, 1, x̂ 3 , … , x̂ n ) lies on the right
branch. As 2 ∈ Orb(1), there is a permutation 𝜋 ∈ G(A, b, c) interchanging 1 and 2.
Thus, the solution (1, 0, x̂ 3 , … , x̂ n ) is equivalent to x̂ . It lies in the left branch. So
any solution with x2 = 1 can be excluded on the right branch.
◽
127
128
7 Branch and Bound
12
12
1
1
x1 = 1
9
2
x4 = 1
8
x1 = 0
4
3
x4 = 0
x4 = 1
8
8
5
6
9
9
x4 = 0
7
8
x4 = 1
8
4
(a)
Figure 7.12
x1 , x2 , x3 = 0
x1 = 1
2
3
6
x4 , x5 , x6 = 0
5
6
(b)
(a) Standard branching. (b) Orbital branching
Note that for a node further down the enumeration tree, variables that are fixed
to 1 on the path will decrease the set of permutations and thus break up some of
the orbits into smaller orbits.
Returning to the small 0–1 integer program above, G(A, b, c) consists of all permutations of {1, 2, 3} and all permutations of {4, 5, 6}. Thus, Orb(1) = Orb(2) =
Orb(3) = {1, 2, 3} and Orb(4) = Orb(5) = Orb(6) = {4, 5, 6}.
Using standard branching, the calculations are
Node 1. ZLP = 12, x∗ = ( 23 , 23 , 23 , 23 , 23 , 23 )
Node 2. ZLP = 9, x∗ = (1, 1, 0, 12 , 12 , 12 )
Node 3. ZLP = 9, x∗ = (0, 1, 1, 12 , 12 , 12 )
Node 4. ZLP = 8, x∗ = (1, 1, 0, 1, 0, 0). New incumbent Z = 8. Prune node by optimality
Node 5. ZLP = 8, x∗ = (1, 1, 0, 0, 1, 0). Prune node by optimality/bound
Node 6. ZLP = 8, x∗ = (0, 1, 0, 1, 0, 0). Prune node by optimality/bound
Node 7. ZLP = 8, x∗ = (0, 1, 1, 0, 0, 1). Prune node by optimality/bound
All nodes are pruned.
Using orbital branching, the calculations are
Nodes 1 and 2 are unchanged.
At node 3, x1 = x2 = x3 = 0 as xj = 0 for j ∈ Orb(1). Now, ZLP = 6, x∗ =
(0, 0, 0, 1, 1, 1). Incumbent Z = 6. Node pruned by optimality.
Node 4 is unchanged. New incumbent Z = 8.
At node 5. For the set of solutions with x1 = 1, Orb(4) = {4, 5, 6} is unchanged, so
we can add x4 = x5 = x6 = 0. Now ZLP = 6, x∗ = (1, 0, 1). Node pruned by optimality/bound.
All nodes are pruned. The corresponding trees are shown in Figure 7.12.
7.6 Preprocessing or Presolve
7.6 Preprocessing or Presolve
Before solving a linear or integer program, it is natural to check that the formulation is “sensible” and as strong as possible given the information available. All
the commercial branch-and-cut systems carry out such a check, called Preprocessing or Presolve. The basic idea is to try to quickly detect and eliminate redundant
constraints and variables, and tighten bounds where possible. Then if the resulting linear/integer program is smaller/tighter, it will typically be solved much more
quickly. This is especially important in the case of branch-and-bound because tens
or hundreds of thousands of linear programs may need to be solved.
Linear Programming Preprocessing
First, we demonstrate with an example.
Example 7.5
Consider the linear program
max 2x1 + x2 − x3
5x1 − 2x2 + 8x3 ≤ 15
8x1 + 3x2 − x3 ≥ 9
x1 + x2 + x3 ≤ 6
0 ≤ x1 ≤ 3
0 ≤ x2 ≤ 1
1 ≤ x3 .
Tightening Bounds. Isolating variable x1 in the first constraint, we obtain
5x1 ≤ 15 + 2x2 − 8x3 ≤ 15 + 2 × 1 − 8 × 1 = 9,
where we use the bound inequalities x2 ≤ 1 and −x3 ≤ −1. Thus, we obtain the
tightened bound x1 ≤ 95 .
Similarly, isolating variable x3 , we obtain
8x3 ≤ 15 + 2x2 − 5x1 ≤ 15 + 2 × 1 − 5 × 0 = 17,
and the tightened bound x3 ≤ 17
.
8
Isolating variable x2 , we obtain
2x2 ≥ 5x1 + 8x3 − 15 ≥ 5 × 0 + 8 × 1 − 15 = −7.
Here the existing bound x2 ≥ 0 is not changed.
129
130
7 Branch and Bound
Turning to the second constraint, isolating x1 and using the same approach, we
obtain 8x1 ≥ 9 − 3x2 + x3 ≥ 9 − 3 + 1 = 7, and an improved lower bound x1 ≥ 78 .
No more bounds are changed based on the second or third constraints. However,
as certain bounds have been tightened, it is worth passing through the constraints
again.
Isolating x3 in constraint 1 now gives 8x3 ≤ 15 + 2x2 − 5x1 ≤ 15 + 2 − 5 × 78 =
101
. Thus, we have the new bound x3 ≤ 101
.
8
64
Redundant Constraints. Using the latest upper bounds in constraint 3, we see that
x1 + x2 + x3 ≤
101
9
+1+
< 6,
5
64
and so this constraint is redundant and can be discarded. The problem is now
reduced to
max
2x1
+x2
−x3
5x1
−2x2
+8x3
≤ 15
8x1
+3x2
−x3
≥9
7
≤ x1
8
≤ 95 ,
0 ≤ x2 ≤ 1, 1 ≤ x3 ≤ 101
.
64
Variable Fixing (by Duality). Considering variable x2 , observe that increasing its
value makes all the constraints (other than its bound constraints) less tight. As
the variable has a positive objective coefficient, it is advantageous to make the
variable as large as possible, and thus set it to its upper bound. Another way
to arrive at a similar conclusion is to write out the LP dual. For the dual constraint corresponding to the primal variable x2 to be feasible, namely −2u1 +
3u2 + 1u3 ≥ 1 with u1 , u3 ≥ 0, u2 ≤ 0, the dual variable u3 associated with the
constraint x2 ≤ 1 must be positive. This implies by complementary slackness
that x2 = 1 in any optimal solution.
Similarly, decreasing x3 makes the constraints less tight. As the variable has a
negative objective coefficient, it is best to make it as small as possible, and thus set
it to its lower bound x3 = 1. Finally, the LP is reduced to the trivial problem:
}
{
7
9
.
max 2x1 ∶ ≤ x1 ≤
8
5
◽
Formalizing the above ideas is straightforward.
Proposition 7.5
0, 1, … , n}.
Consider the set S = {x ∶ a0 x0 +
∑n
j=1 aj xj ≤ b, lj ≤ xj ≤ kj for j =
7.6 Preprocessing or Presolve
(i) Bounds on Variables. If a0 > 0, then
⎞/
⎛
∑
∑
⎜
aj lj −
a j kj ⎟ a 0 ,
x0 ≤ b −
⎟
⎜
j≥1∶a
>0
j≥1∶a
<0
j
j
⎠
⎝
and if a0 < 0, then
⎛
⎞/
∑
∑
aj lj −
a j kj ⎟ a 0 .
x0 ≥ ⎜b −
⎜
⎟
j≥1∶aj >0
j≥1∶aj <0
⎝
⎠
∑n
(ii) Redundancy. The constraint a0 x0 + j=1 aj xj ≤ b is redundant if
∑
∑
a j kj +
aj lj ≤ b.
j∶aj >0
j∶aj <0
(iii) Infeasibility. S = ∅ if
∑
∑
aj lj +
aj kj > b.
j∶aj >0
j∶aj <0
(iv) Variable Fixing. For a maximization problem in the form: max{cx ∶ Ax ≤
b, l ≤ x ≤ k}, if aij ≥ 0 for all i = 1, … , m and cj < 0, then xj = lj . Conversely,
if aij ≤ 0 for all i = 1, … , m and cj > 0, then xj = kj .
Integer Programming Preprocessing
Turning now to integer programming problems, preprocessing can sometimes be
taken a step further. Obviously, if xj ∈ Z 1 and the bounds lj or kj are not integer,
we can tighten to
⌈lj ⌉ ≤ xj ≤ ⌊kj ⌋.
For mixed integer programs with variable upper and lower bound constraints lj xj ≤
yj ≤ kj xj with xj ∈ {0, 1}, it is also important to use the tightest bound information.
Generating Logical Inequalities
For 0–1 integer programs, it is common to look for simple “logical” or “Boolean”
constraints involving only one or two variables, and then either add them to the
problem or use them to fix some variables. Again, we demonstrate by example.
Example 7.6
Consider the set of constraints involving four 0–1 variables:
7x1 +3x2 −4x3 −2x4 ≤ 1
−2x1 +7x2 +3x3 +x4 ≤ 6
−2x2 −3x3 −6x4 ≤ −5
−2x3
≥ −1
3x1
x
∈ {0, 1}4 .
131
132
7 Branch and Bound
Examining row 1, we see that if x1 = 1, then necessarily x3 = 1, and similarly x1 = 1
implies x4 = 1. This can be formulated with the linear inequalities x1 ≤ x3 and
x1 ≤ x4 . We see also that the constraint is infeasible if both x1 = x2 = 1 leading
to the constraint x1 + x2 ≤ 1.
Row 2 gives the inequalities x2 ≤ x1 and x2 + x3 ≤ 1.
Row 3 gives x2 + x4 ≥ 1 and x3 + x4 ≥ 1.
Row 4 gives x1 ≥ x3 .
Combining Pairs of Logical Inequalities. We consider pairs involving the same
variables.
From rows 1 and 4, we have x1 ≤ x3 and x1 ≥ x3 , which together give x1 = x3 .
From rows 1 and 2, we have x1 + x2 ≤ 1 and x2 ≤ x1 which together give x2 = 0.
Now, from x2 + x4 ≥ 1 and x2 = 0, we obtain x4 = 1.
Simplifying. Making the substitutions x2 = 0, x3 = x1 , x4 = 1, all four constraints of
the feasible region are redundant, and we are left with x1 ∈ {0, 1}, so the only
feasible solutions are (1, 0, 1, 1) and (0, 0, 0, 1).
◽
To formalize these ideas, it is useful to consider the complement variable of a 0–1
∑n
variable zj , namely zj = 1 − zj . Now, observe that any 0–1 knapsack set: j=1 a′j zj ≤
∑
n
b′ , z ∈ {0, 1}n can be rewritten as j=1 aj xj ≤ b, x ∈ {0, 1}n , where aj = |a′j | for all
∑
′
′
j, xj = zj if aj > 0, xj = zj if aj < 0 and b = b′ − j∶a′ <0 a′j . Note that here aj ≥ 0 for
j
all j = 1, … , n.
Proposition 7.6 Given a 0–1 knapsack set in the form X = {x ∈ {0, 1}n ∶
∑n
j=1 aj xj ≤ b} with aj ≥ 0 for all j,
(i) X = ∅ if b < 0.
∑n
(ii) X = {0, 1}n if j=1 aj ≤ b. In other words, the constraint is redundant.
(iii) If ak > b, then xk = 0 in all feasible solutions.
(iv) If aj + ak > b with j ≠ k, then xj + xk ≤ 1 in all feasible solutions.
Combining Pairs of Logical Inequalities
(v) If xj + xk ≤ 1 and xj + xk ≤ 1 (xj ≤ xk ), then xj = 0.
(vi) If xj + xk ≤ 1 and xj + xk ≤ 1 (xj + xk ≥ 1), then xj + xk = 1.
(vii) If xj + xk ≤ 1 and xj + xk ≤ 1, then xk = 1.
The logical inequalities can also be viewed as providing a foretaste of the valid
inequalities to be developed in Chapter 8.
7.6 Preprocessing or Presolve
Clique Finding
First we consider an example:
Suppose that we have found the three inequalities in 0, 1 variables x2 + x4 ≤
1, x2 ≤ x7 , and x4 ≤ x7 . These can be replaced by the stronger constraint x2 +
x4 ≤ x7 . One way to see this is to rewrite the last two constraints as x2 + x7 ≤ 1
and x4 + x7 ≤ 1. Now, the three constraints be viewed as representing edge constraints in a stable set problem on the nodes representing x2 , x4 , and x7 . As the
edges form a clique, this gives the clique constraint x2 + x4 + x7 ≤ 1.
To generalize, construct a graph with 2n nodes representing each variable xi and
its complement xi for all i. Add an edge between nodes xi and xj when xi + xj ≤ 1, an
edge between xi and xj whenever xi ≤ xj and an edge between xi and xj whenever
xi + xj ≥ 1. Find a maximal clique C = (C+ , C− ) in the graph, where C+ are the
nodes corresponding to a variable xi and C− to variables xi . This gives the valid
clique constraint
∑
∑
xi +
(1 − xj ) ≤ 1.
i∈C+
j∈C−
Strengthening Inequalities
Here we first state a simple result that can be used to strengthen certain inequalities before giving an example.
Proposition 7.7 Consider a constraint 𝑤 + ax ≥ b where 𝑤 ∈ ℝ1+ and x ∈ ℤ1+ .
(i) If a > b > 0, the constraint can be replaced by the tighter constraint, 𝑤 + bx ≥ b.
(ii) Consider a constraint 𝑤 + ax ≤ b, where 𝑤 ≤ W and x ≤ k ∈ ℤ1 , x ∈ ℤ1 .
If a > 𝛼 = W + ka − b > 0, the constraint can be replaced by
𝑤 + 𝛼x ≤ W + 𝛼(k − 1).
Proof.
(i) A point (𝑤, x) ∈ ℝ1+ × ℤ1+ is feasible for the two variants of the constraint if
and only if either 𝑤 ≥ b or x ≥ 1.
(ii) If the constraint is nonredundant, 𝛼 = W + ka − b > 0. Setting 𝑤 = W − 𝑤
and x = k − x, we obtain 𝑤 + ax ≥ W + ka − b with 𝑤 ∈ ℝ1+ and x ∈ ℤ1+ . By
(i), this can be replaced by 𝑤 + 𝛼x ≥ 𝛼, or in terms of the original variables
𝑤 + (W + ka − b)x ≤ W + (W + ka − b)(k − 1).
◽
133
134
7 Branch and Bound
Example 7.7 Consider a constraint 6y1 − 11y2 − x1 + 12x2 ≤ 54 with bounds
y1 ≤ 2, y2 ≥ −1, x1 ≥ 3, x2 ≤ 3, x ∈ ℤ2 . Now, using the bounds, 𝑤 = 6y1 − 11y2 −
x1 ≤ 12 + 11 − 3 = 20. So W = 20, a = 12 and 𝛼 = 2. Setting 𝑤 = 20 − 𝑤 and
x2 = 3 − x2 , we obtain: 𝑤 + 12x2 ≥ 2 with 𝑤 ∈ ℝ1+ , x2 ∈ ℤ1+ . By (i) of Proposition 7.7, this can be replaced by 𝑤 + 2x2 ≥ 2, or in terms of the original
variables
6y1 − 11y2 − x1 + 2x2 ≤ 24.
◽
Numerous other tests, such as probing or searching for disconnected components, have been incorporated into the systems and are carried out automatically,
so that the user has in most cases little or no reason to intervene.
7.7 Notes
7.2 The first paper presenting a branch-and-bound algorithm for integer programming is by Land and Doig [201]. The two-way branching scheme commonly
used is from Dakin [88]. Little et al. [211] present a computationally successful application to the TSP problem using an assignment relaxation. Balas [20]
developed an algorithm for 0–1 problems using simple tests to obtain dual
bounds and check primal feasibility.
7.4 Almost all mixed integer programming codes since the 1960s have been linear programming based branch-and-bound codes. Around the year 2000, violated valid inequalities were added automatically at the top node, leading to
so-called cut-and-branch and when cuts were also added elsewhere in the tree,
the name branch-and-cut became common. More references are given in the
notes for Chapter 9.
7.5 An early discussion of important elements of commercial codes can be found
in Beale [36]. GUB/SOS branching is from Beale and Tomlin [37], probing
from Guignard and Spielberg [169], and strong branching from Applegate
et al. [13]. Constraint branching was used for TSP problems in Clochard
and Naddef [72] and by Cook et al. [81] in their implementation of basis
reduction for integer programming based upon the fundamental paper of
Lenstra [206]. Experiments with various branch-and-bound strategies are
reported in Linderoth and Savelsbergh [209] and more recently in Morrison
et al. [231]. Branching rules are studied in Achterberg et al. [6].
As solving linear programs forms such an important part of an integer programming algorithm, improvements in solving linear programs are crucial.
All recent commercial codes include an interior point algorithm, as for many
large linear programs, the latter algorithm is faster than the simplex method.
7.8 Exercises
However, because reoptimization with the simplex method is easier than with
interior point codes, the simplex method is still used in branch-and-bound.
Improving reoptimization with interior point codes is still a major challenge.
For recent work on the role of interior point algorithms, see Bertold et al. [47].
Using the symmetry groups to break symmetries was introduced in Margot
[221] and the use of orbits for branching in Margot [222]. In [223], he discusses in detail the different ways that have been proposed to break symmetries. Orbital branching is from Ostrowski [237] and Ostrowski et al. [238].
For a recent computational study of different symmetry-breaking methods,
see Pfetsch and Rehn [249].
Knapsack problems, in which the linear programming relaxations can be
solved by inspection, have always been treated by specialized codes; see the
books by Martello and Toth [224] and Kellerer et al. [195].
7.6 Preprocessing is crucially important for the rapid solution of linear programs.
Its importance for integer programs is recognized in Brearley et al. [61] and
Savelsbergh [264]. The progress reports on MIP, see Bixby et al. [54] and
Achterberg and Wunderling [7] show the crucial role of preprocessing and
Achterberg et al. [5] contains a detailed description of the Presolve routines
implemented in the commercial system Gurobi [171], including inequality
strengthening and special ordered set reductions. Many other preprocessing
steps requiring more work are also described such as identification of
parallel rows and dominating columns, combining rows to obtain more zero
coefficients, probing, simple lifting, etc. See also Gamrath et al. [132]. Clique
finding is presented in Atamturk et al. [17].
7.8 Exercises
1.
Consider the enumeration tree (minimization problem) in Figure 7.13:
(i) Give tightest possible lower and upper bounds on the optimal value z.
(ii) Which nodes can be pruned and which must be explored further?
2.
Consider the two-variable integer program:
max 9x1 + 5x2
4x1 + 9x2 ≤ 35
≤
6
x1 − 3x2 ≥
1
x1
3x1 + 2x2 ≤ 19
x ∈ Z+2 .
Solve by branch-and-bound graphically and algebraically.
135
136
7 Branch and Bound
+∞
Figure 7.13
Enumeration tree (min).
0
25
32
1
2
27
26
3
4
5
6
28
30
27
35
3.
7
8
31
Infeasible
Consider the 0–1 knapsack problem:
max
{ n
∑
cj xj ∶
j=1
n
∑
}
aj xj ≤ b, x ∈ {0, 1}
n
j=1
with aj , cj > 0 for j = 1, … , n.
∑r−1
∑r
c
c
(i) Show that if a1 ≥ · · · ≥ an > 0, j=1 aj ≤ b and j=1 aj > b, the solution
1
n
∑r−1
of the LP relaxation is xj = 1 for j = 1, … , r − 1, xr = (b − j=1 aj )∕ar ,
and xj = 0 for j > r.
(ii) Solve the instance
max 17x1 + 10x2 + 25x3 + 17x4
5x1 + 3x2 + 8x3 + 7x4 ≤ 12
x ∈ {0, 1}4
by branch-and-bound.
4.
Solve the integer knapsack problem:
max 10x1 + 12x2 + 7x3 + 2x4
4x1 + 5x2 + 3x3 + 1x4 ≤ 10
x1 , x2 ∈ Z+1 , x3 , x4 ∈ {0, 1}
by branch-and-bound.
7.8 Exercises
5. (i) Solve the STSP instance with n = 5 and distance matrix
⎛ – 10 2 4 6 ⎞
⎟
⎜
⎜– – 9 3 1⎟
⎟
(ce ) = ⎜
⎜– – – 5 6⎟
⎟
⎜
⎜– – – – 2⎟
⎠
⎝
by branch-and-bound using a 1-tree relaxation (see Definition 2.3) to
obtain bounds.
(ii) Solve the TSP instance with n = 4 and distance matrix
⎛– 7 6 3⎞
⎟
⎜
⎜3 – 6 9⎟
⎟
(cij ) = ⎜
⎜2 3 – 1⎟
⎟
⎜
⎜7 9 4 –⎟
⎠
⎝
by branch-and-bound using an assignment relaxation to obtain bounds.
(iii) Describe clearly the branching rules you use in (i) and (ii), and motivate
your choice.
6.
Using a branch-and-cut system, solve your favorite integer program with
different choices of branching and node selection rules, and report on the
differences in the running time and the number of nodes in the enumeration tree.
7.
Reduced cost fixing. Suppose that the linear programming relaxation of an
integer program has been solved to optimality, and the objective function is
then represented in the form
∑
∑
Z = max cx, cx = a00 +
a0j xj +
a0j (xj − uj ),
j∈NB1
j∈NB2
where NB1 are the nonbasic variables at zero, and NB2 are the nonbasic variables at their upper bounds uj , a0j ≤ 0 for j ∈ NB1 , and a0j ≥ 0 for j ∈ NB2 . In
addition suppose that a primal feasible solution of value Z is known. Prove
the following: In any optimal solution,
⌊
⌋
a00 − Z
for j ∈ NB1 , and
xj ≤
−a0j
⌊
⌋
a00 − Z
xj ≥ uj −
for j ∈ NB2 .
a0j
137
138
7 Branch and Bound
8.
Compare the branch-and-bound trees for the instance
min{x1 ∶ x1 + 2x2 + 2x3 + 2x4 + 2x5 = 3, x ∈ {0, 1}5 }
using standard and orbital branching.
9.
Consider the 0–1 problem:
max 5x1 − 7x2 − 10x3 + 3x4
−
5x5
+ 3x2 − 5x3 + x4
+
4x5 ≤ 0
−2x1 − 6x2 + 3x3 − 2x4
−
2x5 ≤ −4
2x2 − 2x3 − x4
+
x5 ≤ −2
x1
x ∈
{0, 1}5 .
Simplify using logical inequalities.
10.
Prove Proposition 7.6 concerning 0–1 preprocessing.
11*.
Some small integer programs are very difficult for mixed integer programming
systems. Try to find}a feasible solution to the integer equality knapsack:
{
∑n
x ∈ ℤn+ ∶ j=1 aj xj = b with a = (12 228, 36 679, 36 682, 48 908, 61 139,
73 365) and b = 89 716 837.
12.
Suppose that Pi = {x ∈ ℝn ∶ Ai x ≤ bi } for i = 1, … , m and that Ck ⊆
{1, … , m} for k = 1, … , K. A disjunctive program is a problem of the form
max{cx ∶ x ∈ ∪i∈Ck Pi for k = 1, … , K}.
Show how the following can be modeled as disjunctive programs:
(i) a 0–1 integer program.
(ii) a linear complementarity problem: 𝑤 = q + Mz, 𝑤, z ∈ ℝm
+ , 𝑤j zj = 0 for
j = 1, … , m.
(iii) a single machine sequencing problem with job processing times pj , and
variables tj representing the start time of job j for j = 1, … , n.
(iv) the nonlinear expression z = max{3x1 + 2x2 − 3, 9x1 − 4x2 + 6}.
(v) the constraint: if x ∈ ℝ1+ is positive, then x lies between 20 and 50, and
is a multiple of 5.
13.
Devise a branch-and-bound algorithm for a disjunctive program.
139
8
Cutting Plane Algorithms
8.1 Introduction
Here we consider the general integer program:
(IP)
max{cx ∶ x ∈ X}
where X = {x ∶ Ax ≤ b, x ∈ Z+n }.
̃ x ≥ 0} is a polyhedron.
̃ ≤ b,
Proposition 8.1 conv(X) = {x ∶ Ax
This result, already presented in Chapter 1, tells us that we can, in theory, reformulate problem IP as the linear program:
(LP)
̃ x ≥ 0}
̃ ≤ b,
max{cx ∶ Ax
and then, for any value of c, an optimal extreme point solution of LP is an optimal
solution of IP. The same result holds for mixed integer programs with X = {(x, y) ∈
p
ℤn+ × ℝ+ ∶ Ax + Gy ≤ b} provided the data A, G, b are rational.
In Chapter 3, we have seen several problems, including the assignment problem
and the spanning tree problem, for which we have given an explicit description of
conv(X). However, unfortunately for -hard problems, there is almost no hope
of finding a “good” description. Given an instance of an -hard problem, the
goal in this chapter is to find effective ways to try to approximate conv(X) for the
given instance.
The fundamental concept that we have already used informally is that of a valid
inequality.
Definition 8.1
for all x ∈ X.
An inequality 𝜋x ≤ 𝜋0 is a valid inequality for X ⊆ ℝn if 𝜋x ≤ 𝜋0
̃ the constraints
̃ ≤ b},
If X = {x ∈ ℤn ∶ Ax ≤ b} and conv(X) = {x ∈ ℝn ∶ Ax
ai x ≤ bi and ã i x ≤ b̃ i are clearly valid inequalities for X.
Integer Programming, Second Edition. Laurence A. Wolsey.
© 2021 John Wiley & Sons, Inc. Published 2021 by John Wiley & Sons, Inc.
Companion website: www.wiley.com/go/wolsey/integerprogramming2e
140
8 Cutting Plane Algorithms
The two questions that immediately spring to mind are
(i) Which are the “good” or useful valid inequalities? and
(ii) If we know a set or family of valid inequalities for a problem, how can we use
them in trying to solve a particular instance?
8.2 Some Simple Valid Inequalities
First, we present some examples of valid inequalities. The first type, logical
inequalities have already been seen in Example 7.6 in looking at preprocessing.
Example 8.1 A Pure 0–1 Set. Consider the 0–1 knapsack set:
X = {x ∈ {0, 1}5 ∶ 3x1 − 4x2 + 2x3 − 3x4 + x5 ≤ −2}.
If x2 = x4 = 0, the lhs (left-hand side) = 3x1 + 2x3 + x5 ≥ 0 and the rhs
(right-hand side) = −2, which is impossible. So all feasible solutions satisfy the
valid inequality x2 + x4 ≥ 1.
If x1 = 1 and x2 = 0, the lhs = 3 + 2x3 − 3x4 + x5 ≥ 3 − 3 = 0 and the rhs = −2,
◽
which is impossible, so x1 ≤ x2 is also a valid inequality.
Example 8.2 A Mixed 0–1 Set. Consider the set:
X = {(x, y) ∶ y ≤ 9999x, 0 ≤ y ≤ 5, x ∈ {0, 1}}.
It is easily checked that the inequality
y ≤ 5x
is valid because X = {(0, 0), (1, y) with 0 ≤ y ≤ 5}. As X only involves two variables,
it is possible to represent X graphically, so it is easy to check that the addition of
the inequality y ≤ 5x gives us the convex hull of X.
Such constraints arise often. For instance, in the capacitated facility location
problem the feasible region is:
∑
yij ≤ bj xj for j ∈ N
i∈M
∑
yij = ai for i ∈ M
j∈N
yij ≥ 0
for i ∈ M, j ∈ N,
xj ∈ {0, 1}
for j ∈ N.
All feasible solutions satisfy yij ≤ bj xj and yij ≤ ai with xj ∈ {0, 1}. This
is precisely the situation above leading to the family of valid inequalities
yij ≤ min{ai , bj }xj .
◽
8.2 Some Simple Valid Inequalities
y
y ≤ 10x
Feasible points
y ≤ 14
(2, 14)
14
Valid inequality
(1, 10)
0
1
Figure 8.1
2
3
4
x
Mixed integer inequality.
Example 8.3 A Mixed Integer Set. Consider the set
X = {(x, y) ∶ y ≤ 10x, 0 ≤ y ≤ 14, x ∈ ℤ1+ }.
It is not difficult to verify the validity of the inequality y ≤ 6 + 4x, or written
another way, y ≤ 14 − 4(2 − x). In Figure 8.1, we represent X graphically and see
that the addition of the inequality y ≤ 6 + 4x gives the convex hull of X. For the
general case, when C does not divide b and
X = {(x, y) ∶ y ≤ Cx, 0 ≤ y ≤ b, x ∈ ℤ1+ },
it suffices to add the valid inequality y ≤ b − 𝛾(K − x) where K = ⌈ Cb ⌉ and 𝛾 = b −
(⌈ Cb ⌉ − 1)C.
◽
Example 8.4 A Combinatorial Set: Stable Sets. See Exercise 2 in Chapter 2
for definitions. Consider the set X of incidence vectors of stable sets in a graph
G = (V, E):
xi + xj ≤ 1 for (i, j) ∈ E
x ∈ {0, 1}|V| .
Take a clique U ⊆ V. As there is an edge between every pair of nodes in U, any
stable set contains at most one node of U. Therefore,
∑
xj ≤ 1
j∈U
is a valid inequality for X.
◽
141
142
8 Cutting Plane Algorithms
Example 8.5 Integer Rounding. Consider the integer region X = P ∩ ℤ4 , where
P = {x ∈ ℝ4+ ∶ 13x1 + 20x2 + 11x3 + 6x4 ≥ 72}.
Dividing by 11 gives the valid inequality for P:
13
6
6
x + 20
x + x3 + 11
x4 ≥ 6 11
.
11 1
11 2
As x ≥ 0, rounding up the coefficients on the left to the nearest integer gives
6
6
2x1 + 2x2 + x3 + x4 ≥ 13
x + 20
x + x3 + 11
x4 ≥ 6 11
, and so we get a weaker valid
11 1
11 2
inequality for P:
6
.
2x1 + 2x2 + x3 + x4 ≥ 6 11
As x is an integer, and all the coefficients are integers, the lhs must be an integer.
6
An integer that is greater than or equal to 6 11
must be at least 7, and so we can
round the rhs up to the nearest integer giving the valid inequality for X:
2x1 + 2x2 + x3 + x4 ≥ 7.
◽
Such regions arise in many problems. Consider, for instance, a Generalized
Transportation Problem where the problem is to satisfy the demand dj of client j
using trucks of different types. A truck of type i has capacity Ci , there are ai of
them available, and the cost if a truck of type i is sent to client j is cij . The resulting
integer program, with xij denoting the number of trucks of type i serving client j, is
min
n
n
∑
∑
cij xij
i=1 j=1
n
∑
Ci xij ≥ dj
for j = 1, … , n
i=1
n
∑
xij ≤ ai
for i = 1, … , m
j=1
x ∈ ℤmn
+ ,
where each demand constraint gives rise to a set of the form X.
Example 8.6 Mixed Integer Rounding. Consider the same example as above
with the addition of a continuous variable. Let X = P ∩ (ℤ4 × ℝ1 ), where
P = {(x, s) ∈ ℝ4+ × ℝ1+ ∶ 13x1 + 20x2 + 11x3 + 6x4 + y ≥ 72}.
In terms of the generalized transportation model, there are four types of truck
available to satisfy demand, but it is also possible to satisfy demand from an alternative source. Dividing by 11 gives
13
6
x + 20
x + x3 + 11
x4 ≥ 72−y
,
11 1
11 2
11
8.3 Valid Inequalities
suggesting that there is a valid inequality
2x1 + 2x2 + x3 + x4 + 𝛼y ≥ 7 for some 𝛼.
(8.1)
Looking at the rhs term 72−y
, we see that the rhs ⌈ 72−y
⌉ decreases from 7 to 6 at
11
11
the critical value y = 6, indicating the value 𝛼 = 16 . Inequality (8.4) turns out to be
valid for values of 𝛼 ≥ 16 , and later, we will see that it can even be strengthened a
little, giving:
4
x + 2x2 + x3 + x4 + 16 y ≥ 7.
3 1
◽
8.3 Valid Inequalities
To understand how to generate valid inequalities for integer programs, it is first
necessary to understand valid inequalities for polyhedra (or linear programs).
Valid Inequalities for Linear Programs
So the first question is: When is the inequality 𝜋x ≤ 𝜋0 valid for P = {x ∶ Ax ≤
b, x ≥ 0}?
Proposition 8.2 𝜋x ≤ 𝜋0 is valid for P = {x ∶ Ax ≤ b, x ≥ 0} ≠ ∅ if and only if
there exist u ≥ 0, 𝑣 ≥ 0 such that uA − 𝑣 = 𝜋 and ub ≤ 𝜋0 , or alternatively
there exists u ≥ 0 such that uA ≥ 𝜋 and ub ≤ 𝜋0 .
Proof. By linear programming duality, max{𝜋x ∶ x ∈ P} ≤ 𝜋0 if and only if
min{ub ∶ uA − 𝑣 = 𝜋, u ≥ 0, 𝑣 ≥ 0} ≤ 𝜋0 .
◽
Valid Inequalities for Integer Programs
Now, we consider the feasible region of an integer program:
{x ∶ Ax ≤ b, x ∈ ℤn+ }
and ask the same question.
Surprisingly, the complete answer is in some sense given in the following very
simple observation:
Proposition 8.3 Let X = {x ∈ ℤ1 ∶ x ≤ b}, then the inequality x ≤ ⌊b⌋ is valid
for X.
143
144
8 Cutting Plane Algorithms
We have already used this idea in Example 8.5. We now give two more examples.
Example 8.7 Valid Inequalities for Matching. Here we give an alternative algebraic justification for the validity of the blossom inequality (4.3) that can be broken
up into three steps.
(i) Take a nonnegative linear combination of the constraints, the degree con∑
straints e∈𝛿(i) xe ≤ 1 with weights ui = 12 for i ∈ T, and ui = 0 for i ∈ V∖T.
This gives the valid inequality:
∑
∣T∣
1 ∑
.
xe +
xe ≤
2
2
e∈E(T)
e∈𝛿(T,V∖T)
(ii) Because xe ≥ 0,
∑
∑
xe ≤
e∈E(T)
e∈E(T) xe ≤
1∑
e∈E(T) xe + 2 e∈𝛿(T,V∖T) xe , and so
∑
∣T∣
2
is a valid inequality.
∑
(iii) Because x ∈ ℤn , the lhs e∈E(T) xe must be an integer, and so we can replace
the rhs value by the largest integer less than or equal to the rhs value. So
⌋
⌊
∑
∣T∣
xe ≤
2
e∈E(T)
is a valid inequality.
◽
Example 8.8 Valid Inequalities for an Integer Program. An identical approach
can be used to derive valid inequalities for any integer programming region. Let
X = P ∩ ℤn be the set of integer points in P, where P is given by
7x1 − 2x2 ≤ 14
x2 ≤ 3
2x1 − 2x2 ≤ 3
x ≥ 0.
(
(i) Combining the constraints with nonnegative weights u =
obtain the valid inequality for P
2 37
, ,0
7 63
)
, we
1
121
x ≤
.
63 2
21
(ii) As x ≥ 0, the coefficients on the lhs can be reduced to the nearest integer
giving the valid inequality for P:
2x1 +
2x1 + 0x2 ≤
121
.
21
8.3 Valid Inequalities
(iii) Now as the lhs is integral for all points of X, we can reduce the rhs to the
nearest integer, and we obtain the valid inequality for X:
⌋
⌊
121
= 5.
2x1 ≤
21
Observe that if we repeat the procedure, and use a weight of 12 on this last constraint, we obtain the tighter inequality x1 ≤ ⌊ 52 ⌋ = 2.
◽
Now, it is easy to describe the general procedure that we have been using.
Chvátal–Gomory procedure to construct a valid inequality for the set
X = P ∩ ℤn , where P = {x ∈ ℝn+ ∶ Ax ≤ b}, A is an m × n matrix with columns
{a1 , a2 , … , an } and u ∈ ℝm
+:
(i) the inequality
n
∑
uaj xj ≤ ub
j=1
is valid for P as u ≥ 0 and
(ii) the inequality
n
∑
∑n
j=1 aj xj ≤ b,
⌊uaj ⌋xj ≤ ub
j=1
is valid for P as x ≥ 0,
(iii) the inequality
n
∑
⌊uaj ⌋xj ≤ ⌊ub⌋
j=1
is valid for X as x is integer, and thus
∑n
j=1 ⌊uaj ⌋xj is integer.
The surprising fact is that this simple procedure is sufficient to generate all valid
inequalities for an integer program.
Theorem 8.1 Every valid inequality for X can be obtained by applying the
Chvátal–Gomory procedure a finite number of times.
Proof. ∗ We present a proof for the 0–1 case. Thus, let P = {x ∈ ℝn ∶ Ax ≤
b, 0 ≤ x ≤ 1} ≠ ∅, X = P ∩ ℤn , and suppose that 𝜋x ≤ 𝜋0 with 𝜋, 𝜋0 integral is
a valid inequality for X. We will show that this inequality is a Chvàtal–Gomory
(C-G) inequality, or in other words that it can be obtained by applying the
Chvátal–Gomory procedure a finite number of times.
◽
Claim 1 The inequality 𝜋x ≤ 𝜋0 + t is a valid inequality for P for some t ∈ ℤ1+ .
145
146
8 Cutting Plane Algorithms
Proof. ZLP = max{𝜋x ∶ x ∈ P} is bounded as P is bounded. Take t = ⌈ZLP ⌉ − 𝜋0 .
◽
Claim 2 There exists a sufficiently large integer M that the inequality
∑
∑
xj + M
(1 − xj )
𝜋x ≤ 𝜋0 + M
j∈N 0
(8.2)
j∈N 1
is valid for P for every partition (N 0 , N 1 ) of N.
Proof. It suffices to show that the inequality is satisfied at all vertices x∗ of P.
If x∗ ∈ ℤn , then the inequality 𝜋x ≤ 𝜋0 is satisfied, and so (8.2) is satisfied. Oth∑
∑
erwise, there exists 𝛼 > 0 such that j∈N 0 xj∗ + j∈N 1 (1 − xj∗ ) ≥ 𝛼 for all partitions
(N 0 , N 1 ) of N and all nonintegral extreme points x∗ of P. Taking M ≥ 𝛼t , it follows
that for all extreme points of P,
∑
∑
xj∗ + M
(1 − xj∗ ).
𝜋x∗ ≤ 𝜋0 + t ≤ 𝜋0 + M
j∈N 0
j∈N 1
◽
Claim 3 If 𝜋x ≤ 𝜋0 + 𝜏 + 1 is a C-G inequality for X with 𝜏 ∈ ℤ1+ , then
∑
∑
xj +
(1 − xj )
𝜋x ≤ 𝜋0 + 𝜏 +
j∈N 0
(8.3)
j∈N 1
is a C-G inequality for X.
Proof. Take the inequality 𝜋x ≤ 𝜋0 + 𝜏 + 1 with weight (M − 1)∕M and the
inequality (8.2) with weight 1∕M. The resulting C-G inequality is (8.3).
◽
Claim 4 If
𝜋x ≤ 𝜋0 + 𝜏 +
∑
xj +
j∈T 0 ∪{p}
and
𝜋x ≤ 𝜋0 + 𝜏 +
∑
j∈T 0
xj +
∑
(1 − xj )
(8.4)
(1 − xj )
(8.5)
j∈T 1
∑
j∈T 1 ∪{p}
are C-G inequalities for X where (T 0 , T 1 ) is any partition of {1, … , p − 1}, then
∑
∑
xj +
(1 − xj )
(8.6)
𝜋x ≤ 𝜋0 + 𝜏 +
j∈T 0
j∈T 1
is a C-G inequality for X.
Proof. Take the inequalities (8.4) and (8.5) with weights 1∕2 and the resulting
C-G inequality is (8.6).
◽
8.4 A Priori Addition of Constraints
Claim 5 If
𝜋x ≤ 𝜋0 + 𝜏 + 1
is a C-G inequality for X, then
𝜋x ≤ 𝜋0 + 𝜏
is a C-G inequality for X.
Proof. Apply Claim 4 successively for p = n, n − 1, … , 1 with all partitions
◽
(T 0 , T 1 ) of {1, … , p − 1}.
Finally, starting with 𝜏 = t − 1 and using Claim 5 for 𝜏 = t − 1, … , 0 establishes
that 𝜋x ≤ 𝜋0 is a C-G inequality.
◽
For inequalities generated by other arguments, it is sometimes interesting to see
how easily they are generated as C-G inequalities, see Exercise 15.
Now that we have seen a variety of both ad hoc and general ways to derive valid
inequalities, we turn to the important practical question of how to use them.
8.4 A Priori Addition of Constraints
In discussing branch-and-bound, we saw that preprocessing was a first step in
tightening a formulation. Here we go a step further. The idea here is to examine the initial formulation P = {x ∶ Ax ≤ b, x ≥ 0} with X = P ∩ ℤn , find a set of
valid inequalities Qx ≤ q for X, add these to the formulation immediately giving a
new formulation P′ = {x ∶ Ax ≤ b, Qx ≤ q, x ≥ 0} with X = P′ ∩ ℤn . Then we can
apply our favorite algorithm, branch-and-cut or whatever, to formulation P′ .
Advantages. We can use standard branch-and-cut software. If the valid inequalities are well chosen so that formulation P′ is significantly smaller than P, the
bounds should be improved and hence the branch-and-cut algorithm should be
more effective. In addition, the chances of finding feasible integer solutions in
the course of the algorithm should increase.
Disadvantages. Often, the family of valid inequalities we would like to add is
enormous. In such cases, either the linear programs become very big and take
a long time to solve, or it becomes impossible to use standard branch-and-cut
software because there are too many constraints.
How can we start looking for valid inequalities a priori? In many instances, the
feasible region X can be written naturally as the intersection of two or more sets
with structure, that is, X = X 1 ∩ X 2 . Decomposing or concentrating on one of the
sets at a time may be a good idea.
147
148
8 Cutting Plane Algorithms
For instance, we may know that the optimization problem over the set X 2 = P2 ∩
ℤn is easy. Then we may be able to find an explicit description of P′ 2 = conv(P2 ∩
ℤn ). In this case, we can replace the initial formulation P1 ∩ P2 by an improved
formulation P′ = P1 ∩ P′ 2 .
Whether the optimization problem over X 2 is easy or not, we may be able to
take advantage of the structure to find valid inequalities for X 2 , which allow us
to improve its formulation from P2 to P′ 2 ⊂ P2 , and thereby again provide an
improved formulation P′ = P1 ∩ P′ 2 for X.
Example 8.9 Uncapacitated Facility Location. Take the “weak” formulation
used in the 1950s and 1960s:
n
∑
yij = 1 for i = 1, … , m
j=1
m
∑
yij ≤ mxj
for j = 1, … , n
i=1
yij ≥ 0 for i = 1, … , m, j = 1, … , n
0 ≤ xj ≤ 1 for j = 1, … , n.
Let Xj be the set of points in the polyhedron Pj :
m
∑
yij ≤ mxj
i=1
0 ≤ yij ≤ 1 for i = 1, … , m
0 ≤ xj ≤ 1,
with xj integer. The convex hull Pj′ of the set Xj is given by
yij ≤ xj
for i = 1, … , m
yij ≥ 0
for i = 1, … , m
0 ≤ xj ≤ 1.
Now, the reformulation obtained by replacing Pj by Pj′ for j = 1, … , n is the
“strong” formulation P′ :
n
∑
yij = 1
for i = 1, … , m
j=1
yij ≤ xj
for i = 1, … , m j = 1, … , n
yij ≥ 0
for i = 1, … , m, j = 1, … , n
0 ≤ xj ≤ 1
for j = 1, … , n.
8.5 Automatic Reformulation or Cutting Plane Algorithms
The strong formulation is now commonly used for this problem because the bound
it provides is much stronger than that given by the weak formulation, and the
linear programming relaxation has solutions that are close to being integral.
◽
Example 8.10 Constant Capacity Lot-Sizing. Using the same basic formulation
as in Example 6.2, the feasible region X is given by
st−1 + yt = dt + st
yt ≤ Cxt
for t = 1, … , n
for t = 1, … , n
s0 = sn = 0, s ∈ ℝ+n+1 , y ∈ ℝn , x ∈ {0, 1}n .
We derive two families of inequalities for X. First consider any point (x, s, y) ∈ X.
As st−1 ≥ 0, the inequality yt ≤ dt + st clearly holds. Along with yt ≤ Cxt and xt ∈
{0, 1}, it is then not difficult to show that yt ≤ dt xt + st is valid for X. (Note that
without the variable st , this is precisely the mixed 0–1 inequality of Example 8.2.)
Second, summing the flow conservation constraints and using st ≥ 0, we get
∑t
∑t
∑t
∑t
the inequality i=1 yi ≥ i=1 di . Then using yi ≤ Cxi gives C i=1 xi ≥ i=1 di , or
)
(∑t
∑t
∑t
i=1 xi ≥
i=1 di ∕C. Now, as
i=1 xi is integral, we can use Chvátal–Gomory
integer rounding to obtain the valid inequality
t
∑
xi ≥
i=1
⌈(∑t
i=1
) ⌉
di ∕C .
Adding just these 2n inequalities significantly strengthens the formulation of
this problem.
◽
8.5 Automatic Reformulation or Cutting Plane
Algorithms
Suppose that X = P ∩ ℤn and that we know a family of valid inequalities 𝜋x ≤
𝜋0 , (𝜋, 𝜋0 ) ∈ for X. In many cases, contains too many inequalities (2n or more)
for them to be added a priori. Also given a specific objective function, the goal is
not to find the complete convex hull, but to find a good approximation to conv(X)
in the neighborhood of an optimal solution.
We now describe a basic cutting plane algorithm for (IP), max{cx ∶ x ∈ X}, that
generates “useful” inequalities from .
Cutting Plane Algorithm
Initialization. Set t = 0 and P0 = P.
Iteration t. Solve the linear program:
t
Z = max{cx ∶ x ∈ Pt }.
149
150
8 Cutting Plane Algorithms
Let xt be an optimal solution.
If xt ∈ ℤn , stop. xt is an optimal solution for IP.
If xt ∉ ℤn , solve the separation problem for xt and the family .
If an inequality (𝜋 t , 𝜋0t ) ∈ is found with 𝜋 t xt > 𝜋0t so that it cuts off xt , set Pt+1 =
Pt ∩ {x ∶ 𝜋 t x ≤ 𝜋0t }, and augment t. Otherwise stop.
If the algorithm terminates without finding an integral solution for IP,
Pt = P ∩ {x ∶ 𝜋 i x ≤ 𝜋0i i = 1, … , t}
is an improved formulation that can be input to a branch-and-cut solver. It should
also be noted that in practice it is often better to add several violated cuts at each
iteration, and not just one at a time.
In Section 8.6, we look at a specific implementation of this algorithm.
8.6 Gomory’s Fractional Cutting Plane Algorithm
Here we consider the integer program:
max{cx ∶ Ax = b, x ≥ 0 and integer}.
The idea is to first solve the associated linear programming relaxation and find
an optimal basis, choose a basic variable that is not integer, and then generate a
Chvátal–Gomory inequality on the constraint associated with this basic variable
so as to cut off the linear programming solution. We suppose, given an optimal
basis, that the problem is rewritten in the form:
∑
a0j xj
max a00 +
j∈NB
xBu +
∑
auj xj = au0
for u = 1, … , m
(8.7)
j∈NB
x ≥ 0 and integer
with a0j ≤ 0 when xj ∈ NB and au0 ≥ 0 for u = 1, … , m, where NB is the set of
nonbasic variables.
If the basic optimal solution x∗ is not integer, there exists some row u with au0 ∉
1
ℤ . Choosing such a row, the Chvátal–Gomory cut for row u is
∑
⌊auj ⌋xj ≤ ⌊au0 ⌋.
(8.8)
xBu +
j∈NB
Rewriting this inequality by eliminating xBu gives
∑
(auj − ⌊auj ⌋)xj ≥ au0 − ⌊au0 ⌋
j∈NB
8.6 Gomory’s Fractional Cutting Plane Algorithm
or
∑
fuj xj ≥ fu0 ,
(8.9)
j∈NB
where fuj = auj − ⌊auj ⌋ for j ∈ NB, and fu0 = au0 − ⌊au0 ⌋.
By the definitions and the choice of row u, 0 ≤ fuj < 1 and 0 < fu0 < 1. As xj∗ =0
for all nonbasic variables j ∈ NB in the optimal LP solution, this inequality cuts
off x∗ . It is also important to observe that the difference between the lhs and rhs of
the Chvátal–Gomory inequality (8.8), and hence also of (8.9), is integral when x is
integral, so that when (8.9) is rewritten as an equation:
∑
s = −fu0 +
fuj xj ,
j∈NB
the slack variable s is a nonnegative integer variable.
Example 8.11
Consider the integer program
Z = max 4x1 − x2
7x1 − 2x2 ≤ 14
x2 ≤ 3
2x1 − 2x2 ≤ 3
x2 ≥ 0 and integer.
x1 ,
Adding slack variables x3 , x4 , x5 , observe that, as the constraint data is integer, the
slack variables must also take integer values. Now, solving as a linear program
gives the equivalent representation:
Z = max 59
7
− 47 x3 − 17 x4
+ 17 x3 + 27 x4
x1
x2
= 20
7
+x4
= 3
2
10
− 7 x3 + 7 x4 +x5 = 23
7
x1 , x2 , x3 ,
x5 ≥ 0 and integer.
)
(
23
,
3,
0,
0,
∉ Z+5 , so we use
The optimal linear programming solution is x = 20
7
7
the first row, in which the basic variable x1 is fractional, to generate the cut:
1
x + 27 x4 ≥ 67
7 3
or
s = − 67 + 17 x3 + 27 x4
with s, x3 , x4 ≥ 0 and integer.
x4 ,
151
152
8 Cutting Plane Algorithms
Adding this cut, and reoptimizing leads to the new optimal tableau
Z = max 15
2
− 12 x5 −3s
x1
+s
=2
− 12 x5 +s
= 12
x2
x3
−x5 −5s
=1
x4 + 12 x5 +6s
= 52
x1 , x2 , x3 , x4 , x5 , s ≥ 0 and integer.
(
)
Now, the new optimal linear programming solution x = 2, 12 , 1, 52 , 0 is still not
integer, as the original variable x2 and the slack variable x4 are fractional. The
Gomory fractional cut on row 2, in which x2 is basic, is 12 x5 ≥ 12 or − 12 x5 + t = − 12
with t ≥ 0 and integer. Adding this constraint and reoptimizing, we obtain
Z = max 7
x1
x2
x3
x4
x5
x1 , x2 , x3 , x4 , x5 , s,
−3s
+s
+s
−5s
+6s
t
−t
−t
−2t
+t
−t
≥ 0 and integer.
=2
=1
=2
=2
=1
Now, the linear programming solution is integral and optimal, so (x1 , x2 ) = (2, 1)
solves the original integer program.
◽
It is natural to also look at the cuts in the space of the original variables.
Example 8.11 (cont.) Considering the first cut, and substituting for x3 and x4
gives
1
(14 − 7x1 + 2x2 ) + 27 (3 − x2 ) ≥ 67
7
or x1 ≤ 2.
In Figure
( 8.2,)we can verify that this inequality is valid and cuts off the fractional
,3 .
solution 20
7
Similarly, substituting for x5 in the second cut 12 x5 ≥ 12 gives the valid inequality
◽
x1 − x2 ≤ 1 in the original variables.
A general formula for the cut in terms of the original variables is given by
Proposition 8.4 Let 𝛽 be row u of B−1 , and qi = 𝛽i − ⌊𝛽i ⌋ for i = 1, … , m. The
∑
Gomory cut j∈NB fuj xj ≥ fu0 , when written in terms of the original variables, is the
Chvátal–Gomory inequality
n
∑
⌊qaj ⌋xj ≤ ⌊qb⌋.
j=1
8.7 Mixed Integer Cuts
x2
Cut1
( 20
7 , 3)
Cut2
4x1 − x2
(2, 1)
(2, 12 )
x1
Figure 8.2
Gomory cutting planes.
Looking at the first Gomory cut generated in Example
( 8.11,
) 𝛽 is given by(the coef)
1 2
ficients of the slack variables in row u = 1, so 𝛽 = 7 , 7 , 0 . Thus, q = 17 , 27 , 0 ,
⌋ = 2.
and we obtain 1x1 + 0x2 ≤ ⌊ 20
7
8.7 Mixed Integer Cuts
8.7.1 The Basic Mixed Integer Inequality
We saw above that when x ≤ b, x ∈ ℤ1 , the rounding inequality x ≤ ⌊b⌋ suffices to
generate all the inequalities for a pure integer program. Here we examine if there
is a similar basic inequality for mixed integer programs.
Proposition 8.5 Let X ≥ = {(x, y) ∈ ℤ1+ × ℝ1 ∶ x + y ≥ b}, and f = b − ⌊b⌋ > 0.
The inequality
y
+ x ≥ ⌈b⌉
y ≥ f (⌈b⌉ − x) or
f
is valid for X ≥ .
Proof. If x ≥ ⌈b⌉, then y ≥ 0 ≥ f (⌈b⌉ − x). If x ≤ ⌊b⌋, then
y ≥ b − x = f + (⌊b⌋ − x)
≥ f + f (⌊b⌋ − x),
= f (⌈b⌉ − x).
as ⌊b⌋ − x ≥ 0 and f < 1,
◽
153
154
8 Cutting Plane Algorithms
y
3
b
2
Feasible points
1
x+y≥b
0
1
Figure 8.3
Valid inequality
2
3
x
The basic mixed integer inequality.
The situation is shown in Figure 8.3. The following corollary allows us to compare more directly with the all-integer case.
Corollary 8.1 If X ≤ = {(x, y) ∈ ℤ1+ × ℝ1 ∶ x ≤ b + y} and f = b − ⌊b⌋ > 0, the
inequality
x ≤ ⌊b⌋ +
y
1−f
is valid for X ≤ .
Proof. Rewriting x ≤ b + y as y − x ≥ −b and observing that −b − ⌊−b⌋ = 1 − f ,
y
we obtain from Proposition 8.5 that 1−f
− x ≥ ⌈−b⌉ = −⌊b⌋.
◽
Thus, we see that when the continuous variable y = 0, we obtain the basic integer rounding inequality.
Example 8.6 (cont.) The trucking example discussed earlier led to the set 2x1 +
y
≥ 72
with x ∈ ℤ4+ and y ≥ 0. Using Proposition 8.5 with ⌈b⌉ = 7
2x2 + x3 + x4 + 11
11
6
and f = 11 , we obtain immediately that
y
6
≥
(7 − 2x1 − 2x2 − x3 − x4 )
11 11
is a valid inequality.
◽
8.7 Mixed Integer Cuts
8.7.2 The Mixed Integer Rounding (MIR) Inequality
To obtain a slight variant of the basic inequality, we consider a set
X MIR = {(x, y) ∈ ℤ2+ × ℝ1+ ∶ a1 x1 + a2 x2 ≤ b + y},
where a1 , a2 , and b are scalars with b ∉ ℤ1 .
Proposition 8.6 Let f = b − ⌊b⌋ and fi = ai − ⌊ai ⌋ for i = 1, 2. Suppose f1 ≤ f <
f2 , then
)
(
f2 − f
y
x2 ≤ ⌊b⌋ +
(8.10)
⌊a1 ⌋x1 + ⌊a2 ⌋ +
1−f
1−f
is valid for X MIR .
Proof. (x, y) ∈ X MIR satisfies ⌊a1 ⌋x1 + ⌈a2 ⌉x2 ≤ b + y + (1 − f2 )x2 as x1 ≥ 0, and
a2 = ⌈a2 ⌉ − (1 − f2 ). Now the Corollary 8.1 to Proposition 8.5 gives
⌊a1 ⌋x1 + ⌈a2 ⌉x2 ≤ ⌊b⌋ + [y + (1 − f2 )x2 ]∕(1 − f ),
◽
which is the required inequality.
x + 1x2 + 11
x ≤
Example 8.12 Consider the set X = {(x, y) ∈ ℤ3+ × ℝ1+ ∶ 10
3 1
4 3
21
+
y}.
Using
Proposition
8.6,
we
have
f
=
1∕2,
f
=
1∕3,
f
=
0,
f
=
3∕4,
and
1
2
3
2
thus
5
3x1 + x2 + x3 ≤ 10 + 2y
2
is valid for X.
◽
8.7.3 The Gomory Mixed Integer Cut
Here we continue to consider mixed integer programs. As for all integer programs
in Section 8.6, any row of an optimal linear programming tableau, in which an integer variable is basic but fractional, can be used to generate a cut removing the optimal linear programming solution. Specifically, such a row leads to a set of the form:
{
}
∑
∑
n1
n2
G
1
auj xj +
auj yj = au0 ,
X = (xBu , x, y) ∈ ℤ × ℤ+ × ℝ+ ∶ xBu +
j∈N1
j∈N2
where ni =∣ Ni ∣ for i = 1, 2.
Proposition 8.7 If au0 ∉ ℤ1 , fj = auj − ⌊auj ⌋ for j ∈ N1 , and f0 = au0 − ⌊au0 ⌋, the
Gomory mixed integer cut
∑
∑ f0 (1 − fj )
∑
∑ f0
fj xj +
xj +
auj yj −
a y ≥ f0
1 − f0
1 − f0 uj j
f ≤f
f >f
a >0
a <0
j
0
is valid for X G .
j
0
uj
uj
155
156
8 Cutting Plane Algorithms
Proof. The mixed integer rounding inequality (8.10) for X G is
(
)
∑
∑
∑ auj
fj − f0
⌊auj ⌋xj +
y ≤ ⌊au0 ⌋.
xBu +
⌊auj ⌋ +
xj +
1 − f0
1 − f0 j
f ≤f
f >f
a <0
j
0
j
0
uj
◽
Substituting for xBu proves the claim.
Example 8.13
Consider the mixed integer program:
Z = min 4x1 +7x2 +y1 −y2
5x1 +4x2 −y1 −2y2 = 5
3x2 +y1 −y2 = 6
x1 ∈ ℤ2+ , y ∈ ℝ2+ .
Solving as a linear program gives
+ 87 x1
Z = min 86
7
+ 12
y
7 2
5
x +x2
7 1
−15
x
7 1
x1
∈
− 37 y2
=
+y1 + 27 y2
=
ℤ2+ , y
ℝ2+ .
∈
11
7
9
7
The basic variable x2 is fractional and the first row gives the mixed integer rounding (MIR) cut
1
x + x2 − y2 ≤ 1
3 1
which after elimination of x2 becomes the Gomory mixed integer cut:
8
x + 47 y2 ≥ 47 .
21 1
Adding this cut and reoptimizing leads to the solution x = (0, 2), y = (1, 1) which
is feasible and hence optimal for the mixed integer program.
◽
8.7.4 Split Cuts
An alternative viewpoint on both MIR inequalities and Gomory mixed integer cuts
is provided by split cuts.
Definition 8.2 The inequality cx + hy ≤ c0 is a split cut for P ∩ (ℤn × ℝp ) if there
exists (𝜋, 𝜋0 ) ∈ ℤn × ℤ1 such that cx + hy ≤ c0 is valid for the sets P ∩ {(x, y) ∶ 𝜋x ≤
𝜋0 } and P ∩ {(x, y) ∶ 𝜋x ≥ 𝜋0 + 1}.
As P ∩ (ℤn × ℝp ) ⊆ (P ∩ {(x, y) ∶ 𝜋x ≤ 𝜋0 }) ∪ (P ∩ {(x, y) ∶ 𝜋x ≥ 𝜋0 + 1}), we
have immediately:
Proposition 8.8 If cx + hy ≤ c0 is a split cut for X = P ∩ (ℤn × ℝp ), then
cx + hy ≤ c0 is a valid inequality for X.
8.7 Mixed Integer Cuts
πx ≥ π0 + 1
πx ≤ π0
x2
P0
P1
P
Cut
( 34 , 12 )
x1
(a)
Figure 8.4
(b)
Two split cuts. The region cut off is shaded.
Then from LP duality:
Corollary 8.2 cx + hy ≤ c0 is a split cut for X = P ∩ (ℤn × ℝp ) if there
exists (𝜋, 𝜋0 ) ∈ ℤn × ℤ1 and 𝛼, 𝛽 ≥ 0 such that cx + hy ≤ c0 + 𝛼(𝜋x − 𝜋0 ) and
cx + hy ≤ c0 + 𝛽(𝜋0 + 1 − 𝜋x) are valid inequalities for P.
In Figure 8.4a, we show an example of a split cut. In fact, it is not difficult to show
that MIR, split, and Gomory mixed integer cuts are essentially equivalent in the
sense that any inequality that is of one type, can also be obtained as an inequality
of the other two types.
Example 8.14 Consider the two variable set X = P ∩ ℤ2 , where P = {x ∈
ℝ2+ ∶ x1 + 4x2 ≥ 11
, x1 + x2 ≥ 54 }. The two constraints intersect in the vertex
4
)
(
x = 34 , 12 ∉ ℤ2 of P. Consider the split x2 ≤ 0 and x2 ≥ 1. The first constraint
(
)
(
)
, 0 and the second x2 = 1 in the point 14 , 1 .
intersects x2 = 0 in the point 11
4
Joining together these two points gives the split cut 4x1 + 10x2 ≥ 11.
In the terms of Corollary 8.2, the inequality 4x1 + 16x2 ≥ 11 is valid for P and
can be rewritten in the form 4x1 + 10x2 ≥ 11 − 6x2 and the inequality 4x1 + 4x2 ≥
5 is valid for P and can be rewritten in the form 4x1 + 10x2 ≥ 11 − 6(1 − x2 ). See
Figure 8.4b.
◽
Now, given a point (x∗ , y∗ ) ∈ P∖X and a split (𝜋, 𝜋0 ) ∈ ℤn × ℤ1 with 𝜋0 < 𝜋x∗ <
𝜋0 + 1, the natural question is how to find a valid inequality for the union of the
two sets produced by the split that cuts off (x∗ , y∗ ). This is the subject of Lift and
Project discussed in Section 8.8.
157
158
8 Cutting Plane Algorithms
8.8 Disjunctive Inequalities and Lift-and-Project∗
The set X = X 1 ∪ X 2 with X i ⊆ ℝn+ for i = 1, 2 is a disjunction (union) of the two
sets X 1 and X 2 . The following simple result has already been used implicitly in
Propositions 8.5 and 8.8 in deriving the basic mixed integer inequality and the
split cut.
Proposition 8.9 If
n
∑
∑n
i
i
i
j=1 𝛾j xj ≤ 𝛾0 is valid for X for i = 1, 2, then the inequality
𝛾j xj ≤ 𝛾0
j=1
is valid for X if 𝛾j ≤ min[𝛾j1 , 𝛾j2 ] for j = 1, … , n and 𝛾0 ≥ max[𝛾01 , 𝛾02 ].
∑n
Proof. If x ∈ X, then x ∈ X 1 or x ∈ X 2 . If x ∈ X i , then as x ≥ 0, j=1 𝛾j xj ≤
∑n i
i
◽
j=1 𝛾j xj ≤ 𝛾0 ≤ 𝛾0 for i = 1, 2. Thus, the inequality is valid for all x ∈ X.
Disjunctions of polyhedra are particularly interesting. We have already seen an
example in the case of split cuts. Modeling such sets is easy (see Exercise 3 in
Chapter 1 and Exercise 12).
Proposition 8.10 If Pi = {x ∈ Rn ∶ Ai x ≤ bi } for i = 1, 2 are bounded nonempty
polyhedra, then conv(P1 ∪ P2 )=
{x ∶ x = y1 + y2 , Ai yi ≤ bi zi i = 1, 2, z1 + z2 = 1, z1 , z2 ≥ 0}.
Using Proposition 8.2, it is also easy to characterize valid inequalities for such
disjunctions.
Proposition 8.11 If Pi = {x ∈ ℝn+ ∶ Ai x ≤ bi } for i = 1, 2 are nonempty polyhedra, then (𝛾, 𝛾0 ) is a valid inequality for conv(P1 ∪ P2 ) if and only if there exist
u1 , u2 ≥ 0 such that 𝛾 ≤ ui Ai and 𝛾0 ≥ ui bi for i = 1, 2.
Let P1 = {x ∈ ℝ2+ ∶ −x1 + x2 ≤ 1, x1 + x2 ≤ 5} and P(2 = {x ∈
)
2
ℝ+ ∶ x2 ≤ 4, −2x1 + x2 ≤ −6, x1 − 3x2 ≤ −2}. Taking u1 = (2, 1) and u2 = 52 , 12 , 0
and applying Proposition 8.11 gives that −x1 + 3x2 ≤ 7 is valid for P1 ∪ P2 . See
Example 8.15
Figure 8.5.
◽
8.8 Disjunctive Inequalities and Lift-and-Project
x2
−x1 + 3x2 ≤ 7
(5, 4)
(10, 4)
(5, 0)
x1
(2, 3)
(4, 2)
Figure 8.5
Disjunctive inequality.
Lift-and-Project
Here we present results for 0–1 problems. They extend easily to mixed 0–1 problems. Take X = P ∩ ℤn with P = {x ∶ Ax ≤ b, 0 ≤ x ≤ 1}. Let P0 = P ∩ {x ∈ ℝn ∶
xj = 0}, and P1 = P ∩ {x ∈ ℝn ∶ xj = 1} for some j ∈ {1, … , n}.
Proposition 8.12 The inequality (𝛾, 𝛾0 ) is a valid for conv(P0 ∪ P1 ) if there exists
n
1
i
i
ui ∈ ℝ m
+ , 𝑣 ∈ ℝ+ , 𝑤 ∈ ℝ+ for i = 0, 1 such that
𝛾 ≤ u0 A + 𝑣0 + 𝑤0 ej , 𝛾 ≤ u1 A + 𝑣1 − 𝑤1 ej ,
𝛾0 ≥ u0 b + 1.𝑣0 , 𝛾0 ≥ u1 b + 1.𝑣1 − 𝑤1 .
Proof. Apply Proposition 8.11 with P0 = {x ∈ ℝn+ ∶ Ax ≤ b, x ≤ 1, xj ≤ 0} and
◽
P1 = {x ∈ ℝn+ ∶ Ax ≤ b, x ≤ 1, −xj ≤ −1}.
Example 8.16
Consider the 0–1 knapsack problem
max 12x1 + 14x2 + 7x3 + 12x4
4x1 + 5x2 + 3x3 + 6x4 ≤ 8
x ∈ {0, 1}4
with linear programming solution x∗ = (1, 0.8, 0, 0).
As x2∗ = 0.8 is fractional, we choose j = 2 in defining P0 and P1 , and then look
for the most violated valid inequality (𝛾, 𝛾0 ) given by Proposition 8.11. To do this,
we solve a linear program consisting of maximizing 𝛾x∗ − 𝛾0 over the polyhedron
159
160
8 Cutting Plane Algorithms
describing the coefficients of the valid inequalities given in the proposition,
namely
max 1.0𝛾1 + 0.8𝛾2 − 𝛾0
𝛾1 ≤ 4u0 + 𝑣01 ,
𝛾2 ≤ 5u0 + 𝑣02 + 𝑤0 ,
𝛾3 ≤ 3u0 + 𝑣03 ,
𝛾4 ≤ 6u0 + 𝑣04 ,
𝛾0 ≥ 8u0 + 𝑣01 + 𝑣02 + 𝑣03 + 𝑣04 ,
𝛾1 ≤ 4u1 + 𝑣11
𝛾2 ≤ 5u1 + 𝑣12 − 𝑤1
𝛾3 ≤ 3u1 + 𝑣13
𝛾4 ≤ 6u1 + 𝑣14
𝛾0 ≥ 8u1 + 𝑣11 + 𝑣12 + 𝑣13 + 𝑣14 − 𝑤1
u0 , u1 , 𝑣0 , 𝑣1 , 𝑤0 , 𝑤1 ≥ 0.
Note that for the linear program to have a bounded optimal value, it is necessary to
∑n
normalize the inequality. Some possibilities are j=1 𝛾j ≤ 1, 𝛾0 = 1, 𝑤0 + 𝑤1 = 1,
∑ 0
∑
or i (ui + 𝑣0i ) + j (u1j + 𝑣1j ) + 𝑤0 + 𝑤1 = 1. A resulting inequality is
1x1 + 14 x2 ≤ 1,
with violation of 15 . For P0 , it is a combination of constraints x1 ≤ 1 and x2 ≤ 0
with 𝑣01 = 1 and 𝑤0 = 14 , respectively. For P1 , it is a combination of the knapsack
inequality 4x1 + 5x2 + 3x3 + 6x4 ≤ 8 and −x2 ≤ −1 with u1 = 14 and 𝑤1 = 1, respectively. Several normalizations lead to the same inequality.
◽
The lift-and-project linear program is approximately double the size of the
description of P which means that the time to find a cut can be significant. It has
been shown that a cut can be found using an LP that is close in size to the size
of description of P. Take P′ = {x ∶ A′ x ≤ b′ } to be P possibly with the addition of
some cuts, x∗ ∈ P′ and (𝜋, 𝜋0 ) such that 𝜋0 < 𝜋x∗ < 𝜋0 + 1.
The linear program is
b′ − A′ x∗
𝜁 = min(u1 − u2 )b′ + u2
𝜋x∗
(u1 − u2 )A′ = 𝜋
u1 , u2 ≥ 0.
Proposition 8.13 Let u = u1 − u2 . If 𝜁 < 𝜋0 + 1, then
b′ − A′ x
b′ − A′ x
+ u2
≥1
ub
1 − ub
is valid for X = P′ ∩ ℤn and cuts off x∗ .
u1
For the knapsack instance of Example 8.16, this LP also produces the cut 1x1 +
1
x ≤ 1.
4 2
The idea of looking for the most violated inequality will be pursued in Chapter 9,
in which we try to obtain “strong” inequalities.
8.9 Notes
8.9 Notes
8.2 The blossom inequality (4.3), derived again in Example 8.7, is from Edmonds
[101].
8.3 The rounding procedure to generate cuts is from Gomory [153]. The general
procedure described here and the proof of Theorem 8.1 for bounded integer
programs is from Chvatal [70]. In Schrijver [265], the result is extended to
unbounded polyhedra.
8.5 The first cutting plane proof reported is the procedure used to solve a 54-city
TSP in Dantzig et al. [93].
8.6 The fractional cutting plane algorithm is presented in Gomory [153, 155]. The
latter paper also contains a beautiful theoretical result, namely that the algorithm converges finitely if the rows off which the cuts are generated are properly chosen.
8.7 Gomory mixed integer cuts are proposed in Gomory [154]. The presentation
of mixed integer rounding inequalities is from Nemhauser and Wolsey [234].
For the theory of superadditive valid inequalities and superadditive duality,
see Johnson [186]. Chapter II.1 in [233] presents a derivation of superadditive
cuts for integer and mixed integer programs.
Gomory has shown that finite convergence can be attained with his mixed
integer cuts if the objective function is integer valued. It is an open question
whether this is true for 0–1 mixed integer programs with an arbitrary objective
function. In Balas et al. [27] it is shown, more than 30 years after they were
first proposed, that Gomory mixed integer cuts can be successfully used computationally. In Cook et al. [80], split cuts are introduced, and it is shown that
if all possible split cuts are added, the result object, called the split closure, is
again a polyhedron.
Günlük and Pochet [170] present a new way to combine basic mixed integer
inequalities leading to the so-called mixing inequalities.
8.8 Disjunctive and Gomory mixed integer cuts are closely related. Proposition 8.8
was already used implicitly by Gomory in developing the mixed integer cut.
In the same way that the Chvátal–Gomory procedure can be used to generate
all valid inequalities for an integer program, it can be shown that a simple disjunctive procedure repeated finitely (see Exercise 11) can be used to generate
all valid inequalities for a 0–1 mixed integer program.
The approach here is based on the disjunction of polyhedra developed by
Balas [21] in the 1970s, see also Jeroslow [185]. In particular, Balas shows
the beautiful result that to obtain the convex hull of a 0–1 MIP, it suffices to
take the convex hulls of each 0–1 variable one at a time. Related to this result,
a variety of extended formulations have been proposed to obtain tighter
formulations for 0–1 MIPs by Lovasz and Schrijver [214], Balas et al. [25]
161
162
8 Cutting Plane Algorithms
and Sherali and Adams [270]. The term lift-and-project was introduced in
Balas et al. [25] and computational results are given in Balas et al. [26]. The
reduced size LP treated in Proposition 8.13 that makes lift-and-project more
tractable computationally is described in Bonami [56].
8.10 Exercises
1.
For each of the three sets below, find a missing valid inequality and verify
graphically that its addition to the formulation gives conv(X).
(i) X = {x ∈ {0, 1}2 ∶ 3x1 − 4x2 ≤ 1}
(ii) X = {(x, y) ∈ {0, 1} × ℝ1+ ∶ y ≤ 20x, y ≤ 7}
(iii) X = {(x, y) ∈ ℤ1 × ℝ1+ ∶ y ≤ 6x, y ≤ 16}.
2.
In each of the examples below a set X and a point x or (x, y) are given. Find
a valid inequality for X cutting off the point.
(i)
X = {(x, y) ∈ {0, 1} × ℝ2+ ∶ y1 + y2 ≤ 2x, yj ≤ 1 for j = 1, 2}
(x, y1 , y2 ) = (0.5, 1, 0)
(ii)
X = {(x, y) ∈ ℤ1+ × ℝ1+ ∶ y ≤ 9, y ≤ 4x}
(
)
(x, y) = 94 , 9
(iii)
X = {(x, y1 , y2 ) ∈ ℤ1+ × ℝ2+ ∶ y1 + y2 ≤ 25, y1 + y2 ≤ 8x}
(
)
(x, y1 , y2 ) = 25
,
20,
5
8
(iv)
X = {x ∈ ℤ5+ ∶ 9x1 + 12x2 + 8x3 + 17x4 + 13x5 ≥ 50}
(
)
x = 0, 25
, 0, 0, 0
6
(v)
X = {x ∈ ℤ4+ ∶ 4x1 + 8x2 + 7x3 + 5x4 ≤ 33}
(
)
x = 0, 0, 33
,
0
.
7
3.
Prove that x2 + x3 + 2x4 ≤ 6 is valid for
X = {x ∈ ℤ4+ ∶ 4x1 + 5x2 + 9x3 + 12x4 ≤ 34}.
8.10 Exercises
4.
Consider the problem
min x1 + 2x2
x1 + x2
≥ 4
x1 + 5x2 ≥ 5
x ∈ ℤ2+ .
(
)
1
,
is the optimal linear programming solution.
(i) Show that x∗ = 15
4 4
(ii) Generate Gomory mixed integer cuts from the two rows of the optimal
LP tableau taking the slack variables to be continuous variables.
(iii) Observing that the slack variables are integer, generate the Gomory
fractional cuts and compare.
(iv) Solve the instance.
5.
Solve min{5x1 + 9x2 + 23x3 ∶ 20x1 + 35x2 + 95x3 ≥ 319, x ∈ ℤ3+ }
Chvátal–Gomory inequalities or Gomory’s cutting plane algorithm.
6.
Solve
max{5x1 + 9x2 + 23x3 − 4y ∶ 2x1 + 3x2 + 9x3 ≤ 32 + y, x ∈ ℤ3+ , y ∈
1
ℝ+ } using MIR inequalities.
7.
using
. (i) Show that the inequality yt ≤ dt xt + st is valid for ULS.
(ii) Show that yt + yt+1 ≤ (dt + dt+1 )xt + dt+1 xt+1 + st+1 is valid.
(iii) For l ≤ n, L = {1, … , l} and S ⊆ L, show that the inequality
( l
)
∑ ∑
∑
yj ≤
dt xj + sl
j∈S
j∈S
t=j
is valid for ULS.
8.
Consider the stable set problem. An odd hole is a cycle with an odd number
of nodes and no edges between nonadjacent nodes of the cycle. Let xj = 1 if
j lies in the stable set. Show that if H is the node set of an odd hole,
∑
xj ≤ (∣ H ∣ −1)∕2
j∈H
is a valid inequality.
9.
Use the mixed integer rounding procedure to show that
(x1 + 6x2 )∕4 + x3 + 4x4 ≥ 16
is a valid inequality for
X = {x ∈ ℤ4+ ∶ x1 + 6x2 + 12x3 + 48x4 ≥ 184}.
163
164
8 Cutting Plane Algorithms
10.
Use the mixed integer rounding procedure to show that
y2 + y4 ≤ 20 + 4(x − 2)
is a valid inequality for X =
{(x, y) ∈ ℤ1+ × ℝ4+ ∶ y1 + y2 + y3 + y4 ≤ 10x, y1 ≤ 13, y2 ≤ 15, y3 ≤ 6, y4 ≤ 9}.
11.
.(i) Show that if 𝛾x ≤ 𝛾0 + 𝛼(xj − k) and 𝜋x ≤ 𝜋0 + 𝛽(k + 1 − xj ) with 𝛼, 𝛽 > 0
and k ∈ Z 1 are both valid for a polyhedron P, then 𝛾x ≤ 𝛾0 is valid for
P ∩ {x ∶ xj ∈ ℤ1 }. An inequality generated in this way is a special split
cut called a D-inequality.
(ii) ∗ Show that if P ⊆ ℝn is a polyhedron and j ∈ {1, … , n}, every valid
inequality for con𝑣(P ∩ {x ∶ xj ∈ {0, 1}}) is or is dominated by a
D-inequality.
12.
Prove Proposition 8.10.
13.
Consider an instance of the generalized transportation problem
min
m n
∑
∑
cij xij
i=1 j=1
n
∑
xij ≤ bi
for i = 1, … , m
ai xij ≥ dj
for j = 1, … , n
j=1
m
∑
i=1
x ∈ ℤmn
+
with m = 4, n = 6, a = (15, 25, 40, 70), b = (10, 5, 7, 4), d = (45,120, 165,
214, 64, 93), and
⎛ 23 12 34 25 27 16 ⎞
⎟
⎜
29 24 43 35 28 19 ⎟
.
(cij ) = ⎜
⎜ 43 31 52 36 30 21 ⎟
⎜ 54 36 54 46 34 27 ⎟
⎠
⎝
Solve with a mixed integer programming system. Now, by inspecting the linear programming solution, or otherwise, add one or more valid inequalities
to the formulation and resolve.
14.
Consider a telecommunications problem in which the demands between
pairs of nodes are given. The problem is to install sufficient capacity on the
edges of the graph so that all the demands can be satisfied simultaneously. If
8.10 Exercises
there is flow of one demand type from i to j, and simultaneously others from j
to i, the capacity available must be the sum of the two opposite flows. Capacity can be installed in units of 1 and/or 24, costing 1 and 10, respectively. For
a graph on six nodes, the following demand matrix must be satisfied
⎛ . 12 51 − − ⎞
⎜ . . 53 51 − ⎟
⎜
⎟
(dij ) = ⎜ . . . − 32 ⎟ .
⎜ . . . . 91 ⎟
⎜
⎟
⎝. . . . . ⎠
Formulate and solve with a mixed integer programming system. Try to
tighten the formulation.
15.
.(i) Derive the inequalities of Example 8.1 as C-G inequalities.
(ii) Consider the set X = {x ∈ {0, 1}4 ∶ xi + xj ≤ 1 for all 1 ≤ i < j ≤ 4}.
defining stable sets. Derive the clique inequalities x1 + x2 + x3 ≤ 1 and
x1 + x2 + x3 + x4 ≤ 1 as C-G inequalities.
16.
Intersection Cuts.
Given the IP max{cx ∶ x ∈ P ∩ ℤn }, find an optimal LP basis as in (8.7). Now,
dropping the nonnegativity on the basic variables and the integrality of the
nonbasic variables (NB) gives the relaxation
∑
r j xj , xB ∈ ℤm , xN ∈ ℝ+n−m ,
xB = a0 +
j∈NB
where r j = −aj for j ∈ NB. Let C ∈ ℝm be a convex set with a0 ∈ int(C) and
∑
x
int(C) ∩ ℤm = ∅. Let 𝛼j = max{𝛼 ∶ a0 + 𝛼r j ∈ C}. Show that j∈NB 𝛼j ≥ 1 is
j
a valid inequality for X. (Note that a split set 𝜋0 ≤ 𝜋x ≤ 𝜋0 + 1 is a special
case of such a convex set.)
17.
An Extended Formulation.
Given the 0–1 integer program with X = {x ∈ {0, 1}n ∶ Ax ≤ b}. For simplicity, take m = 1.
(i) Choose some variable xk and show that the nonlinear inequalities
n
∑
j=1
aj xj xk ≤ bxk
and
n
∑
j=1
are valid for X.
(ii) Show that xk2 = xk is valid for X.
aj xj (1 − xk ) ≤ b(1 − xk )
165
166
8 Cutting Plane Algorithms
(iii) Introduce additional variables yik = xi xk for all i ≠ k. Show that Qk is a
valid relaxation for X:
∑
aj yjk + ak xk ≤ bxk
∑
j
j≠k
aj −
∑
aj yjk − ak xk ≤ b(1 − xk )
j≠k
yik ≤ xk for i ≠ k
yik ≤ xi for i ≠ k
yik ≥ xi + xk − 1 for i ≠ k
x ∈ [0, 1]n , y⋅k ∈ ℝ+n−1 .
(iv) Observe a certain resemblance to the formulation in Proposition 8.10.
(v) Repeat the reformulation for all variables xj and set yij = yji for all i ≠ j.
(vi) Repeat with pairs of variables, multiplying by xj xk , xj (1 − xk ), (1 − xj )xk ,
and (1 − xj )(1 − xk ) and introducing variables yijk , etc.
167
9
Strong Valid Inequalities
9.1 Introduction
In the previous chapter, we have seen a variety of valid inequalities and presented
a generic cutting plane algorithm. The Gomory fractional cutting plane algorithm
is a special case of this algorithm with the particularity that finding cuts is very
easy at each iteration. Theoretically, it is of interest because it has been shown
to terminate after a finite number of iterations, but in practice, it has not been
successful. However, Gomory mixed integer cuts, as well as the disjunctive cuts,
are successfully used in practice.
Here, we address the question of finding strong valid inequalities that are
hopefully even more effective. The basic cutting plane algorithm is the same as in
Section 8.5, however,
(i) We need to say what “strong” means – for our purposes it is any inequality
that leads to a stronger formulation. However, in Section 9.2 (optional), we
formalize what is meant by the strength of an inequality.
(ii) Describing interesting families of strong inequalities may be far from easy.
(iii) Given a family of strong valid inequalities, the separation problem for
may require a lot of work. It may be polynomially solvable, or it may
be -hard, in which case a heuristic algorithm has to be developed. In
Sections 9.3–9.5, we examine three sets: 0–1 knapsack sets, mixed 0–1 sets,
and the set of incidence vectors of subtours that arises in a generalization
of the traveling salesman problem. We develop a family of strong valid
inequalities and discuss the resulting separation problem for each of the
families.
(iv) To solve difficult or large problems to optimality, strong cutting planes
need to be embedded into a branch-and-bound framework. The resulting
branch-and-cut algorithms are discussed in Section 9.6.
Integer Programming, Second Edition. Laurence A. Wolsey.
© 2021 John Wiley & Sons, Inc. Published 2021 by John Wiley & Sons, Inc.
Companion website: www.wiley.com/go/wolsey/integerprogramming2e
168
9 Strong Valid Inequalities
In discussing separation algorithms, it is important to remember certain ideas
encountered earlier. First because Efficient (Polynomial) Optimization and Efficient Separation are equivalent,
(i) If Efficient Optimization holds for a class of problems of the form max{cx ∶
x ∈ X}, it may be possible to obtain an “explicit” description of the convex hull
of X, and perhaps also a combinatorial separation algorithm for conv(X), and
(ii) If the Optimization Problem is -hard, there is no hope (unless = )
of obtaining an explicit description of conv(X), but this should not deter us
from looking for families of strong valid inequalities.
As before, the idea of decomposition may be useful. In particular,
(iii) If we can break up the feasible set so that X = X 1 ∩ X 2 where the optimization problem over X 2 is polynomially solvable, then we can attempt to find
conv(X 2 ), and
(iv) If X = X 1 ∩ X 2 , but the optimization problems over X 1 and X 2 are both
-hard, it may be still be worthwhile (and easier) to attempt to find
valid inequalities for X 1 and X 2 separately in the hope that the resulting
inequalities will also be strong for the intersection X = X 1 ∩ X 2 .
9.2 Strong Inequalities
Here we address briefly the question of what it means for an inequality to be strong
for a set P = {x ∈ Rn+ ∶ Ax ≤ b}. This leads us to introduce certain concepts important for the description of polyhedra. We also present different arguments that can
be used to prove that an inequality is strong or to show that a set of inequalities
describes the convex hull of a discrete set.
Dominance
We note first that the inequalities 𝜋x ≤ 𝜋0 and 𝜆𝜋x ≤ 𝜆𝜋0 are identical for any
𝜆 > 0.
Definition 9.1 If 𝜋x ≤ 𝜋0 and 𝜇x ≤ 𝜇0 are two valid inequalities for P ⊆ ℝn+ ,
𝜋x ≤ 𝜋0 dominates 𝜇x ≤ 𝜇0 on ℝn+ if there exists u > 0 such that 𝜋 ≥ u𝜇 and
𝜋0 ≤ u𝜇0 , and (𝜋, 𝜋0 ) ≠ (u𝜇, u𝜇0 ).
Observe that if 𝜋x ≤ 𝜋0 dominates 𝜇x ≤ 𝜇0 on ℝn+ , then {x ∈ ℝn+ ∶ 𝜋x ≤ 𝜋0 } ⊆
{x ∈ ℝn+ ∶ 𝜇x ≤ 𝜇0 }.
Definition 9.2 A valid inequality 𝜋x ≤ 𝜋0 is redundant in the description of P ⊂
ℝn+ , if there exist k ≥ 1 valid inequalities 𝜋 i x ≤ 𝜋0i for i = 1, … , k for P, and weights
9.2 Strong Inequalities
x2
x2
6x1 − x2 ≤ 9
2x1 + 4x2 ≤ 9
5x1 − 2x2 ≤ 6
x1 + 3x2 ≤ 4
9x1 − 5x2 ≤ 6
x1
x1
(a)
Figure 9.1
(b)
Two examples of dominated inequalities.
ui > 0 for i = 1, … , k such that
on ℝn+ .
(∑
k
i=1 ui 𝜋
i
)
x≤
∑k
i
i=1 ui 𝜋0
dominates 𝜋x ≤ 𝜋0
{
Here we) observe that
{x ∈ ℝn+ ∶ 𝜋 i x ≤ 𝜋0i for i = 1, … , k} ⊆ x ∈ ℝn+ ∶
(∑
}
k
n
i x ≤ ∑k u 𝜋 i
i=1 ui 𝜋
i=1 i 0 ⊆ {x ∈ ℝ+ ∶ 𝜋x ≤ 𝜋0 }.
Example 9.1 Taking n = 2, (𝜋, 𝜋0 ) = (1, 3, 4), and (𝜇, 𝜇0 ) = (2, 4, 9), we see that
with u = 12 , 𝜋 ≥ 12 𝜇 and 𝜋0 ≤ 12 𝜇0 , and so x1 + 3x2 ≤ 4 dominates 2x1 + 4x2 ≤ 9 on
ℝ2+ . See Figure 9.1a.
Again with n = 2, suppose that P = {x ∈ ℝ2+ ∶ 6x1 − x2 ≤ 9, 9x1 − 5x2 ≤ 6}. Now
consider another valid inequality 5x1 − 2x2 ≤ 6 for P. Taking weights u = ( 13 , 13 ), we
see that 5x1 − 2x2 ≤ 6 is redundant. See Figure 9.1b.
◽
Where P = conv(X) is not known explicitly, checking redundancy may be very
difficult. Theoretically, it is important to know which inequalities are needed or
nonredundant in the description of P. Practically, the important point is to avoid
using an inequality when one that dominates it is readily available.
Next we discuss polyhedra and characterize which inequalities are
nonredundant.
Polyhedra, Faces, and Facets
The goal here is to understand which are the important inequalities that are necessary in describing a polyhedron, and hence at least in theory provide the best
possible cuts.
169
170
9 Strong Valid Inequalities
For simplicity, we limit the discussion to polyhedra P ⊆ ℝn that contain n
linearly independent directions. Such polyhedra are called full-dimensional.
Full-dimensional polyhedra have the property that there is no equation ax = b
satisfied at equality by all points x ∈ P.
Theorem 9.1 If P is a full-dimensional polyhedron, it has a unique minimal
description
P = {x ∈ ℝn ∶ ai x ≤ bi
for i = 1, … , m},
where each inequality is unique to within a positive multiple.
This means that if one of the inequalities in the minimal description is removed,
the resulting polyhedron is no longer P, so each of the inequalities is necessary. On
the other hand, every valid inequality 𝜋x ≤ 𝜋0 for P that is not a positive multiple
of one of the inequalities ai x ≤ bi for some i with 1 ≤ i ≤ m is redundant in the
sense of Definition 9.2 as it is a nonnegative combination of two or more valid
inequalities.
We now discuss another way in which the necessary inequalities can be characterized.
Definition 9.3 The points x1 , … , xk ∈ ℝn are affinely independent if the k − 1
directions x2 − x1 , … , xk − x1 are linearly independent, or alternatively the k vectors (x1 , 1) … , (xk , 1) ∈ ℝn+1 are linearly independent.
Definition 9.4 The dimension of P, denoted dim(P), is one less than the maximum number of affinely independent points in P.
This means that P ⊆ ℝn is full-dimensional if and only if dim(P) = n.
Definition 9.5
(i) F defines a face of the polyhedron P if F = {x ∈ P ∶ 𝜋x = 𝜋0 } for some valid
inequality 𝜋x ≤ 𝜋0 of P.
(ii) F is a facet of P if F is a face of P and dim(F) = dim(P) − 1.
(iii) If F is a face of P with F = {x ∈ P ∶ 𝜋x = 𝜋0 }, the valid inequality 𝜋x ≤ 𝜋0 is
said to represent or define the face.
It follows that the faces of polyhedra are polyhedra and it can be shown that the
number of faces of a polyhedron is finite. Now we establish a way to recognize the
necessary inequalities.
Proposition 9.1 If P is full-dimensional, a valid inequality 𝜋x ≤ 𝜋0 is necessary in
the description of P if and only if it defines a facet of P.
9.2 Strong Inequalities
Figure 9.2 Facets and faces
of a polyhedron.
x2
(0, 3)
(0, 2)
P
(2, 2)
(2, 0)
x1
So, for full-dimensional polyhedra, 𝜋x ≤ 𝜋0 defines a facet of P if and only if
there are n affinely independent points of P satisfying it at equality.
Example 9.2 Consider the polyhedron P ⊂ ℝ2 , shown in Figure 9.2, described
by the inequalities
x1
x1
x1
x1
x1
x1
+
+
+
+
x2
2x2
2x2
x2
x2
≤
≤
≤
≤
≥
≥
≥
2
4
10
6
2
0
0.
P is full-dimensional as (2, 0), (1, 1), and (2, 2) are three affinely independent points
in P.
The inequality x1 ≤ 2 defines a facet of P as (2, 0) and (2, 2) are two affinely
independent points in P satisfying x1 ≤ 2 at equality. Similarly, the inequalities
x1 + 2x2 ≤ 6, x1 + x2 ≥ 2 and x1 ≥ 0 define facets.
On the other hand, the inequality x1 + x2 ≤ 4 defines a face consisting of just one
point (2, 2) of P, and hence it is redundant. Alternatively, combining the inequalities x1 ≤ 2 and x1 + 2x2 ≤ 6 with weights u = ( 12 , 12 ) also shows that x1 + x2 ≤ 4 is
redundant.
171
172
9 Strong Valid Inequalities
The inequality x2 ≥ 0 is the sum of the inequalities x1 ≤ 2 and −x1 − x2 ≤ −2
and so it is also redundant.
The minimal description is given by
x1
x1
x1
x1
+
+
2x2
x2
≤
≤
≥
≥
2
6
2
0.
◽
Facet and Convex Hull Proofs∗
This subsection is for those interested in proving results about the strength of
certain inequalities or formulations. The aim is to indicate ways to show that a
valid inequality is facet-defining, or that a set of inequalities describes the convex
hull of some discrete set X ⊂ ℤn+ .
For simplicity we assume throughout this subsection that conv(X) is bounded as
well as full-dimensional. So there are no hyperplanes containing all the points of X.
∑m
As example we take the set X = {(x, y) ∈ {0, 1} × ℝm
+ ∶
i=1 yi ≤ mx, yi ≤ 1 for i =
1, … , m} that arises in Sections 1.6 and 8.4 in formulating the uncapacitated facility location problem.
Problem 1. Given X ⊂ ℤn+ and a valid inequality 𝜋x ≤ 𝜋0 for X, show that the
inequality defines a facet of conv(X).
We consider two different approaches.
Approach 1. (Just use the definition.) Find n points x1 , … , xn ∈ X satisfying
𝜋x = 𝜋0 , and then prove that these n points are affinely independent.
Approach 2. (An indirect but useful way to verify the affine independence.)
(i) Select t ≥ n points x1 , … , xt ∈ X satisfying 𝜋x = 𝜋0 . Suppose that all these
points lie on a generic hyperplane 𝜇x = 𝜇0 .
(ii) Solve the linear equation system
n
∑
𝜇j xjk = 𝜇0
for k = 1, … , t
j=1
in the n + 1 unknowns (𝜇, 𝜇0 ).
(iii) If the only solution is (𝜇, 𝜇0 ) = 𝜆(𝜋, 𝜋0 ) for 𝜆 ≠ 0, then the inequality 𝜋x ≤ 𝜋0
is facet-defining.
∑m
Example 9.3 Taking X = {(x, y) ∈ {0, 1} × ℝm
+ ∶
k=1 yk ≤ mx, yi ≤ 1 for i = 1,
… , m}, we have that dim(conv(X)) = m + 1. Now we consider the valid inequality
yi ≤ x and show that it is facet-defining using Approach 2.
9.2 Strong Inequalities
We select the simplest points (0, 0), (1, ei ), and (1, ei + ej ) for j ≠ i that are feasible
and satisfy yi = x.
∑m
As (0, 0) lies on k=1 𝜇k yk + 𝜇m+1 x = 𝜇0 , 𝜇0 = 0.
∑m
As (1, ei ) lies on the hyperplane k=1 𝜇k yk + 𝜇m+1 x = 0, 𝜇i = −𝜇m+1 .
∑m
As (1, ei + ej ) lies on the hyperplane k=1 𝜇k yk − 𝜇i x = 0, 𝜇j = 0 for j ≠ i.
◽
So the hyperplane is 𝜇i yi − 𝜇i x = 0, and yi ≤ x is facet-defining.
Problem 2. Show that the polyhedron P = {x ∈ ℝn ∶ Ax ≤ b} describes
conv(X).
Here we present eight approaches.
Approach 1. Show that the matrix A or the pair (A, b) have special structure
guaranteeing that P = conv(X).
Example 9.4 Take
X = {(x, y) ∈ {0, 1} × ℝm
+ ∶
… , m}, and consider the polyhedron/formulation
P = {(x, y) ∈ ℝ1 × ℝm
+ ∶ yi ≤ x
∑m
i=1 yi ≤ mx, yi ≤ 1 for i = 1,
for i = 1, … , m, x ≤ 1}.
Observe that the constraints yi − x ≤ 0 for i = 1, … , m lead to a matrix with a
coefficient of +1 and −1 in each row. Such a matrix is TU; see Proposition 3.2.
Adding the bound constraints still leaves a TU matrix. Now as the requirements
vector is integer, it follows from Proposition 3.3 that all basic solutions are integral.
So P = conv(X).
◽
Approach 2. Show that points (x, y) ∈ P with x fractional are not extreme points
of P.
Example 9.4 (cont.) Suppose that (x∗ , y∗ ) ∈ P with 0 < x∗ < 1. Note first that
y∗
y∗
(0, 0) ∈ P. Also as y∗i ≤ x∗ , the point ( x1∗ , … , xm∗ , 1) ∈ P. But now
(
)
y∗1
y∗m
∗ ∗
∗
∗
(x , y ) = (1 − x )(0, 0) + x 1, ∗ , … , ∗
x
x
is a convex combination of two points of P and is not extreme. Thus, all vertices of
P have x∗ integer.
◽
Approach 3. Show that for all c ∈ ℝn , the linear program Z LP = max{cx ∶
Ax ≤ b} has an optimal solution x∗ ∈ X.
∑m
Example 9.4 (cont.) Consider the linear program Z LP = max{fx + i=1 ci yi ∶
∗
∗
0 ≤ yi ≤ x for i = 1, … , m, x ≤ 1}. Consider an optimal solution (x , y ). Because
173
174
9 Strong Valid Inequalities
of the constraints 0 ≤ yi ≤ x, any optimal solution has y∗i = x∗ if ci > 0 and y∗i = 0
∑
if ci < 0. The corresponding solution value is ( i∶ci >0 ci + f )x∗ if x∗ > 0 and 0 other∑
wise. Obviously if ( i∶ci >0 ci + f ) > 0, the objective is maximized by setting x∗ = 1,
and otherwise x∗ = 0 is optimal. Thus, there is always an optimal solution with x
∑
◽
integer, and Z LP = (f + i∶ci >0 ci )+ .
Approach 4. Show that for all c ∈ ℝn , there exists a point x∗ ∈ X and a feasible
solution u∗ of the dual LP : W LP = min{ub, uA = c, u ≥ 0} with cx∗ = u∗ b. Note
that this implies that the condition of Approach 3 is satisfied.
Example 9.4 (cont.)
The dual linear program is
min t
𝑤i ≥ ci
t−
m
∑
for i = 1, … , m
𝑤i ≥ f
i=1
t ≥ 0, 𝑤i ≥ 0 for i = 1, … , m.
Consider the two points (0, 0) and (1, y∗ ) with y∗i = 1 if ci > 0 and y∗i = 0 otherwise.
∑
Taking the better of the two leads to a primal solution of value (f + i∶ci >0 ci )+ . The
∑
point 𝑤i = c+i for i = 1, … , m and t = (f + i∶ci >0 ci )+ is clearly feasible in the dual.
Thus, we have found a point in X and a dual solution of the same value.
◽
Approach 5. Show that if 𝜋x ≤ 𝜋0 defines a facet of conv(X), then it must be
identical to one of the inequalities ai x ≤ bi defining P.
∑m
Example 9.4 (cont.) Consider the inequality
i=1 𝜋i yi + 𝜋m+1 x ≤ 𝜋0 . Let
S = {i ∈ {1, … , m} ∶ 𝜋i > 0} and T = {i ∈ {1, … , m} ∶ 𝜋i < 0}. Note that as the
∑
point (0, 0) ∈ X, 𝜋0 ≥ 0, and as (1, eS ) ∈ X, i∈S 𝜋i + 𝜋m+1 ≤ 𝜋0 , where eS is the
characteristic vector of S. Also a facet-defining inequality must have a tight point
∑
with x = 1. The point (1, eS ) maximizes the lhs, and so i∈S 𝜋i + 𝜋m+1 = 𝜋0 ≥ 0.
Now consider the valid inequality obtained as a nonnegative combination of
valid inequalities:
yi − x ≤ 0 with weight 𝜋i for i ∈ S
−yi ≤ 0 with weight −𝜋i for i ∈ T
∑
x ≤ 1 with weight i∈S 𝜋i + 𝜋m+1 .
∑m
∑
The resulting inequality is i=1 𝜋i yi + 𝜋m+1 x ≤ i∈S 𝜋i + 𝜋m+1 . This dominates
∑
or equals the original inequality as i∈S 𝜋i + 𝜋m+1 ≤ 𝜋0 . So the only inequalities that are not nonnegative combinations of other inequalities are those
describing P.
◽
9.3 0–1 Knapsack Inequalities
Approach 6. Show that for any c ∈ ℝn , c ≠ 0, the set of optimal solutions M(c)
to the problem max{cx ∶ x ∈ X} lies in {x ∶ ai x = bi } for some i = 1, … , m, where
ai x ≤ bi for i = 1, … , m are the inequalities defining P.
Example 9.4 (cont.)
Consider an arbitrary objective: max fx +
∑m
i=1 ci yi .
If ci > 0 for some i ∈ [1, m], yi = x in every optimal solution and so M( f , c) ∈
{(x, y) ∶ yi = x}.
If ci < 0 for some i ∈ [1, m], then yi = 0 in every optimal solution.
If ci = 0 for all i and f > 0, then x = 1 in every optimal solution.
If ci = 0 for all i and f < 0, then x = 0 in any optimal solution.
All cases have been covered, and so P = conv(X).
◽
Approach 7. Verify that b ∈ ℤn , and show that for all c ∈ ℤn , the optimal value
of the dual 𝑤LP is integer valued. This is to show that the inequalities Ax ≤ b form
a TDI system, see Theorem 3.8.
Example 9.4 (cont.) We have shown using Approach 4 that 𝑤LP =
∑
◽
( i∶ci >0 ci + f )+ . This is integer valued when c and f are integral.
Approach 8. (Projection from an Extended Formulation). Suppose Q ⊆ ℝn × ℝp
is a polyhedron with P = projx (Q) as defined in Section 1.7. Show that for all c ∈
ℝn , the linear program max{cx ∶ (x, 𝑤) ∈ Q} has an optimal solution with x ∈ X.
Example 9.5 (Uncapacitated Lot-Sizing). It can be shown that solving the
extended formulation presented in Section 1.6 as a linear program gives a solution
with the setup variables x1 , … , xn integral, and thus provides an optimal solution
to ULS. So its projection to the (x, y, s) space describes the convex hull of solutions
to ULS.
◽
9.3 0–1 Knapsack Inequalities
{
}
∑n
Consider the set X = x ∈ {0, 1}n ∶ j=1 aj xj ≤ b . Complementing variables if
necessary by setting xj = 1 − xj , we assume throughout this section that the coefficients {aj }nj=1 are positive. Also we assume b > 0. Let N = {1, … , n}.
9.3.1 Cover Inequalities
Definition 9.6 A set C ⊆ N is a cover if
is not a cover for any j ∈ C.
∑
j∈C aj > b. A cover is minimal if C∖{j}
175
176
9 Strong Valid Inequalities
Note that C is a cover if and only if its associated incidence vector xC is infeasible
for X.
Proposition 9.2 If C ⊆ N is a cover for X, the cover inequality
∑
xj ≤∣ C ∣ −1
j∈C
is valid for X.
Proof. We show that if xR does not satisfy the inequality, then xR ∉ X. If
∑n
∑
R
xR > |C| − 1, then |R ∩ C| = |C| and thus R ⊇ C. Then,
j=1 aj xj =
∑j∈C j ∑
R
◽
j∈R aj ≥
j∈C aj > b and so x ∉ X.
Example 9.6 Consider the knapsack set
X = {x ∈ {0, 1}7 ∶ 11x1 + 6x2 + 6x3 + 5x4 + 5x5 + 4x6 + x7 ≤ 19}.
Some minimal cover inequalities for X are:
x1 +x2 +x3
+x6
x1 +x2
x1
+x5 +x6
x3 +x4 +x5 +x6
≤
≤
≤
≤
2
2
2
3.
◽
9.3.2 Strengthening Cover Inequalities
Are the cover inequalities “strong”? Is it possible to strengthen the cover inequalities so that they provide better cuts?
First, we observe that there is a simple way to strengthen the basic cover
inequality.
Proposition 9.3 If C is a cover for X, the extended cover inequality
∑
xj ≤ |C| − 1
(9.1)
j∈E(C)
is valid for X, where E(C) = C ∪ {j ∶ aj ≥ ai for all i ∈ C}.
The proof of validity is almost identical to that of Proposition 9.2.
Example 9.6 (cont.) The extended cover inequality for C = {3, 4, 5, 6} is
x1 + x2 + x3 + x4 + x5 + x6 ≤ 3. So the cover inequality x3 + x4 + x5 + x6 ≤ 3 is
dominated by the valid inequality x1 + x2 + x3 + x4 + x5 + x6 ≤ 3.
9.3 0–1 Knapsack Inequalities
Observe, however, that this is in turn dominated by the inequality 2x1 + x2 +
◽
x3 + x4 + x5 + x6 ≤ 3.
Can we define a procedure that allows us to find the last inequality, which is
nonredundant (facet-defining) and thus as strong as possible?
Example 9.6 (cont.) Consider again the cover inequality for C = {3, 4, 5, 6}.
Clearly when x1 = x2 = x7 = 0, the inequality x3 + x4 + x5 + x6 ≤ 3 is valid for
{x ∈ {0, 1}4 ∶ 6x3 + 5x4 + 5x5 + 4x6 ≤ 19}.
Now keeping x2 = x7 = 0, we ask for what values of 𝛼1 , the inequality
𝛼1 x1 + x3 + x4 + x5 + x6 ≤ 3
is valid for {x ∈ {0, 1}5 ∶ 11x1 + 6x3 + 5x4 + 5x5 + 4x6 ≤ 19}?
When x1 = 0, the inequality is known to be valid for all values of 𝛼1 .
When x1 = 1, it is a valid inequality
if and only if 𝛼1 + x3 + x4 + x5 + x6 ≤ 3 is valid for all x ∈ {0, 1}4 satisfying 6x3 +
5x4 + 5x5 + 4x6 ≤ 19 − 11, or equivalently
if and only if 𝛼1 + max{x3 + x4 + x5 + x6 ∶ 6x3 + 5x4 + 5x5 + 4x6 ≤ 8, x ∈
{0, 1}4 } ≤ 3, or equivalently
if and only if 𝛼1 ≤ 3 − 𝜁, where 𝜁 = max{x3 + x4 + x5 + x6 ∶ 6x3 + 5x4 + 5x5 +
4x6 ≤ 8, x ∈ {0, 1}4 }.
Now 𝜁 = 1 at the point x = (0, 0, 0, 1), and hence 𝛼1 ≤ 2.
Thus, the inequality is valid for all values of 𝛼1 ≤ 2, and 𝛼1 = 2 gives the strongest
inequality.
◽
In general, the problem is to find best possible values for 𝛼j for j ∈ N∖C such
that the inequality
∑
∑
xj +
𝛼j xj ≤ |C| − 1
j∈C
j∈N∖C
is valid for X.
The procedure we now describe leads to such a set of values and in fact provides
a facet-defining inequality for conv(X) when C is a minimal cover and aj ≤ b for
all j ∈ N.
Procedure to Lift Cover Inequalities
Let j1 , … , jr be an ordering of N∖C. Set t = 1.
∑
∑t−1
The valid inequality i=1 𝛼ji xji + j∈C xj ≤ |C| − 1 has been obtained so far.
∑t−1
To calculate the largest value of 𝛼jt for which the inequality 𝛼jt xjt + i=1 𝛼ji xji +
177
178
9 Strong Valid Inequalities
∑
j∈C xj ≤ |C| − 1 is valid, solve the knapsack problem:
𝜁t = max
t−1
∑
𝛼ji xji +
i=1
t−1
∑
i=1
aji xji +
∑
xj
j∈C
∑
aj xj ≤ b − ajt
j∈C
x ∈ {0, 1}|C|+t−1 .
Set 𝛼jt =∣ C ∣ −1 − 𝜁t .
Stop if t = r.
It can be seen that 𝜁t measures how much space is used up by the variables
{j1 , , … , jt−1 } ∪ C in the lifted inequality when xjt = 1.
Example 9.6 (cont.) If we take C = {3, 4, 5, 6}, j1 = 1, j2 = 2, and j3 = 7, we
have already been through the steps to calculate 𝛼1 = 2. Continuing with variable
x2 , 𝜁2 = max{2x1 + x3 + x4 + x5 + x6 ∶ 11x1 + 6x3 + 5x4 + 5x5 + 4x6 ≤ 19 − 6 = 13,
x ∈ {0, 1}5 } = 2, and thus 𝛼j2 = 𝛼2 = 3 − 2 = 1.
A similar calculation shows that 𝜁3 = 3 and thus 𝛼j3 = 𝛼7 = 0. Thus we finish
◽
with a facet-defining inequality 2x1 + 1x2 + 1x3 + 1x4 + 1x5 + 1x6 + 0x7 ≤ 3.
Returning to the question of the strength of the cover inequalities, it is not diffi∑
cult to show that j∈C xj ≤ |C| − 1 is facet-defining for conv(X ′ ) where X ′ = {x ∈
∑
{0, 1}|C| ∶ j∈C aj xj ≤ b}. This suggests that the inequality is strong. On the other
hand, it is clearly strengthened by the lifting procedure that terminates with a
facet-defining inequality for conv(X).
9.3.3 Separation for Cover Inequalities
Now let be the family of cover inequalities for X and let us examine the separation problem for this family. Explicitly we are given a nonintegral point x∗
with 0 ≤ xj∗ ≤ 1 for all j ∈ N and we wish to know whether x∗ satisfies all the
cover inequalities. To formalize this problem, note that the cover inequality can
be rewritten as
∑
(1 − xj ) ≥ 1.
j∈C
Thus, it suffices to answer the question:
∑
∑
Does there exist a set C ⊆ N with j∈C aj > b for which j∈C (1 − xj∗ ) < 1?, or
put slightly differently:
{∑
}
∑
∗
(1
−
x
)
∶
a
>
b
< 1?
Is 𝜁 = minC⊆N
j∈C
j∈C j
j
9.4 Mixed 0–1 Inequalities
As the set C is unknown, this can be formulated as a 0–1 integer program where
the variable zj = 1 if j ∈ C and zj = 0 otherwise. So the question can be restated yet
again:
}
{∑
∑
∗
n < 1?
Is 𝜁 = min
j∈N (1 − xj )zj ∶
j∈N aj zj > b, z ∈ {0, 1}
Theorem 9.2
(i) If 𝜁 ≥ 1, x∗ satisfies all the cover inequalities.
(ii) If 𝜁 < 1 with optimal solution zR , the cover inequality
∑
∗
j∈R xj ≤ |R| − 1 cuts off x by an amount 1 − 𝜁.
Example 9.7 Consider the 0–1 knapsack set
X = {x ∈ {0, 1}6 ∶ 45x1 + 46x2 + 79x3 + 54x4 + 53x5 + 125x6 ≤ 178}.
and the fractional point x∗ = (0, 0, 34 , 12 , 1, 0).
The cover separation problem is:
𝜁 = min
1z1 + 1z2 + 14 z3 + 12 z4 + 0z5 + 1z6
45z1 + 46z2 + 79z3 + 54z4 + 53z5 + 125z6 > 178
z ∈ {0, 1}6 .
An optimal solution is zR = (0, 0, 1, 1, 1, 0) with 𝜁 = 34 . Thus, the inequality
x3 + x4 + x5 ≤ 2
is violated by 1 − 𝜁 = 14 .
◽
9.4 Mixed 0–1 Inequalities
Here we consider the mixed 0–1 set:
{
}
∑
∑
n
n
X = (x, y) ∈ {0, 1} × ℝ+ ∶
yj ≤ b +
yj , yj ≤ aj xj for j ∈ N1 ∪ N2 .
j∈N1
j∈N2
Note that when N2 = ∅ and yj = aj xj for all j ∈ N1 , this reduces to the knapsack set
studied in Section 9.3. The set X can be viewed as the feasible region of a simple
fixed charge flow network (see Figure 9.3).
9.4.1 Flow Cover Inequalities
Definition 9.7 A set C = C1 ∪ C2 with C1 ⊆ N1 , C2 ⊆ N2 is a generalized cover
∑
∑
for X if j∈C1 aj − j∈C2 aj = b + 𝜆 with 𝜆 > 0. 𝜆 is called the (cover-)excess.
179
180
9 Strong Valid Inequalities
y1 ≤ a1 x1
b
y4 ≤ a4 x4
y2 ≤ a2 x2
y5 ≤ a5 x5
y3 ≤ a3 x3
Figure 9.3
Single node flow set.
Proposition 9.4 The flow cover inequality
∑
∑
∑
∑
yj +
(aj − 𝜆)+ (1 − xj ) ≤ b +
aj + 𝜆 xj +
j∈C1
j∈C1
j∈C2
j∈L2
∑
yj
j∈N2 ∖(C2 ∪L2 )
is valid for X, where L2 ⊆ N2 ∖C2 .
∑
First to motivate the proof, suppose that N2 = ∅. Let lhs = j∈C1 yj +
∑
+
j∈C1 (aj − 𝜆) (1 − xj ) denote the left-hand side of the inequality and rhs = b
the right-hand side. Consider a feasible solution (x, y). Let R = {j ∈ C1 ∶ aj >
𝜆, xj = 0}. There are two possibilities.
∑
∑
If R = ∅, then lhs = j∈C1 yj ≤ j∈N1 yj ≤ b = rhs.
On the other hand, if R ≠ ∅, then yj = 0 for j ∈ R and |R| ≥ 1, so lhs =
∑
∑
∑
∑
j∈C1 ∖R yj +
j∈R (aj − 𝜆) ≤
j∈C1 aj − 𝜆|R| ≤
j∈C1 aj − 𝜆 = b = rhs.
Proof. Let C1+ = {j ∈ C1 ∶ aj > 𝜆}. Now given a point (x, y) ∈ X, we must show
that (x, y) satisfies the inequality. Let T = {j ∈ N1 ∪ N2 ∶ xj = 1}. There are two
cases.
Case 1. ∣ C1+ ∖T ∣ + ∣ L2 ∩ T ∣= 0. Now
∑
∑
yj +
(aj − 𝜆)+ (1 − xj )
j∈C1
=
j∈C1
∑
∑
(aj − 𝜆)
j∈C1+ ∖T
j∈C1 ∩T
=
∑
yj +
(as ∣ C1+ ∖T ∣= 0)
yj
j∈C1 ∩T
≤
∑
j∈N1
≤ b+
(as yj ≥ 0)
yj
∑
yj
j∈N2
=b +
∑
j∈C2
yj +
(by definition of X)
∑
j∈L2 ∩T
yj +
∑
j∈N2 ∖(C2 ∪L2 )
yj
9.4 Mixed 0–1 Inequalities
≤ b+
∑
j∈C2
= b+
∑
∑
aj + 0 +
(as ∣ L2 ∩ T ∣= 0)
yj
j∈N2 ∖(C2 ∪L2 )
aj + 𝜆
j∈C2
∑
∑
xj +
j∈L2
yj .
j∈N2 ∖(C2 ∪L2 )
Case 2. ∣ C1+ ∖T ∣ + ∣ L2 ∩ T ∣≥ 1.
∑
∑
yj +
(aj − 𝜆)+ (1 − xj )
j∈C1
j∈C1
=
∑
yj +
∑
(aj − 𝜆)
j∈C1+ ∖T
j∈C1 ∩T
≤
∑
aj − ∣ C1+ ∖T ∣ 𝜆
(as yj ≤ aj )
j∈C1
≤
∑
j∈C1
=b +
aj − 𝜆 + 𝜆 ∣ L2 ∩ T ∣
∑
aj + 𝜆
j∈C2
≤b +
∑
∑
xj
j∈L2
aj + 𝜆
j∈C2
∑
j∈L2
(as − ∣ C1+ ∖T ∣≤ −1+ ∣ L2 ∩ T ∣)
∑
xj +
yj (as yj ≥ 0).
j∈N2 ∖(C2 ∪L2 )
◽
Example 9.8 Consider the set
X = {(x, y) ∈ {0, 1}6 × ℝ6+ ∶ y1 + y2 + y3 ≤ 4 + y4 + y5 + y6 ,
y1 ≤ 3x1 , y2 ≤ 3x2 , y3 ≤ 6x3 , y4 ≤ 3x4 , y5 ≤ 5x5 , y6 ≤ 1x6 }.
Taking C1 = {1, 3} and C2 = {4}, C = (C1 , C2 ) is a generalized cover with 𝜆 = 2.
Taking L2 = {5}, the resulting flow cover inequality is
y1 + y3 + 1(1 − x1 ) + 4(1 − x3 ) ≤ 7 + 2x5 + y6 .
◽
9.4.2 Separation for Flow Cover Inequalities∗
Assuming that yj = aj xj and aj ≥ 𝜆 for all j ∈ C1 , and that L2 = N2 ∖C2 , the flow
cover inequality becomes:
∑
∑
∑
∑
aj xj +
(aj − 𝜆)(1 − xj ) ≤ b +
aj + 𝜆
xj ,
j∈C1
j∈C1
j∈C2
j∈N2 ∖C2
or after simplification,
∑
∑
∑
∑
aj − 𝜆 (1 − xj ) ≤ b +
aj + 𝜆
xj .
j∈C1
j∈C1
j∈C2
j∈N2 ∖C2
181
182
9 Strong Valid Inequalities
Dividing by 𝜆, this becomes
∑
∑
(1 − xj ) +
xj ≥ 1,
j∈C1
j∈N2 ∖C2
or after rewriting,
∑
∑
∑
(1 − xj ) −
xj ≥ 1 −
xj .
j∈C1
j∈C2
j∈N2
This is nothing but the cover inequality for a 0–1 knapsack set with both posi∑
∑
tive and negative coefficients {x ∈ {0, 1}n ∶ j∈N1 aj xj − j∈N2 aj xj ≤ b} where the
∑
∑
cover (C1 , C2 ) satisfies j∈C1 aj − j∈C2 aj = b + 𝜆 with 𝜆 > 0.
This immediately suggests a separation heuristic for the flow cover inequalities.
Letting z be the unknown incidence vector of C = (C1 , C2 ), consider the knapsack
problem
∑
∑
𝜁 = min j∈N1 (1 − xj∗ )zj − j∈N2 xj∗ zj
∑
∑
j∈N1 aj zj −
j∈N2 aj zj > b
z ∈ {0, 1}n .
Let zC , the incidence vector of C, be an optimal solution.
Flow Cover Separation Heuristic
Take the cover C = (C1 , C2 ) obtained by solving this knapsack problem, and test
whether
∑
∑
∑
∑
∑
y∗j +
(aj − 𝜆)+ (1 − xj∗ ) > b +
aj + 𝜆 xj∗ +
y∗j
j∈C1
j∈C1
j∈C2
j∈L2
j∈N2 ∖(C2 ∪L2 )
where L2 = {j ∈ N2 ∖C2 ∶ 𝜆xj∗ < y∗j }. If so, a violated flow cover inequality has been
found.
Example 9.8 (cont.) Suppose that a solution (x∗ , y∗ ) is given with y∗ =
(3, 0, 4, 3, 0, 0) and x∗ = (1, 0, 23 , 1, 0, 0). Solving the knapsack problem
𝜁 = min 0 z1 + 1z2 + 13 z3 − 1z4 − 0z5 − 0z6
3z1 + 3z2 + 6z3 − 3z4 − 5z5 − z6 > 4
z ∈ {0, 1}6 ,
one obtains as solution C1 = {1, 3}, C2 = {4}, and 𝜆 = 2. The resulting flow cover
inequality
y1 + y3 + 1(1 − x1 ) + 4(1 − x3 ) ≤ 7 + y5 + y6
is violated by 43 .
◽
9.5 The Optimal Subtour Problem
As in the previous section, it is natural to ask if the flow cover inequality of
Proposition 9.4 is facet-defining, and if not to attempt to strengthen the inequality
by lifting. A partial answer is that the inequality is facet-defining when xj = yj = 0
for j ∈ N2 and C1 is a minimal cover. However, calculating valid lifting coefficients is more complicated because of the presence of the yj ≤ aj xj constraints, so it
becomes a computational question whether such lifting is worthwhile in practice.
9.5 The Optimal Subtour Problem
Consider a variant of the traveling salesman problem in which the salesperson
makes a profit fj for visiting city (client) j ∈ N, pays travel costs ce for traversing
edge e ∈ E, but is not obliged to visit all the cities. The subtour must start and end
at city 1, and include at least two other cities. This problem is also known as the
prize collecting traveling salesman problem, and is a subproblem of certain vehicle
routing problems. It is -hard.
Introducing binary edge variables: xe = 1 if edge e lies on the subtour and xe = 0
otherwise for e ∈ E; and binary node variables: yj = 1 if city j lies on the subtour
and yj = 0 otherwise for j ∈ N, a possible formulation is:
∑
∑
ce xe +
fj yj
(9.2)
max −
∑
e∈E
j∈N
xe = 2yi
for i ∈ N
e∈𝛿(i)
∑
xe ≤
e∈E(S)
∑
yi
for k ∈ S, S ⊆ N∖{1}
(9.3)
(9.4)
i∈S∖{k}
y1 = 1
(9.5)
x ∈ {0, 1}∣E∣ , y ∈ {0, 1}∣N∣ .
(9.6)
Constraints (9.3) ensure that if a node is visited, two adjacent edges are used to
enter and leave, and (9.4) are generalized subtour elimination constraints (GSEC),
which ensure that there is no subtour that does not contain node 1. Note that if we
allow xe ∈ {0, 1, 2} for e ∈ 𝛿(1), we also allow subtours consisting of node 1 and
just one other node.
The question addressed here is not to find new inequalities, but how to deal with
the exponential number of generalized subtour elimination constraints.
9.5.1 Separation for Generalized Subtour Constraints
Let N ′ = N∖{1}, and E′ = E∖{𝛿(1)}. To formalize the separation problem, we represent the unknown set S ⊆ N ′ by binary variables z with zi = 1 if i ∈ S. Now
183
184
9 Strong Valid Inequalities
(x∗ , y∗ ) violates the (k, S) generalized subtour inequality if
∑
∑
xe∗ >
y∗i ,
e∈E′ (S)
i∈S∖{k}
if and only if 𝜁k > 0 where
{
∑
𝜁k = max
e=(i,j)∈E′ ∶i<j
}
∑
xe∗ zi zj −
′
y∗i zi ∶ z ∈ {0, 1}∣N ∣ , zk = 1
.
i∈N ′ ∖{k}
Note that this is a quadratic 0–1 program without constraints.
We now show how this problem can be solved in polynomial time. First we
convert it into a linear integer program, and then we observe that the linear programming relaxation is integral.
We introduce variables 𝑤e with 𝑤e = 1 if zi = zj = 1 for e = (i, j) ∈ E′ with i < j
and we obtain the integer program
∑
∑
𝜁k = max xe∗ 𝑤e −
y∗i zi
(9.7)
e∈E′
(IP)
𝑤e ≤ zi , 𝑤e ≤ zj
i∈N ′ ∖{k}
for e = (i, j) ∈ E′
(9.8)
𝑤e ≥ zi + zj − 1 for e = (i, j) ∈ E′
(9.9)
′
′
𝑤 ∈ {0, 1}∣E ∣ , z ∈ {0, 1}∣N ∣ , zk = 1.
(9.10)
Proposition 9.5 If xe∗ ≥ 0 for e ∈ E′ , the linear program consisting of (9.7)–(9.9)
and the bound constraints obtained by relaxing integrality in (9.10) always has an
integer optimal solution solving IP.
Proof. Consider the linear programming relaxation of IP. As xe∗ ≥ 0 for all e ∈ E′ ,
there exists an optimal solution with 𝑤e as large as possible. Thus by (9.8), 𝑤e =
min(zi , zj ). As zi ≤ 1 for all i ∈ N ′ , min(zi , zj ) ≥ zi + zj − 1 and so (9.9) is automatically satisfied and can be dropped. Now each constraint of the linear programming
relaxation contains two nonzero coefficients of −1 and +1 and is thus totally unimodular by Proposition 3.2
◽
The constraint matrix in the dual of the linear program in Proposition 9.5 is a
node-arc incidence matrix, and so the problem can be solved as a max flow problem. As k ∈ {2, … , n}, the separation problem for GSECs can be solved exactly by
solving n − 1 max flow problems. In practice, very fast separation heuristics have
also been developed in computational studies of the TSP, which can be used to find
many violated GSECs.
9.5 The Optimal Subtour Problem
Example 9.9 We consider an instance of the optimal subtour problem with
n = 7, f = (2, 4, 1, 3, 7, 1, 7)
⎛ –
⎜ –
⎜
⎜ –
and (ce ) = ⎜ –
⎜
⎜ –
⎜ –
⎜
⎝ –
4
–
–
–
–
–
–
3
5
–
–
–
–
–
3
3
4
–
–
–
–
5
3
6
4
–
–
–
2
4
0
4
5
–
–
5 ⎞
7 ⎟
⎟
4 ⎟
6 ⎟.
⎟
8 ⎟
3 ⎟
⎟
– ⎠
Iteration 0. We solve a linear programming relaxation of problem (9.2)–(9.6) consisting of the degree constraints (9.3), constraint y1 = 1, the trivial GSECs xe ≤
yi , xe ≤ yj for e = (i, j) ∈ E, and the bounds on the variables.
The resulting solution consists of two subtours (1, 5, 2, 4) and (3, 6, 7) with
zLP = 4.
Iteration 1. The constraint x36 + x37 + x67 ≤ y3 + y7 is added cutting off the subtour
(3, 6, 7).
The solution of the new relaxation consists of two subtours (1, 3, 6, 7) and (2, 4, 5)
with zLP = 4.
Iteration 2. The constraint x24 + x25 + x45 ≤ y4 + y5 is added cutting off the subtour
(2, 4, 5).
The new LP solution is shown in Figure 9.4 with zLP = 4.
The separation problem for k = 7 is the linear program:
𝜁7 = max 1𝑤45 + 1𝑤25 + 0.5𝑤27 + 0.5𝑤67 + 0.5𝑤37 + 0.5𝑤36
−1z2 − 0.5z3 − 1z4 − 1z5 − 0.5z6
subject to 0 ≤ 𝑤e ≤ zi , zj ≤ 1 for e = (i, j) ∈ E′ , z7 = 1.
An optimal solution is z3 = z6 = z7 = 𝑤36 = 𝑤37 = 𝑤67 = 1 with violation
𝜁7 = 12 .
Iteration 3. The constraint x36 + x37 + x67 ≤ y3 + y6 is added.
1
Figure 9.4 Fractional
optimal subtour solution.
1
1
4
7
1
2
3
1
1
5
xe = 1
6
0.5
0.5
xe = 0.5
185
186
9 Strong Valid Inequalities
The new linear programming solution is the single subtour (1, 2, 5, 4, 7, 6), which
is thus optimal with value of 2.
◽
9.6 Branch-and-Cut
Successful solution of difficult IPs requires a combination of the many different ideas developed in this and earlier chapters. In Chapter 7, in discussing
branch-and-bound, we mentioned the importance of efficient preprocessing,
fast solution and reoptimization of linear programs, and good search strategies.
The need for good primal heuristics was also stressed and ideas for using the
linear programming solution to try to construct feasible solutions are discussed
in Chapter 13.
In this and Chapter 8, we have considered the development of valid inequalities along with separation algorithms so as to generate cuts that tighten up the
formulations
A Cut-and-Branch Algorithm is a branch-and-bound algorithm in which cuts
are generated at the top node of the tree before branch begins. A Branch-and-Cut
Algorithm is a branch-and-bound algorithm in which cutting planes are generated throughout the branch-and-bound tree. Though this may seem to be a minor
difference, in practice, the introduction of cuts leads to a change in philosophy.
Rather than reoptimizing fast at each node, the new viewpoint is that we are ready
to work hard at a node if it enables us to obtain a tight dual bound at the node. So
now the goal is not only to reduce the number of nodes in the tree significantly by
using cuts and improved formulations but also by trying anything else that may
be useful such as preprocessing at each node, a primal heuristic at each node, and
so forth.
In practice, there is obviously a trade-off. If many cuts are added at each node,
reoptimization may be much slower than before. In addition, keeping all the information in the tree is significantly more difficult. In branch-and-bound, the problem to be solved at each node is obtained just by adding bounds. In branch-and-cut,
a cut pool is used in which all the cuts are stored. In addition to keeping the bounds
and a good basis in the node list, it is also necessary to indicate which constraints
are needed to reconstruct the formulation at the given node, so pointers to the
appropriate constraints in the cut pool are kept. There are also many new questions
that arise concerning the use of cuts in the nodes, cut selection, cuts vs branching,
locally valid vs globally valid cuts, etc.
A flowchart of the basic steps of a branch-and-cut algorithm is shown in
Figure 9.5.
9.6 Branch-and-Cut
INITIALIZATION
Z = max{cx : x ∈ X}
with formulation P
Z = −∞, incumbent x∗ empty
PRESOLVE initial problem
and put on Nodelist
NODE
If Nodelist empty, go to EXIT
Else choose and remove node i from Nodelist
and go to RESTORE
RESTORE
the formulation P i of the set Xi
Call NODE PRESOLVE
Set k = 1 and Pi,1 = P i
LP RELAXATION
Iteration k. Solve Zi,k = max {cx : x ∈ Pi,k}
If infeasible, prune and go to NODE
Else, call HEURISTIC. Possibly update incumbent
Solution xi,k and go to CUT
CUT
Iteration k. Try to cut off xi,k
If no cuts found, go to PRUNE
Else add cuts to Pi,k giving Pi,k+1
Increase k by 1 and go to LP RELAXATION
PRUNE
If Zi,k ≤ Z, go to NODE
i,k
If x
∈ X, set Z = Zi,k,
update incumbent x∗ ← xi,k
and go to NODE
Else go to BRANCHING
BRANCHING
Create two new subproblems X
with formulations P
Add them to the Node List
EXIT
Incumbent x∗ optimal
Optimal value Z
Figure 9.5
Branch-and-cut.
187
188
9 Strong Valid Inequalities
Example 9.10 0-1 Knapsack Problem. We consider the instance
max 1x1 +8x2 +12x3 +16x4 +17x5 +22x6 +24x7
2x1 +4x2 +5x3 +13x4 +14x5 +15x6 +22x7 ≤ 31
x
∈ {0, 1}7
We apply a simple branch-and-cut algorithm without preprocessing or heuristics that generates extended 0–1 cover inequalities (9.1) as cuts and is limited to
three cuts at each node.
Node 1.
Iteration 1. ZLP = 50.615, LP solution (0, 1, 1, 0.538, 0, 1, 0)
C = {3, 4, 6} Inequality x3 + x4 + x6 + x7 ≤ 2.
Iteration 2. ZLP = 50.5, LP solution (0, 1, 1, 0, 0.5, 1, 0)
C = {2, 5, 6} Inequality x2 + x5 + x6 + x7 ≤ 2.
Iteration 3. ZLP = 48.417, LP solution (0, 1, 1, 0.583, 0.583, 0.417, 0)
C = {3, 4, 5} Inequality x3 + x4 + x5 + x6 + x7 ≤ 2.
3 cuts added, so decide to branch.
ZLP = 45.5, LP solution (0, 1, 0.125, 0.875, 0, 1, 0)
Node 2. Branch x4 = 1
Iteration 1. ZLP = 45, LP solution (0, 1, 0.1, 1, 0, 0.9, 0)
C = {2, 4, 6}. Inequality x2 + x4 + x6 + x7 ≤ 2.
Iteration 2. ZLP = 41, LP solution (0, 1, 0, 1, 1, 0, 0)
New incumbent Z = 41. Prune node by optimality.
Node 3. Branch x4 = 0
Iteration 1. ZLP = 44.538, LP solution (1, 0.615, 0.615, 0, 0, 1, 0.385)
C = {6, 7} Inequality x6 + x7 ≤ 1
Iteration 2. ZLP = 44.429, LP solution (1, 1, 1, 0, 0, 0.286, 0.714)
C = {1, 2, 3, 7} Inequality x1 + x2 + x3 + x7 ≤ 3
Iteration 3. ZLP = 44, LP solution (0, 1, 1, 0, 0, 0, 1)
New incumbent Z = 44. Prune node by optimality.
STOP. Nodelist empty. Optimal solution. Z = 44, x = (0, 1, 1, 0, 0, 0, 1)
The corresponding branch-and-cut tree is shown in Figure 9.6.
45.5
Figure 9.6
1
x4 = 0
x4 = 1
44
41
3
44
2
41
Branch-and-cut tree.
◽
9.7 Notes
9.7 Notes
The use of cutting planes as a practical tool for solving general integer programs
was almost completely abandoned in the 1960s and 1970s. However, the interest
in looking for strong valid inequalities for -hard problems in the early 1970s
can perhaps be traced to two sources:
(i) The beautiful polyhedral results of Edmonds and Fulkerson in the late 1960s
in deriving the convex hulls of the sets of incidence vectors for matching,
branching, and matroid problems, as well as the results of Gomory, and
Gomory and Johnson in developing characterizations of the valid inequalities
for group and integer programming problems, and
(ii) The idea that because of -completeness theory, there is no hope of an efficient algorithm for integer programming, and therefore that it is important
to study specific problem structure if progress on -hard problems is to
be made.
The first polyhedral studies in the early seventies, other than those of the knapsack polytope, were of the stable set polytope, see Padberg [239], Nemhauser and
Trotter [232] and the TSP polytope, see Grötschel and Padberg [165].
9.2 Books on polyhedra include Grunbaum [166], Stoer and Witzgall [271], and
Ziegler [304]. Surveys specially written with integer programming and combinatorial optimization in view are Pulleyblank [253] and Chapter I.1.4 in [233].
9.3 Cover inequalities for 0–1 knapsack polytopes were developed simultaneously
in Balas [22], Hammer et al. [172], and Wolsey [294]. The concept of lifting,
already present in Gomory [157], was extended in Padberg [239] and Wolsey
[295]. A major step forward came with the use of these inequalities in a cutting
plane/branch-and-bound algorithm for 0–1 IPs in Crowder et al. [86]. Since
around the year, 2000 separation routines for these inequalities were introduced into the commercial solvers such as CPLEX, GUROBI, and XPRESS.
Since then different computational studies such as Bixby et al. [54], Achterberg and Wunderling [7] have shown that cuts are one of the most important
elements in the codes.
There have also been many generalizations such as in Weismantel [289] for
0–1 knapsacks, and the generalization of cover inequalities to 0–1 knapsacks
with GUB constraints in Wolsey [298] and to integer knapsacks in Ceria et al.
[65].
9.4 Flow cover inequalities appeared first in Padberg et al. [242] and were implemented computationally in Van Roy and Wolsey [284]. Related inequalities
for the model appear in Atamtürk [14]. Stronger liftings of the flow cover
inequalities and extensive computational tests are presented in Gu et al. [167].
A mixed integer model consisting of a 0–1 knapsack constraint plus a single continuous variable is studied in Marchand and Wolsey [220]. Significant
189
190
9 Strong Valid Inequalities
generalizations can be found among others in Atamtürk and Günlük [15] and
Atamtürk et al. [16].
9.5 The optimal subtour problem is studied in Balas [23]; see also Bauer [35]
and more recently Jepsen et al. [184]. The GSEC inequalities are proposed
by Goemans [149] in studying the Steiner tree problem. The reduction of the
quadratic 0–1 problem to the dual of a network flow problem is folklore. The
reduction to a series of max flow problems is in Rhys [258]. The problem of
finding violated subtour elimination constraints quickly is faced by all the
researchers developing computational studies of the TSP problem. Padberg
and Rinaldi [241] present very effective heuristic separation routines. The
major reference is now the book of Applegate et al. [12] devoted to the TSP
problem.
9.6 An early survey on branch-and-cut is Jünger et al. [191]. See also the annotated bibliography of Caprara and Fischetti [63], which contains references
to applications in general mixed integer programming, routing, scheduling,
graph partitioning, set packing and covering, network design, and location
problems among others. In the last 20 years, branch-and-cut has become the
standard approach in the majority of computational studies involving discrete
optimization.
Two publicly available research solvers designed so that the user can develop
branch-and-cut applications are COIN [73] and SCIP [268]. However, the commercial codes such as CPLEX, XPRESS, and GUROBI also have subroutine
libraries and call-backs allowing the user the possibility to develop specialized
branch-and-cut algorithms.
9.8 Exercises
1.
2.
3.
Consider the set X = {x ∈ Z+2 ∶ x1 − x2 ≥ −1, 2x1 + 6x2 ≤ 15, x1 − x2 ≤
3, 2x1 + 4x2 ≤ 7}. List and represent graphically the set of feasible points.
Use this to find a minimal description of conv(X).
∑
Let X = {x ∈ {0, 1}n ∶ j∈N aj xj ≤ b} with aj > 0 for j ∈ N and b > 0. Show
∑
that a valid inequality j∈N 𝜋j xj ≤ 𝜋0 with 𝜋0 > 0 and 𝜋j < 0 for j ∈ T ⊆
∑
N, T ≠ ∅ is dominated by the valid inequality j∈N max[𝜋j , 0]xj ≤ 𝜋0 .
In each of the examples below, a set X and a point x∗ are given. Find a valid
inequality for X cutting off x∗ .
(i)
X = {x ∈ {0, 1}5 ∶ 9x1 + 8x2 + 6x3 + 6x4 + 5x5 ≤ 14}
)
(
5 3 3
x∗ = 0, , , , 0 ,
8 4 4
9.8 Exercises
(ii)
X = {x ∈ {0, 1}5 ∶ 9x1 + 8x2 + 6x3 + 6x4 + 5x5 ≤ 14}
x∗ =
(iii)
(iv)
4.
(
)
1 1 3 3
, , , ,0 ,
4 8 4 4
X = {x ∈ {0, 1}5 ∶ 7x1 + 6x2 + 6x3 + 4x4 + 3x5 ≤ 14}
)
(
1 1
1
, 1, , , 1 ,
x∗ =
7
2 4
X = {x ∈ {0, 1}5 ∶ 12x1 − 9x2 + 8x3 + 6x4 − 3x5 ≤ 2}
(
)
1 1
x∗ = 0, 0, , , 1 .
2 6
Consider the knapsack set
X = {x ∈ {0, 1}6 ∶ 12x1 + 9x2 + 7x3 + 5x4 + 5x5 + 3x6 ≤ 14}.
Set x1 = x2 = x4 = 0, and consider the cover inequality x3 + x5 + x6 ≤ 2 that
is valid for X ′ = X ∩ {x ∶ x1 = x2 = x4 = 0}.
(i) Lift the inequality to obtain a strong valid inequality 𝛼1 x1 + 𝛼2 x2 +
𝛼4 x4 + x3 + x5 + x6 ≤ 2 for X.
(ii) ∗ ) Show that x3 + x5 + x6 ≤ 2 defines a facet of X ′ .
(iii) ∗ ) Use (ii) and the calculations in (i) to show that the inequality obtained
in (i) defines a facet of conv(X).
5.
Consider the set X = {(x, y) ∈ {0, 1} × ℝ4+ ∶ y1 + y2 + y3 + y4 ≥ 36, y1 ≤ 20x1 ,
y2 ≤ 10x2 , y3 ≤ 10x3 , y4 ≤ 8x4 }
(i) Derive a valid inequality that is a 0–1 knapsack constraint.
(ii) Use this to cut off the fractional point y∗ = (20, 10, 0, 6), x∗ = (1, 1, 0, 34 )
with an inequality involving only x variables.
6.
In each of the examples below a set X and a point (x∗ , y∗ ) are given. Find a
valid inequality for X cutting off (x∗ , y∗ ).
(i) X = {(x, y)(∈ {0, 1}3 × ℝ)3+ ∶ y1 + y2 + y3 ≤ 7, y1 ≤ 3x1 , y2 ≤ 5x2 , y3 ≤ 6x3}
2
, 1, 0; 2, 5, 0 .
3
X = {(x, y)( ∈ {0, 1}3 × ℝ)3+ ∶ 7 ≤ y1 + y2 + y3 , y1 ≤ 3x1 , y2 ≤ 5x2 , y3 ≤ 6x3 }
(x∗ , y∗ ) = 23 , 1, 0; 2, 5, 0 .
X = {(x, y) ∈ {0, 1}6 × ℝ6+ ∶ y1 + y2 + y3 ≤ 4 + y4 + y5 + y6 , y1 ≤ 3x1 ,
(x∗ , y∗ ) =
(ii)
(iii)
y2 ≤ 3x2 , y3 ≤ 6x3 , y4 ≤ 3x4 , y5 ≤ 5x5 , y6 ≤ 1x6 }.
(x∗ , y∗ ) = (1, 1, 0, 0, 25 , 0; 3, 3, 0, 0, 2, 0).
191
192
9 Strong Valid Inequalities
7.
Consider the set X = {(x, y) ∈ {0, 1} × ℝ3+ ∶ y1 + y2 ≤ b + y3 , y2 ≤ Mx}.
Derive a flow cover inequality with C = ({2}, ∅). For the constraints of ULS,
st−1 + yt = dt + st , yt ≤ Mxt , yt , st−1 , st ≥ 0, xt ∈ {0, 1}, what is the resulting
inequality?
8.
Consider the set X = {(y1 , x2 , x3 , x4 ) ∈ R1+ × {0, 1}3 ∶ y1 ≤ 1000x2 +
1500x3 + 2200x4 , y1 ≤ 2000}.
Show that it can be rewritten as a mixed 0–1 set
X ′ = {(x, y) ∈ {0, 1}4 × ℝ4+ ∶ y1 ≤ y2 + y3 + y4 ,
y1 ≤ 2000x1 , y2 ≤ 1000x2 , y3 ≤ 1500x3 , y4 ≤ 2200x4 }
with the additional constraints
x1 = 1, y2 ≥ 1000x2 , y3 ≥ 1500x3 , y4 ≥ 2200x4 .
Use this to find a valid inequality for X cutting off
(y1 , x2 , x3 , x4 ) = (2000, 0, 1,
5
).
22
9.
X is the set of incidence vectors of STSP tours. Find a valid inequality for
conv(X) cutting off the point x∗ given in Figure 9.7.
10.
Solve the optimal subtour problem with n = 6, f = (0, 19, 13, 1, 8, 12) and
⎛ − 2 8 16 3 4 ⎞
⎟
⎜
− 6 4 3 8 ⎟
⎜
⎜
− 10 12 9 ⎟
.
(ce ) = ⎜
− 5 7 ⎟⎟
⎜
− 13 ⎟
⎜
⎜
− ⎟⎠
⎝
1
0.5
2
0.75
Figure 9.7
3
0.5
0.75
0.75
0.75
6
0.75
0.5
5
4
0.75
Fractional solution of STSP.
9.8 Exercises
11.
Solve the quadratic 0–1 problem
max{x ∈ {0, 1}5 ∶ x1 x2 + 2x1 x3 + 3x1 x4 + 8x1 x5 + 1x2 x4 + 3x2 x5 + 6x3 x4
x≠0
+5x4 x5 − x1 − 4x2 − 10x3 − 2x4 − 2x5 }.
12.
Consider the optimal subtree of a tree problem (Section 5.3) with an additional budget constraint, with feasible region: X = {x ∈ {0, 1}n ∶ xj ≤ xp(j)
∑
for j ≠ 1, j∈N aj xj ≤ b} where p(j) is the predecessor of j in the tree rooted at
node 1. C ⊆ N is a tree cover if the nodes of C form a subtree rooted at node
∑
1 and j∈C aj > b.
∑
Show that if C is a tree cover, the inequality j∈C (xp(j) − xj ) ≥ 1 is valid for X
when x1 = 1.
13.
A possible formulation of the capacitated facility location problem is:
∑
yij = ai for i ∈ M
j∈N
∑
yij ≤ bj xj for j ∈ N
i∈M
n
y ∈ ℝmn
+ , x ∈ {0, 1} .
∑
Given an instance with m = 5 and n = 3, use the substitution 𝑣j = i∈M yij
∑
∑
and j∈N 𝑣j = i∈M ai to obtain an inequality cutting off the fractional solu4 11
tion consisting of the flow y∗ shown in Figure 9.8 and x∗ = (1, 15
, 15 ).
14.
Given a graph G = (V, E) with n =∣ V ∣, consider the set of incidence vectors
of the stable sets X = {x ∈ {0, 1}n ∶ xi + xj ≤ 1 for e = (i, j) ∈ E}. Show that
∑
the clique inequality j∈C xj ≤ 1 is valid and defines a facet of conv(X), where
a clique C ⊆ V is a maximal set of nodes with the property that for all pairs
i, j ∈ C, the edge e = (i, j) is in E.
Figure 9.8
Fractional solution of CFL.
4
2
ai
bj
4
10
1
5
12
5
3
7
3
7
1
15
193
194
9 Strong Valid Inequalities
15.
∗ Show that inequalities at least as strong as the cover and extended cover
inequalities can be obtained by one application of the Chvátal-Gomory procedure of Section 8.3.
16.
Consider GAP with equality constraints
max
m n
∑
∑
cij xij
i=1 j=1
n
∑
xij = 1 for i = 1, … , m
j=1
m
∑
aij xij ≤ bj for j = 1, … , n
i=1
x ∈ {0, 1}mn .
⎛5 7 ⎞
⎛20 16⎞
Solve an instance with m = 3, n = 2, (aij ) = ⎜3 8 ⎟, (cij ) = ⎜15 19⎟,
⎜
⎟
⎜
⎟
⎝2 10⎠
⎝19 14⎠
( )
6
and b =
with cutting planes.
21
17.
(Superadditive Inequalities) See Definition 2.6. Consider the feasible region
X = {x ∈ ℤn+ ∶ Ax ≤ b} and let = {F ∶ ℝm → ℝ1 ∶ F is superadditive, F is
nondecreasing, F(0) = 0}.
∑n
(i) Show that j=1 F(aj )xj ≤ F(b) is a valid inequality for X.
∑n
(ii) Show that F ∶ ℝm → ℝ1 with F(d) = ⌊ i=1 ui di ⌋ is superadditive for
u ∈ ℝm
+.
(iii) Show that if F 1 , F 2 ∈ , then F ∗ = min(F 1 , F 2 ) ∈ .
195
10
Lagrangian Duality
10.1 Lagrangian Relaxation
Consider the integer program:
Z = max cx
Ax ≤ b
Dx ≤ d
x ∈ ℤn+ .
(IP)
Suppose that the constraints Dx ≤ d are “nice” in the sense that an integer program with just these constraints (e.g. network constraints) is relatively easy. Thus,
if we drop the “complicating constraints” Ax ≤ b, the resulting relaxation is easier to solve than the original problem integer program (IP). Many problems have
such a structure, for example, the traveling salesman problem if one drops the
connectivity constraints, the uncapacitated facility location problem if one drops
the client demand constraints, and so on. However, the resulting bound obtained
from the relaxation may be weak because some important constraints are totally
ignored. One way to tackle this difficulty is by Lagrangian relaxation, briefly introduced in Chapter 2.
We consider the problem IP in a slightly more general form:
Z = max cx
Ax ≤ b
x∈X
where Ax ≤ b are m complicating constraints.
For any value of u = (u1 , … , um ) ≥ 0, we define the problem:
(IP(u))
Proposition 10.1
Z(u) = max cx + u(b − Ax)
x ∈ X.
Problem IP(u) is a relaxation of problem IP for all u ≥ 0.
Integer Programming, Second Edition. Laurence A. Wolsey.
© 2021 John Wiley & Sons, Inc. Published 2021 by John Wiley & Sons, Inc.
Companion website: www.wiley.com/go/wolsey/integerprogramming2e
196
10 Lagrangian Duality
Proof. Remember that IP(u) is a relaxation of IP if:
(i) The feasible region is at least as large. This holds because S = {x ∶ Ax ≤ b, x ∈
X} ⊆ X.
(ii) The objective value is at least as great in IP(u) as in IP for all feasible solutions
to IP. If x ∈ S and u ≥ 0, then Ax ≤ b, u(b − Ax) ≥ 0 and thus cx + u(b − Ax) ≥
◽
cx for all x ∈ S.
We see that in IP(u) the complicating constraints are handled by adding
them to the objective function with a penalty term u(b − Ax), or in other
words, u is the price or dual variable or Lagrange multiplier associated with the
constraints Ax ≤ b.
Problem IP(u) is called a Lagrangian relaxation (subproblem) of IP with parameter u. As IP(u) is a relaxation of IP, Z(u) ≥ Z and we obtain an upper bound on
the optimal value of IP. To find the best (smallest) upper bound over the infinity
of possible values for u, we need to solve the Lagrangian Dual Problem:
(LD)
WLD = min{Z(u) ∶ u ≥ 0}.
Observation 10.1 When the m constraints that are dualized are equality constraints of the form Ax = b, the corresponding Lagrange multipliers u ∈ ℝm are
unrestricted in sign, and the Lagrangian dual (LD) becomes
WLD = minu Z(u).
Solving the Lagrangian relaxation IP(u) may sometimes lead to an optimal solution
of the original problem IP.
Proposition 10.2
If u ≥ 0,
(i) x(u) is an optimal solution of IP(u), and
(ii) Ax(u) ≤ b, and
(iii) (Ax(u))i = bi whenever ui > 0 (complementarity),
then x(u) is optimal in IP.
Proof. By (i) WLD ≤ Z(u) = cx(u) + u(b − Ax(u)). By (iii) cx(u) + u(b − Ax(u)) =
cx(u). By (ii) x(u) is feasible in IP and so cx(u) ≤ Z. Thus, WLD ≤ cx(u) + u(b −
Ax(u)) = cx(u) ≤ Z. But as WLD ≥ Z, equality holds throughout and x(u) is optimal
in IP.
◽
Note also that if the constraints dualized are equality constraints, condition (iii)
is automatically satisfied. So an optimal solution to IP(u) is optimal for IP if it is
feasible in IP.
10.1 Lagrangian Relaxation
Consider now the application of this approach to the UFL problem, starting with
the strong formulation:
∑
∑
Z = max
cij yij −
fj xj
i∈M,j∈N
∑
(IP)
j∈N
j∈N
= 1
yij
yij
−xj
y ∈ ℝ∣M∣×∣N∣
,
+
x ∈ {0, 1}∣N∣ .
for i ∈ M
≤ 0 for i ∈ M, j ∈ N
Dualizing the demand constraints gives:
∑
∑
∑
Z(u) = max
(cij − ui )yij −
fj xj +
ui
i∈M,j∈N
(IP(u))
yij ≤ xj
j∈N
i∈M
for i ∈ M, j ∈ N
, x ∈ {0, 1}∣N∣ .
y ∈ ℝ∣M∣×∣N∣
+
This in turn breaks up into a subproblem for each location. Thus, Z(u) =
∑
∑
j∈N Zj (u) +
i∈M ui where
Zj (u) = max
(IPj (u))
yij ≤ xj
∑
i∈M
(cij − ui )yij − fj xj
for i ∈ M,
y.j ∈ ℝ|M|
+ , xj ∈ {0, 1}.
Problem IPj (u) is easily solved by inspection. If xj = 0, then yij = 0 for all i, and the
objective value is 0. If xj = 1, all clients that are profitable are served, namely those
∑
with cij − ui > 0. The objective value is then i∈M max[cij − ui , 0] − fj . So Zj (u) =
∑
max{0, i∈M max[cij − ui , 0] − fj }.
Example 10.1 Uncapacitated facility location. Consider an instance with m = 6
clients and n = 5 potential locations, fixed location costs f = (2, 4, 5, 3, 3) and the
client-location profit matrix
⎛6
⎜
⎜4
⎜3
(cij ) = ⎜
⎜2
⎜1
⎜3
⎝
2
10
2
0
8
2
1
2
4
4
6
4
3
6
1
1
2
8
5⎞
⎟
1⎟
3⎟
.
4⎟⎟
5⎟
1⎟⎠
197
198
10 Lagrangian Duality
Taking u = (5, 6, 3, 2, 5, 4), we obtain the revised profit matrix
⎛1
−3 −4 −2 0 ⎞
⎟
⎜
−2
4
−4 0
−5⎟
⎜
⎜0
−1 1
−2 0 ⎟
(cij − ui ) = ⎜
−2 2
−1 2 ⎟⎟
⎜0
1
−3 0 ⎟
⎜−4 3
⎜−1 −2 0
4
−3⎟⎠
⎝
∑
with i∈M ui = 25. The resulting Lagrangian problem IP(u) is then solved by
inspection as described above. For instance, for j = 2, we obtain value 0 if x2 = 0.
On the other hand, if x2 = 1 at a cost of 4, we can set y22 = 1 as c22 − u2 = 4 > 0
and y52 = 1 as c52 − u5 = 3, and thus the net profit with x2 = 1 is 7 − 4 = 3. Hence,
it is optimal to set x2 = 1 giving Z2 (u) = 3.
Carrying out a similar calculation for each depot, an optimal solution
of IP(u) is to set x1 = x3 = x5 = 0, x2 = y22 = y52 = 1, x4 = y64 = 1 giving
∑
Z(u) = 3 + 1 + i∈M ui = 29.
◽
Now consider the application of Lagrangian relaxation to the symmetric traveling
salesman problem (STSP). Remember that a 1-tree is a tree on the graph induced
by nodes {2, … , n} plus two edges incident to node 1; see Section 2.3. So a tour is
any 1-tree having two edges incident to each node.
Alternatively, we have seen that the problem of finding a minimum cost tour
can be formulated as an integer program:
∑
ce xe
(10.1)
Z = min
e∈E
∑
xe = 2 for i ∈ V
(10.2)
xe ≤ |S| − 1 for 2 ≤ |S| ≤ |V| − 1
(10.3)
x ∈ {0, 1}∣E∣ .
(10.4)
e∈𝛿(i)
∑
e∈E(S)
Observation 10.2 Half the subtour constraints (10.3) are redundant. For any
feasible solution of the linear programming relaxation of this formulation, ∣ S ∣
∑ ∑
∑
∑
∑
− e∈E(S) xe = 12 i∈S e∈𝛿(i) xe − e∈E(S) xe = 12 e∈𝛿(S,S) xe where 𝛿(S, S) is the set of
edges with one endpoint in S and the other in S = V ∖ S. Therefore, as 𝛿(S, S) =
∑
∑
∑
𝛿(S, S), ∣ S ∣ − e∈E(S) xe =∣ S ∣ − e∈E(S) xe and so e∈E(S) xe ≤∣ S ∣ −1 if and only if
∑
∣ −1. Note also that summing the constraints (10.2) and dividing by
e∈E(S) xe ≤∣ S
∑
2, we obtain e∈E xe = n.
Therefore, we can drop all subtour elimination constraints with 1 ∈ S. Now to
obtain a Lagrangian relaxation, we dualize all the degree constraints on the nodes,
10.1 Lagrangian Relaxation
but also leave the degree constraint on node 1, and the constraint that the total
number of edges is n, giving:
∑
∑
Z(u) = min (ce − ui − uj )xe + 2
ui
e∈E
∑
i∈V
xe = 2
(10.5)
xe ≤ |S| − 1 for 2 ≤ |S| < |V|, 1 ∉ S
(10.6)
xe = n
(10.7)
e∈𝛿(1)
∑
(IP(u))
e∈E(S)
∑
e∈E
x ∈ {0, 1}∣E∣ .
The feasible solutions of IP(u) are precisely the 1-trees. Finding a minimum
weight 1-tree is easy, so this is potentially an interesting relaxation. Note also that
as STSP is a minimization problem, its Lagrangian dual is a maximization problem. As the dualized constraints are equality constraints, the dual variables are
unrestricted in sign. Thus here, WLD = max Z(u).
u
Example 10.2 Consider an instance of STSP with edge cost matrix
⎛–
⎜–
⎜
(ce ) = ⎜–
⎜–
⎜
⎝–
30
–
–
–
–
26
24
–
–
–
50
40
24
–
–
40⎞
50⎟
⎟
26⎟ .
30⎟
⎟
–⎠
Taking dual variables u = (0, 0, −15, 0, 0) and writing ce = ce − ui − uj , we obtain
the revised cost matrix
⎛–
⎜–
⎜
(ce ) = ⎜–
⎜–
⎜
⎝–
30
–
–
–
–
41
39
–
–
–
50
40
39
–
–
40⎞
50⎟
⎟
41⎟ .
30⎟
⎟
–⎠
The optimal 1-tree is found by taking the two cheapest edges out of node 1, that
is, edges (1, 2) and (1, 5), plus the edges of an optimal tree on nodes {2, 3, 4, 5}.
Choosing greedily, the edges (4, 5), (2, 3), and (3, 4) are chosen in that order. Z(u) is
∑
the sum of the length of this 1-tree and the value of 2 ui , namely 178 − 30 = 148.
The resulting 1-tree is shown in Figure 10.1.
We have that Z(u) = 148 ≤ Z. However, as the 1-tree is a tour, it is readily checked
that its length is also 148. Thus, this tour is optimal. This also follows directly from
Proposition 10.2.
◽
199
200
10 Lagrangian Duality
1
30
Figure 10.1
2
40
39
5
3
30
Optimal tour for STSP.
39
4
The questions that we would now like to answer are as follows:
(i) How good is the upper bound obtained by solving the Lagrangian dual?
and
(ii) How can one solve the Lagrangian dual?
10.2 The Strength of the Lagrangian Dual
To understand the Lagrangian dual problem (LD), we suppose for simplicity that
the set X contains a very large but finite number of points {x1 , … , xT }. Now
WLD = minu≥0 Z(u)
= minu≥0 {maxx∈X [cx + u(b − Ax)]}
= minu≥0 {maxt=1,…,T [cxt + u(b − Axt )]}.
WLD = min 𝜂
(10.8)
𝜂 ≥ cxt + u(b − Axt )
for all t
1
u ∈ ℝm
+,𝜂 ∈ ℝ ,
(10.9)
(10.10)
where the new variable 𝜂 has been introduced to represent an upper bound on
Z(u). The latter problem is a linear program. Taking its dual gives
T
∑
𝜇t (cxt )
(10.11)
𝜇t (Axt − b) ≤ 0
(10.12)
WLD = max
t=1
T
∑
t=1
T
∑
𝜇t = 1
(10.13)
t=1
Now setting x =
𝜇 ∈ ℝT+ .
∑T
T
t
t=1 𝜇t x and using
t=1 𝜇t = 1, 𝜇 ∈ ℝ+ , we get
∑T
WLD = max{cx ∶ Ax − b ≤ 0, x ∈ conv(X)}
(10.14)
10.2 The Strength of the Lagrangian Dual
More generally it can be shown that the result still holds when X = {x ∈ ℤn+ ∶
Dx ≤ d} is the feasible region of any integer program.
Theorem 10.1 WLD = max{cx ∶ Ax ≤ b, x ∈ conv(X)}.
This theorem tells us precisely how strong a bound we obtain from dualization.
In certain cases, it is no stronger than that of the linear programming relaxation.
Corollary 10.1 If X = {x ∈ ℤn+ ∶ Dx ≤ d} and conv(X) = {x ∈ ℝn+ ∶ Dx ≤ d},
then WLD = max{cx ∶ Ax ≤ b, Dx ≤ d, x ∈ ℝn+ }.
For STSP, as constraints (10.5)–(10.7) with x ≥ 0 describe the convex hull of
the incidence vectors of 1-trees, this corollary tells us that WLD gives us precisely
the value of the linear programming relaxation of formulation (10.1)–(10.4).
This is very interesting because it means that we have found a way to solve a
linear program with an exponential number of constraints without treating them
explicitly.
Definition 10.1 A function f ∶ ℝn → ℝ1 is convex if for all x1 , x2 ∈ ℝn and 0 ≤
𝜆 ≤ 1, f (𝜆x1 + (1 − 𝜆)x2 ) ≤ 𝜆f (x1 ) + (1 − 𝜆)f (x2 ). See Figure 10.2a.
The proof of Theorem 10.1 also tells us a good deal about the structure of the
Lagrangian dual. It shows that the problem has been convexified so that it becomes
a linear program. We have shown that
WLD = minu≥0 {maxt=1,…,T [cxt + u(d − Dxt )]}.
Thus, the Lagrangian dual problem can also be viewed as the problem of minimizing the piecewise linear convex, but nondifferentiable function Z(u) (see
Figure 10.2b).
min
Z(u)
1
2
λf (x ) + (1 − λ)f (x )
f (λx1 + (1 − λ)x2 )
x x2
x1
(a)
Figure 10.2
(a) A convex function. (b) Form of the dual problem.
u
(b)
201
202
10 Lagrangian Duality
10.3 Solving the Lagrangian Dual
The linear programming formulation (10.8)–(10.10) appearing in the proof of
Theorem 10.1 provides one way to calculate WLD , though the large number of
constraints means that a constraint generation (or cutting plane) approach is
required, as described in Chapter 8. Here, we describe a subgradient algorithm
that is very simple and easy to implement without using a linear programming
system.
The algorithm is designed to solve the problem of minimizing a piecewise linear
convex function:
min f (u),
u≥0
where f (u) = max [at u − bt ].
t=1,…,T
In the case of the Lagrangian dual, we have
WLD = min Z(u)
u≥0
where Z(u) = max [(b − Axt )u + cxt ].
t=1,…,T
A subgradient is a straightforward generalization of a gradient.
Definition 10.2 A subgradient at u of a convex function f ∶ ℝm → ℝ1 is a vector
𝛾(u) ∈ ℝm such that f (𝑣) ≥ f (u) + 𝛾(u)T (𝑣 − u) for all 𝑣 ∈ ℝm .
For a continuously differentiable convex function f , 𝛾(u) = ∇f (u) =
is the gradient of f at u.
(
𝜕f
𝜕f
, … , 𝜕u
𝜕u1
m
)
Subgradient Algorithm for the Lagrangian Dual
Initialization. u = u0 .
Iteration k. u = uk .
Solve the Lagrangian problem IP(uk ) with optimal solution x(uk ).
uk+1
= max{uki − 𝜇k (b − Ax(uk )i , 0} i = 1, … , m
i
k ←k+1
The vector b − Ax(uk ) is easily shown to be a subgradient of Z(u) at uk . The simplicity of this algorithm is amazing. At each iteration, one takes a step from the present
point uk in the direction opposite to a subgradient. The difficulty is in choosing the
.
step lengths {𝜇k }∞
k=1
Theorem 10.2
∑
(a) If k 𝜇k → ∞, and 𝜇k → 0 as k → ∞, then Z(uk ) → WLD the optimal value
of LD.
10.3 Solving the Lagrangian Dual
(b) If 𝜇k = 𝜇0 𝜌k for some parameter 𝜌 < 1, then Z(uk ) → WLD if 𝜇0 and 𝜌 are sufficiently large.
(c) If W ≥ WLD and 𝜇k = 𝜖k [Z(uk ) − W]∕||b − Ax(uk )||2 with 0 < 𝜖k < 2, then
Z(uk ) → W, or the algorithm finds uk with W ≥ Z(uk ) ≥ WLD for some finite k.
This theorem tells us that rule (a) guarantees convergence, but as the series {𝜇k }
must be divergent (for example, 𝜇k = 1∕k), convergence is too slow to be of real
practical interest.
On the other hand, step sizes (b) or (c) lead to much faster convergence, but each
time with a possible inconvenience.
Using rule (b), the initial values of 𝜇0 and 𝜌 must be sufficiently large, otherwise
the geometric series 𝜇0 𝜌k tends to zero too rapidly, and the sequence uk converges
before reaching an optimal point. In practice, rather than decreasing 𝜇k at each
iteration, a geometric decrease is achieved by halving the value of 𝜇k every 𝜈 iterations, where 𝜈 is some natural problem parameter such as the number of variables.
Using rule (c), the difficulty is that a dual upper bound W ≥ WLD is typically
unknown. It is more likely in practice that a good primal lower bound W ≤ WLD
is known. Such a lower bound W is then used initially in place of W. However, if
W < WLD , the term Z(uk ) − W in the numerator of the expression for 𝜇k will not
tend to zero, and so the sequences {uk }, {Z(uk )} will not converge. If such behavior
is observed, the value of W must be increased.
For the STSP, care must be taken because here we are minimizing and the dualized constraints are the equality constraints
∑
xe = 2 for all i ∈ V.
e∈𝛿(i)
The step direction is given by the rule
)
(
∑
k+1
k
k
u i = u i + 𝜇k 2 −
xe (u ) .
e∈𝛿(i)
∑
Here the ith coordinate of the subgradient 2 − e∈𝛿(i) xe (uk ) is two minus the number of arcs incident to node i in the optimal 1-tree. The step size, using rule (c),
becomes
(
)2
∑
∑
k
k
2−
xe (u )
𝜇k = 𝜖k (W − Z(u ))∕
i∈V
e∈𝛿(i)
where a lower bound W on WLD is appropriate because STSP is a minimization
problem and LD a maximization problem.
Example 10.2 (cont.) Suppose that we have found the tour (1, 2, 3, 4, 5, 1) of
length 148 by some heuristic, but we have no lower bounds. We update the dual
203
204
10 Lagrangian Duality
variables using rule (c) from Theorem 10.2. We take 𝜖k = 1 and, as no lower bound
is available, we use the value W = 148 of the tour.
1
Iteration 1. u1 = (0, 0, 0, 0, 0). The revised cost matrix is c = c. An optimal
(
)
∑
1-tree is shown in Figure 10.3a, and Z(u1 ) = 130 ≤ Z. As 2 − e∈𝛿(i) xe (uk ) =
(0, 0, −2, 1, 1), we have
u2 = u1 + [(148 − 130)∕6](0, 0, −2, 1, 1).
Iteration 2. u2 = (0, 0, −6, 3, 3). The new cost matrix is
⎛–
⎜–
⎜
2
(ce ) = ⎜–
⎜–
⎜
⎝–
30
–
–
–
–
32
30
–
–
–
47
37
27
–
–
37⎞
47⎟
⎟
29⎟ .
24⎟
⎟
–⎠
∑
We obtain Z(u2 ) = 143 + 2 i u2i = 143, and
u3 = u2 + ((148 − 143)∕2)(0, 0, −1, 0, 1).
The new optimal 1-tree is shown in Figure 10.3b.
Iteration 3. u3 = (0, 0, −17∕2, 3, 11∕2).
The new cost matrix is
⎛–
⎜–
⎜
3
(ce ) = ⎜–
⎜–
⎜
⎝–
30
–
–
–
–
34.5
32.5
–
–
–
47
37
29.5
–
–
34.5⎞
44.5⎟
⎟
29 ⎟ .
21.5⎟
⎟
– ⎠
The new optimal 1-tree is shown in Figure 10.3c and we obtain the lower bound
Z(u3 ) = 147.5. As the cost data c are integral, we know that Z is integer valued
and so Z ≥ ⌈147.5⌉ = 148. As a solution of cost 148 is known, the corresponding
solution has been proved optimal.
◽
1
5
30
26
2
32
24
3
26
4
30
1
24
5
1
30
24
4
5
27
2
4
(c)
3
Optimal 1-tree for (a) c , (b) c , and (c) c .
2
32.5
29
21.5
(b)
1
30
34.5
3
(a)
Figure 10.3
2
3
10.4 Lagrangian Heuristics
The subgradient algorithm typically requires a large number of iterations. Bundle
methods provide a way to reduce the number of iterations. Here the idea is (i)
to bundle together some of the most recent subgradients so as to work with
better information and (ii) to restrict the subproblem solutions x(u) to remain
not too far from a “central point” so as not to jump around erratically from one
iteration to the next. The price to pay is the solution of a quadratic program rather
than the simple update uk+1 = max{uk − 𝜇k (b − Ax(uk )), 0} of the subgradient
algorithm.
As the subgradient (and bundle) algorithms often terminate before the optimal
value WLD is attained and also as there is in most cases a duality gap (WLD > Z),
Lagrangian relaxation is typically embedded in a branch-and-bound algorithm. WLD > Z implies that the optimal solution of the primal linear program
(10.11)–(10.14) has x nonintegral and this solution is typically what is used to
make branching decisions in branch-and-bound. Unfortunately however, the
subgradient algorithm does not provide a solution of this linear program. In addition, the solutions of the subproblem are integral, but almost always infeasible
for the complicating constraints Ax ≤ b. Some ideas on ways to overcome these
difficulties are introduced in the section 10.4.
10.4 Lagrangian Heuristics
Here we consider simple ideas that have been used to convert the solution of
the subgradient algorithm into feasible integer solutions and/or an approximate
solution to the linear program (10.8)–(10.10) for use within a branch-and-bound
algorithm.
Once the dual variables u begin to approach the set of optimal solutions, we hope
to obtain a subproblem solution x(u) that is “close” to being primal feasible every
time that a Lagrangian subproblem IP(u) is solved. In the STSP, many nodes of the
1-tree will have degree 2, and so the solution is not far from being a tour, while for
the UFL, many clients are served exactly once, and only a few are not served at all.
Therefore, it is often straightforward to devise a simple heuristic that converts x(u)
into a feasible solution without greatly decreasing/increasing its value/cost. Below
we examine this simple idea for set covering problems, as well as the possibility of
fixing some variables once good primal and dual solutions are available.
Consider an instance of the set-covering problem
}
{
∑
∑
n
cj xj ∶
aij xj ≥ 1 for i ∈ M, x ∈ {0, 1}
,
min
j∈N
j∈N
205
206
10 Lagrangian Duality
with aij ∈ {0, 1} for i ∈ M, j ∈ N. The Lagrangian relaxation in which all the covering constraints are dualized is
{ (
)
}
∑
∑
∑
n
Z(u) =
ui + min
ui aij xj ∶ x ∈ {0, 1}
cj −
i∈M
j∈N
i∈M
for u ≥ 0.
One simple possibility is to take an optimal solution x(u) of this relaxation,
drop all rows covered by the solution x(u), that is, the rows i ∈ M for which
∑
j∈N aij xj (u) ≥ 1, and solve the remaining smaller covering problem by a greedy
heuristic. If xG is the heuristic solution, then xH = x(u) + xG is a feasible solution.
It is then worth checking whether it cannot be improved by setting to zero some
of the variables with xj (u) = 1.
Once a heuristic solution has been found, it is also possible to use the Lagrangian
for variable fixing. If Z is the incumbent value, then any better feasible solution
)
∑
∑ (
∑
x satisfies i∈M ui + min j∈N cj − i∈M ui aij xj ≤ cx < Z. Let N1 = {j ∈ N ∶ cj −
∑
∑
i∈M ui aij > 0} and N0 = {j ∈ N ∶ cj −
i∈M ui aij < 0}.
(
)
∑
∑
∑
Proposition 10.3 If
k ∈ N1
and
i∈M ui +
j∈N0 cj −
i∈M ui aij +
(
)
∑
ck − i∈M ui aik ≥ Z, then xk = 0 in any better feasible solution.
(
)
∑
∑
∑
If k ∈ N0 and i∈M ui + j∈N0 ∖{k} cj − i∈M ui aij ≥ Z, then xk = 1 in any better
feasible solution.
Example 10.3 Consider a set-covering instance with m = 4, n = 6,
⎛1
⎜
0
and aij = ⎜
⎜1
⎜0
⎝
c = (6, 7, 11, 5, 8, 5)
0
1
1
0
1
0
1
1
0
1
0
0
1⎞
⎟
0⎟
.
0⎟
0⎟⎠
0
1
0
1
Taking u = (4, 4, 3, 3), the Lagrangian subproblem IP(u) takes the form
Z(u) = 14 + min{−1x1 + 0x2 + 1x3 + 1x4 + 1x5 + 1x6 ∶ x ∈ {0, 1}6 }.
An optimal solution is clearly x(u) = (1, 0, 0, 0, 0, 0) with Z(u) = 13. The solution
x(u) covers rows 1 and 3, so the remaining problem to be solved heuristically is
min
7x2
x2
+
11x3
+
5x4
x4
+
+
∈
{0, 1}6
x3
x
8x5
x5
x5
+
5x6
≥
≥
1
1
for which a greedy heuristic gives the solution xG = (0, 0, 0, 0, 1, 0). Adding
together these two vectors, we obtain the heuristic solution xH = (1, 0, 0, 0, 1, 0)
with cost 14. Thus, we now know that the optimal value lies between 13 and 14.
10.5 Choosing a Lagrangian Dual
Now using Proposition 10.3, we see that with N0 = {1} and N1 = {3, 4, 5, 6},
x1 = 1 and x3 = x4 = x5 = x6 = 0 in any solution whose value is less than 14. However, fixing these values, the problem becomes infeasible. So the value of 14 is
optimal.
◽
Beyond just “correcting” an optimal dual solution x(u) to obtain a primal feasible solution at small cost, a common idea is to count/weight the number of
times a variable has been selected during the subgradient iterations. This information can be used to either approximate the “missing” optimal linear programming
solution or to construct feasible integer solutions. A final step is to then to use
this information to eliminate/fix a large number of variables and then solve a
reduced size mixed integer program that may quickly provide improved feasible
solutions.
10.5 Choosing a Lagrangian Dual
Suppose the problem to be solved is of the form:
(IP)
Z = max cx
A1 x ≤ b1
A2 x ≤ b2
x ∈ ℤn+ .
If one wishes to tackle the problem by Lagrangian relaxation, there is a choice
to be made. Should one dualize one or both sets of constraints, and if so, which
set(s)? The answer must be based on a trade-off between
(i) the strength of the resulting Lagrangian dual bound WLD ,
(ii) ease of solution of the Lagrangian subproblems IP(u), and
(iii) ease of solution of the Lagrangian dual problem: WLD = minu≥0 Z(u).
Concerning (i), Theorem 10.1 gives us precise information about the strength of
the bound.
Concerning (ii), the ease of solution of IP(u) is problem specific. However, we
know that if IP(u) is “easy” in the sense of reducing to a linear program, that
is IP(u) involves maximization over X = {x ∈ ℤn+ ∶ Dx ≤ d} and conv(X) = {x ∈
ℝn+ ∶ Dx ≤ d}, then solving the linear programming relaxation of IP is an alternative to Lagrangian relaxation.
Concerning (iii), the difficulty using the subgradient (or other) algorithms is
hard to estimate a priori, but the number of dual variables is at least some measure
of the probable difficulty.
207
208
10 Lagrangian Duality
To demonstrate these trade-offs, consider the Generalized Assignment Problem
(GAP):
Z = max
n m
∑
∑
cij xij
j=1 i=1
n
∑
xij ≤ 1
for i = 1, … , m
aij xij ≤ bj
for j = 1, … , n
j=1
m
∑
i=1
x ∈ {0, 1}mn .
We consider three possible Lagrangian relaxations. In the first, we dualize both
1
sets of constraints giving WLD
= minu≥0,𝑣≥0 Z 1 (u, 𝑣) where
Z 1 (u, 𝑣) = max
x
n m
∑
∑
j=1 i=1
(cij − ui − aij 𝑣j )xij +
m
∑
i=1
ui +
n
∑
j=1
𝑣j bj
x ∈ {0, 1}mn .
2
Here we dualize the first set of assignment constraints giving WLD
= minu≥0 Z 2 (u)
where
m
n m
∑
∑
∑
Z 2 (u) = max
(cij − ui )xij + ui
x
j=1 i=1
i=1
m
∑
i=1
aij xij ≤ bj
for j = 1, … , n
x ∈ {0, 1}mn ,
3
= min𝑣≥0 Z 3 (𝑣) where
and here we dualize the knapsack constraints giving WLD
Z 3 (𝑣) = max
x
n m
∑
∑
j=1 i=1
(cij − aij 𝑣j )xij +
n
∑
j=1
n
∑
j=1
xij ≤ 1
𝑣j bj
for i = 1, … , m
x ∈ {0, 1}mn .
3
1
Based on Theorem 10.1, we know that WLD
= WLD
= ZLP as for each i,
∑n
∑n
conv{x ∶ j=1 xij ≤ 1, xij ∈ {0, 1} for j = 1, … , n} = {x ∶ j=1 xij ≤ 1, 0 ≤ xij ≤ 1
for j = 1, … , n}. The values of Z 1 (u, 𝑣) and Z 3 (𝑣) can both be calculated by
inspection. To calculate Z 1 (u, 𝑣), note that the problem decomposes variable by
variable, while for Z 3 (u, 𝑣) the problem decomposes into a simple problem for
each j = 1, … , n. In terms of solving the Lagrangian dual problems, calculating
3
1
appears easier than calculating WLD
because there are only n as opposed to
WLD
m + n dual variables.
10.6 Notes
2
The second relaxation potentially gives a tighter bound WLD
≤ Z as in gen}
{
∑m LP
∑m
m
eral for fixed j, conv x ∶ i=1 aij xij ≤ bj , xij ∈ {0, 1} ⊂ {x ∶ i=1 aij xij ≤ bj , 0 ≤
xij ≤ 1 for i = 1, … , m}. However, here the Lagrangian subproblem involves the
solution of n 0–1 knapsack problems.
10.6 Notes
10.1 Many of the properties of the Lagrangian dual can be found in Everett [108].
The successful solution of what were at the time very large TSPs by Held and
Karp [174, 175] made the approach popular.
10.2 The application of Lagrangian relaxation to integer programming and in particular Theorem 10.1 and its consequences were explored in Geoffrion [137].
Early surveys of applications include Fisher [119] and Beasley [38].
10.3 Simple multiplier adjustment methods have also been tried for various problems, among them the uncapacitated facility location problem by Erlenkotter
[107]. The use of the subgradient algorithm to solve the Lagrangian dual
again stems from Held and Karp [174]. Early studies and analysis of the
subgradient approach can be found in Held et al. [176] and Goffin [150].
Lemaréchal [205] is a survey on Lagrangian relaxation discussing the ties
between row generation, subgradient, and bundle algorithms. Barahona and
Anbil [32] present a volume algorithm, a modification of the subgradient
algorithm so as to also obtain a primal LP solution. The effectiveness of modern subgradient methods to obtain Lagrangian bounds is studied in Frangoni
et al. [126]. Briant et al. [62] compare bundle methods and column generation
that is treated in Chapter 11.
10.4 Many problems have been tackled using Lagrangian heuristics, in particular
a wide variety of location problems, many fixed cost network design problems and several production planning problems. Recent examples include
Jena et al. [182] for a dynamic facility location problem, Mirchandani and
Borenstein [229] on vehicle rescheduling, Eksioglu et al. [106] on integrated
production and transport planning, Brahimi and Dauzère-Pérès [59] on a
capacitated lot-sizing problem, and Cunha et al. [87] on quadratic knapsack
problems. To obtain exact algorithms, the heuristics are then often integrated
into column generation algorithms (see Chapter 11).
10.5 A comparison of different Lagrangian relaxations for the capacitated facility location problem can be found in Cornuéjols et al. [82]. By duplicating
variables, dualizing the equations identifying variables, and solving separate subproblems for each set of distinct variables, Lagrangian relaxation can
be used to get stronger bounds in certain cases; see Exercise 6. Lagrangian
decomposition is one of several names given to this idea that appeared in
Jornsten and Nasberg [189] and Guignard and Kim [168].
209
210
10 Lagrangian Duality
10.7 Exercises
1.
Consider an instance of UFL with m = 6, n = 5, delivery costs
⎛6
⎜
⎜4
⎜3
cij = ⎜
⎜2
⎜1
⎜3
⎝
2
10
2
0
8
2
1
2
4
4
6
4
5⎞
⎟
1⎟
3⎟
4⎟⎟
5⎟
1⎟⎠
3
6
1
1
2
8
and fixed costs f = (4, 8, 11, 7, 5). Using the dual vector u = (5, 6, 3, 2, 6, 4),
solve the Lagrangian subproblem IP(u) to get an optimal solution
(x(u), y(u)) and lower bound Z(u). Modify the dual solution (x(u), y(u)) to
construct a good primal feasible solution. How far is this solution from
optimal?
2.
Suppose one dualizes the constraints yij ≤ xj in the strong formulation of
UFL.
(i) How strong is the resulting Lagrangian dual bound?
(ii) How easy is the solution of the Lagrangian subproblem?
3.
Use Lagrangian relaxation to solve the STSP instance with distances
⎛–
⎜–
⎜
(ce ) = ⎜–
⎜–
⎜
⎝–
4.
8
–
–
–
–
2
7
–
–
–
14
4
23
–
–
26
16
14
12
–
13⎞
8⎟
⎟
9 ⎟.
6⎟
⎟
5⎠
Consider GAP with equality constraints
max
m n
∑
∑
i=1 j=1
n
∑
xij
=
1 for i = 1, … , m
aij xij
≤
bj
j=1
m
∑
i=1
cij xij
x ∈ {0, 1}mn .
for j = 1, … , n
10.7 Exercises
⎛5
Solve an instance with m = 3, n = 2, (aij ) = ⎜3
⎜
⎝2
( )
6
b=
with Lagrangian relaxation.
21
5.
7⎞
⎛20
8 ⎟, (cij ) = ⎜15
⎜
⎟
10⎠
⎝19
16⎞
19⎟, and
⎟
14⎠
Consider a 0–1 knapsack problem
Z = max 11x1 + 5x2 + 14x3
3x1 + 2x2 + 4x3 ≤ 5
x ∈ {0, 1}3 .
Construct a Lagrangian dual by dualizing the knapsack constraint.
(i) What is the optimal value of the dual variable?
(ii) Suppose one runs the subgradient algorithm using step size (b) in
Theorem 10.2, starting with u0 = 2, 𝜇0 = 12 and 𝜌 = 12 . Show numerically that the subgradient algorithm does not reach the optimal dual
solution.
(iii) Given that L(u) is a 1-dimensional piecewise-linear convex function,
suggest an alternative to the subgradient algorithm.
6.
Lagrangian Decomposition. Consider the problem Z = max{cx ∶ Ai x ≤
bi for i = 1, 2, x ∈ ℤn+ } with the reformulation
max{𝛼cx1 + (1 − 𝛼)cx2 ∶ Ai xi ≤ bi for i = 1, 2, x1 − x2 = 0, xi ∈ ℤn+ for i = 1, 2}
for 0 < 𝛼 < 1.
Consider the Lagrangian dual of this formulation in which the n constraints x1 − x2 = 0 are dualized. What is the strength of this dual?
7.
Consider the capacitated facility location problem
∑
∑ ∑
cij yij +
fj xj
min
i∈M j∈N
j∈N
∑
yij = ai
j∈N
∑
yij ≤ bj xj
i∈M
∑
j∈N
yij
bj xj
≤
≥
y
∈
min{ai , bj }xj
∑
ai
i∈M
n
ℝmn
+ , x ∈ {0, 1} .
for i ∈ M
for j ∈ N
for i ∈ M, j ∈ N
211
212
10 Lagrangian Duality
Discuss the advantages and disadvantages of different Lagrangian relaxations. Which would you choose to implement and why?
8.
Consider the assignment problem with budget constraint
∑ ∑
max
cij xij
i∈M j∈N
∑
xij
=
1
for i ∈ M
j∈N
∑
xij
=
1
for j ∈ N
∑
∑ i∈M
aij xij
≤
b
i∈M j∈N
x
∈
{0, 1}mn .
Discuss the strength of different possible Lagrangian relaxations, and
the ease or difficulty of solving the Lagrangian subproblems, and the
Lagrangian dual.
9.
Surrogate Duality. Given the IP: Z = max{cx ∶ Ax ≤ b, x ∈ X}, consider the
surrogate relaxation ZSR (u) = max{cx ∶ uAx ≤ ub, x ∈ X} with u ∈ ℝm
+ and
the surrogate dual WSD = minu∈ℝm+ ZSR (u) and the Lagrangian dual WLD =
minu∈ℝm+ {(c − uA)x + ub ∶ x ∈ X}.
Show that WSD ≤ WLD .
213
11
Column (and Row) Generation Algorithms
11.1 Introduction
One of the recurring ideas in optimization and in this text is that of decomposition.
We have several times considered what happens when the integer programming
problem (IP) max{cx ∶ x ∈ X} has a feasible region X that can be written as the
intersection of two or more sets with structure X = ∩Kk=0 X k for some K ≥ 1. Even
more particular is the case where the constraints take the form:
A1 x1
D1 x1
+A2 x2 + · · ·
(IP)
+AK xK
···
···
n
x1 ∈ Z+1 ,
…
DK xK
n
… , xK ∈ Z+K ,
≤ b
≤ d1
≤ .
≤ .
≤ dK
n
so that the sets X k = {xk ∈ Z+k ∶ Dk xk ≤ dk } are independent for k = 1, … , K, and
∑K
only the joint constraints k=1 Ak xk ≤ b link together the different sets of variables. The generalized assignment problem discussed in Chapter 10 is of this form
when we take the assignment constraints to be the complicating constraints and
the separate knapsack sets provide the sets X k for k = 1, … , n. On the other hand,
consider
The Resource-Constrained Shortest Path Problem. Given a directed graph
|A|
D = (V, A) with s, t ∈ V, costs c ∈ ℝ|A|
+ and traversal times 𝜏 ∈ ℝ+ for the arcs,
the problem is to find a minimum cost s–t path whose traversal time does not
exceed b. Letting xij = 1 if arc (i, j) is in the chosen path, an IP formulation is
Integer Programming, Second Edition. Laurence A. Wolsey.
© 2021 John Wiley & Sons, Inc. Published 2021 by John Wiley & Sons, Inc.
Companion website: www.wiley.com/go/wolsey/integerprogramming2e
214
11 Column (and Row) Generation Algorithms
min
∑
cij xij
(i,j)∈A
∑
∑
xsj = 1
(s,j)∈𝛿 + (s)
xij −
(i,j)∈𝛿 − (i)
∑
xij = 0
for i ∈ V ∖ {s, t}
(i,j)∈𝛿 + (i)
∑
𝜏ij xij ≤ b
(i,j)∈A
x ∈ {0, 1}|A|
where 𝛿 + (i) = {(i, j) ∈ A} and 𝛿 − (i) = {(j, i) ∈ A}. Taking the first two sets of
constraints defining an s–t path as the complicating constraints and the third
constraint limiting the travel time as the subproblem, here one has just a single
K = 1 subproblem.
∑K
Given an objective function max k=1 ck xk , two earlier approaches that
would permit us to benefit from such structure are cut generation, in which
we would try to generate valid inequalities for each subset X k , k = 1, … , K,
and Lagrangian relaxation, in which we would dualize the joint constraints so as to obtain a dual problem: min L(u), where the calculation
u
{∑
}
K
k
k k
k
k
L(u) = max
breaks
up
k=1 (c − uA )x + ub ∶ x ∈ X for k = 1, … , K
into K distinct subproblems.
In this chapter, we examine a third way to exploit the structure of integer
programs of the above form. Throughout we assume that each of the sets X k is
bounded for k = 1, … , K. The approach essentially involves solving an equivalent
problem of the form:
}
{∑K
∑K
𝛾 k 𝜆k ∶
Bk 𝜆k = 𝛽, 𝜆k ≥ 0 integer for k = 1, … , K
max
k=1
k=1
where each matrix Bk has a very large number of columns, one for each of the
extreme points of conv(X k ) (or each of the feasible points in X k ) and each 𝜆k is a
vector of corresponding variables.
Thus, the problems we wish to solve here are integer programs with an enormous number of variables, where the columns are often described implicitly as
the incidence vectors of certain subsets of a set, that is tours, client subsets, and so
on. Below we show how such (large) formulations of an integer program, called
Master Problems, arise by reformulation. We then examine how to solve the linear programming relaxation of these Master Problems using the solution of the
Column Generation Subproblem(s). We also relate the strength of this relaxation
to that obtained by Lagrangian duality, or by the use of cutting planes. Next we
11.2 The Dantzig–Wolfe Reformulation of an IP
consider what to do when the linear programming solution is not integral, and we
must resort to enumeration, leading to IP Column Generation or Branch-and-Price
algorithms. Finally, we also allow the addition of cutting planes giving rise to
Branch-Cut-and-Price algorithms.
11.2 The Dantzig–Wolfe Reformulation of an IP
For simplicity in describing the approach, we suppose that there is just one subproblem K = 1. Later, we discuss the minor changes required when K > 1. We
consider the problem
ZIP = max{cx ∶ Ax ≤ b, x ∈ X},
(11.1)
where X = {x ∈ ℤn+ ∶ Dx ≤ d} and S = X ∩ {x ∶ Ax ≤ b} is the complete set of feasible solutions. As for Lagrangian relaxation, we assume that there is an algorithm
available allowing us to optimize over X repeatedly and we view Ax ≤ b as complicating constraints. An equivalent problem is:
(11.2)
ZIP = max{cx ∶ Ax ≤ b, x ∈ conv(X), x ∈ ℤn+ }.
{
}
∑T
∑T
Now as conv(X) = x ∈ ℝn ∶ x = t=1 zt 𝜆t , t=1 𝜆t = 1, 𝜆 ∈ ℝT+ where {zt }Tt=1
are the extreme points of conv(X), we obtain, after substituting for x, the
equivalent Master Problem:
∑T
(czt )𝜆t
(11.3)
ZM = max
t=1
∑T
t=1
(Azt )𝜆t ≤ b
∑T
𝜆 =1
t=1 t
(M)
𝜆 ∈ ℝT+
x−
∑T
t=1
z t 𝜆t = 0
x ∈ ℤn .
(11.4)
(11.5)
(11.6)
(11.7)
(11.8)
The above substitution is referred to as convexification. The alternative, called discretization, is to take {zt }Tt=1 to be all the points of X. In this case, it is possible to
drop the constraints (11.7) and (11.8) on x and replace (11.6) by 𝜆 ∈ {0, 1}T . Note
that when X ⊆ {0, 1}n , the two approaches coincide because all the points of X are
extreme points of conv(X).
215
216
11 Column (and Row) Generation Algorithms
11.3 Solving the LP Master Problem: Column
Generation
Here we consider how to solve the linear programming relaxation of the Master
Problem. Whether we are using the extreme points of conv(X) or all the points of
X, we obtain the same linear programming relaxation:
∑T
ZLM = max
(czt )𝜆t
t=1
∑T
(LM)
(Azt )𝜆t ≤ b
t=1
∑T
𝜆t = 1
t=1
𝜆 ∈ ℝT+ .
As the number of columns is typically very large, we use a column generation algodenote the dual variables associated with the
rithm to solve LM. Below {𝜋i }m
i=1
∑T
complicating constraints, and 𝜋0 the dual variable for the constraint t=1 𝜆t = 1,
known as the convexity constraint.
The idea is to solve the linear program by the primal simplex algorithm. However, the pricing step of choosing a column to enter the basis must be modified
because of the enormous number of columns. Rather than pricing the columns
one by one, the problem of finding a column with the largest reduced price is itself
an optimization problem over the set X.
Initialization. We suppose that a subset of points z1 , … , zp is available leading to
the Restricted LP Master Problem:
∑p
(czt )𝜆t
ZRLM = max
t=1
∑p
(RLM)
(Azt )𝜆t ≤ b
t=1
∑p
𝜆t = 1
t=1
p
𝜆 ∈ ℝ+ .
Solving RLM gives an optimal primal solution 𝜆∗ and an optimal dual solution
1
(𝜋 ∗ , 𝜋0∗ ) ∈ ℝm
+ ×ℝ .
Primal Feasibility. Any feasible solution of RLM is feasible for LM. In particular,
∑p
𝜆∗ is a feasible solution of LM and so ZRLM = t=1 (czt )𝜆∗t = 𝜋 ∗ b + 𝜋0∗ ≤ ZLM .
Optimality Check for LM. We need to check whether (𝜋 ∗ , 𝜋0∗ ) is dual feasible for LM.
This involves checking for each column, that is for each x ∈ conv(X), whether
the reduced price cx − 𝜋 ∗ Ax − 𝜋0∗ ≤ 0. Rather than examining each point separately, we treat all points in X implicitly by solving the optimization subproblem:
(SP)
𝜁 p = max{(c − 𝜋 ∗ A)x − 𝜋0∗ ∶ x ∈ X}
with optimal solution x∗ .
11.3 Solving the LP Master Problem: Column Generation
Stopping Criterion. If 𝜁 p = 0, the solution (𝜋 ∗ , 𝜋0∗ ) is dual feasible for LM, and so
∑m
ZLM ≤ i=1 𝜋i∗ bi + 𝜋0∗ . As the value of the primal feasible solution 𝜆∗ equals that
of this upper bound, 𝜆∗ is optimal for LM.
Generating a New Column. If 𝜁 p > 0, the column corresponding to the optimal
solution x∗ of the subproblem has positive reduced price. Setting zp+1 = x∗ and
adding the column (czp+1 , Azp+1 , 1)T leads to a new Restricted Linear Programming Master Problem that can be easily re-optimized (e.g. by the primal simplex
algorithm).
A Dual (Upper) Bound. From the solution of the subproblem, we have that 𝜁 p ≥
(c − 𝜋 ∗ A)x − 𝜋0∗ for all x ∈ X. It follows that (c − 𝜋 ∗ A)x − 𝜋0∗ − 𝜁 p ≤ 0 for all x ∈
X. Therefore, (𝜋 ∗ , 𝜋0∗ + 𝜁 p ) is dual feasible in LM. Therefore,
ZLM ≤ 𝜋 ∗ b + 𝜋0∗ + 𝜁 p .
These different observations lead directly to an algorithm for LM that terminates when 𝜁 p = 0. However, as in Lagrangian relaxation, it may be possible to
terminate earlier.
An Alternative Stopping Criterion. If 𝜁 p > 0, but the subproblem solution x∗ satisfies the complicating constraints and 𝜋 ∗ (Ax∗ − b) = 0, then x∗ is an optimal
solution of LM. This follows because 𝜁 p = (c − 𝜋 ∗ A)x∗ − 𝜋0∗ implies that cx∗ =
𝜋 ∗ Ax∗ + 𝜋0∗ + 𝜁 p = 𝜋 ∗ b + 𝜋0∗ + 𝜁 p . Therefore, the primal feasible solution x∗ has
the same value as the upper bound on ZLM .
Finding an Initial Feasible Solution. Introduce a phase 1 procedure in order to
find an initial basic feasible solution of RLM. One approach is to introduce m
artificial variables, or else generate m initial extreme points and then add one
artificial variable with column (b, 1)T and a large cost M.
The Objective Value of the LP Master Problem. By construction ZLM = max{cx ∶
Ax ≤ b, x ∈ conv(X)} giving the same upper bound as that obtained using
Lagrangian relaxation of the complicating constraints Ax ≤ b.
For the Resource-Constrained Shortest Path problem appearing in the Introduction, the polyhedron described by the flow constraints is integral. So treating these
as subproblem constraints and the knapsack constraint as the complicating constraint, the Master LP bound will just be that of the linear programming relaxation
of the original formulation. On the other hand, if the knapsack constraint appears
in the subproblem, the upper bound will be strengthened with the convex hull
of solutions of the knapsack constraint. The strength of the bounds for different
decompositions of the GAP problem was discussed in Section 10.5.
Example 11.1 To demonstrate the column generation approach to solving the linear programming Master Problem, we consider a simple instance
with x ∈ {0, 1}5 and just two constraints. The first constraint is treated as the
217
218
11 Column (and Row) Generation Algorithms
complicating constraint and X is the set of 0–1 points satisfying the second
constraint.
max 6x1 +7x2 +4x3 +3x4 +2x5
5x1 +8x2 +6x3 +4x4 +2x5 ≤ 8
7x1 +8x2 +6x3 +3x4 +3x5 ≤ 10
x
∈ {0, 1}5 .
We suppose that initially three points zt = et for t = 1, 2, 3 are available. Therefore,
the restricted linear programming Master Problem is as follows:
max 6𝜆1 +7𝜆2 +4𝜆3
5𝜆1 +8𝜆2 +6𝜆3 ≤ 8
𝜆1 +𝜆2 +𝜆3 = 1
𝜆
∈ ℝ3+ .
Iteration 1.
RLM. The primal solution is Z ∗ = 7, 𝜆∗ = (0, 1, 0) and the dual solution
(𝜋 ∗ , 𝜋0∗ ) = (0, 7).
The subproblem SP is
𝜁 1 = max 6x1 +7x2 +4x3 +3x4 +2x5 −7
7x1 +8x2 +6x3 +3x4 +3x5 ≤ 10
x
∈ {0, 1}5 .
with optimal solution 𝜁 1 = 2, x∗ = z4 = (1, 0, 0, 1, 0). As 𝜁 1 > 0, cz4 = 9, and
Az4 = 9, the column (9, 9, 1)T is added to the RLM.
Iteration 2.
(
)
RLM. The primal solution is Z ∗ = 8.25, 𝜆∗ = 0, 0, 14 , 34 and the dual solution
(
)
(𝜋 ∗ , 𝜋0∗ ) = 34 , 94 .
SP. The objective function of the subproblem is now (c −𝜋 ∗ A)x − 𝜋0 = (6,7,4,3,2)
x − 0.75(5, 8, 6, 4, 2)x − 2.25 = 2.25x1 + 1x2 − 0.5x3 + 0x4 + 0.5x5 − 2.25.
Optimal solution 𝜁 2 = 12 , x∗ = z5 = (1, 0, 0, 0, 1). As 𝜁 2 > 0, the column (8, 7, 1)T
is added to the RLM.
Iteration 3.
(
)
RLM. The primal solution is Z ∗ = 8.5, 𝜆∗ = 0, 0, 0, 12 , 12 and the dual solution
)
(
(𝜋 ∗ , 𝜋0∗ ) = 12 , 92 .
SP. Optimal solution 𝜁 3 = 0.
As 𝜁 3 = 0, LM is solved with optimal solution x = 12 z4 + 12 z5 = 12 (1, 0, 0, 1, 0) +
(
)
1
1 1
(1,
0,
0,
0,
1)
=
1,
0,
0,
,
.
2
2 2
As the solution is not integer, the original problem is not yet solved and we have
◽
an upper bound of 8.5 on the optimal value.
11.4 Solving the Master Problem: Branch-and-Price
11.4 Solving the Master Problem: Branch-and-Price
When the solution of the linear programming relaxation of the Master Problem
LM is not integer, it is necessary to resort to branch and bound, possibly combined
with cutting planes. Thus, at each node of the branch and bound tree, we need to
decide
(i) how to branch and
(ii) how to solve the linear programming Master Problem LM.
We assume that the linear programming relaxation of the Master problem LM
̃
(11.3)–(11.7) has been solved with optimal solution (̃x, 𝜆).
Branching at a Node
In the case in which X ⊆ {0, 1}n , x̃ ∉ {0, 1}n if and only if 𝜆̃ ∉ {0, 1}T . This suggests
branching on either the x or the 𝜆 variables.
Selecting the x variables leads to the branching scheme shown in Figure 11.1a,
in which the set S of all feasible solutions is split into S0 = S ∩ {x ∶ xj = 0} and
S1 = S ∩ {x ∶ xj = 1}. Note that this is exactly the same type of scheme used in the
basic branch-and-bound algorithm in Chapter 7.
The alternative is to branch on some fractional 𝜆t variable, fixing it to 0 and 1
respectively, see Figure 11.1b. Note, however, that on the branch in which 𝜆t = 0,
just one column, corresponding to the solution zt of the subproblem, is excluded,
so the resulting problem is almost identical to the original one. This means that
the resulting enumeration tree has the undesirable property of being highly unbalanced. In addition, the new subproblems are not easy to solve.
In the case in which X ⊆ ℤn and {zt }Tt=1 are the extreme points of conv(X), setting 𝜆t ∈ {0, 1} excludes some points of X, so again branching on x variables is the
better option.
So from now on, we will branch on x variables whenever possible. Later, we consider models with identical subproblems in which the x variables are aggregate
S
S
xj = 0
xj = 1
λt = 0
λt = 1
S0
S1
S0
S1
(a)
Figure 11.1
(b)
Branching for 0–1 column generation: (a) original and (b) column variables.
219
220
11 Column (and Row) Generation Algorithms
variables. In such cases, branching on the x-variables may not be sufficient to
ensure that we can recover the solution of the original problem.
Solving the LP Master at a Node
A node in the branch-and-bound tree is defined by a series of bound constraints
𝓁 ≤ x ≤ u and possibly more general branching constraints or cutting planes. Let
Cx ≤ g denote all the additional constraints associated to the node so that the associated problem at the node is max{cx ∶ Ax ≤ b, Cx ≤ g, x ∈ X}. There is now a
choice: Which of the new constraints should we treat as complicating constraints
and which should we use to define the new set X arising in the subproblem?
Suppose that constraints C1 x ≤ g1 are treated as complicating constraints with
associated dual variables 𝜇 and C2 x ≤ g2 are added to the set X where C = (C1 , C2 )T
and g = (g1 , g2 )T . The columns of RLM now take the form (czt , Azt , C1 zt , 1)T and
otherwise the treatment of the Restricted Master Problem is unchanged.
However, if (C2 , g2 ) is nonempty, the subproblem now takes the form:
max{(c − 𝜋 ∗ A − 𝜇 ∗ C1 )x − 𝜋0∗ ∶ x ∈ X ∩ {x ∶ C2 x ≤ g2 }}.
Two factors come into play in deciding how to treat the new constraints.
Complexity of the Subproblem. Optimizing over the set X is supposed to be relatively easy. Optimizing over X ∩ {x ∶ C2 x ≤ g2 } may still be easy in which case we
talk of robust column generation, or it may be much more difficult.
As an example, if the set X is a 0–1 knapsack set, adding bound constraints
xj = 0 or xj = 1 to X will again lead to a 0–1 knapsack set, so the same algorithm
for solving 0–1 knapsack problems can be used at all the nodes of the tree. On
the other hand, adding a general constraint fx ≤ g leads to a new set with two
constraints for which the 0–1 knapsack algorithm used at the top node will no
longer work.
Strength of the Linear Programming Bound. We have seen above that the value
of the solution of the LP Master is max{cx ∶ Ax ≤ b, C1 x ≤ g1 , x ∈ conv(X ∩ {x ∶
C2 x ≤ g2 })}. So the bound becomes potentially stronger as constraints are
transferred form C1 x ≤ g1 to C2 x ≤ g2 . In particular, max{cx ∶ Ax ≤ b, Cx ≤ g, x ∈
conv(X)} ≥ max{cx ∶ Ax ≤ b, x ∈ conv(X ∩ {x ∶ Cx ≤ g})} ≥ ZM .
Note that, if one just adds a single bound constraint, adding it to the set X may
lead to a better upper bound that when adding it to the complicating constraints
Ax ≤ b, but the subproblem may become more difficult to solve.
Example 11.2 Continuing with Example
11.1, the
) optimal solution of the linear
(
1 1
programming Master Problem is x = 1, 0, 0, 2 , 2 ∉ {0, 1}5 .
11.4 Solving the Master Problem: Branch-and-Price
Branch-and-Price. Here we choose to branch on the original x variables. As the
column generation subproblem is a 0–1 knapsack problem, we can add the
branching constraints in the column generation subproblem.
(
)
Node 1. ZLM = 8.5. x = 1, 0, 0, 12 , 12 . We branch on one of the integer variables
taking a fractional value, for example x4 .
Node 2. Branch x4 = 0.
As x44 > 0, one can set 𝜆4 = 0.
Iteration 1.
RLM. ZRLM = 8, 𝜆∗ = (0, 0, 0, 0, 1), (𝜋 ∗ , 𝜋0∗ ) = (0, 8).
SP with x4 = 0. 𝜁 = 0. LM is solved.
As x = z5 𝜆∗5 is a feasible integer solution. New incumbent z5 = (1, 0, 0, 0, 1)
of value 8. Node pruned by optimality.
∑5
∑5
Node 3. Branch x4 = 1. As t=1 𝜆t = 1 and x4 = t=1 z4t 𝜆t = 𝜆4 = 1, set 𝜆1 = 𝜆2 =
𝜆3 = 𝜆5 = 0.
Iteration 1.
RLM. Problem infeasible.
Phase 1. Introduce a new artificial column with cost M = 100. The resulting
RLM is
{∑p
∑p
(czt )𝜆t − My,
(Azt )𝜆t + by ≤ b,
max
t=1
t=1
}
∑p
p
𝜆t + y = 1, 𝜆 ∈ ℝ+ , y ∈ ℝ1+ .
t=1
RLM ZRLM = −100, 𝜆 = 0, y = 1, (𝜋, 𝜋0 ) = (109, −972).
SP with x4 = 1. 𝜁 = 539, x = z5 = (0, 0, 0, 1, 0).
Iteration 2.
RLM ZRLM = 7.8, 𝜆 = (0, 0, 0, 0.8, 0, 0.2), (𝜋, 𝜋0 ) = (1.2, −1.8)
SP with x4 = 1. 𝜁 = 0.4, z6 = (0, 0, 1, 1, 0)
Iteration 3.
RLM ZRLM = 8.0, 𝜆 = (0, 0, 0, 0.5, 0, 0, 0.5), (𝜋, 𝜋0 ) = (1, 0)
SP with x4 = 1. 𝜁 = 0.
ZLM = 8. Node pruned by bound.
All nodes are pruned. x∗ = (1, 0, 0, 0, 1) is optimal with ZM = ZLM = 8.
◽
Pursuing this example, we now consider what happens when cuts are added in
the course of the algorithm.
Example 11.3 Taking the fractional solution of LM at node 1, we observe that
the 0–1 knapsack separation heuristic of Chapter 9 applied to the “complicating
constraint” 5x1 + 8x2 + 6x3 + 4x4 + 2x5 ≤ 8 generates the violated extended cover
221
222
11 Column (and Row) Generation Algorithms
inequality x1 + x2 + x4 ≤ 1. Here we consider two cases: in the first case (A), this
inequality is added as a “complicating constraint,” and in the second case (B), it is
added as a “subproblem constraint.”
Branch-Cut-and-Price (A: Cut
( Added to )Complicating Constraints)
Node 1. ZRLM = 8.5. x = 1, 0, 0, 12 , 12 .
Adding x1 + x2 + x4 ≤ 1 to the complicating constraints, the RLM has an
∑T t
t
t
additional constraint
t=1 (z1 + z2 + z4 )𝜆t = 𝜆1 + 𝜆2 + 2𝜆4 + 𝜆5 ≤ 1 with
dual variable 𝜋.
̂
RLM ZLM = 8, 𝜆 = (0, 0, 0, 0, 1). x = (1, 0, 0, 0, 1). 𝜋 = 0, 𝜋̂ = 1, 𝜋0 = 7.
The form of the subproblem is unchanged.
SP 𝜁 = 0. LM is solved.
LM has an optimal LP solution that is integer and is thus optimal.
Branch-Cut-and-Price (B: Cut Added to Subproblem)
(
)
Node 1. We take RLM from Example 11.1 with ZRLM = 8.5. x = 1, 0, 0, 12 , 12 .
(𝜋 ∗ , 𝜋0∗ ) = (0.5, 4.5). As x4 is no longer feasible in X ∩ {x ∶ x1 + x2 + x4 ≤ 1},
we can remove x4 by setting 𝜆4 = 0. RLM which is otherwise unchanged is
resolved.
RLM ZLM = 8, 𝜆 = (0, 0, 0, 0, 1). 𝜋 ∗ = 0, 𝜋0∗ = 8. x = (1, 0, 0, 0, 1) is feasible for
M with value 8.
SP is now of the form: 𝜁 = max{(c − 𝜋 ∗ A)x − 𝜋0∗ ∶ x1 + x2 + x4 ≤ 1, x ∈ X}.
SP 𝜁 = 0. LM is solved.
LM has an optimal LP solution that is integer and is thus optimal.
◽
11.5 Problem Variants
11.5.1 Handling Multiple Subproblems
pk
For problems in the form IP with K > 1 with {zkt }t=1 the extreme points of X k for
k = 1, … , K, similar transformations lead to a Master Problem of the form:
∑K ∑p k
(ck zkt )𝜆kt
ZM = max
t=1
k=1
∑K ∑p k
(Ak zkt )𝜆kt ≤ b
t=1
k=1
∑p k
𝜆kt = 1 for k = 1, … , K
t=1
pk
xk −
∑p k
t=1
𝜆k ∈ ℝ+
for k = 1, … , K
zkt 𝜆kt = 0 for k = 1, … , K
k
x k ∈ ℤn
for k = 1, … , K.
11.5 Problem Variants
223
∑K ∑pk
The lower bound on ZLM is ZRLM = k=1 t=1 (ck zkt )𝜆kt .
In the RLM, the k-th convexity constraint has dual variable 𝜋k0 .
The subproblems take the form: 𝜁 k = max{(ck − 𝜋Ak )xk − 𝜋k0 ∶ xk ∈ X k }.
The linear program is solved when 𝜁 k = 0 for k = 1, … , K.
∑K
An upper bound on ZLM is ZRLM + k=1 𝜁 k .
An extreme alternative is to treat the set X = X 1 × · · · × X K as a single subproblem set. In this case, the columns of the Master take the form
(∑ k k,t ∑ k k,t )
k,
k , 1 , and there is a single convexity constraint.
kc z
kA z
11.5.2 Partitioning/Packing Problems with Additional Variables
Many problems involve complicating constraints that are Partitioning/Packing
constraints on a subset of the variables. Such problems take the form
{∑K
}
∑K
Z = max
(ck xk + f k 𝑤k ),
xk ≤ 1, (xk , 𝑤k ) ∈ X k , for k = 1, … , K .
k=1
k=1
These problems can be treated as in the subsection 11.5.1. An example of such a
problem is:
Multi-item Lot-Sizing. We are given demands dku for items k = 1, … , K over a time
horizon u = 1, … , n. All items must be produced on a single machine. The
machine can produce only one item in each period and has a capacity Ck per
period if item k is produced in the period. Given production, storage, and setup
costs (pku , hku , cku ) for each item in each period, we wish to find a minimum cost
production plan. Letting xuk = 1 if item k is set-up in period u and 0 otherwise,
yku be the amount of item k produced in period u and sku be the amount of item
k in stock at the end of period u, the problem can be formulated as:
∑K ∑n
min
(pk yk + hku sku + cku xuk )
k=1
u=1 u u
∑K
xuk ≤ 1 for u = 1, … , n
k=1
(xk , yk , sk ) ∈ X k
for k = 1, … , K,
with X k given by:
sku−1 + yku = dku + sku
for u = 1, … , n
yku ≤ Cuk xuk for u = 1, … , n
sk0 = 0
sk ∈ ℝ+n+1 , yk ∈ ℝn+ , xk ∈ {0, 1}n .
224
11 Column (and Row) Generation Algorithms
11.5.3 Partitioning/Packing Problems with Identical Subsets
Here we suppose that the problem is of the form X k = X ⊂ {0, 1}m , ck = c, Ak = Im
∑
for all k and b = 1. With zkt = zt for all k, t and 𝜇t = k 𝜆kt , the Master problem can
be rewritten in the form:
∑T
ZM = max
(czt )𝜇t
t=1
∑
(MIS)
𝜇t ≤ 1 for i = 1, … , m
t∶zit =1
∑T
𝜇 =K
t=1 t
𝜇 ∈ {0, 1}T .
There is now just a single column generation problem:
𝜁 = max{(c − 𝜋)x − 𝜋0 ∶ x ∈ X}.
An example of such a problem is:
A Clustering Problem. Given a graph G = (V, E) with n = |V| and m = |E|, edge
costs fe for e ∈ E, node weights di for i ∈ V, and a cluster capacity C, we wish
to split the node set V into K (possibly empty) clusters satisfying the property
that the sum of the node weights in each cluster does not exceed C, in a way
that minimizes the sum of the weights of edges between clusters (maximizes
the sum of weights of edges within clusters). The problem can be formulated as
∑K ∑
fe 𝑤ke
max k=1
∑K
e∈E
k
k=1 xi = 1 for i ∈ V
(𝑤k , xk ) ∈ X
for k = 1, … , K
where X = {(𝑤, x) ∈ {0, 1}m × {0, 1}n ∶ 𝑤e ≤ xi , 𝑤e ≤ xj , 𝑤e ≥ xi + xj − 1 for
∑
e = (i, j) ∈ E, i∈V di xi ≤ C} with xi = 1 if node i is in the cluster and 𝑤e = 1 if
edge e has both endpoints in the cluster.
Solving the linear programming relaxation of MIS is essentially as before. The
first question that arises is:
How to branch when the solution 𝜇 ∗ of its linear programming relaxation is not
integral?
It is now not at all obvious how to recover the original variables xk or the 𝜆kt
variables, so the branching scheme proposed in Section 11.4 must be modified.
We now consider two possibilities.
11.6 Computational Issues
Figure 11.2
problem.
A branching scheme for a partitioning
S
zi = zj
zi + zj ≤ 1
S1
S2
Branching Rules
∑T
∑T
∑T
(i) If t=1 𝜇t = 𝛼 ∉ Z, then form two branches with t=1 𝜇t ≤ ⌊𝛼⌋ and t=1 𝜇t ≥
⌈𝛼⌉, respectively.
(ii) A second possibility is based on the simple observation that if we consider a
pair of rows each 0–1 column zt either has a 1 appearing in both rows, or not.
So we choose a pair of elements (rows) i and j with 1 ≤ i < j ≤ m for which
∑
𝜇t < 1,
0<
t∶zit =zjt =1
and we then form two branches with
respectively.
∑
t∶zit =zjt =1 𝜇t = 1 and
∑
t∶zit =zjt =1 𝜇t = 0,
On the first branch, we impose that i and j lie in the same subset, and on the second that i and j lie in different subsets. In the first case, all columns corresponding
to subsets Q containing either i or j but not both are eliminated from the Master Problem and the constraint zi = zj is added to the subproblem to ensure that
any new column generated does not contain i but not j, or vice versa. In the second case, columns containing both i and j are eliminated from the Master, and the
constraint xi + xj ≤ 1 is added to the subproblem, see Figure 11.2.
The following result says that this second branching scheme is sufficient.
Proposition 11.1 If 𝜇 ∗ ∉ {0, 1}T , there exist rows i, j with 1 ≤ i < j ≤ m such that
∑
𝜇t < 1.
0<
t∶zit =zjt =1
Such a pair is also not difficult to find.
11.6 Computational Issues
To make a column generation or branch-and-price algorithm efficient, there are
many ideas of ways to speed up the solution process. Here, we list a few of them.
225
226
11 Column (and Row) Generation Algorithms
Speeding Up the Solution of the LP Master.
It is well known that column generation algorithms can take many iterations
initially before generating good dual variables/prices and thus interesting
columns. Secondly that there are tailing-off effects with very many iterations
needed to complete convergence.
i) To tackle the start-up problems, it is usual to generate heuristically a good
set of starting columns.
ii) Various ways are used to stabilize the dual variables either by adding constraints on the dual variables, restricting them to a certain region and/or
using penalty functions.
iii) Heuristics can be used to find good, but not optimal, solutions to the subproblems. The subproblems only need to be solved exactly on the final
iteration in order to prove that the LP Master Problem (LM) is solved.
Speeding Up the Solution of the IP Master.
i) As upper bounds on the value of ZLM are generated, these can be used for
possible pruning, so it is not necessary solve LM to optimality at each node
of the branch-and-bound tree.
ii) Strong branching is recommended.
iii) Development of special primal heuristics for column generation problems.
iv) Possible use of complete enumeration when the duality gap at a node is
very small.
v) Choice of branching variables.
Branch-Cut-and-Price.
i) Development of cutting planes or extended formulations in order to tighten
the bounds.
ii) Use of robust cuts if possible to avoid complicating the subproblems.
iii) Find fast ways to use nonrobust cuts defined over the 𝜆 variables.
11.7 Branch-Cut-and-Price: An Example∗
Here we present a branch-cut-and-price algorithm for a more complicated problem, the symmetric Capacitated Vehicle Routing Problem (CVRP).
11.7.1 A Capacitated Vehicle Routing Problem
Given a complete graph G = (V, E) with node set V = {0, 1, … , n} consisting of a
depot at node 0 and nodes 1, … , n representing the clients, ce is the cost of traversing edge e ∈ E. There are K identical vehicles of capacity Q and each client i has a
demand di . The problem is to assign subtours starting and finishing at the depot
to each vehicle, so that each client receives his demand di from a single vehicle,
11.7 Branch-Cut-and-Price: An Example
the capacity of a vehicle is not exceeded and the total sum of the edges traversed
by the vehicles is minimized.
A first formulation is close to the subtour formulation of the traveling salesman
problem. Let xe = 1 if the edge e is traversed by one of the vehicles. This leads to
the formulation:
∑
min
ce xe
(11.9)
e∈E
∑
xe = 2K
(11.10)
xe = 2 for i = 1, … , n
(11.11)
e∈𝛿(0)
∑
e∈𝛿(i)
∑
e∈𝛿(S)
d(S)
⌉ for S ⊂ V, 0 ∉ S
Q
(11.12)
for e ∈ E ∖ 𝛿{0}
(11.13)
xe ∈ {0, 1, 2} for e ∈ 𝛿{0}
(11.14)
xe ≥ 2⌈
xe ∈ {0, 1}
where 𝛿(i) denotes the edges incident to node i, 𝛿(S) the edges in the cut separating
∑
S and V ∖ S and d(S) = i∈S di . Here (11.10) forces K vehicles to leave and enter the
depot, (11.11) forces a single vehicle entering and leaving each client and (11.12)
ensures that the capacity of the vehicles arriving at a set S of clients is sufficient
to satisfy their demands. Note that this formulation has an exponential number of
constraints.
A second formulation views the problem as a partitioning problem in which
columns ideally represent the subtours of a vehicle. However, as finding an optimal subtour even for a single vehicle is an -hard problem, the idea is to use a
relaxation of a tour over which it is possible to optimize. Specifically, a q-route is
a walk (allowing more than one visit to a client) in which the load di is counted
at each visit to client i and the vehicle capacity is not exceeded. We call a q-route
without two-cycles (the sequence of successive visits i, j, i is excluded) a q2-route.
Let be the set of all q2-routes and let variable 𝜆t = 1 if q2-route t is used by one
of the vehicles. This leads to the formulation:
∑
min
ct 𝜆t
(11.15)
t∈
∑
a0,t 𝜆t = 2K
(11.16)
ai,t 𝜆t = 2 for i = 1, … , n
(11.17)
𝜆t ∈ {0, 1} for t ∈ ,
(11.18)
t∈
∑
t∈
227
228
11 Column (and Row) Generation Algorithms
where ct is the travel cost of q2-route t and ai,t is the number of edges incident
to node i in the q2-route t. The constraints (11.16) and (11.17) ensure that each
client is visited exactly once on the K q2-routes and thus that the resulting solution
provides a set of feasible vehicle routes.
Neither of the two formulations P1 and P2 obtained by dropping the integrality
constraints in these two integer programs contains the other, so a stronger formulation is obtained by intersecting the two. Letting 𝜌e,t be the number of occurrences
∑
of edge e in q2-route t, it follows that xe = t∈ 𝜌e,t 𝜆t . Substituting for xe gives a
third integer program:
∑
min
ct 𝜆t
t∈
∑
a0,t 𝜆t = 2K
t∈
∑
ai,t 𝜆t = 2
for i = 1, … , n
t∈
∑
AS,t 𝜆t ≥ ⌈
t∈
d(S)
⌉
Q
𝜆t ≤ 1
for S ⊂ V, 0 ∉ S
for t ∈
𝜆∈ℤ ,
where AS,t is the number of edges in q2-route t in the cut-set 𝛿(S).
The basic algorithm is now straightforward.
1. Consider the Relaxed Master problem involving a subset = {1, … , r} of
columns and subsets S1 , … , Sp .
2. After solving the linear program with dual variables 𝛼 ∈ ℝ1 , 𝛽 ∈ ℝn ,
p
𝛾 ∈ ℝ+ , 𝜇 ∈ ℝr− , solve the subproblem
}
{
∑
ce xe ∶ x the incidence vector of a q2-route
(11.19)
𝜁 = min
e∈E
where the reduced cost ce of xe is given by
∑
ce = ce − 𝛽i − 𝛽j − p∈[1,q]∶e∈𝛿(Sp ) 𝜇p if e = (i, j) ∉ 𝛿(0) and ce = ce − 𝛼 − 𝛽j −
∑
p∈[1,q]∶e∈𝛿(Sp ) 𝜇p if e = (0, j) ∈ 𝛿(0).
As long as 𝜁 > 0, new columns are added to the problem. When 𝜁 = 0, the linear programming relaxation with all the q2-routes (11.9)–(11.14) has been
solved.
∑
3. Now we test whether the corresponding solution xe∗ = t∈ 𝜌(e, t)𝜆∗t satisfies
the capacitated subtour constraints. For this, the separation problem is:
}
{
∑
d(S)
∗
𝜙 = min
⌉ .
xe − ⌈
S⊂V,0∉S
Q
e∈𝛿(S)
11.7 Branch-Cut-and-Price: An Example
If 𝜙 < 0, a new capacitated subtour constraint is added and we return to 1. with
at least all the columns (q2-routes) in the basis and all the subtour constraints
that are tight.
If 𝜙 = 0, the relaxed Master problem is solved. If the corresponding x∗ ∈ ℤ|V|
+ ,
the problem is solved, otherwise one needs to branch.
4. Rather than branching on simple bound constraints, it is suggested to branch
∑
∑
on constraints of the form e∈𝛿(S) xe ≤ 2s and e∈𝛿(S) xe ≥ 2s + 2. As these have
the same form as the capacitated subtour constraints, the resulting column generation subproblem is essentially unchanged.
11.7.2 Solving the Subproblems
Column Generation
Here we consider the column generation problem (11.19) of finding a q2-route to
enter the basis. A simple dynamic programming algorithm is
H(j, k, q) = min {H(i, j, q − dj ) + cj,k } j, k ∈ V, j ≠ k, dj ≤ q ≤ Q
i∈V∖{j,k}
where H(j, k, q) is the minimum cost of a walk without two-cycles starting at node
0 and ending with node j followed by node k with the vehicle carrying load q on
edge (j, k). The minimum cost q2-route then has cost
min
min {H(j, k, q − dk ) + c0k }.
j,k∈V∶j≠k q∶dk ≤q≤Q
A fairly recent improvement is to replace q-routes by ng-routes. For each node
i ∈ V ∖ {0}, N(i) ⊂ V with i ∈ N(i) is a set of nodes, called neighbors. An ng-route
is a walk beginning and ending at node 0 in which node i can only be revisited if at
least one node j visited after node i is such that j ∉ N(i). Let G(i, q, S) denote a minimum cost ng-walk starting at node 0 and arriving at node i having delivered exactly
an amount q with S the set of nodes that are forbidden as immediate successors of
i. Consider a walk arriving at node i with excluded successors S and suppose that j
is the next node on the path. If k ∈ S with k ≠ j, k cannot be a successor of j unless
k ∉ N(j). This leads to the dynamic programming recursion
G(j, q, (S ∩ N(j)) ∪ {j}) = min{G(i, q − dj , S) + cij }.
i∈V
Cut Generation
Checking whether one of the capacity inequalities (11.12) is violated is an
-hard problem. Here we present the idea behind a couple of heuristics and
also show how the separation problem can be formulated exactly as a mixed
integer program. The idea of the first heuristic is very simple. Given the fractional
solution x∗ , consider the support graph G∗ = (V ∗ , E∗ ) where V ∗ = V ∖ {0} and
e = (i, j) ∈ E∗ if xe∗ > 0. Let S1 , … , Sr be the components of G∗ that are not
229
230
11 Column (and Row) Generation Algorithms
connected by any flow to the depot. Test the capacity(GSEC) inequality (11.12)
for Si for i = 1, … , r. Another heuristic is based on the fact that if the inequality
is weakened to have an rhs of d(S)
instead of ⌈ d(S)
⌉, the separation problem is
Q
Q
polynomial as for GSECs. In practice other heuristics are also used to find violated
capacity inequalities and to try to find violations of other classes of inequalities
that are known to be valid for CVRP.
The MIP for the separation of the capacity inequalities (11.12) is only used as a
last resort or to test the effectiveness of the heuristics. Using the variables zi = 1 if
i ∈ S and 0 otherwise, 𝑤e = 1 if edge e = (i, j) ∈ 𝛿(S) and 0 otherwise and 𝜙 ∈ ℤ1+ ,
the resulting MIP formulation is:
∑
xij∗ 𝑤ij − 2(𝜙 + 1)
min
e∈E
(∑
)
dz
i∈V∖{0} i i
𝑤ij ≥ zj − zi
for (i, j) ∈ E
𝑤ij ≥ zi − zj
for (i, j) ∈ E
∕Q ≥ 𝜙 + 𝜖
1
z0 = 0, z ∈ {0, 1}|V| , 𝑤 ∈ ℝ|E|
+ , 𝜙 ∈ ℤ+
with 𝜖 very small and positive. The first pair of constraints
∑ ensure that the 𝑤 varidi
⌉.
ables define a cut-set 𝛿(S), and the third that 𝜙 + 1 ≤ ⌈ i∈S
Q
11.7.3 The Load Formulation
Here we introduce an alternative formulation in which the travel times on an arc
depend on the direction traveled. The demands and vehicle capacity are assumed
to be integer. DQ = (V, AQ ) is a multigraph with nodes V = {0, 1, … , n} as above
q
and arcs aq = (i, j, q) for di ≤ q ≤ Q joining i to j. Let xij = 1 if some vehicle goes
from node i to node j carrying a load of q units and 0 otherwise.
The formulation is
∑Q ∑
q
min
cij xij
(11.20)
q=0
(i,j)∈A
∑
∑
∑Q
q=0
∑
a∈𝛿 − (i)
q−di
xa
xa0 = K
(11.21)
a∈𝛿 + (0)
−
xa = 1 for i ∈ V ∖ {0}
q
(11.22)
q
(11.23)
q
(11.24)
a∈𝛿 + (i)
∑
xa = 0 for i = 1, … , n, di ≤ q ≤ Q
a∈𝛿 + (i)
xij ∈ {0, 1} for (i, j, q) ∈ AQ .
11.8 Notes
Constraint (11.21) stipulates that K empty vehicles leave the depot, (11.22)
that one vehicle visits each client, and (11.23) that the load of a vehicle increases
by di when it visits client i. Note that the number of variables and nodes is
pseudo-polynomial as it depends on the size of Q. Here again the next step is to
introduce columns for q-routes or ng-routes. It is also possible to generate new
families of cuts involving the arc-load variables. The steps to develop an effective
BCP algorithm then include improved labeling algorithms for the column generation, heuristic pricing, reduced cost fixing, route enumeration, strong branching,
robust cuts involving the new load variables, heuristic separation of other CVRP
cuts, a special subclass of nonrobust cuts, etc.
11.8 Notes
Several books and surveys on column generation include the book of Desaulniers
et al. [96] and a survey of Vanderbeck and Wolsey [282]
11.1 The fundamental paper on the decomposition of linear programs, known as
Dantzig–Wolfe decomposition, appeared in [94].
11.3 The first use of column generation to solve the Master linear program arising
from an IP problem is probably the work on the cutting stock problem of
Gilmore and Gomory [141, 142]. The equivalence of the bounds provided by
the linear programming Master and the Lagrangian dual has been known
since Geoffrion [137].
11.4 The first papers on IP column generation in the 1980s were by Desrosiers
et al. [99] and Desrosiers and Soumis [98] on routing problems in which
the subproblems are constrained shortest path problems that are solved by
dynamic programming. Several applications of branch-and-price were published in the 1990s such as work on a multi-item lot-sizing by Vanderbeck
[279], on a clustering problem by Johnson et al. [188], on the GAP in Savelsbergh [263], and on binary and integer cutting stock problems in Vance et al.
[278] and Vanderbeck [280] respectively.
11.5 The branching rule (ii) is from Ryan and Foster [261]. More general branching rules for problems with identical subproblems that are not restricted to
0–1 variables appear in Barnhart et al. [34] and Vanderbeck and Wolsey [281].
11.6 Stabilization techniques for the solution of the LP Master problem are treated
in Pessoa et al. [247]. A primal heuristic is presented in Sadykov et al. [262].
The thesis of Gamrath [131] contains a detailed survey of the major aspects
of branch-cut-and-price.
11.7 The presentation here is largely based on Fukasawa et al. [127]. The simple pricing DP for q-routes without two-cycles runs in O(n3 Q), but a O(n2 Q)
231
232
11 Column (and Row) Generation Algorithms
version is given in Christofides et al. [69]. Many of the valid inequalities for
CVRP along with heuristics for their separation are described in Letchford
et al. [207] and Lysgaard et al. [216]. A software package with these separation routines for CVRP is available from Lysgaard [215].
The load formulation of Section 11.7.3 was introduced in Pessoa et al.
[246]. In Pecin et al. [245], the load formulation is used. It appears to
be the most effective formulation to date for the basic CVRP. The article
includes many new ideas of the authors such as new robust cuts on the load
variables, and of others such as ng-routes due to Baldacci et al. [29], total
enumeration when the duality gap is sufficiently small in Baldacci et al.
[28] and non-robust cuts in Jepsen et al. [183]. It is also shown in Pessoa
et al. [247] that several variants such as problems with time-windows,
heterogeneous fleets, etc. can be treated using a similar approach.
Information on a solver for CVRP and several related problems can be
found in [248]. An alternative branch-cut-and-price algorithm is proposed
in Costa et al. [83].
11.9 Exercises
1.
Consider the problem UFL with formulation as in Chapter 1
∑m ∑n
∑n
min
c y +
fx
i=1
j=1 ij ij
j=1 j j
∑n
yij = 1 for j = 1, … , n
j=1
yij − xj ≤ 0
for i = 1, … , m, j = 1, … , n
n
y ∈ ℝmn
+ , x ∈ {0, 1} .
∑n
Consider column generation, taking the constraints j=1 yij = 1 as the complicating constraints.
(i) Describe the extreme points of conv(X) where X = {(x, y) ∈ {0, 1} × ℝm
+ ∶
yi ≤ x for i = 1, … , m}.
(ii) What is the complete Master Problem?
(iii) What is the column generation subproblem?
(iv) Consider an instance with m = 4, n = 3,
⎛2 1 5⎞
⎟
⎜
3 4 2⎟
and f = (8, 6, 5).
(cij ) = ⎜
⎜6 4 1⎟
⎜1 3 7⎟
⎠
⎝
Construct the restricted Master Problem using all the initial columns in which
a depot serves exactly two clients. Carry out an iteration of the algorithm.
11.9 Exercises
2.
Solve the following instance of STSP by column generation
⎛− 3 4 2 ⎞
⎜
⎟
− − 5 6 ⎟
.
(ce ) = ⎜
⎜ − − − 12 ⎟
⎜− − − − ⎟
⎝
⎠
3.
Consider GAP with equality constraints
∑m ∑n
max
cij xij
i=1
j=1
∑n
(11.25)
x =1
j=1 ij
for i = 1, … , m
(11.26)
a x ≤ bj
i=1 ij ij
for j = 1, … , n
(11.27)
∑m
x ∈ {0, 1}mn .
(11.28)
⎛20 16⎞
⎛5 7 ⎞
Solve an instance with m = 3, n = 2, (cij ) = ⎜15 19⎟, (aij ) = ⎜3 8 ⎟, and
⎜
⎟
⎜
⎟
⎝19 14⎠
⎝2 10⎠
( )
6
b=
by column generation.
21
4.
Makespan on Parallel Machines. Here one has K machines and m jobs. Each
job must be carried out on one of the machines. The processing time of job i on
machine k is aik . The objective is to complete all the jobs as soon as possible.
The variables are xik = 1 if job i is assigned to machine k and 0 otherwise. 𝜂 is
the completion time of the last job to finish. Formulate as an MIP and discuss
how this problem can be tackled by Branch-and-Price.
5.
The Cutting Stock Problem (See Section 5.5). Suppose that 15 pieces of length
32, 35 of length 20, 17 of length 15, and 42 of length 11 must be cut from
sheets of length 104. Find the minimum number of sheets required. Formulate, discuss possible algorithms, and present lower and upper bounds on the
minimum value.
6.
The Bin Packing Problem. K identical bins of size d are given as well m distinct
items. Item i takes up ai space in a bin. The problem is to fit all the items into
as few bins as possible. Formulate and suggest a solution algorithm.
233
235
12
Benders’ Algorithm
12.1 Introduction
Here we consider one approach for solving problems of the form
p
Z = max{cx + hy ∶ Fx + Gy ≤ d, x ∈ X ⊆ ℤn+ , y ∈ ℝ+ }
(12.1)
where in many cases p is large, while n is relatively small.
One example is the capacitated facility location problem in which each facility
has a capacity dj , each client has a demand ai , there is a fixed cost fj of using facility
j, and a per unit transportation cost cij between facility j and client i. The goal is
to minimize the total cost while satisfying the demands subject to the capacity
constraints. This can be formulated as:
min
n
∑
fj xj +
j=1
m n
∑
∑
cij yij
i=1 j=1
m
∑
yij ≤ dj xj
for j = 1, … , n
yij = ai
for i = 1, … , m
i=1
n
∑
j=1
yij ≤ min(ai , dj )xj
n
∑
dj xj ≥
j=1
x ∈ {0, 1}n ,
m
∑
for i = 1, … , m, j = 1, … , n
ai
i=1
y ∈ ℝmn
+
where xj = 1 if facility j is used and yij is the amount shipped from facility j to
client i.
Integer Programming, Second Edition. Laurence A. Wolsey.
© 2021 John Wiley & Sons, Inc. Published 2021 by John Wiley & Sons, Inc.
Companion website: www.wiley.com/go/wolsey/integerprogramming2e
236
12 Benders’ Algorithm
Another example arises when there is an extended formulation Q = {(x, y) ∶
p
Fx + Gy ≤ d, x ∈ ℝn , y ∈ ℝ+ } for some set P ⊂ ℝn , i.e. P =projx (Q). Here the
problem max{cx ∶ x ∈ P ∩ X} can be replaced by max{cx + 0y ∶ Fx + Gy ≤ d, x ∈
p
X, y ∈ ℝ+ } which is of the form (12.1) with h = 0.
The approach of Benders’ is to decompose the problem, so as to essentially solve
the problem in the x-space.
12.2 Benders’ Reformulation
The main step in Benders’ reformulation is to rewrite the problem (12.1) in the
form
Z = max{cx + 𝜙(x) ∶ x ∈ X},
(12.2)
x
where
p
𝜙(x) = max{hy ∶ Gy ≤ d − Fx, y ∈ ℝ+ }.
(12.3)
We assume for simplicity that 𝜙(x) < ∞ for all x ∈ ℝn . From Farkas’ lemma or
basic results concerning linear programs, see Section 2.6, this linear program
defining 𝜙(x) is feasible if and only if
𝑣t (d − Fx) ≥ 0 for t = 1, … , T
where {𝑣t }Tt=1 are the extreme rays of U = {u ∈ ℝm
+ ∶ uG ≥ h}.
If this linear program is feasible
𝜙(x) = min us (d − Fx)
s=1,…,S
are the extreme points of U. This can be rewritten as 𝜙(x) =
max𝜂 {𝜂 ∶ 𝜂 ≤ us (d − Fx) for s = 1, … , S} leading to the reformulation of
Benders’, called the Benders’ Master problem:
where {us }Ss=1
Z = max cx + 𝜂
(12.4)
𝑣t (d − Fx) ≥ 0
for t = 1, … , T
(12.5)
us (d − Fx) ≥ 𝜂
for s = 1, … , S
(12.6)
x ∈ X, 𝜂 ∈ ℝ1 .
(12.7)
This is a mixed integer program with a very large (typically exponential) number of
constraints. With modern mixed integer programming software, the natural way
to solve such a problem is by branch-and-cut.
12.2 Benders’ Reformulation
Note that in practice, we will often calculate 𝜙(x) by solving the dual of the linear
program (12.3), namely the the dual separation problem:
(DSP)
min{u(d − Fx) ∶ uG ≥ h, u ∈ ℝm
+ }.
Branch-and-Cut Algorithm for Benders’
At each node of the enumeration tree specified by the bounds 𝓁 ≤ x ≤ k, solve the
linear programming relaxation;
Z ∗ = max cx + 𝜂
𝑣t (d − Fx) ≥ 0 for t ∈ T ′
(BR)
us (d − Fx) ≥ 𝜂 for s ∈ S′
𝓁 ≤ x≤k
x ∈ PX , 𝜂 ∈ ℝ1 ,
where PX is a formulation for X, i.e. X = PX ∩ ℤn . Let Z be the value of the incumbent.
Start with a subset T ′ ⊂ {1, … , T} of the constraints (12.5) and a subset
′
S ⊂ {1, … , S} of the constraints (12.6) and add to them as necessary.
Procedure.
Initialization. Place the original problem on the list of active nodes.
1. Select and remove a node from the list of active nodes.
2. The linear programming relaxation BR is solved,
3. If this linear program is infeasible, BR is infeasible, and the node can be pruned.
Go to 1.
4. Otherwise let (x∗ , 𝜂 ∗ ) be the current linear programming solution. There are
various possibilities:
(i) If cx∗ + 𝜂 ∗ ≤ Z, the node can be pruned by bound. Go to 1.
(ii) Otherwise solve DSP, the dual linear programming separation problem.
Here there are three possible outcomes:
(a) The dual optimal value is unbounded giving a new extreme ray 𝑣t with
𝑣t (d − Gx∗ ) < 0. The violated constraint
𝑣t (d − Gx) ≥ 0,
called a feasibility cut, is added. Set T ′ = T ′ ∪ {t} and return to 1.
(b) DSP is feasible, but 𝜙(x∗ ) < 𝜂 ∗ giving a new extreme point us with
𝜙(x∗ ) = us (d − Gx∗ ) < 𝜂 ∗ . The violated constraint
us (d − Gx) ≥ 𝜂,
called an optimality cut, is added. Set S′ = S′ ∪ {s} and return to 2.
237
238
12 Benders’ Algorithm
(c) DSP is feasible with optimal value 𝜙(x∗ ) = 𝜂 ∗ . All the constraints are
satisfied, so the linear programming relaxation BR at the node is solved.
Now there are two possible outcomes
1. x∗ is integer and y∗ is the corresponding solution of value 𝜙(x∗ ), the
incumbent value Z is updated, the solution (x∗ , y∗ ) is stored as the
best feasible solution, and the node is pruned. Go to 1.
2. x∗ is not integer. Branch on one of the variables xj taking a fractional
value (xj∗ ∉ ℤ1 ). The (two) new nodes created are added to the active
node list. Go to 1.
Example 12.1 Consider the mixed integer program
max 4x1 +7x2
+2y1
−3y2
+y3
2x1 +4x2
+4y1
−2y2
+3y3 ≤ 12
3x1 +5x2
+2y1
+3y2
−y3 ≤ 10
x
≤ 2, x ∈ ℤ2+ , y ∈ ℝ3+ .
The corresponding dual polyhedron U = {u ∈ ℝm
+ ∶ uG ≥ h} as well as its extreme
points and extreme rays have been given in Example 2.4. So the complete Benders’
reformulation (12.4)–(12.7) is as follows:
max 4x1 +7x2
+𝜂
12x1 +22x2
≤
56 𝑣1 = (3, 2)
11x1 +19x2
≤
42 𝑣2 = (1, 3)
)
(
34
1 = 2, 1
u
5
5 5
(
)
2
6 u = 12 , 0
(
)
18 u3 = 32 , 0
7
x
5 1
+ 13
x
5 2
+𝜂
≤
x1
+2x2
+𝜂
≤
3x1 +6x2
+𝜂
≤
x
≤ 2, x ∈ ℤ2+ , 𝜂 ∈ ℝ1 .
Solution by the Branch-and-Cut Algorithm
Start at the initial node 1 with only the bound constraints 0 ≤ x ≤ 2 and a valid
upper bound on the optimal value of 𝜙(x) (200 is taken arbitrarily).
Node 1. Iteration 1. Solve the linear programming relaxation BR with T ′ = S′ = ∅.
Z ∗ = max 4x1 +7x2
x
+𝜂
𝜂
≤ 200
≤ 2,
x ∈ ℝ2+ .
Solution of BR: Z ∗ = 222, x∗ = (2, 2), 𝜂 ∗ = 200.
12.2 Benders’ Reformulation
Solve DSP (12.8), the dual of the separation LP:
max 2y1
−3y2
+y3
4y1
−2y2
+3y3 ≤ 12 − 12
2y1
+3y2
−y3 ≤ 10 − 16
y ∈ ℝ3+ .
DSP is unbounded and the extreme ray 𝑣2 = (1, 3) is found. T ′ = {2}. The corresponding constraint 11x1 + 19x2 ≤ 42 is added to BR.
Node 1. Iteration 2.
(
)
5
4
Solution of BR: Z ∗ = 215 11
, x∗ = 11
, 2 , 𝜂 ∗ = 200.
(
)
< 𝜂 ∗ . The extreme point u1 = 25 , 15 is dual
Solution of the DSP: 𝜙(x∗ ) = 12
11
optimal. S′ = {1}.
x + 𝜂 ≤ 34
is added to BR.
The corresponding constraint 75 x1 + 13
5 2
5
Node 1. Iteration 3.
Solution of BR: Z ∗ = 16.6316, x∗ = (2, 1.0526), 𝜂 ∗ = 1.26316.
Solution of DSP: 𝜙(x∗ ) = 𝜂 ∗ . BR at node 1 is solved.
The solution x∗ is not integer, so we need to branch. Create node 2 by branching
on x2 ≤ 1 and node 3 by branching on x2 ≥ 2, see Figure 12.1.
Node 2. Iteration 1. (x2 ≤ 1)
Solution of BR: T ′ = {2}, S′ = {1}. Z ∗ = 16.4, x∗ = (2, 1), 𝜂 ∗ = 1.4.
16.6316
1
x2 ≥ 2
x2 ≤ 1
6
16 11
16.4
16.4
2
3
x1 ≤ 0
x1 ≥ 1
15.6
−∞
4
Figure 12.1
Branch-and-cut tree for Benders’ algorithm.
5
239
240
12 Benders’ Algorithm
Solution of DSP: 𝜙(x∗ ) = 𝜂 ∗ . BR at node 2 is solved. The solution is integer. The
new incumbent value Z = 16.4 and the solution x∗ = (2, 1), y∗ = (0.1, 0, 1.2) is
stored. The node is pruned.
Node 3. Iteration 1. (x2 ≥ 2)
(
)
6
4
, x∗ = 11
, 2 , 𝜂 ∗ = 12
.
Solution of BR: T ′ = {2}, S′ = {1}, Z ∗ = 16 11
11
Solution of DSP: 𝜙(x∗ ) = 𝜂 ∗ . The solution x∗ is not integer, so we need to branch.
Create node 4 by adding x1 ≤ 0 and node 5 by adding x1 ≥ 1.
Node 4. Iteration 1. (x2 ≥ 2, x1 ≤ 0)
Solution of BR: T ′ = {2}, S′ = {1}, Z ∗ = 15.6. The node is pruned by bound as
Z = 16.4.
Node 5. Iteration 1. (x2 ≥ 2, x1 ≥ 1)
Solution of BR: T ′ = {2}, S′ = {1}
DSP: Unbounded. Extreme ray 𝑣1 = (3, 2). Feasibility cut 11x1 + 19x2 ≤ 42 is
added to BR.
BR: T ′ = {1, 2}, S′ = {1}. Infeasible. The node is pruned by infeasibility.
All nodes have been pruned. The search is complete. The optimal solution is
x = (1, 2), y = (0.1, 0, 1.2) with value Z = 16.4.
◽
12.3 Benders’ with Multiple Subproblems
In many applications, the MIP has block diagonal structure of the form
max cx + h1 y1 + h2 y2 + · · ·
F1 x
+ G1 y1
F2 x
+
≤ d1
≤ d2
G2 y2
⋱
FK x
+hK yK
⋱
≤ ⋮
≤ dK
GK yK
+
x ∈ X,
yk
p
∈ ℝ+k for k = 1, … , K
Benders’ reformulation can now be viewed as
}
{
K
∑
k
𝜙 (x) ∶ x ∈ X
max cx +
(12.8)
k=1
having K distinct separation problems
p
𝜂 k ≤ 𝜙k (x) = max{hk yk ∶ Gk yk ≥ dk − F k x, yk ∈ ℝ+k } for k = 1, … , K
12.3 Benders’ with Multiple Subproblems
in place of one large separation problem. The complete Benders’ reformulation is
now
max cx +
K
∑
𝜂k
k=1
𝑣t,k (dk − F k x) ≥ 0
u (d − F x) ≥ 𝜂
s,k
k
k
for t ∈ T k , k = 1, … , K
k
for s ∈ Sk , k = 1, … , K
x ∈ X, 𝜂 k ∈ ℝ1 for k = 1, … , K.
where T k , Sk index the extreme rays and extreme points, respectively, of
{u ∶ uGk ≥ hk , u ≥ 0} for k = 1, … , K.
We now indicate two classes of mixed integer programs having such a block
diagonal structure.
1. The Uncapacitated Facility Location Problem. Here the reformulation takes the
form:
}
{ n
m
∑
∑
i
n
fj xj +
𝜙 (x) ∶ x ∈ {0, 1}
,
min
j=1
where
𝜙 (x) = min
i
i=1
{ n
∑
j=1
cij yij ,
n
∑
}
yij = 1, yij − xj ≤ 0 for
j = 1, … , n, yi⋅ ∈ ℝn+
.
j=1
2. Two-stage Stochastic Programming with Recourse.After taking a first stage decision x ∈ X, a random outcome (scenario) occurring with probability Pk involving one or more of the future demands dk , the future prices ek , and possibly
the technology matrix Gk is observed. Then, an optimal second stage (recourse
action) yk depending on x and the scenario k is taken. Here F = F k and hk =
Pk ek for k = 1, … , K and the objective function to be maximized represents the
expected profit over the two stages.
∑K
max cx + k=1 (Pk ek )yk
Fx
+Gk yk
x ∈ X,
p
yk ∈ ℝ+k
≤ dk
for k = 1, … , K
for k = 1, … , K
Here the subproblem k takes the form:
p
𝜙k (x) = max{Pk ek yk ∶ Gk yk ≤ dk − Fx, y ∈ ℝ+k }.
An alternative is to group together some or all of the subproblems when sending
feasibility or optimality cuts to the Master. The case in which all are grouped
together leads to feasibility cuts of the form
∑
𝑣tk ,k (dk − F k x) ≥ 0 for K ′ ⊆ {1, … , K}
k∈K ′
241
242
12 Benders’ Algorithm
and optimality cuts of the form
K
∑
usk ,k (dk − F k x) ≥ 𝜂
k=1
where tk ∈ T k and sk ∈ Sk for all k.
12.4 Solving the Linear Programming Subproblems
Unfortunately the solution of the dual of the linear programming separation problem does not always provide strong cuts. Thus, when the optimum is unbounded
(i.e. the primal is infeasible), the extreme ray that is found is somewhat arbitrary.
Therefore, as for the lift-and-project algorithm in Section 8.9, it is usual to add
a normalization constraint so that the LP has a bounded optimal value. Differ∑m
∑m
ent normalizations such as i=1 ui = 1 or i=1 𝑤i ui = 1 have been suggested and
tested. However, there are examples showing that the resulting cuts can be weak.
We now present three approaches that can lead to improved performance of the
algorithm.
Combining the Feasibility and Optimality Criteria
Given (x∗ , 𝜂 ∗ ), a violated cut is obtained if and only if
p
{y ∈ ℝ+ ∶ hy ≥ 𝜂 ∗ , Gy ≤ d − Fx∗ } = ∅.
This holds (by Farkas’ lemma) if and only if min{−u0 𝜂 ∗ + u(d − Fx∗ ) ∶
−u0 h + uG ≥ 0, (u0 , u) ∈ ℝ1+ × ℝm
+ } is unbounded below. With the normalization
∑m
u0 + i=1 ui = 1, this leads to the separation problem
𝜙(x∗ ) = min − u0 𝜂 ∗ +u(d − Fx∗ )
−u0 h
≥0
+uG
∑
m
u0
+
i=1
ui
=1
u0 ∈ ℝ1+ , u ∈ ℝm
+.
If 𝜙(x∗ ) < 0 and u0 = 0 we obtain an infeasibility cut, and if 𝜙(x∗ ) < 0 and u0 > 0
an optimality cut.
The In-Out Approach
Here the idea is to modify the point to be cutoff, typically by moving it nearer to a
“central point” (𝜂 0 , x0 ) that could be the best solution found so far, or some point
12.4 Solving the Linear Programming Subproblems
that is in (or close) to the feasible region. Thus, one replaces (𝜂 ∗ , x∗ ) by a point
(𝜂,
̂ x̂ ) = 𝛼(𝜂 ∗ , x∗ ) + (1 − 𝛼)(𝜂 0 , x0 ) for some 0 < 𝛼 < 1.
For feasibility, the motivation is that, if x̂ is closer to the feasible region, then
there are less inequalities 𝑣t (d − Gx) ≥ 0 cutting it off and thus there is a greater
likelihood of generating an effective feasibility cut. For optimality cuts, the idea is
similar. In the same vein, it has also been suggested to move the “central point”
closer to the point (𝜂 ∗ , x∗ ) after some iterations.
Using Facet-Defining Inequalities
Consider first the case when h = 0. Ignoring the constraints x ∈ X, let Q = {(x, y) ∈
p
ℝn+ × ℝ+ ∶ Fx + Gy ≤ d} and P =projx (Q). Then, max{cx ∶ x ∈ P} can be reformulated as
p
max{cx + 0y ∶ Fx + Gy ≤ d, x ∈ ℝn+ , y ∈ ℝ+ }.
This suggests that the significant infeasibility cuts 𝑣t (d − Fx) ≥ 0 are those corresponding to facet-defining inequalities of P.
To obtain facets of P, the following procedure can be used. Take a point x0 ∈
̃ =
relint(P) and then make a translation P̃ = {̃x ∈ ℝn ∶ x̃ = x − x0 , x ∈ P} and Q
p
m
0
̃ Now the valid
{(̃x, y) ∈ ℝ × ℝ+ ∶ F x̃ + Gy ≤ d − Fx } so that now 0 ∈ relint(P).
inequalities 𝛾 x̃ ≤ 𝛾0 for P̃ are given by a vector u ≥ 0 satisfying 𝛾 ≤ uF, uG ≥ 0,
and u(d − Fx0 ) ≤ 𝛾0 and the point to be cutoff is x∗ − x0 . Taking the normalization
𝛾0 ≤ 1 gives the separation problem
max 𝛾(x∗ − x0 ) − 𝛾0
(12.9)
𝛾 − uF ≤ 0
(12.10)
−uG ≤ 0
(12.11)
u(d − Fx0 ) − 𝛾0 ≤ 0
(12.12)
𝛾0 ≤ 1
(12.13)
u ∈ ℝm
+.
(12.14)
It can be shown that if this LP is unbounded, the solution is an affine hyperplane
containing P cutting off x∗ and if the optimal value is finite and positive the solution is an inequality cutting off x∗ that is almost always facet-defining for P.
This approach can be extended to the general case with h ≠ 0 by considering
p
Q = {(𝜂, x, y) ∈ ℝ1 × ℝn+ × ℝ+ ∶ 𝜂 ≤ hy, Fx + Gy ≤ d} and P =proj𝜂,x (Q).
243
244
12 Benders’ Algorithm
12.5 Integer Subproblems: Basic Algorithms∗
There are many problems that have the structure of (12.1) but in which all (or
some) of the y variables must be integer. For simplicity, we assume that all are
p
integer and thus y ∈ ℤ+ . The y-subproblem (SPI (x∗ )) takes the form
p
𝜙I (x∗ ) = max{hy ∶ Gy ≤ d − Fx∗ , y ∈ Y ⊆ ℤ+ }.
(12.15)
and therefore it is no longer just a linear program. There are now at least two possible viewpoints, either branching on both x and y variables, or just branching on
the x-variables.
In this section, we present two simple algorithms. The first that involves branchp
ing in the (x, y, 𝜂)-space is a natural extension of the algorithm with y ∈ ℝ+ . In the
second, we branch in the (x, 𝜂)-space, but the subproblems are integer programs
and the cuts generated are weak.
12.5.1 Branching in the (x, 𝜼, y)-Space
The viewpoint in this subsection is:
Benders’ algorithm is just a way to solve linear programs by iterating between LPs in
the (x, 𝜂)-space and LPs in the y-space.
This leads to a standard branch-and-cut algorithm, except that the linear programming relaxations at each node are solved in a nonstandard way and, because of the
problem structure, we choose to branch on x-variables whenever possible, only
branching on y-variables when x∗ ∈ ℤn+ . By allowing branching on the y variables,
the DSP at node 𝓁 ≤ y ≤ k takes the form
min{u(d − Fx∗ ) − u1 𝓁 + u2 k ∶ (u, u1 , u2 ) ∈ U ∗ },
where
p
p
′
1
2
U ∗ = {(u, u1 , u2 ) ∈ ℝm
+ × R+ × ℝ+ ∶ uG − u Im + u Im = h}.
Thus, the possible set of extreme points and rays is much larger than for U =
{u ∈ ℝm
+ ∶ uG ≥ h}.
We return to Example 12.1 with the additional constraints y ∈ ℤ3 .
Example 12.2 We pick up the example at node 2.
Node 2. Iteration 1.
Solution of BR: T ′ = {2}, S′ = {1}. Z ∗ = 16.4, x∗ = (2, 1), 𝜂 ∗ = 1.4.
DSP: 𝜙(x∗ ) = 𝜂 ∗ and y∗ = (0.1, 0, 1.2).
As x∗ ∈ ℤ2+ and y∗ ∉ ℤ3 , we have to branch on a fractional y-variable. We
choose y3 .
12.5 Integer Subproblems: Basic Algorithms
Node 2a. Branch y3 ≤ 1
Iteration 1. BR: Z ∗ = 16.4, x∗ = (2, 1), 𝜂 ∗ = 1.4
Subproblem has new constraint y3 ≤ 1.
DSP takes the form:
min 4u1
−u2 +u3
4u1 +2u2
≥ 2
−2u1 +3u2
≥ −3
3u1
−u2 +u3 ≥ 1
u
≥
0.
𝜙(x∗ ) = 1 < 𝜂 ∗ , u∗ = (0, 1, 2).
Optimality cut 𝜂 ≤ 12 − 3x1 − 5x2 added to BR.
Iteration 2. BR. Z ∗ = 16, x∗ = (2, 1), 𝜂 ∗ = 1.
DSP. 𝜙(x∗ ) = 1 = 𝜂 ∗ . y∗ = (0, 0, 1). BR is solved. Optimal solution is feasible.
New incumbent Z = 16. Node is pruned.
Node 2b. Branch y3 ≥ 2.
Iteration 1. BR: Z ∗ = 16.4, x∗ = (2, 1), 𝜂 ∗ = 1.4
Subproblem has new constraint −y3 ≤ −2.
DSP takes the form:
min 4u1
−u2 −2u3
4u1 +2u2
≥ 2
−2u1 +3u2
≥ −3
3u1
−u2 −u3 ≥ 1
u
≥
0.
Dual is unbounded. Extreme ray 𝑣 =
(
3
, 1, 72
2
)
.
Infeasibility cut 6x1 + 11x2 ≤ 21 is added to BR.
Node 2b. Iteration 2.
BR: Z ∗ = 15.6. Node pruned by bound.
Nodes 3, 4, and 5 are unchanged from Example 12.1. Node 4 is pruned by bound
and Node 5 is infeasible.
All nodes have been pruned. The search is complete. The optimal solution is
x = (1, 2), y = (0, 0, 1) with value 16.
The complete tree is shown in Figure 12.2.
◽
245
246
12 Benders’ Algorithm
16.6316
1
x2 ≥ 2
x2 ≤ 1
6
16 11
16.4
2
y3 ≤ 1
16
16
y3 ≥ 2
15.6
2a
Figure 12.2
3
2b
x1 ≤ 0
4
15.6
x1 ≥ 1
−∞
5
Branch-and-cut tree for Benders’ algorithm: y ∈ ℤ3+ .
12.5.2 Branching in (x, 𝜼)-Space and “No-Good” Cuts
At a node of the branch-and-cut tree in which the linear programming solution
(x∗ , 𝜂 ∗ ) of BR satisfies x∗ ∈ {0, 1}n , a simple, but minimal approach is to solve the
integer subproblem SPI (x∗ ) by any suitable algorithm.
(i) If the subproblem SPI (x∗ ) is infeasible, x∗ cannot be part of an optimal solution and the no-good cut
∑
∑
xj +
(1 − xj ) ≥ 1
(12.16)
j∶xj∗ =0
j∶xj∗ =1
is added to BR and cuts off x∗ .
(ii) If 𝜙′ is an upper bound on 𝜙I (x∗ ) and 𝜙′ < 𝜂 ∗ , the no-good optimality cut
⎛∑
⎞
∑
xj +
(1 − xj )⎟
𝜂 ≤ 𝜙′ + (M − 𝜙′ ) ⎜
⎜j∶x∗ =0
⎟
j∶xj∗ =1
⎝ j
⎠
(12.17)
is added to BR and cuts off (𝜂 ∗ , x∗ ) where M is an upper bound on the optimal
value of maxx∈X 𝜙I (x).
(iii) If 𝜙′ = 𝜙I (x∗ ) = 𝜂 ∗ , (x∗ , y∗ ) is a feasible solution to the original problem. If it
is the best solution found so far, the incumbent is updated. The node is then
pruned.
Observe that the no-good cut removes the point (x∗ , 𝜂 ∗ ), but essentially no other
integer points x ∈ X∖{x∗ }.
12.6 Notes
12.6 Notes
12.1 In the original algorithm of Benders’ [41], before the existence of
branch-and-cut algorithms, the relaxed Master problem in the (𝜂, x)
variables had to be solved every time that one or more feasibility or optimality cuts were added. Van Slyke and Wets [285] developed the L-shaped
method which is an application of Benders’ algorithm to two-stage stochastic
programs. With some notable exceptions, see Geoffrion and Graves [138],
there were few successful computational studies reported in the period
1960–1990. However, there were theoretical generalizations: Geoffrion
[136] extended to the convex case where the subproblem was a convex
program and Wolsey [297] and Caroe and Tind [64] discussed the case
with integer y variables. Laporte and Louveaux published one of the first
applications to stochastic integer programs, see [202]. Magnanti and Wong
[218] were among the first to strengthen the Benders’ cuts so that they were
pareto-optimal.
12.2 Since around the year 2000 there has been renewed interest in the algorithm
with both theory and many applications. Benders’ is now best viewed as a
branch-and-cut algorithm in the (x, 𝜂)-space in which the linear programming subproblem in y is a cut generating (separation) subproblem.
12.3 A recent survey is due to Rahmaniani et al. [256]. Maher [219] describes a
SCIP implementation of a framework for Benders’ decomposition and Benders’ algorithm is also available in Cplex.
12.4 The combined feasibility and optimality approach was proposed by Fischetti
et al. [118]. The in-out approach was proposed in Ben-Ameur and Neto
[42] and pursued by Fischetti and Salvagnin [117]. The approach with
facet-defining inequalities is due to Conforti and Wolsey [75]. Recently
Fischetti et al. [113, 114] have carried out tests on large-scale uncapacitated
and capacitated facility location problems testing the different ideas for
speeding up Benders’ algorithm.
12.5 As many practical problems involve integer variables in the second stage,
there is an important literature treating such problems. Many different
ways have been suggested to deal with integrality in the subproblem. The
approach of branching in the (x, y)-space is presented in Weninger and
Wolsey [290]. No-good cuts have been proposed by many authors, see
for instance [202]. Another approach involving branch-and-cut in the
(x, 𝜂)-space involves using cutting planes for the subproblem in the y-space
and extending them to obtain cuts valid in the (x, y)-space. Gade et al.
[129] apply this approach using Gomory fractional cuts for a class of two
level stochastic IPs and in [290] it is extended to several other classes of
inequalities. For two other approaches, see [55, 255].
247
248
12 Benders’ Algorithm
12.7 Exercises
1.
Write an extended formulation with extreme points and extreme rays for the
polyhedron
−x1 +x2 ≤ 1
3x1 +x2 ≥ 5
x1
+x2 ≥ 1
x1 +2x2 ≤ 11.
2.
Consider the mixed integer program
max 4x1
+5x2
+2y1
−7y2
+5y3
3x1
+4x2
+2y1
−2y2
+3y3 ≤ 10
x ≤ 3, x ∈ ℤ2+ , y ≤ 2, y ∈ ℝ3+ .
Solve it using Benders’ algorithm.
3.
Consider the uncapacitated facility location problem.
Consider applying Benders’ algorithm with a separable subproblem for each
client i taking the form
Qi = {(x, 𝜂 i , yi⋅ ) ∶ 𝜂 i −
n
∑
∑
cij yij ≥ 0,
yij = 1, xj − yij ≥ 0 ∀ j, x ≤ 𝟏, x, y.i ∈ ℝn+ }.
j
j=1
Solve the separation problem by inspection.
If ci1 ≤ · · · ≤ ci,n , show that
Pi = projx,𝜂i (Q)
= {(x, 𝜂i ) ∶ 𝜂i +
n
∑
(cik − cij )+ xj ≥ cik for k = 1, … , n,
j=1
n
∑
xj ≥ 1, x ∈ [0, 1]n }.
j=1
4.
Consider the facet-generating separation LP (12.9)–(12.14) and suppose that
x0 = 0 and x∗ ∉ P. Write the dual of this LP. Show that it can be interpreted
as
(i) finding the smallest value 𝜆 > 1 such that x∗ ∈ 𝜆P, or as
(ii) finding the last point on the line from the origin to x∗ that lies in P.
5.
Suppose that 0 ≤ xj ≤ 3 for j = 1, 2, 3 and the point x∗ = (0, 1, 3) is infeasible.
Derive a set of constraints cutting off the point x∗ .
12.7 Exercises
6.
After solving the mixed integer program of Exercise 2, you are informed that
the y variables should also be integer.
Without starting again from scratch
(i) Solve the new problem using the algorithm of Section 12.5.1
(ii) Solve using no-good cuts.
7.
. (i) Formulate the problem of generating a split/lift-and-project cut 𝜋x ≤ 𝜋0
for the Benders’ Master problem BR when x∗ ∉ ℤn . Apply at node 1, iteration 3 of Example 12.1.
(ii) Formulate the problem of generating a split/lift-and-project cut
p
𝜋x + 𝜇y ≤ 𝜋0 for the set W = {(x, y) ∈ ℤn+ × ℝ+ ∶ Fx + Gy ≤ d} when
∗
n
x ∉ ℤ . Apply at node 1, iteration 3 of Example 12.1.
249
251
13
Primal Heuristics
13.1 Introduction
Given that many, if not most, of the practical problems that we wish to solve are
-hard, it is not surprising that heuristic algorithms play an important role in
“solving” discrete optimization problems–the idea being to hopefully find “good”
feasible solutions quickly.
Different reasons may lead one to choose a heuristic:
A solution is required rapidly, within a few seconds or minutes.
The instance is so large and/or complicated that it cannot be formulated as an
integer program (IP) or mixed integer program (MIP) of reasonable size.
Even though it has been formulated as an MIP, it is difficult or impossible for the
branch-and-cut system to find (good) feasible solutions.
For certain combinatorial problems such as vehicle routing and machine scheduling, it is easy to find feasible solutions by inspection or knowledge of the
problem structure, and a general-purpose MIP approach is ineffective.
In designing and using a heuristic, there are various questions one can ask:
Should one just accept any feasible solution, or should one ask a posteriori how far
it is from optimal?
Can one guarantee a priori that the heuristic will produce a solution within
𝜖 ( or 𝛼%) of optimal? A couple of examples of heuristics with worst-case
guarantees were given in Section 6.7. Often the practical behavior of these
heuristics is much better than the worst-case behavior, but is dominated in
practice by some other heuristic.
The rest of this chapter is divided into four parts. In the first, we formalize
the greedy and local exchange heuristics introduced by example in Chapter 2.
We then consider two improved local exchange heuristics, tabu search and simulated annealing, that include ways to escape from a local optimum, and genetic
Integer Programming, Second Edition. Laurence A. Wolsey.
© 2021 John Wiley & Sons, Inc. Published 2021 by John Wiley & Sons, Inc.
Companion website: www.wiley.com/go/wolsey/integerprogramming2e
252
13 Primal Heuristics
algorithms that work with families of solutions. These heuristics, though often
very effective, provide no (dual) performance bounds and thus no direct way of
assessing the quality of the solutions found.
We then discuss some of the ideas underlying the heuristics that have become
an important component within MIP solvers in the last 15 years. Finally we suggest one or two ways in which the user can go a step further and make use of an
MIP solver to develop his/her own heuristics that take into account his/her special knowledge of the problem. Often, as these approaches use an MIP solver, they
provide not just a primal feasible solution but also a dual bound that provides at
least some a posteriori performance guarantee.
13.2 Greedy and Local Search Revisited
Here we formalize the greedy and local search algorithms presented by example in
Section 2.7. First, we suppose that the problem can be written as a combinatorial
problem in the form:
min{c(S) ∶ 𝑣(S) ≥ k}.
S⊆N
For example, the 0–1 knapsack problem
{ n
}
n
∑
∑
n
min
cj xj ∶
aj xj ≥ b, x ∈ {0, 1}
j=1
j=1
∑
∑
with cj , aj ≥ 0 for j = 1, … , n is of this form with c(S) = j∈S cj , 𝑣(S) = j∈S aj ,
and k = b. The uncapacitated facility location problem also fits this model if we
∑
∑
take c(S) = i∈M min cij + j∈S fj for S ≠ ∅, 𝑣(S) =∣ S ∣, and k = 1.
j∈S
Below we assume that the empty set is infeasible, 𝑣(∅) = c(∅) = 0 and function
𝑣 is nondecreasing. We also assume that 𝑣(N) ≥ k as otherwise the problem is
infeasible.
A Greedy Heuristic
1. Set S0 = ∅ (start with the empty set). Set t = 1.
c(St−1 ∪{j })−c(St−1 )
2. Set jt = arg min 𝑣(St−1 ∪{jt })−𝑣(St−1 ) (choose the element whose additional cost per
t
unit of resource is minimum).
3. If the previous solution St−1 is feasible, i.e. 𝑣(St−1 ) ≥ k, and c (St−1 ∪ {jt }) ≥
c (St−1 ), stop with SG = St−1 .
4. Otherwise set St = St−1 ∪ {jt }.
5. If t = n, stop with SG = N.
6. Otherwise set t ← t + 1, and return to 2.
13.2 Greedy and Local Search Revisited
Example 13.1 We apply the greedy heuristic to an instance of the uncapacitated
facility location problem with m = 6 clients, n = 5 depots, and costs
⎛ 6 9 3 4 12 ⎞
⎟
⎜
⎜ 1 2 4 9 2 ⎟
⎜ 15 2 6 3 18 ⎟
(cij ) = ⎜
⎟
⎜ 9 23 4 8 1 ⎟
⎜ 7 11 2 5 14 ⎟
⎜ 4 3 10 11 3 ⎟
⎠
⎝
and f = (21, 16, 30, 24, 11).
As 𝑣(S) = |S|, 𝑣(S ∪ {j}) − 𝑣(S) = 1 for all j ∉ S. The algorithm gives:
Initialization. S0 = 𝜙. S0 is infeasible.
Iteration 1. c(1) = (6 + 1 + 15 + 9 + 7 + 4) + 21 = 63, c(2) = 66, c(3) = 59, c(4) =
64, c(5) = 61, so j1 = 3, S1 = {3} and c(S1 ) = 59. S1 is feasible.
Iteration 2. c(1, 3) − c(3) = (min{6, 3} + min{1, 4} + min{15, 6} + min{9, 4} +
min{7, 2} + min{4, 10}) + (21 + 30) − 59 = 12, c(2, 3) − c(3) = 3, c(3, 4) −
c(3) = 21, c(3, 5) − c(3) = −1. S2 = {3, 5} and c(S2 ) = 58. S2 is feasible.
Iteration 3. c(3, 5, j) − c(3, 5) > 0 for j ∈ {1, 2, 4}.
◽
The greedy solution is SG = {3, 5} of cost 58.
Greedy heuristics have to be adapted to the particular problem structure. For
STSP there are several possible greedy heuristics that choose edges one after
another until a tour is obtained. The “nearest neighbor” heuristic starts from
some arbitrary node, and then greedily constructs a path out from that node. The
“pure greedy” heuristic chooses a least-cost edge jt such that St is still part of a tour
(i.e. St consists of a set of disjoint paths, until the last edge chosen forms a tour).
To describe local search it is simpler to formulate the combinatorial optimization
problem as
min{c(S) ∶ g(S) = 0}
S⊆N
where g(S) ≥ 0 represents a measure of the infeasibility of set S. Thus, the constraint 𝑣(S) ≥ k used above can be represented here by g(S) = (k − 𝑣(S))+ .
For a local search algorithm, we need to define a solution, a local neighborhood
Q(S) for each solution S ⊆ N, and a goal function f (S) which can either be just equal
to c(S) when S is feasible, and infinite otherwise, or a composite function of the
form c(S) + 𝛼g(S) consisting of a weighted combination of the objective function
value and a positive multiple 𝛼 of the infeasibility measure for S.
A Local Search Heuristic
Choose an initial solution S. Search for a set S′ ∈ Q(S) with f (S′ ) < f (S). If none
exists, stop. SH = S is a local optimum solution.
253
254
13 Primal Heuristics
Otherwise set S = S′ , and repeat.
Appropriate choices of neighborhood depend on the problem structure. A very
simple neighborhood is that in which just one element is added or removed from S,
that is, Q(S) = {S′ ∶ S′ = S ∪ {j} for j ∈ N ∖ S} ∪ {S′ ∶ S′ = S ∖ {i} for i ∈ S}. This
neighborhood has only O(n) elements.
Another neighborhood that is appropriate if feasible sets all have the same size
is that in which one element of S is replaced by another element not in S, that
is, Q(S) = {S′ ∶ S′ = S ∪ {j} ∖ {i} for j ∈ N ∖ S and i ∈ S}. This neighborhood has
O(n2 ) elements.
For STSP, there is no tour differing from an initial tour by a single edge. However,
if two edges are removed, there is exactly one other tour containing the remaining
edges (see Figure 13.1). This leads to the well-known 2-exchange heuristic for the
STSP on a complete graph.
2-Exchange Heuristic for STSP
The local search heuristic is applied with the following specifications:
A set S ⊂ E is a solution if the set of edges S form a tour.
Q(S) = {S′ is a solution∶ S′ ≠ S, ∣ S′ ∩ S ∣= n − 2}, where n =∣ V ∣.
∑
f (S) = e∈S ce .
The resulting local search solution is called a 2-optimal tour.
GRASP (Greedy Randomized Adaptive Search Procedure) is a way to combine
greedy and local search and at the same time generate a variety of heuristic
solutions. The basic idea is just to modify the greedy algorithm. Rather than
adding the greedy or “best” choice of item at each step, a random choice is made
among the k-best available items. Then after a randomized greedy solution has
been obtained, the solution becomes the input to an appropriate local search
heuristic.
Figure 13.1
for STSP.
Original edges
Replacement edges
2-Exchange
13.3 Improved Local Search Heuristics
13.3 Improved Local Search Heuristics
How do we escape from a local minimum, and thus potentially do better than a
local search heuristic? This is the question addressed by the tabu and simulated
annealing heuristics that we now present briefly.
13.3.1 Tabu Search
When at a local minimum, a natural idea is to move to the best solution in the
neighborhood even though its value is worse. One obvious difficulty with this idea
is that cycling may occur, that is, the algorithm returns to the same solution every
two or three steps: S0 → S1 → S0 → S1 ….
To avoid such cycling, certain solutions or moves are forbidden or tabu. Directly
comparing the new solution with a list of all previous incumbents would require
much space and be very time-consuming. Instead, a tabu list of recent solutions,
or recent solution modifications, is kept.
A basic version of the tabu search algorithm can be described as follows:
1. Initialize an empty tabu list.
2. Get an initial solution S.
3. While the stopping criterion is not satisfied:
3.1. Choose a subset Q′ (S) ⊆ Q(S) of non-tabu solutions.
3.2. Let S′ =arg min{f (T) ∶ T ∈ Q′ (S)}.
3.3. Replace S by S′ and update the tabu list.
4. On termination, the best solution found is the heuristic solution.
The parameters specific to tabu search are as follows:
(i) The choice of subset Q′ (S). Here if Q(S) is small, one takes the whole neighborhood, while if Q(S) is large, Q′ (S) can be a fixed number of neighbors of S,
chosen randomly or by some heuristic rule.
(ii) The tabu list consists of a small number t of most recent solutions or modifications. If t = 1 or 2, it is not surprising that cycling is common. The magic
value t = 7 is often cited as a good choice.
(iii) The stopping rule is often just a fixed number of iterations, or a certain number of iterations without any improvement of the goal value of the best solution found.
Considering the neighborhood function
Q(S) = {T ⊆ V ∶T = S ∪ {j} for j ∈ V ∖ S} ∪ {T ⊆ V ∶T = S ∖ {i}for i ∈ S}
consisting of single element switches, the tabu list might be a list of the last t elements {i1 , … , it } to be added to an incumbent and of the last t elements {j1 , … , jt }
255
256
13 Primal Heuristics
to be removed. A neighbor T is then tabu if T = S ∖ {iq } for some q = 1, … , t or if
T = S ∪ {jq } for some q = 1, … , t. Therefore, one cannot remove one of the t elements added most recently, and one cannot add one of the t elements removed
most recently.
Tabu search also uses common sense. There is no justification to make a solution tabu if it is the best solution found to date, or it is interesting for some reason. So one or more aspiration levels can be defined that are used to overrule
the tabu criteria. More generally, tabu search can be viewed as a search strategy
that tries to take advantage of the history of the search and the problem structure
intelligently.
13.3.2 Simulated Annealing
Simulated annealing is less direct. The basic idea is to choose a neighbor randomly.
The neighbor then replaces the incumbent with probability 1 if it has a better goal
value, and with some probability strictly between 0 and 1 if it has a worse goal
value.
The probability of accepting a worse solution is proportional to the difference in
goal values, so slightly worse solutions have a high probability of being accepted,
while much worse solutions will only be accepted infrequently. Therefore, if the
number of iterations is sufficiently large, it means that one can move away from
any local minimum. On the other hand, for the process to converge in the long run,
the probability of accepting worse solutions decreases over time, so the algorithm
should end up converging to a “good” local minimum.
A Simulated Annealing Heuristic
1. Get an initial solution S.
2. Get an initial temperature T and a reduction factor r with 0 < r < 1.
3. While not yet frozen, do the following:
3.1 Perform the following loop L times:
3.1.1 Pick a random neighbor S′ of S.
3.1.2 Let Δ = f (S′ ) − f (S).
3.1.3 If Δ ≤ 0, set S = S′ .
3.1.4 If Δ > 0, set S = S′ with probability e−Δ∕T .
3.2 Set T ← rT. (Reduce the temperature.)
4. Return the best solution found.
Note that as specified above, the larger Δ is, the less chance there is of making a
move to a solution worse by Δ. Also as the temperature decreases, the chances of
making a move to a worse solution decrease.
13.3 Improved Local Search Heuristics
Exactly as for local exchange heuristics, it is necessary to define:
(i) A solution
(ii) The neighbors of a solution
(iii) The cost of a solution
(iv) How to determine an initial solution.
The other parameters specific to simulated annealing are then:
(v) The initial temperature T
(vi) The cooling ratio r
(vii) The loop length L
(viii) The definition of “frozen,” or the stopping criterion.
As application, we again consider the graph equipartition problem (see Section
2.7). There we defined a solution S to be an equipartition (S, V ∖ S) with the two sets
differing in size by at most one, and a neighborhood Q(S) = {T ⊂ V ∶∣ T ∖ S ∣=∣
S ∖ T ∣= 1}.
Here we go for more flexibility, by allowing any set S ⊆ V representing the partition (S, V ∖ S) to be a solution.
The neighborhood of a solution S is defined by a single element switch with Q(S)
as in Section 13.3.1. The cost of a partition is
∑
f (S) =
ce + 𝛼(∣ S ∣ − ∣ V ∖ S ∣)2
e∈𝛿(S,V∖S)
for some 𝛼 > 0. Therefore, any disparity in the size of the two sets is penalized in
the goal function.
In designing and discussing improved local search algorithms, three more general concepts are useful in thinking about the right combination of choices.
Communication. It is important that the neighborhood structure be such that it is
possible to get from any solution S to any other solution S′ preferably in a small
number of moves. Failing this, it should be possible to get from any solution S
to at least one optimal solution.
Diversification. This relates to facilitating movement between very different areas
of the search space. A high initial temperature T, a long tabu list, and the possibility of using random restarts all encourage diversification.
Intensification. This relates to the opposite idea of increasing the search effort in
promising areas of the search space. Choosing optimally in the neighborhood, or
enlarging the set Q′ (S) of neighbors temporarily, are measures of intensification.
13.3.3 Genetic Algorithms*
Rather than working to improve individual solutions, genetic algorithms work
with a finite population (set of solutions) S1 , … , Sk and the population evolves
(changes somewhat randomly) from one generation (iteration) to the next.
257
258
13 Primal Heuristics
An iteration consists of the following steps:
(i) Evaluation. The fitness of the individuals is evaluated.
(ii) Parent Selection. Certain pairs of solutions (parents) are selected based on
their fitness.
(iii) Crossover. Each pair of parents combines to produce one or two new solutions
(offspring).
(iv) Mutation. Some of the offspring are randomly modified.
(v) Population Selection. Based on their fitness, a new population is selected
replacing some or all of the original population by an identical number of
offspring.
We now indicate briefly ways in which the different steps can be carried out.
Evaluation. As in the local search algorithms, a goal function f (S) or a pair of objective and infeasibility functions c(S) and g(S) are used to measure the fitness of a
solution S.
Parent Selection. The idea is to choose “fitter” solutions with a higher probability.
f (S )
Thus from the initial population, Si is chosen with probability ∑k i .
j=1 f (Sj )
The implementation of crossover and mutation are more problem dependent.
Crossover. Here one seeks some natural way to combine two fit solutions to produce a new fit solution. One way this is often done is by representing the solution
S as a binary or integer string x1 x2 · · · xr .
Three possible ways to combine such strings are as follows:
1-Point Crossover. Given two strings x1 x2 · · · xr and y1 y2 · · · yr , and an integer p ∈
{1, … , r − 1}, the two children are x1 · · · xp yp+1 · · · yr and y1 · · · yp xp+1 · · · xr .
2-Point Crossover. Given two strings x1 x2 · · · xr and y1 y2 · · · yr , and integers p, q ∈
{1, … , r − 1} with p < q, the two children are x1 · · · xp yp+1 · · · yq xq+1 · · · xr and
y1 · · · yp xp+1 · · · xq yq+1 · · · yr .
Uniform Crossover. Given two strings x1 x2 · · · xr and y1 y2 · · · yr , the result is a child
z1 · · · zr where each zi is randomly chosen from {xi , yi } for i = 1, … , r.
Mutation. A simple 1-point mutation of a child z1 · · · zr is a random choice of p ∈
{1, … , r} and a random integer z̃ p from the appropriate range giving a modified
solution z1 · · · zp−1 z̃ p zp+1 · · · zr . A 2-point mutation is a swap of the values zp and
zq for some p < q.
Consider again the generalized assignment problem in the form:
∑∑
cij xij
min
∑
j∈N
(13.1)
i∈M j∈N
xij = 1 for i ∈ M
(13.2)
13.4 Heuristics Inside MIP Solvers
∑
aij xij ≤ bj
for j ∈ N
(13.3)
i∈M
x ∈ {0, 1}∣M∣×∣N∣ .
(13.4)
S is a “solution” if its incidence vector satisfies (13.2) and (13.4). It is represented
by an integer m-vector (j1 , … , jm ) where ji is the job to which person i is assigned
(i.e. xi,ji = 1 for i ∈ M).
∑
Two fitness values are the objective value c(S) = i∈M ci,ji and the infeasibility
(
)
+
∑
∑
.
value g(S) = j∈N
i∈M ai,ji − bj
The two-point crossover and the two-point mutation described above, both lead
to new solutions satisfying (13.2) and (13.4).
Finally, the objective value c(S) might be used in the selection of parents, while
the feasibility measure g(S) may be appropriate for the selection of the new population.
These simple ideas are obviously far from covering all possibilities. For problems
in which the solution is a permutation, such as STSP or machine scheduling, some
more suitable form of crossover is necessary.
13.4 Heuristics Inside MIP Solvers
For simplicity most heuristics are described for the IP: max{cx ∶ x ∈ X ⊂ ℤn+ }, but
are readily generalized to MIPs: max{cx ∶ x ∈ X ⊆ ℤn × ℝp }.
13.4.1 Construction Heuristics
First, we consider construction heuristics whose goal is to build a feasible solution
from scratch. Depending on the time available, there are heuristics that just use
elementary operations, others that solve linear programs and finally others that
even solve MIPs of reduced size. Below we list some of the ideas used and then
discuss in a little more detail a couple of well-known heuristics.
Starting from an arbitrary point, the origin or some known point in the feasible
LP region P,
(i) Rounding. Select a variable xj that should be integer and round to the nearest
integer, denoted ⌈xj ⌋.
(ii) Shift. Shift xj to xj ± 𝛼 if this decreases infeasibility.
(iii) Fix. Set xj to some value xj′ ∈ ℤ1 (using preprocessing or constraint programming to tighten bounds due to the fixing).
If repetition of these steps does not lead to a feasible solution,
(iv) Solve a linear program with the variables that have been fixed and round the
solution.
If this still does not lead to a feasible solution:
259
260
13 Primal Heuristics
(v) After possibly fixing more variables based on the previous step, solve a mixed
integer program for a limited amount of time. Each of these steps is possibly
repeated many times.
We now describe three of the resulting heuristics, all of which use LP. The first
two are very simple. The third, called the feasibility pump, is more interesting.
A Dive-and-Fix Heuristic
We suppose that we have a 0–1 problem. Given an LP solution x∗ , let
F = {j ∶ xj∗ ∉ {0, 1}} be the set of 0–1 variables that are fractional.
Initialization. Take the LP solution x∗ at some node.
Basic Iteration. As long as F ≠ ∅,
Let i =arg min{min[xj∗ , 1 − xj∗ ]} (find the variable closest to integer).
j∈F
If xi∗ < 0.5, fix xi = 0 (if close to 0, fix to 0).
Otherwise set xi = 1 (if close to 1, fix to 1).
Solve the resulting LP.
If the LP is infeasible, stop (the heuristic has failed).
Otherwise let x∗ be the new LP solution.
Termination. If F = ∅, x∗ is a feasible mixed integer solution.
The Neighborhood Rounding Heuristic
Given an optimal solution of the LP relaxation x∗ , solve the IP
max{cx ∶ x ∈ X, ⌊xj∗ ⌋ ≤ xj ≤ ⌈xj∗ ⌉ for j ∈ N}.
The Feasibility Pump Heuristic
Initialization. Let x∗ = xLP be an optimal LP solution.
Iteration. Round to obtain an integer point x̂ = ⌈x∗ ⌋.
If x̂ ∉ P, project onto the feasible region P.
If the IP is in the form max{cx ∶ Ax ≤ b, 𝓁 ≤ x ≤ k, x ∈ ℤn }, the projection prob∑
lem: min{ j |xj − x̂ j | ∶ x ∈ P} can be formulated as the linear program:
∑
∑
∑
(xj − 𝓁j ) +
(kj − xj ) +
𝛿j
min
j∈B∶̂xj =𝓁j
∈B∶̂xj =kj
j∶𝓁j <̂xj <kj
Ax ≤ b
𝛿 ≥ x − x̂
𝛿 ≥ x̂ − x
𝓁≤x≤k
where variables 𝛿j = |xj − x̂ j | for all j are used to model the integer variables lying
between their bounds. Let z be an optimal solution.
Set x∗ = z and repeat.
13.4 Heuristics Inside MIP Solvers
In many cases, the basic version of the heuristic is modified so as to more
explicitly take into account the objective function, and thus hopefully find a better
feasible solution. For example, some decreasing weighting of the real objective
function cx is added to the objective function of the LP in the projection step
during the initial iterations. Also rather than just rounding the LP solution x∗ ,
all the points close to a line joining x∗ to a “central” or interior point x0 can be
rounded to obtain an integer point that is closest to satisfying the constraints
Ax ≤ b, 𝓁 ≤ x ≤ k.
13.4.2 Improvement Heuristics
Given a feasible solution x∗ ∈ X, several interesting ideas have been proposed for
finding improved solutions. Nearly all of them involve the solution of an MIP in
which many variables are fixed or have restricted ranges so that the MIP has a good
chance of finding a better feasible solution quickly.
A Local Branching Heuristic
Given x∗ ∈ X, solve an IP in which the feasible solutions lie in a small neighborhood of x∗ . Specifically if X ⊆ {0, 1}n , solve the IP:
{
{
}}
∑
∑
max cx ∶ x ∈ X ∩ x ∶
xj +
(1 − xj ) ≤ k
,
j∶xj∗ =0
j∶xj∗ =1
where k is a small integer.
Reversing the roles of the local branching constraint and the objective function
leads to a variant.
A Proximity Search Heuristic
Again we suppose that x∗ ∈ X ⊂ {0, 1}n is given. Selecting an improvement
parameter 𝛿 > 0, the idea is to find a feasible solution that improves on the best
available solution by at least 𝛿 and is as close as possible to the starting solution
x∗ . This leads to the IP:
∑
∑
xj +
(1 − xj ))
min(
j∶xj∗ =0
∑
j∶xj∗ =1
n
cj xj ≤ cx∗ − 𝛿
j=1
x ∈ X.
A Relaxation Induced Neighborhood Search (RINS) Heuristic
Given a feasible solution x∗ ∈ X and an optimal LP solution xLP , let F = {j ∈ N ∶
xj∗ = xjLP }. Solve the IP:
max{cx ∶ x ∈ X ∩ {x ∶ xj = xj∗ for j ∈ F}}.
261
262
13 Primal Heuristics
A Polishing Heuristic
Motivated by genetic algorithms, a list of at most k best solutions is stored. Two or
more solutions {x1 , … , xr } are selected and then the idea is to fix the set F = {j ∈
[1, n] ∶ xj1 = xjt for t = 1, … , r}. Then again the IP
max{cx ∶ x ∈ X ∩ {x ∶ xj = xj∗ for j ∈ F}}
is solved. Here the selection of a pair of solutions is obtained by choosing a first
solution randomly and then randomly choosing a second solution among the better solutions on the list. Mutations are introduced by randomly fixing only a subset
of the variables in F.
Several of these heuristics have been incorporated in the recent versions of the
MIP solvers. There are naturally minor variants and typically the size of the fixed
set F must be adjusted so that the resulting MIP solves quickly, but also produces
feasible solutions.
13.5 User-Defined MIP heuristics
Given an MIP, there are many cases in which the user, making use of his knowledge of an instance or its problem class, can either adapt one of the heuristics cited
above, or develop his own specific heuristic. Below we present two such heuristics, one a construction and the second an improvement heuristic that have proven
useful in several cases in which the MIP codes fail to find very good solutions.
Relax-and-Fix Heuristic
Here we suppose that there is a partition of the variables and the problem can be
written in the form:
n
n
Z = max{c1 x1 + c2 x2 ∶ A1 x1 + A2 x2 = b, x1 ∈ ℤ+1 , x2 ∈ ℤ+2 }.
The steps of the heuristic are then:
1. Relax. Solve the relaxation
Z = max c1 x1 + c2 x2
(MIP1)
A1 x1 + A2 x2 = b
n
n
x1 ∈ ℤ+1 , x2 ∈ ℝ+2
1
2
in which the integrality of the x2 variables is dropped. Let (x , x ) be the corresponding solution.
13.5 User-Defined MIP heuristics
2. Fix. Fix the important variables x1 at their values in MIP1, and solve the
restriction
Z = max c1 x1 + c2 x2
(MIP2)
A1 x1 + A2 x2 = b
1
x1
= x
n2
2
x ∈ ℤ+ .
1
Let (x , x̃ 2 ) be the corresponding solution if MIP2 is feasible.
1
3. Heuristic Solution. The heuristic solution is xH = (x , x̃ 2 ) with Z = cxH ≤ Z ≤ Z.
In practice, we often extend this idea by breaking up the set of variables into
more than two subsets. For instance given a problem involving T time periods,
we might break up the interval into K subintervals [tk , 𝜏k ] with t1 = 1, 𝜏K = T, and
tk+1 = 𝜏k + 1 for k = 1, … , K − 1 leading to a corresponding partition of the variables.
A more general version is obtained by working with triples [tk , 𝜎k , 𝜏k ] with tk ≤
𝜎k ≤ 𝜏k , tk = 𝜎k−1 + 1. In the kth step, we solves the MIP
max{cx ∶ x ∈ X, xj = xjF for j = 1, … , 𝜎k−1 ,
xj ∈ ℤ1+ for j = tk , … , 𝜏k , xj ∈ ℝ1+ for j > 𝜏k }
with optimal solution x∗ and then set xjF = xj∗ for j = tk , … , 𝜎k .
Thus, for an instance with 30 periods in which we allow 10 variables to be integer
in each restricted MIP and then fix the values of the first 6 integer variables, the corresponding values for the 5 MIPs are as follows: [1, 6, 10], [7, 12, 16], [13, 18, 22],
[19, 24, 28], and [25, 30, 30].
Large Neighborhood Search Heuristic
This is a local search heuristic. To optimize over a large neighborhood either MIP
or a specialized algorithm is used. Typically, the MIP is run until an improved solution is found or a time limit is reached. Given the problem in the form max{cx ∶
x ∈ X} and a feasible solution x∗ ∈ X, the basic idea is to define a subset of variables V ⊂ N whose values it is hoped to improve by solving the MIP:
max{cx ∶ x ∈ X, xj = xj∗
for j ∈ N ∖ V}.
For example after finding a feasible solution to the 30 period instance by
Relax-and-Fix, one possibility is to set V = [7, 12] to see if the solution between
periods 7 and 12 can be improved. Alternatively, if the instance involved five
items, we might fix the solution of items 1–4 and see if the solution of item 5 could
263
264
13 Primal Heuristics
be improved. Note that the Local Branching, relaxation induced neighborhood
search (RINS), and Proximity Search heuristics are also of this type.
Extended Formulation Heuristics
Several problems can be formulated either in the original variables max{cx ∶ x ∈
P ∩ ℤn } or with an extended formulation max{cx + 0𝑤 ∶ (x, 𝑤) ∈ Q ∩ (ℤn × ℝp )}
where the first formulation provides very weak dual bounds, whereas the second
provides good dual bounds, but is so large that it is only practical to solve its LP
relaxation.
Here, the first option is to reduce the size of the extended formulation. Use the
optimal LP solution (xLP , 𝑤LP ) to fix sufficient variables Fx ⊆ {j ∈ [1, n] ∶ xjLP ∈
ℤ1+ } so that the restricted MIP
max{cx + 0𝑤 ∶ xj = xjLP for j ∈ Fx , (x, 𝑤) ∈ Q ∩ (ℤn × ℝp )}
can be run to produce hopefully good feasible solutions.
A second option is to fix sufficient variables Fx so that the restricted original
formulation
max{cx ∶ xj = xjLP for j ∈ Fx , x ∈ P ∩ ℤn }
produces good quality feasible solutions.
Problem Specific Heuristics
To give an example, Production Routing problems involve decisions on what to
produce and when, and also the choice of when and how much each vehicle
should deliver to a customer. MIP unfortunately does not deal effectively with the
routing aspects and often gives primal and dual bounds that are far from optimal.
One idea that has proven effective is to decompose the problem. First, the complete problem is simplified by dropping the routing aspect and replacing it by a
fixed cost for visiting a client in each period. This production-assignment problem
can typically be solved to optimality. It provides details on which clients are visited in each period and the quantity delivered to them. The remaining problem is
a vehicle routing problem or a set of TSPs for which very good heuristics are available. The idea is then to use the vehicle routes provided by the second heuristic to
update the client visiting costs. Specifically, if client i lies on the route of vehicle 𝑣
in period t, her/his assignment cost is set to be the marginal cost of inserting i into
the route, namely Ci𝑣t = ci− i + cii+ − ci− i+ , where i− , i+ are the predecessor and successor of client i on route 𝑣. On the other hand, if the client i does not lie on route
𝑣, Ci𝑣t is set to be the cost of the cheapest insertion into route 𝑣. Then, iterating
13.6 Notes
between the two problems, the aim is to arrive at a production assignment whose
real routing cost has been “well” approximated.
13.6 Notes
The book of Aarts and Lenstra [1] was devoted to local search and its extensions,
including chapters written by specialists on the complexity of local search, simulated annealing, tabu search, genetic algorithms, applications to vehicle routing,
TSP, machine scheduling VLSI layout, and so forth. An issue of Management Science Fisher and Rinnooy Kan [121] was dedicated to the subject of heuristics. Since
then there has been an explosion of articles on heuristics as well as a specialized
journal, the Journal of Heuristics.
13.2 Greedy and local search heuristics are part of the folklore. GRASP was proposed in Feo and Resende [109]. A very effective generalization of the 2 and
3-exchange heuristics was proposed by Lin and Kernighan [208].
13.3 Tabu search and simulated annealing have been applied successfully to find
good quality feasible solutions to a remarkably wide range of problems. Tabu
search started with the work of Glover [146–148]. The origins of simulated
annealing heuristics are attributed to Metropolis et al. [227], Kirkpatrick et al.
[197], and Cerny [66]. Theoretical results, relying on the asymptotic behavior
of Markov chains, can be used to show that the simulated annealing algorithm almost surely terminates with a global optimum if run with a slow
cooling schedule for a long enough time. However, these results are inapplicable in practice and fail to explain the many successes of this method. A
bibliography of simulated annealing and tabu search is Osman and Laporte
[236]. Genetic algorithms originated with the work of Holland [180] and
Goldberg [151].
Other heuristic approaches include ant colony heuristics, see Dorigo and
Stützle [100]. Constraint integer programming, see Achterberg [3], provides
an alternative approach for certain discrete problems.
13.4 Shifting and propagating are explained in Bertold and Hendel [46]. Variants
of the dive-and-fix heuristic are common. For the feasibility pump heuristic,
see Fischetti et al. [112], Achterberg and Bertold [4], and Fischetti and Salvagnin [116]. The local search heuristic was proposed in Fischetti and Lodi
[115], the RINS heuristic in Dana et al. [89], and polishing in Rothberg [259].
13.5 The relax-and-fix heuristic is also well known. Two examples of the
relax-and-fix heuristics are in Bienstock and Günlük [52] and Toledo et al.
[275], respectively. There are many variants of Local Search heuristics, see
265
266
13 Primal Heuristics
among others Hendel [177]. The use of approximate routing costs for routing
can be found in Fisher and Jaikumar [120]. Their use in a production routing
problem appears in Absi et al. [2].
13.7 Exercises
1.
Devise a simple heuristic for the instance of GAP in Exercise 4 in Chapter
10. Then apply your heuristic to a larger instance and modify it, if necessary.
2.
Consider the generalized transportation problem:
z = min
m n
∑
∑
i=1 j=1
cij xij
n
∑
xij = ai
for i = 1, … , m
Ci xij ≥ dj
for j = 1, … , n
j=1
m
∑
i=1
x ∈ Z+mn .
(i) Propose a heuristic for this problem.
(ii) Propose an exact algorithm.
3.
Apply the different heuristics presented to an instance of STSP with the following distance matrix:
⎞
⎛−
⎟
⎜ 28 −
⎟
⎜
⎟
⎜ 57 28 −
⎟.
⎜ 72 45 20 −
⎟
⎜
81
54
3
10
−
⎟
⎜
⎜ 85 57 28 20 22 − ⎟
⎟
⎜
⎝ 80 63 57 72 81 63 − ⎠
Devise at least one new heuristic and apply it to this instance.
4.
Apply greedy and local neighborhood heuristics to an instance of the problem of most profitably allocating clients to at most K depots:
∑ ∑
max
cij yij
i∈M j∈N
∑
yij
= 1 for i ∈ M
j∈N
yij
−x
∑ j
xj
j∈N
y ∈ {0, 1}mn , x ∈ {0, 1}n ,
≤ 0 for i ∈ M, j ∈ N
≤ K
13.7 Exercises
with m = 7 clients, n = 6 potential depots, K = 3, and
⎛2 3 7 3 6 1⎞
⎜ 3 1 1 8 10 4 ⎟
⎟
⎜
⎜6 2 3 1 2 7⎟
(cij ) = ⎜ 8 1 4 6 2 3 ⎟ .
⎟
⎜
⎜4 4 3 3 4 3⎟
⎜2 8 3 6 3 2⎟
⎟
⎜
⎝6 5 3 2 7 4⎠
267
269
14
From Theory to Solutions
14.1 Introduction
The aim in this final chapter is to indicate how the ideas presented earlier can be
put to use to improve the formulation and solution of integer programs. Specifically, we discuss briefly the type of software available, then we ask how an integer
programmer might look for a new valid inequality, or an improved formulation for
a specific problem, and finally we look at two practical applications and ask how
an integer programmer might try to solve them. The goal is not to study any problem exhaustively, nor to present computational results for different approaches,
but rather to indicate the questions to be asked and the steps to be considered in
trying to produce results for a particular problem. We terminate with a very brief
discussion of some recent links between machine learning and integer programming that will undoubtedly increase in the future.
14.2 Software for Solving Integer Programs
Two essential tools for an integer programmer are a modeling or programming
language and a mixed integer programming system.
A modeling language provides a way for the user to write out a model of his
mixed integer programming formulation in a formal way that closely resembles
the mathematical formulations used throughout this book. In addition, such languages allow recuperation of the data from files or databases, and calculations
based on the data. The output of the modeling language is typically a representation of the MIP instance in a standard (but far from readable) “MPS” format or an
“LP” format in which the objective function, constraints, and bounds are written
out explicitly.
Integer Programming, Second Edition. Laurence A. Wolsey.
© 2021 John Wiley & Sons, Inc. Published 2021 by John Wiley & Sons, Inc.
Companion website: www.wiley.com/go/wolsey/integerprogramming2e
270
14 From Theory to Solutions
There are at least two advantages in using a modeling language. First, the model
provides documentation, making it relatively easy to return to a model several
weeks or months later. Second, with such a model, changes to a formulation can
be made very easily and quickly. The modified model can often be resolved within
seconds or minutes.
An example of a model in a representative language is shown below.1 This formulation and instance are from Exercise 10 in Chapter 3.
!——————————————————–
model FNCF !Fixed Charge Network Flow Model
!!Modeling Language MOSEL
options noimplicit
uses "mmxprs"
declarations
N: integer
!Number of Nodes
M: integer
!Number of Arcs
end-declarations
N:=4
M:=8
declarations
B: array(1..N) of real
TAIL: array(1..M) of integer
!Tail of arc e
HEAD: array(1..M) of integer !Head of arce e
C: array(1..M) of real
! Fixed cost of arc e
x: array(1..M) of mpvar
! 0-1 variable if arc e is open
y: array(1..M) of mpvar
! Flow in arc e
BAL: array(1..N) of linctr ! Balance constraints at each node
VUB: array(1..M) of linctr ! Variable upper bound constraint on
each arc
OBJ: linctr ! The objective function
end-declarations
!————————————–
! Data usually read from files
B::[-6,2,3,1]
TAIL::[1,1,4,1,2,3,4,3]
HEAD::[4,2,2,3,3,2,3,4]
C::[5,2,7,3,2,4,9,12]
!——————————!Constructing the model
!CONSTRAINTS
! Flow conservation at node i
forall(i in 1..N)
BAL(i):= sum(e in 1..M|HEAD(e)=i)y(e)-sum(e in 1..M|TAIL(e)=i)y(e)
=B(i)
1 The example, written in the FICO® Xpress Mosel modeling and programming language, is
used with permission from Fair Isaac Corporation. FICO is a trademark of Fair Isaac
Corporation.
14.2 Software for Solving Integer Programs
! Variable upper bound constraint on arc e
forall(e in 1..M) do
VUB(e):= y(e)<= -B(1)*x(e)
x(e) is_binary
end-do
OBJ:=sum(e in 1..M)C(e)*x(e)
!—————————————! Solving the model
setparam("XPRS_VERBOSE",1)
minimize(OBJ)
! Writing out the optimal solution
forall(e in 1..M| getsol(y(e))>0)do
writeln("flow on arc ",e,"= (",TAIL(e),",",HEAD(e),") is ",
getsol(y(e)))
writeln("xval ",e,"= ",getsol(x(e)))
end-do
end-model
!—————————————————
A mixed integer programming system is a program that reads in a mixed integer
problem instance either in one of these special formats, or through an interface
written in C, C++, Python, Java, etc. depending on the solver, or directly from
a modeling language. It creates an internal representation of the instance and
solves it using branch-and-cut. Most modern systems include presolve, heuristics such as the feasibility pump, RINS, and local branching, and cutting plane
generation including lifted knapsack cover inequalities, mixed integer rounding
inequalities, and Gomory mixed integer cuts among others. These systems can
often solve instances with tens or hundreds of thousands of variables. On the other
hand, there are classes of problems with relatively few integer variables that cannot
be solved even after several hours. These require either better formulations, specialized heuristics, problem specific cutting planes or possibly the use of a decomposition algorithm.
The MIP systems also provide subroutine optimization libraries with callbacks
accessed through an appropriate programming language interface that enable the
user to build his own special purpose algorithm by including a new class of cuts, or
a new branching strategy or variable selection rule, or a problem-specific heuristic.
Some of the MIP systems have now been extended to handle certain nonlinearities
and/or other features and algorithms such as
(i) convex quadratic objectives and constraints
(ii) nonconvex quadratic constraints
(iii) second-order cone programming
∑
(iv) linearization of nonlinear separable terms such as nj=1 f (xj )
271
272
14 From Theory to Solutions
(v) constraint programming
(vi) Benders’ algorithm
(vii) branch-cut-and-price.
14.3 How Do We Find an Improved Formulation?
We first examine two simple lot-sizing models that appear as submodels in the
production planning application to be examined in Section 14.4. The two models,
both of which have been discussed earlier, differ in their complexity.
Uncapacitated Lot-Sizing
Consider the set X ULS =
{
(x, s, y) ∈ {0, 1}n × ℝn+ × ℝn+ ∶ st−1 + yt
( n )
}
∑
= dt + st , yt ≤
di xt for t = 1, … , n
i=t
We typically ask a series of questions.
Q1. Is optimization over X ULS polynomially solvable?
A1. Yes. This is shown in Section 5.2. Therefore, as indicated in Chapters 2 and
6, there is some hope of finding an explicit description of conv(X ULS ).
One way to improve a formulation is to add valid inequalities. To make a
start at finding a valid inequality, one approach is to look at the nonintegral solutions obtained when solving the linear programming relaxation of
min{fx + hs + py∶(x, s, y) ∈ X ULS }.
We consider an instance with d = (6, 7, 4, 6, 3, 8), p = 0, h = (1, 1, 3, 1, 1, 2),
and f = (8, 12, 8, 6, 10, 23). As d1 > 0, we immediately add x1 = 1 to the formulation.
The resulting linear programming solution (x1 , s1 , y1 ) is shown in
Figure 14.1.
Q2. How can the point (x1 , s1 , y1 ) be cut off?
Observation 14.1 As in the development of the dynamic programming
recursion for ULS, the solution decomposes between successive points with
st = 0. So it suffices to look at the solution lying between s11 = 0 and s12 = 0,
namely x21 = 0.25, y12 = 7, s11 = 0, s12 = 0 for which the x variable is not
integer.
A2a. Try to use known cutting planes. Consider the set
{
(x2 , y2 , s1 , s2 ) ∈ {0, 1}
1
× ℝ1+ × ℝ2+ ∶
( n ) }
∑
s1 + y2 = d2 + s2 , y2 ≤
di x2 .
i=2
14.3 How Do We Find an Improved Formulation?
y x
y x
y x
y x
y x
6 1
7 0.25
4 0.19
6 0.35
11 1
1
2
3
4
5
6
7
4
6
3
Figure 14.1
s
8
6
8
First ULS solution.
The flow cover inequality with variable y2 in the cover C and excess
∑n
𝜆 = i=2 di − d2 gives the inequality y2 + d2 (1 − x2 ) ≤ d2 + s2 , or in general
yt ≤ dt xt + st
for t = 1, … , n.
A2b. Try to find a valid inequality directly. Again just consider the partial solution
x21 = 0.25, y12 = 7, s11 = 0, s12 = 0. Logically in any feasible solution to ULS
with x2 = 0, there is no production in period 2, and so the demand d2 = 7 for
period 2 must be contained in the entering stock s1 . Thus, s1 ≥ 7 if y2 = 0.
Now we try to convert this observation into a valid inequality.
The inequality s1 ≥ d2 (1 − x2 ) does the trick when x2 = 0. So we just need to
check that it is also valid when x2 = 1. But in this case, the inequality reduces
to s1 ≥ 0, which is a constraint of the initial problem. So in general we have
a valid inequality
st−1 ≥ dt (1 − xt )
for t = 1, … , n.
Using the equality st−1 + yt = dt + st , it is readily checked that the two
inequalities we have come up with are the same, and those for t = 2, 3, 4 cut
off the linear programming solution (x1 , s1 , y1 ).
To go a step further, we add these inequalities to the formulation, and the
new linear programming solution is as shown in Figure 14.2.
Again the question is how to cut off the point (x2 , s2 , y2 ). As s23 = 0, it suffices
to look at the non-integral solution for periods 1–3.
A2c. Extending the argument in A2b, we observe that if there is no production in
periods 2 and 3, then s1 ≥ d2 + d3 = 11. This immediately gives the family of
valid inequalities
( l
)
∑
dt (1 − xk − · · · − xl ) for 1 ≤ k ≤ l ≤ n
sk−1 ≥
t=k
and among them s1 ≥ 11(1 − x2 − x3 ) cuts off (x2 , s2 , y2 ).
273
274
14 From Theory to Solutions
y x
11.67 1
1
y x
y x
5.33 0.19
6
s
5.67
2
6
y x
4
5
4
6
3
y x
y x
6 1
11 1
3
4
5
4
6
3
y x
3.6 0.13 1.3 0.32
s
6.1
6
Figure 14.3
11 1
s
8
6
8
Second ULS solution.
y x
12.1 1
1
3
7
Figure 14.2
1
s
4
y x
2
s
2.7
7
s
8
6
8
Third ULS solution.
Again we add these inequalities to the formulation, and the new linear programming solution is as shown in Figure 14.3.
Here we observe that the cuts added in the last two iterations are both satisfied at equality. Somehow we need something stronger.
A2d. We have used the two valid inequalities s1 ≥ d2 (1 − x2 ) and s1 ≥
(d2 + d3 )(1 − x2 − x3 ). Comparing the two, we see that the d2 term in
the second inequality is weaker than that in the first. The valid inequality
s1 ≥ d2 (1 − x2 ) + d3 (1 − x2 − x3 )
takes this observation into account, and has exactly the right condition
needed to include the demands d2 , or d2 + d3 . After adding this inequality,
we obtain a solution with x integer. The general form of this last inequality is
sk−1 ≥
l
∑
t=k
dt (1 − xk − · · · − xt )
for 1 ≤ k ≤ l ≤ n.
(14.1)
14.3 How Do We Find an Improved Formulation?
Before leaving this example, there are still several questions that we might
ask about the use and strength of the inequalities we have found.
Q3. Are the inequalities (14.1) as strong as possible (facet-defining), or are they
nonnegative combinations of other valid inequalities?
A3. Yes. The inequalities are facet-defining, see Exercise 5.
Q4. Do the constraints of the original formulation plus the O(n2 ) inequalities
(14.1) describe conv(X ULS )?
l
∑
A4. No. The inequality yk ≤ ( dt )xk + sl is valid and facet-defining for any l ≥ k,
t=k
and is not equivalent to any inequality of the form (14.1) when l > k. However, the inequalities (14.1) are sufficient to solve many practical instances.
Q5. Is the separation problem for the inequalities (14.1) and a point (x∗ , s∗ , y∗ )
easy?
A5. Yes. Fix k, and find the smallest value l ≥ k for which xk∗ + · · · + xl∗ ≥ 1. If
l > k, check if
s∗k−1 <
l−1
∑
dt (1 − xk∗ − · · · − xt∗ ).
t=k
If so, this is the most violated inequality for the given value of k. If not, no
such inequality is violated.
In conclusion, there is the option of either reformulating by adding the O(n2 )
inequalities a priori, or of using a simple separation routine to generate the
inequalities (14.1) as cuts when they are violated.
Q6. Is there an extended formulation for ULS?
A6. There are several including the one presented in Section 1.6. In spite of their
strength, these formulations typically have the disadvantage of having an
order of magnitude more variables and constraints.
Capacitated Lot-Sizing
Here we consider the more constrained set X CLS =
{(x, s, y) ∈ {0, 1}n × ℝn+ × ℝn+ ∶ st−1 + yt = dt + st , yt ≤ Ct xt for t = 1, … , n}.
We start with the same questions.
Q1. Is optimization over X CLS polynomially solvable?
A1. No. Capacitated lot-sizing (CLS) is shown to be -hard in Section 6.3.
Therefore, the best we can hope for is to find a good approximation of
conv(X CLS ).
275
276
14 From Theory to Solutions
Q2. How do we find valid inequalities?
We again try to make use of existing inequalities, by considering relaxations
for which valid inequalities are known. After looking at single periods, it is
natural to aggregate together flow conservation equations from consecutive
periods.
A2a. Consider the relaxation
{
}
l
l
∑
∑
1
l−k+1
∶ sk−1 +
Cj xj ≥
dj ,
(sk−1 , xk , … , xl ) ∈ ℝ+ × {0, 1}
j=k
j=k
obtained by summing the constraints st−1 + yt = dt + st and replacing yt by
its upper bound Ct xt for periods k, … , l, and by replacing sl by its lower bound
of 0.
One can either attempt to generate an MIR inequality off this constraint
(see Section 8.7), or else it can be viewed as a 0–1 knapsack problem with
a continuous variable sk−1 . Using the approach used in Section 9.3, we can
fix sk−1 = 0, apply a knapsack separation heuristic, and then lift back in the
continuous variable.
A2b. Aggregating the same constraints as above, replacing sk by its lower bound
0, and adding the valid inequalities (14.2) for j = k, … , l leads to the set
{(xk , … , xl , yk , … , yl , sl ) ∈ {0, 1}l−k+1 × ℝ+l−k+1 × ℝ1+ ∶
l
∑
j=k
yj ≤
l
∑
dj + sl , yj ≤ Cj xj ,
j=k
)
( l
∑
yj ≤
dt xj + sl
for j = k, … , l}.
t=j
Fixing sl = 0, this becomes a single node flow set (see Section 9.4), for which
one can generate flow cover inequalities before reintroducing sl .
Consider the solution shown in Figure 14.4 for an instance with n = 6,
d = (6, 7, 4, 6, 3, 8), and C = (15, 8, 10, 10, 5, 10).
Again because s3 = 0, we can decompose the solution into two parts, one for
periods 1–3 and the other for periods 4–6.
For periods 1–3, we look at the relaxation suggested in A2a, giving the set
{x ∈ {0, 1}3 ∶15x1 + 8x2 + 10x3 ≥ 17}
(
)
and the fractional point (x1 , x2 , x3 ) = 1, 0, 12 . The 0–1 knapsack separation
8
x2 + 10
x ≥ 17
both
routine, or the Chvátal–Gomory procedure for x1 + 15
15 3
15
lead to the violated valid inequality
x1 + x2 + x3 ≥ 2.
14.4 Multi-item Single Machine Lot-Sizing
y x
y x
y x
y x
15 1
2 0.5
10 1
7 0.87
3
4
s
9
1
2
s
2
s
4
5
s
1
6
6
7
4
6
3
8
C = 15
8
10
10
5
10
Figure 14.4
CLS solution.
For periods 4–6, we look at the relaxation suggested in A2b:
(x4 , x5 , x6 , y4 , y5 , y6 , s6 ) ∈ {0, 1}3 × ℝ3+ × ℝ1+ ∶y4 + y5 + y6 ≤ 17 + s6 ,
y4 ≤ min(10, 17)x4 + s6 , y5 ≤ min(5, 11)x5 + s6 , y6 ≤ min(10, 8)x6 + s6
with fractional point (x4 , x5 , x6 , y4 , y5 , y6 , s6 ) = (1, 0, 0.875, 10, 0, 7, 0).
The flow cover inequality with cover variables (y4 , y6 ) and 𝜆 = 10 + 8 − 17 =
1 leads to the violated valid inequality
y4 + y6 + 9(1 − x4 ) + 7(1 − x6 ) ≤ 17 + s6 .
Q3. Are the inequalities obtained as tight as possible?
A3. In practice, it may not be important to check that the inequalities define
facets. However, it is worth checking whether the inequalities can be
easily strengthened, or possibly decomposed into two or more valid
inequalities.
Q4. Is the separation problem for the inequalities arising in A2a or A2b easy?
A4. In practice, a separation heuristic, such as that for flow covers, can be
devised.
14.4 Multi-item Single Machine Lot-Sizing
A set of products or items have to be produced on a single machine. Because of
important start-up costs and changeover times between the production of different
items, the planning horizon has been broken up into equally spaced time intervals
(periods such as a day, or an eight-hour shift) such that only one item is produced
per period. Also certain items have minimum run-times, and others have minimum down-times specified between successive production runs of the item.
277
278
14 From Theory to Solutions
The data consists of
the demand dit for item i in period t
the storage cost hi per period per unit of item i
the start-up cost gi for item i
the changeover cost qij when passing from the production of i to j
the changeover time Δij when passing from the production of i to j
the production rate 𝜌i per period for item i
the minimum run-time 𝛼 i for item i
the minimum down-time 𝛽 i for item i
the production capacity Ct per period
For simplicity, we assume that the data have been preprocessed so that the initial
stocks and safety stocks (lower bounds on stocks) are zero. In addition, we assume
that the basic unit of each item i is the amount produced per unit of time. With
this assumption, 𝜌i = 1 for all i = 1, … , m, and Ct = C is the length of a period.
We make the obvious choice of variables:
yit the amount of time that item i is produced in period t
sit the stock of i at the end of t measured in time units
xti = 1 if the machine is set up for i in t
zti = 1 if a production run of i starts in t
ij
𝜒t = 1 if item i is produced in period t − 1 and j in t.
This leads to the formulation
(
)
m n
∑
∑
∑
i i
i i
ij ij
min
h st + g z t +
q 𝜒t
i=1 t=1
sit−1 + yit = dit + sit
yit ≤ Cxti −
(14.2)
j∶j≠i
∑
for all i, t
(14.3)
ji
(14.4)
Δji 𝜒t
for all i, t
j∶j≠i
i
zti ≥ xti − xt−1
zti ≤ xti
for all i, t
for all i, t
i
zti ≤ 1 − xt−1
ij
for all i, t
j
i
𝜒t ≥ xt−1
+ xt − 1 for all i, j, t with i ≠ j
ij
i
𝜒t ≤ xt−1
ij
j
𝜒t ≤ xt
for all i, j, t with i ≠ j
for all i, j, t with i ≠ j
(14.5)
(14.6)
(14.7)
(14.8)
(14.9)
(14.10)
14.4 Multi-item Single Machine Lot-Sizing
i
zti ≤ xt+u−1
i
zti ≤ 1 − xt−u
m
∑
for all i, t, u = 1, … , 𝛼 i
for all i, t, u = 1, … , 𝛽 i
xti = 1 for all t
(14.11)
(14.12)
(14.13)
i=1
sit , yit ≥ 0, xti , zti ∈ {0, 1} for all i, t
ij
𝜒t ∈ {0, 1} for all i, j, t with i ≠ j
(14.14)
(14.15)
where (14.3) are flow conservation constraints, (14.4) are production capacity conij
straints, (14.5)–(14.7) define zti as start-up variables, (14.8)–(14.10) define 𝜒t as
changeover variables, (14.11) and (14.12) express the minimum run time and minimum down-time conditions, and (14.13) the single item per period restriction. For
simplicity, we ignore the fact that zero production is allowed even when an item
is set up for a production run of one or several periods.
We suppose that this application is to be solved with a standard mixed integer
programming system, and so no significant change of variables is envisaged. Thus,
the available options are to strengthen constraints, to add valid inequalities, plus
possibly knapsack and mixed integer cuts that can be generated automatically, or
to use an extended formulation involving new variables.
We examine in turn various possibilities.
Improving Branch-and-Cut Performance
We present three simple observations that may radically modify the performance
of a branch-and-cut algorithm.
Observation 14.2 If the variables xti are all 0–1 valued and constraints
ij
(14.5)–(14.10) are present, the variables zti and 𝜒t will automatically take 0–1
values. Therefore, it may be possible to make the z and 𝜒 variables continuous.
Observation 14.3 If the start-up costs {gi } and changeover costs {qij } are positive, consider whether it is valid and computationally interesting to drop constraints (14.6), (14.7), (14.9), and (14.10) (for the products without minimum run
ij
and down times, on the grounds that zti and 𝜒t will only take the value 1 if forced).
Note also that (14.6) reappears as one of the constraints (14.11), and (14.7) as one
of the constraints of (14.12).
Observation 14.4 Giving priorities to the binary variables xti based on the period
t, and/or the importance of the product i should be considered.
279
280
14 From Theory to Solutions
Problem-Specific Cutting Planes
Note first that with the relaxation yit ≤ Cxti of (14.4), the problem contains CLS
relaxations for each item i, and thus the inequalities for both ULS and CLS derived
in Section 14.3 can be used.
It is also natural to ask whether the basic lot-sizing inequalities can be improved
in the presence of the start-up and/or changeover variables. One improvement is
easily seen. The inequalities
sk−1 ≥
l
∑
dt (1 − xk − · · · − xt )
t=k
for ULS were valid because no production between periods k and t, which can be
restated as xk + · · · + xt = 0, implies that the demand dt must be included in the
entering stock sk−1 . With start-up variables, the condition xk + zk+1 + · · · + zt = 0
also implies no production between periods k and t, and thus demonstrates the
validity of
sk−1 ≥
l
∑
dt (1 − xk − zk+1 − · · · − zt )
for 1 ≤ k ≤ l ≤ n.
t=k
This dominates the previous inequality as zi ≤ xi for i = 1, … , n.
Modeling Minimum Run-Times
If an item must be produced during at least 𝛼 periods, there can be at most one
start-up of the item in the interval [t − 𝛼 + 1, t]. In addition, if it starts at some
time in this interval, then the machine must still be set up in period t. This shows
that the inequality
𝛼
∑
zt−u+1 ≤ yt
for 1 ≤ t ≤ n
u=1
is valid for each item and can be used to replace the inequalities (14.6) and (14.11).
Similarly for the down times, the inequality
𝛽
∑
zt+u ≤ 1 − yt
for 1 ≤ t ≤ n
u=1
is valid, and can replace (14.7) and (14.12).
Modeling Start-ups and Changeovers
Here we consider the constraints (14.5)–(14.10) and (14.13) linking the x, z, and
𝜒 variables. First we add a small number of additional variables:
14.4 Multi-item Single Machine Lot-Sizing
t=1
t=2
t=3
t=4
t=5
i=1
i=2
i=3
Figure 14.5
Representation of solution with changeovers.
jj
𝜒t = 1 if item j is produced in periods t − 1 and t.
Observe that if we know for which item the machine is setup in period 1, the
𝜒 variables tell us everything about the state of the machine from then on. More
specifically they determine the path taken through the acyclic network shown in
Figure 14.5. The path shown corresponds to the solution with x11 = x22 = x32 = x41 =
x53 = 1.
Thus we have
m
∑
x1i = 1
i=1
m
∑
ij
i
𝜒t = xt−1
for all i, t
j=1
m
∑
ij
j
𝜒t = xt
i=1
j
jj
j
zt + 𝜒t = xt
for all j, t
for all j, t
2
x, z ∈ {0, 1}mn , 𝜒 ∈ {0, 1}m n .
This formulation has an order of magnitude fewer constraints than
(14.8)–(14.10), and it is as strong as possible. In what sense?
Heuristics
Relax-and-fix heuristics, in which, for example, variables in earlier periods are
considered more important, provide one way of finding feasible solutions to large
problems. Another approach is to consider the values of the set-up variables x̃ in
the linear programming solution as probabilities, and thus to construct a solution
in which, for each period t, the item i produced is found by selecting i randomly
with probabilities x̃ ti for i = 1, … , m.
281
282
14 From Theory to Solutions
14.5 A Multiplexer Assignment Problem∗
We consider two variants of a problem that arose in the telecommunications
industry.
Problem A. Given a graph G = (V, E), demands de > 0 measuring the communications required between nodes i, j where e = (i, j) ∈ E, and an unlimited number
of identical rings (copies of the graph) of capacity C, the demands must be assigned
unsplit to the rings without exceeding capacity. If a demand de with e = (i, j) is
assigned to a certain ring, multiplexers costing 𝛼 each must be installed at nodes
i and j on that ring. The problem is to find a feasible assignment of demands to
rings, so that the cost/number of multiplexers installed is minimized.
Problem B. Additional constraints are imposed on Problem A based on the structure of the multiplexers. Specifically, a multiplexer contains eight slots, each of
capacity C1 = 16. By adding a special card to a slot, costing 𝛽, the capacity of a
slot is increased to C2 = 63. The problem is now to minimize the total cost of the
multiplexers and the special cards.
We start by presenting a natural formulation for Problems A and B.
Let k = 1, … , K denote the set of rings. We take as variables
yke = 1 if demand de is assigned to ring k (NB yke ∈ {0, 1}), and
xik = 1 if a multiplexer is installed at node i of ring k,
and obtain as formulation A:
min 𝛼
K
∑
∑
xik
(14.16)
k=1 i∈V
K
∑
yke = 1 for e ∈ E
(14.17)
de yke ≤ C
(14.18)
k=1
∑
for k = 1, … , K
e∈E
yke ≤ xik , yke ≤ xjk
for e = (i, j) ∈ E, k = 1, … , K
(14.19)
xik ∈ {0, 1} for i ∈ V, k = 1, … , K
(14.20)
yke ∈ {0, 1} for e ∈ E, k = 1, … , K
(14.21)
Here constraint (14.17) assigns each demand to some ring, (14.18) ensures that
the ring capacity is not exceeded, and (14.19) that multiplexers are installed where
required.
14.5 A Multiplexer Assignment Problem
In Problem B, it is necessary to add additional variables
zik the number of slots of capacity C1 used at node i on ring k, and
𝑤ki the number of slots of capacity C2 used at node i on ring k.
The objective is now modified to become
min 𝛼
K
∑
∑
k=1 i∈V
xik + 𝛽
K
∑
∑
k=1 i∈V
and additional constraints
∑
de yke ≤ 16zik + 63𝑤ki
e∈𝛿(i)
zik + 𝑤ki
zik , 𝑤ki
≤
∈
𝑤ki ,
for i ∈ V, k = 1, … , K
8xik for i ∈ V, k = 1, … , K
ℤ1+ for i ∈ V, k = 1, … , K
are needed to ensure that enough capacity is available at each node, and that the
available number of slots is not exceeded.
For these two problems, it is not clear a priori whether a branch-and-cut based
MIP system has any chance of producing reasonable solutions. Thus, we first need
to choose an algorithmic approach that will provide useful bounds, and then perhaps look further at the quality of the formulation. We again proceed via a series
of questions. We start by examining Problem B.
Q1. Does Problem B have special structure?
A1. It is readily seen that Problem B is of the form
K
∑
yke = 1 for e ∈ E
k=1
(yk , xk , zk , 𝑤k ) ∈ X k
for k = 1, … , K
with each of the sets X k identical.
Q2. What algorithmic approach does this suggest?
A2. From Chapters 10 and 11, we might consider a Lagrangian relaxation
approach or a column generation approach, where the subproblem involves
optimizing over X k , or a cutting plane approach with separation over
conv(X k ).
As we prefer where possible to use a general MIP system, we consider first
the possibility of approximating conv(X k ) with valid inequalities.
Q3. Can we find valid inequalities for conv(X k )?
A3. X k contains mixed integer knapsack constraints plus precedence constraints, but nothing else is apparent.
We also look at the complete problem.
Q4. Can we find global lower bounds on the number of multiplexers, or special
slots required, either in total or at a specific node?
283
284
14 From Theory to Solutions
∑
A4a. The total demand at node i is D(i) = e∈𝛿(i) de . Assuming that only one multiplexer can be installed at each node on a ring, the maximum capacity of a
∑K
multiplexer is min(C, 8 × 63). Thus we obtain the valid inequality k=1 xik ≥
⌈D(i)∕min(C, 504)⌉ for each node i ∈ V.
A4b. Working with slots in place of multiplexers, we have that
16
K
∑
k=1
zik + 63
K
∑
𝑤ki ≥ D(i),
k=1
∑K
∑K
which after setting Z = k=1 zik and W = k=1 𝑤ki can be rewritten as the set
{(Z, W) ∈ ℤ2+ ∶16Z + 63W ≥ D(i)}. Dividing by 16, we immediately obtain
the Chvátal–Gomory inequality
Z + 4W ≥ ⌈D(i)∕16⌉.
It is also simple in practice to find all the inequalities required to represent
the convex hull of a set in two integer variables.
Q5. What can be done about the symmetry, namely the fact that each ring is
identical, and thus many feasible solutions are essentially the same?
∑
A5. One simple approach is to break the symmetry. As k yke = 1 for all e, it is
always possible to assign K of the edges, denoted e1 , … , eK , so that e1 is in
ring 1, e2 is in rings 1 or 2, etc. We enforce that e𝜅 is in one of the first 𝜅 rings
by setting yke𝜅 = 0 for all k > 𝜅 and 𝜅 = 1, … , K.
Alternatively, the latest MIP systems will detect the symmetry between the
rings and apply isomorphism pruning and/or orbital branching.
In particular, consider some node 𝛼 in the branch-and-cut tree and let K𝛼1 be
the set of rings for which one or more of the 0–1 variables takes value 1 on
the path from the root to node 𝛼. Now suppose that at node 𝛼 we branch on
some variable 𝑣kp ∈ {xpk , 𝑤kp , zpk }. We set 𝑣kp = 1 on the left branch. On the right
branch, we set 𝑣kp = 0 if k ∈ K𝛼1 , but we can set 𝑣kp = 0 for all k ∈ {1, … , K} ∖
K𝛼1 if k ∉ K𝛼1 .
Q6. What branch-and-cut options should be considered?
A6. Given the relative importance of the variables, it appears natural to give the
xik variables highest priority for branching followed by the 𝑤ki variables. The
reply to Q4 also suggests the idea of explicitly introducing aggregate variables
∑K
X i = k=1 xik with W i and Z i defined similarly. In this case, these variables
should have higher priority than the corresponding individual variables.
Now we turn back to Problem A. As it has the same structure as Problem B,
but no tightening of the formulation is apparent, decomposing as suggested
in A2 appears a possibility.
Q7. Is Lagrangian relaxation or column generation a suitable algorithm for
Problem A?
14.6 Integer Programming and Machine Learning
A7a. Criteria for evaluating the pros and cons of using Lagrangian relaxation were
given in Section 10.5. Because the rings are identical, there is only one subproblem to be solved that takes the form
{
}
∑
∑
min 𝛼
xi −
𝜋e ye ∶(x, y) ∈ X
i∈V
e∈E
∑
where X = {(x, y) ∈ {0, 1}∣V∣ × {0.1}∣E∣ ∶ e∈E de ye ≤ C, ye ≤ xi , ye ≤ xj
fore = (i, j) ∈ E}.
We consider the difficulty of the subproblem, the difficulty of solving the
Lagrangian dual, and the strength of the dual bound. Though the subproblem is -hard, the graphs are typically small so the subproblem should
be solved quickly by branch-and-cut. The only indication of the difficulty of
convergence of the subgradient algorithm is the number of dual variables
∣ E ∣. Finally, as the constraints defining the set X certainly do not define
conv(X), the Lagrangian dual bound may well be significantly stronger than
that provided by the linear programming relaxation of Formulation A. In
practice, this turns out to be the case, and the bound is very close to the
optimal integer programming value.
A7b. Taking a column generation approach, the subproblem to be solved is the
same as above, and the bound provided by the Linear Programming Master is
the same as that of the Lagrangian dual. Implementing a column generation
algorithm may require more work than implementing Lagrangian relaxation
unless one of the codes specially designed for column generation is used. On
the other hand, the column generation procedure is more robust, and less
likely to have difficulties of convergence. It may also provide good feasible
solutions en route.
Q8. What about heuristics?
A8. Problem A is an edge-partitioning problem. The simulated annealing or tabu
search heuristics proposed for node partitioning in Section 13.3 can be readily adapted to this problem as feasibility of a set of edges (demands) can be
tested very easily. One possibility is to take as a solution an edge partition
in which the demand on each ring is feasible, and as objective function the
number of multiplexers required. As neighborhood, one possibility is to take
the set of feasible edge partitions obtained either by moving a single edge to
another ring, or by interchanging a pair of edges lying on different rings.
14.6 Integer Programming and Machine Learning*
The possibility of using machine learning to improve IP algorithms and conversely
the use of IP to tackle problems arising in data science and machine learning
285
286
14 From Theory to Solutions
are topics that have begun to attract considerable attention. Here we very briefly
give some idea of the type of questions being addressed that are certainly just a
beginning.
Machine Learning for IP
There have been several attempts to improve algorithms for COPs and IPs using
machine learning. Aspects of algorithms that have been investigated include
(i) branching rules that attempt to approximate strong branching, but run much
faster
(ii) rules to select a branching variable
(iii) rules to decide whether a heuristic should be called
(iv) rules to select which Gomory cuts should be added
(v) a rule to decide whether a decomposition algorithm should be used on a given
problem/instance.
Impressive results, with smaller branch-and-cut trees and faster solution times,
have been obtained for certain problem classes: for instance if the learning is
restricted to 0–1 covering problems or capacitated facility location problems.
However, not surprisingly there are questions about generalizations to arbitrary
MIPs, or even the effectiveness of the rules as the size of instances is significantly
increased.
IP for Machine Learning
This is wide topic. Here continuous optimization has played a significant role in
the training of different machine learning models. For instance linear programming has been used to train deep neural networks with various architectures and
loss functions.
Other problems have been tackled by integer programming. One of the most
basic questions involves binary classification. Given K data vectors of the form
(x1k , … , xrk , yk ) where yk ∈ {0, 1} gives the yes/no classification of the vector xk , the
problem is to generate a function f (x)∶x → {0, 1} that correctly classifies new 0–1
vectors presumably drawn from the same distribution (unknown), but not in the
original data set. Another approach is to generate a short set of logical clauses so as
to correctly classify a set of 0–1 vectors. The exponential number of possible clauses
naturally suggests a column generation algorithm. A more general classification
problem is to assign a set of vectors (xk , yk ) ∈ ℝr × ℝk into clusters consisting of
elements with similar y characteristics. One approach is to design an optimal decision tree with branches of the form ai x ≤ bi or ai x > bi in which the leaves of the
tree correspond to the clusters. In a different direction, MIP has been used to find
instances that are completely misclassified by a given neural network.
14.8 Exercises
14.7 Notes
14.1 Five of the more well-known languages are AMPL [11], GAMS [133],
LINGO(LINDO) [210], MOSEL(XPRESS), and OPL(CPLEX), while the
three major commercial MIP systems are CPLEX [84], GUROBI [171],
and XPRESS [301]. These allow the user to develop new algorithms using
callbacks. Open source systems allowing the user even greater freedom
include SCIP [268] and CBC [73]. Examples of modeling languages and
software systems are given in Atamtürk and Savelsbergh [18].
14.2 Cutting planes for ULS and CLS can be found in [250].
14.3 The model presented here is based on a variety of real applications. Results
for models with start-ups can be found in Constantino [76]. The modeling of
changeovers is from Karmarkar and Schrage [192].
14.4 More details on the multiplexer assignment problem and its solution appear
in Sutter et al. [272] and Belvaux et al. [40].
14.5 The approximation of strong branching is treated in Gasse et al. [135], ways
to choose branching variables have been investigated in Alvarez et al. [10]
and Khalil et al. [196]. An approach to select cuts is from Tang et al. [274].
Surveys include Bengio et al. [43] and Lodi and Zarpellon [212].
Surveys on the use of optimization in machine learning include Botton et al.
[58] and Gambella et al. [130]. Bienstock et al. [53] tackle the training of deep
neural networks using LP. Hochbaum [178] shows how one version of the 0–1
classification problem can be solved in polynomial time as a parametric min
cut problem, and Dash et al. [95] develop an IP model to provide a classifier
consisting of a small set of logical clauses, while Bertsimas and Dunn’s [49]
use IP to design optimal decision trees. The latter authors have just published
a book [50] in which IP models are used for a wide range of machine learning problems. The generation of misclassified instances for a given neural
network is one of the topics in Fischetti and Jo [111].
14.8 Exercises
1.
As part of a multicommodity network design problem, you encounter
the subset of different commodities passing through an arc. Each of
the flows has an upper bound dj corresponding to its total demand.
To meet the aggregate flow on the arc, capacity in multiples of C
units needs to be installed. Thus, the set can be }
formulated as: X =
{
∑n
(x, y) ∈ ℤ × ℝn+ ∶ j=1 yj ≤ Cx, yj ≤ dj for j = 1, … , n . For an instance
with n = 6, C = 10, d = (4, 9, 6, 3, 5, 7), you obtain the fractional solution
287
288
14 From Theory to Solutions
y∗ = (0, 9, 6, 0, 0, 7), x∗ = 2.2. Find a valid inequality cutting off this point.
Describe a family of valid inequalities for the set X.
2.
Consider a unit commitment problem with 5 generators and 12 (two-hour)
time periods. Period 1 follows on again from period 12, and the pattern
is repeated daily. d = (50, 60, 50,100, 80, 70, 90, 60, 50,120, 110, 70) are the
demands per period, and the reserve is 1.2 times the demand, so the total
capacity of the generators switched on in any period must be at least this
reserve. The capacity of the generators is C = (12, 12, 35, 50, 75), and their
minimum levels of production are L = (2, 2, 5, 20, 40). In addition each
generator must stay on for at least two periods. The ramping constraints
only apply to the fifth generator – when on in two successive periods, the
output cannot increase by more than 20 from one period to the next, and
cannot decrease by more than 15. The costs are approximate. The main
cost is a start-up cost g = (100,100, 300,400, 800). There are also fixed costs
f = (1, 1, 5, 10, 15) and variables costs p = (10, 10, 4, 3, 2) in each period that
a generator is on.
Formulate and solve with a mixed integer programming system.
3.
Consider an item as in the multi-item lot-sizing problem in Section 14.4.
(i) Suppose that the item cannot be produced for more than 𝛾 consecutive
periods. Formulate. If the formulation appears to be weak, look for a
stronger formulation.
(ii) If the item must be produced at least once every 𝛿 periods, give a strong
formulation.
4.
Suppose that x1 , x2 ∈ {0, 1}n and x1 is lexicographically greater than or equal
to x2 . Formulate and demonstrate the validity of your formulation.
5.
You have a discrete time model in which xti = 1 if job i starts in period t. All
three jobs must be carried out. Given two jobs, you wish to formulate the
constraint that the start of job 1 is not more than three periods after the start
of job 2 and the start of job 3 is at least five periods after the start of job 1.
(i) Formulate without introducing additional variables.
(ii) Let zti = 1 if job i starts in or before period t. Reformulate using the zti
variables. Can you say anything about the structure of the constraint
matrix?
6.
Find a minimum cost directed Steiner tree in the complete digraph on n = 10
nodes with root node r = 1, terminal nodes 2,5,7,8,10, and arc costs
14.8 Exercises
⎛ 12 6 7 4 11 8 4 5 7 15 ⎞
⎜ 9 4 2 26 12 4 7 11 4 28 ⎟
⎟
⎜
⎜ 6 3 8 2 12 15 19 3 7 9 ⎟
⎜ 21 33 24 52 2 19 6 2 9 15 ⎟
⎟
⎜
⎜ 6 3 5 8 4 3 2 7 4 12 ⎟ .
⎜ 14 17 32 24 15 11 22 28 9 6 ⎟
⎜ 8 3 5 2 3 4 7 8 10 3 ⎟
⎟
⎜
⎜ 31 24 46 52 43 13 24 27 61 21 ⎟
⎜ 2 3 4 3 5 7 9 3 5 9 ⎟
⎟
⎜
⎝ 21 24 13 38 67 94 24 3 26 23 ⎠
7.
Consider an instance of a constant capacity lot-sizing model with n = 4
periods, an initial stock of eight units, demands d = (2, 3, 6, 5), lower bounds
on stocks of (5, 2, 3, 0) units, and production capacity C = 5. Convert the
instance to an equivalent one with no initial stock and no zero lower bounds
on the stocks. Describe an algorithm for the general case.
8.
∗
Show that the inequality
( l
)
∑
∑ ∑
yj ≤
di xj + sl
j∈S
j∈S
i=j
is facet-defining for X ULS where 1 ≤ l ≤ n and S ⊆ {1, … , l}. When is the
more general inequality of Exercise 7 in Chapter 8 facet-defining?
9.
Use the fact that any s–t flow can be represented as a sum of flows on
individual s–t paths to reformulate the fixed charge network flow problem
of Exercise 10 in Chapter 3. Does this lead to any new algorithms for the
problem?
10.
A Multiplexer Assignment Instance. Five nodes (communications centers)
are linked on a network. Demands between nodes are
⎛ − 86 45 65 116 ⎞
⎜ − − 9 0 41 ⎟
⎜
⎟
(de ) = ⎜ − − − 104 126 ⎟ .
⎜− − − − 8 ⎟
⎜
⎟
⎝− − − − − ⎠
An unlimited number of fiber optic cables can be run through the five nodes
in a ring. If part of the demand between nodes i and j is placed on some ring,
add/drop multiplexers (ADMs) must be placed at nodes i and j. The total
289
290
14 From Theory to Solutions
demand assigned to a ring (assuming 100% protection) cannot exceed 256.
Each ADM has eight slots. The capacity of each slot is 16, unless a terminal
multiplexer (TM) is installed in the slot, in which case its capacity is 63. The
cost of an ADM is 3 and of a TM is 1. Find an assignment of the demands to
the rings that minimizes the total cost.
11.
The Traveling Salesman Problem with Time Windows. A truck driver must
deliver to nine customers on a given day, starting and finishing at the depot.
Each customer i = 1, … , 9 has a time window [ri , di ] and an unloading
time pi . The driver must start unloading at client i during the specified
time interval. If she is early, she has to wait till time ri before starting to
unload. Node 0 denotes the depot, and cij the time to travel between nodes
i and j for i, j ∈ {0, 1, … , 9}. The data are p = (0, 1, 5, 9, 2, 7, 5, 1, 5, 3), r =
(0, 2, 9, 4, 12, 0, 23, 9, 15, 10), d = (150, 45, 42, 40,150, 48, 96,100, 127, 66),
and
⎛− 5 4 4 4 6 3 2 1 8 ⎞
⎜ 7 − 2 5 3 5 4 4 4 9 ⎟
⎟
⎜
⎜ 3 4 − 1 1 12 4 3 11 6 ⎟
⎜ 2 2 3 − 2 23 2 9 11 4 ⎟
⎟
⎜
6 4 7 2 − 9 8 3 2 1 ⎟
.
(cij ) = ⎜
⎜ 1 4 6 7 3 − 8 5 7 4 ⎟
⎜ 12 32 5 12 18 5 − 7 9 6 ⎟
⎟
⎜
⎜ 9 11 4 12 32 5 12 − 5 22 ⎟
⎜ 6 4 7 3 5 8 6 9 − 5 ⎟
⎟
⎜
⎝ 4 6 4 7 3 5 8 6 9 −⎠
12.
Lot-Sizing with Minimum Batch Sizes and Cleaning Times. Consider the
problem of production of a single item. Demands {dt }nt=1 are known in
advance. Production capacity in each time period is C, but in the last period
̃ In each production sequence,
of a production sequence it is reduced to C.
at least a minimum amount P must be produced, and production is at
full capacity in all but the first and last periods of a production sequence.
There is a fixed cost of f for each period in which the item is produced, the
storage costs are h per item per period, and the backlogging costs g. Solve
an instance with n = 12, d = (5, 4, 0, 0, 6, 3, 2, 0, 0, 4, 9, 0), C = 7, C̃ = 4,
f = 50, h = 1, g = 10, and P = 19.
291
References
1 Aarts, E.H.L. and Lenstra, J.K. (eds.) (1997). Editors of the book Local Search
in Combinatorial Optimization. Chichester: Wiley.
2 Absi, N., Archetti, C., Dauzère-Pérès, S., and Feillet, D. (2015). A two-phase
iterative heuristic approach for the production routing problem. Transportation Science 49 (4): 784–795.
3 Achterberg, T. (2009). SCIP: solving constraint integer programs. Mathematical Programming Computation 1 (1): 1–41.
4 Achterberg, T. and Berthold, T. (2007). Improving the feasibility pump. Discrete Optimization 4: 77–86.
5 Achterberg, T., Bixby, R.E., Gu, Z. et al. (2019). Presolve reductions in mixed
integer programming. INFORMS Journal on Computing 32 (2) 1–34.
6 Achterberg, T., Koch, T., and Martin, A. (2004). Branching rules revisited.
Operations Research Letters 33: 42–54.
7 Achterberg, T. and Wunderling, R. (2013). Mixed integer programming: analyzing 12 years of progress. In: Facets of Combinatorial Optimization (ed. M.
Junger and G. Reinelt), 449–481. Berlin: Springer-Verlag.
8 Aghezzaf, E.H., Magnanti, T.L., and Wolsey, L.A. (1995). Optimizing constrained subtrees of trees. Mathematical Programming 71: 113–126.
9 Ahuja, R.K., Magnanti, T.L., and Orlin, J.B. (1993). Network Flows. Englewood Cliffs, NJ: Prentice Hall.
10 Alvarez, A.M., Louveaux, Q., and Wehenkel, L. (2017). A machine
learning-based approximation of strong branching. INFORMS Journal on
Computing 29 (1): 185–195.
11 AMPL (2003). AMPL modeling language. https://ampl.com (accessed 20 April
2020).
12 Applegate, D.L., Bixby, R.E., Chvátal, V., and Cook, W.J. (2007). The Traveling
Salesman Problem: A Computational Study. Princeton University Press.
Integer Programming, Second Edition. Laurence A. Wolsey.
© 2021 John Wiley & Sons, Inc. Published 2021 by John Wiley & Sons, Inc.
Companion website: www.wiley.com/go/wolsey/integerprogramming2e
292
References
13 Applegate, D., Cook, W.J., Bixby, R., and Chvátal, V. (1995). Finding Cuts
in the TSP. DIMACS Technical Report 95-05. New Brunswick, NJ: Rutgers
University.
14 Atamtürk, A. (2001). Flow pack facets for the single node fixed charge flow
polytope. Operations Research Letters 29: 107–114.
15 Atamtürk, A. and Günlük, O. (2010). Mingling: mixed integer rounding with
bounds. Mathematical Programming 123: 315–338.
16 Atamtürk, A., Küçükyavuz, S., and Tezel, B. (2018). Path cover and path pack
inequalities for the capacitated fixed charge network flow problem. SIAM
Journal on Optimization 27 (3): 1943–1976.
17 Atamtürk, A., Nemhauser, G.L., and Savelsbergh, M.W.P. (2000). Conflict
graphs in solving integer programming problems. European Journal of Operational Research 121 (1): 40–55.
18 Atamtürk, A. and Savelsbergh, M.W.P. (2005). Integer programming software
systems. Annals of Operations Research 140: 67–124.
19 Balakrishnan, A., Magnanti, T.L., and Wong, R.T. (1995). A decomposition
algorithm for local access telecommunication network expansion planning.
Operations Research 43: 58–66.
20 Balas, E. (1965). An additive algorithm for solving linear programs with 0-1
variables. Operations Research 13: 517–546.
21 Balas, E. (1975). Disjunctive programs: cutting planes from logical conditions.
In: Nonlinear Programming, vol. 2 (ed. O.L. Mangasarian R.R. Meyer and
S.M. Robinson), 279–312. New York: Academic Press.
22 Balas, E. (1975). Facets of the knapsack polytope. Mathematical Programming
8: 146–164.
23 Balas, E. (1989). The prize collecting traveling salesman problem. Networks
19: 621–636.
24 Balas, E. (1999). New classes of efficiently solvable generalized traveling salesman problems. Annals of Operations Research 86: 529–558.
25 Balas, E., Ceria, S., and Cornuéjols, G. (1993). A lift-and-project cutting plane
algorithm for mixed 0-1 programs. Mathematical Programming 58: 295–324.
26 Balas, E., Ceria, S., and Cornuéjols, G. (1996). Mixed 0–1 programming by
lift-and-project in a branch-and-cut framework. Management Science 42:
1229–1246.
27 Balas, E., Ceria, S., Cornuéjols, G., and Natraj, G. (1996). Gomory cuts revisited. Operations Research Letters 19: 1–9.
28 Baldacci, R., Christofides, N., and Mingozzi, A. (2008). An exact algorithm for
the vehicle routing problem based on the set partitioning formulation with
additional cuts. Mathematical Programming 115 (2): 351–385.
References
29 Baldacci, R., Mingozzi, A., and Roberti, R. (2011). New route relaxation and
pricing strategies for the vehicle routing problem. Operations Research 59 (5):
1269–1283.
30 Ball, M.O., Magnanti, T.L., Monma, C.L., and Nemhauser, G.L. (eds.) (1995).
Network Models, Handbooks in Operations Research and Management Science,
vol. 7. Amsterdam: North-Holland.
31 Ball, M.O., Magnanti, T.L., Monma, C.L., and Nemhauser, G.L. (eds.) (1995).
Network Routing, Handbooks in Operations Research and Management Science,
vol. 8. Amsterdam: North-Holland.
32 Barahona, F. and Anbil, R. (2000). The volume algorithm: producing primal solutions with a subgradient method. Mathematical Programming 87:
385–399.
33 Barány, I., Edmonds, J., and Wolsey, L.A. (1986). Packing and covering a tree
by subtrees. Combinatorica 6: 245–257.
34 Barnhart, C., Johnson, E.L., Nemhauser, G.L., and Savelsbergh, M.W.P.
(1998). Branch and price: column generation for solving huge integer programs. Operations Research 46 (3): 316–329.
35 Bauer, P. (1997). The circuit polytope: facets. Mathematics of Operations
Research 22: 110–145.
36 Beale, E.M.L. (1979). Branch and bound methods for mathematical programming systems. Annals of Discrete Mathematics 5: 201–219.
37 Beale, E.M.L. and Tomlin, J.A. (1970). Special facilities in a general mathematical programming system for nonconvex problems using ordered sets
of variables. In: Proceedings of the 5th Annual Conference on Operational
Research (ed. J. Lawrence), 447–454. Tavistock Publications.
38 Beasley, J.E. (1993). Lagrangean relaxation. In: Modern Heuristic Techniques
for Combinatorial Problems, Chapter 6 (ed. C.R. Reeves), 243–303. Oxford:
Blackwell Scientific Publications.
39 Bellman, R.E. (1957). Dynamic Programming. Princeton, NJ: Princeton University Press.
40 Belvaux, G., Boissin, N., Sutter, A., and Wolsey, L.A. (1998). Optimal placement of add/drop multiplexers: static and dynamic models. European Journal
of Operational Research 108: 26–35.
41 Benders, J.F. (1962). Partitioning procedures for solving mixed variables
programming problems. Numerische Mathematik 4: 238–252.
42 Ben-Ameur, W. and Neto, J. (2007). Acceleration of cutting-plane and column
generation algorithms: applications to network design. Networks 49 (1): 3–17.
43 Bengio, Y., Lodi, A., and Prouvost, A. (2018). Machine learning for combinatorial optimization: a methodological tour d’horizon. arXiv:1811.06128v1
[cs.LG], 15 November 2018.
293
294
References
44 Berge, C. (1957). Two theorems in graph theory. Proceedings of the National
Academy of Sciences of the United States of America 43: 842–844.
45 Berge, C. (1973). Graphs and Hypergraphs. Amsterdam: North-Holland.
46 Berthold, T. and Hendel, G. (2015). Shift-and-propagate. Journal of Heuristics
21: 73–106.
47 Bertold, T., Perregard, M., and Meszaros, C. (2018). Four good reasons to
use an interior point solver within a MIP solver. In: Operations Research
Proceedings 2017 (ed. N. Kliewer, J.F. Ehmke, and R. Borndorfer), 159–164.
Springer.
48 Bertsekas, D. (2017). Dynamic Programming and Optimal Control, vol. I, 4e.
Athena Scientific.
49 Bertsimas, D. and Dunn, J. (2017). Optimal classification trees. Machine
Learning 106: 1039–1082.
50 Bertsimas, D. and Dunn, J. (2019). Machine Learning Under a Modern Optimization Lens. Dynamic Ideas LLC.
51 Bertsimas, D. and Weismantel, R. (2005). Optimization Over Integers. Belmont,
MA: Dynamic Ideas LLC.
52 Bienstock, D. and Günlük, O. (1996). Capacitated network design: polyhedral
structure and computation. ORSA Journal on Computing 8 (3): 243–259.
53 Bienstock, D., Munoz, G., and Pokutta, S. (2018). Principled deep neural
network training through linear programming. arXiv:1810.0321 v2 [cs.LG].
54 Bixby, R.E., Fenelon, M., Gu, Z. et al. (2004). Mixed-integer programming: a
progress report. In: The Sharpest Cut: The Impact of Manfred Padberg and His
Work, Chapter 18 (ed. M. Grotschel), 309–325. Philadelphia, PA: SIAM.
55 Bodur, M., Dash, S., Günlük, O., and Luedtke, J. (2017). Strengthened Benders cuts for stochastic integer programs with continuous recourse. INFORMS
Journal on Computing 29: 77–91.
56 Bonami, P. (2012). On optimizing over lift-and-project closures. Mathematical
Programming Computation 4: 151–179.
57 Bondy, J.A. and Murty, U.S.R. (1976). Graph Theory with Applications. London: Macmillan.
58 Bottou, L., Curtis, F.E., and Nocedal, J. (2018). Optimization methods for
large-scale machine learning. SIAM Review 60 (2): 223–311.
59 Brahimi, N. and Dauzère-Pérès, S. (2015). A Lagrangian heuristic for capacitated single item lot-sizing problems. 4OR 13 (2): 173–198.
60 Brandao, F. and Pedroso, J.P. (2016). Bin packing and related problems: general arc-flow formulation with graph compression. Computers & Operations
Research 69: 56–67.
61 Brearley, A.L., Mitra, G., and Williams, H.P. (1973). An analysis of mathematical programs prior to applying the simplex method. Mathematical
Programming 7: 263–282.
References
62 Briant, O., Lemaréchal, C., Meurdesoif, P. et al. (2008). Comparison of bundle
and classical column generation. Mathematical Programming 113: 299–344.
63 Caprara, A. and Fischetti, M. (1997). Branch and cut algorithms. In: Annotated Bibliographies in Combinatorial Optimization, Chapter 4 (ed. M.
Dell’Amico, F. Maffioli, and S. Martello), 45–64. Chichester: Wiley.
64 Caroe, C.C. and Tind, J. (1998). L-shaped decomposition of two-stage stochastic programs with integer recourse. Mathematical Programming 83: 451–464.
65 Ceria, S., Cordier, C., Marchand, H., and Wolsey, L.A. (1998). Cutting planes
for integer programs with general integer variables. Mathematical Programming 81: 201–214.
66 Cerny, V. (1985). A thermodynamical approach to the travelling salesman
problem: an efficient simulation algorithm. Journal of Optimization Theory
and Applications 45: 41–51.
67 Christofides, N. (1976). Worst Case Analysis of a New Heuristic for the
Travelling Salesman Problem. Report 388. GSIA, Carnegie-Mellon University.
68 Christofides, N., Mingozzi, A., and Toth, P. (1981). State space relaxation
procedures for the computation of bounds to routing problems. Networks 11:
145–164.
69 Christofides, N., Mingozzi, A., and Toth, P. (1981). Exact algorithms for the
vehicle routing problem, based on spanning tree and shortest path relaxations. Mathematical Programming 20: 255–282.
70 Chvátal, V. (1973). Edmonds polytopes and a hierarchy of combinatorial problems. Discrete Mathematics 4: 305–337.
71 Chvátal, V. (1983). Linear Programming. New York: Freeman.
72 Clochard, J.M. and Naddef, D. (1993). Using path inequalities in a branch
and cut code for the symmetric travelling salesman problem. In: Proceedings 3rd IPCO Conference (ed. G. Rinaldi and L.A., Wolsey), 291–311.
Louvain-la-Neuve, CIACO.
73 COIN-OR branch-and-cut, or CBC User Guide. https://www.coin-or.org/Cbc/
(accessed 21 April 2020).
74 Conforti, M., Cornuéjols, G., and Zambelli, G. (2014). Integer Programming.
Heidelberg: Springer-Verlag.
75 Conforti, M. and Wolsey, L.A. (2019). “Facet” separation with one linear program. Mathematical Programming 178 (1): 361–380.
76 Constantino, M. (1996). A cutting plane approach to capacitated lot-sizing
with start-up costs. Mathematical Programming 75: 353–376.
77 Constantino, M. (1998). Lower bounds in lot-sizing models: a polyhedral
study. Mathematics of Operations Research 23: 101–118.
78 Cook, S.A. (1971). The complexity of theorem-proving procedures. Proceedings of the 3rd Annual ACM Symposium on Theory of Computing Machinery,
Shaker Heights, OH: ACM, pp. 151–158.
295
296
References
79 Cook, W.J., Cunningham, W.H., Pulleyblank, W.R., and Schrijver, A. (1997).
Combinatorial Optimization. New York: Wiley.
80 Cook, W.J., Kannan, R., and Schrijver, A. (1990). Chvátal closures for mixed
integer programming problems. Mathematical Programming 47: 155–174.
81 Cook, W., Rutherford, T., Scarf, H.E., and Shallcross, D. (1993). An implementation of the generalized basis reduction algorithm for integer programming. ORSA Journal on Computing 5: 206–212.
82 Cornuéjols, G., Sridharan, R., and Thizy, J.M. (1991). A comparison of heuristics and relaxations for the capacitated plant location problem. European
Journal of Operational Research 50: 280–297.
83 Costa, L., Contardo, C., and Desaulniers, G. (2019). Exact branch-priceand-cut algorithms for vehicle routing. Transportation Science 53 (4):
946–985.
84 Cplex (2020). IBM ILOG CPLEX optimization studio. https://www.ibm.com/
em/products/ilog-cplex-optimization-studio (accessed 21 April 2020).
85 Crescenzi, P. and Kann, V. (2005) A compendium of optimization problems. http://www.csc.kth.se/viggo/wwwcompendium/ (accessed 21 April
2020).
86 Crowder, H., Johnson, E.L., and Padberg, M.W. (1983). Solving large scale
zero-one linear programming problems. Operations Research 31: 803–834.
87 Cunha, J.S., Simonetti, L., and Lucena, A. (2016). Lagrangian heuristics for
the quadratic knapsack problem. Computational Optimization and Applications 63: 97–120.
88 Dakin, R.J. (1965). A tree search algorithm for mixed integer programming
problems. Computer Journal 8: 250–255.
89 Danna, E., Rothberg, E., and Pape, C.L. (2005). Exploring relaxation induced
neighborhoods to improve MIP solutions. Mathematical Programming 102:
71–90.
90 Dantzig, G.B. (1957). Discrete variable extremum problems. Operations
Research 5: 266–277.
91 Dantzig, G.B. (1963). Linear Programming and Extensions. Princeton, NJ:
Princeton University Press.
92 Dantzig, G.B., Ford, L.R., and Fulkerson, D.R. (1956). A primal-dual algorithm for linear programming. In: Linear Inequalities and Related Systems
(ed. H. Kuhn and A.W. Tucker), 171–182. Princeton, NJ: Princeton University
Press.
93 Dantzig, G.B., Fulkerson, D.R., and Johnson, S.M. (1954). Solution of a large
scale traveling salesman problem. Operations Research 2: 393–410.
94 Dantzig, G.B. and Wolfe, P. (1960). Decomposition principle for linear programs. Operations Research 8: 101–111.
References
95 Dash, S., Günlük, O., and Wei, D. (2018). Boolean decision rules via column
generation. arXiv:1805.09901v1[cs:AI], May 2018.
96 Desaulniers, G., Desrosiers, J., and Solomon, M.M. (2005). Column Generation. Springer.
97 Desrosiers, J., Dumas, Y., Solomon, M.M., and Soumis, F. (1995). Time
constrained routing and scheduling. In: Network Routing, Handbooks in
Operations Research and Management Science, Chapter 2, vol. 8 (ed. M.O.
Ball, T.L. Magnanti, C.L. Monma, and G.L. Nemhauser), 35–139. Amsterdam:
North-Holland.
98 Desrosiers, J. and Soumis, F. (1989). A column generation approach to the
urban transit crew scheduling problem. Transportation Science 23: 1–13.
99 Desrosiers, J., Soumis, F., and Desrochers, M. (1984). Routing with time
windows by column generation. Networks 14: 545–565.
100 Dorigo, M. and Stützle, T. (2004). Ant Colony Optimization. Cambridge, MA:
MIT Press.
101 Edmonds, J. (1965). Paths, trees and flowers. Canadian Journal of Mathematics 17: 449–467.
102 Edmonds, J. (1965). Maximum matching and a polyhedron with 0-1 vertices.
Journal of Research of the National Bureau of Standards 69B: 125–130.
103 Edmonds, J. (1970). Submodular functions, matroids and certain polyhedra.
In: Combinatorial Structures and Their Applications, Proceedings of the
Calgary International Conference (ed. R. Guy), 69–87. Gordon and Breach.
104 Edmonds, J. (1971). Matroids and the greedy algorithm. Mathematical Programming 1: 127–136.
105 Edmonds, J. and Giles, R. (1997). A min-max relation for submodular functions on graphs. Annals of Discrete Mathematics 1: 185–204.
106 Eksioglu, S.D., Eksioglu, B., and Romijn, H.E. (2007). A Lagrangean heuristic
for integrated production and transportation planning problems in a dynamic,
multi-item, two-layer supply chain. IIE Transactions 39 (2): 191–201.
107 Erlenkotter, D. (1978). A dual-based procedure for uncapacitated facility location. Operations Research 26: 992–1009.
108 Everett, H. III (1963). Generalized Lagrange multiplier method for solving
problems of optimal allocation of resources. Operations Research 11: 399–417.
109 Feo, T.A. and Resende, M.G.C. (1995). Greedy randomized adaptive search
procedures. Journal of Global Optimization 6: 109–134.
110 Fiorini, S., Massar, S., Pokutta, S. et al. (2015). Exponential lower bounds for
polytopes in combinatorial optimization. Journal of the ACM 62 (2): 1–23.
111 Fischetti, M. and Jo, J. (2018). Deep neural networks and mixed integer linear
optimization. Constraints 23: 296–309.
112 Fischetti, M., Glover, F., and Lodi, A. (2005). The feasibility pump. Mathematical Programming 104: 91–104.
297
298
References
113 Fischetti, M., Ljubic, I., and Sinnl, M. (2016). Benders’ decomposition without
separability: a computational study for capacitated facility location problems.
European Journal of Operational Research 253: 557–569.
114 Fischetti, M., Ljubic, I., and Sinnl, M. (2017). Redesigning Benders’ decomposition for large scale facility location. Management Science 63 (7): 2146–2162.
115 Fischetti, M. and Lodi, A. (2003). Local branching. Mathematical Programming 98: 23–47.
116 Fischetti, M. and Salvagnin, D. (2009). Feasibility pump 2.0. Mathematical
Programming Computation 1: 201–222.
117 Fischetti, M. and Salvagnin, D. (2010). An in-out approach to disjunctive
optimization. In: Integration of AI and OR Techniques in Constraint Programming for Combinatorial Optimization Problems, Lecture Notes in Computer
Science, vol. 6140, Proceedings of the 7th International Conference, CPAIOR
2010, Bologna, Italy (14–18 June 2010) (ed. A. Lodi, M. Milano, and P. Toth),
136–140. Springer.
118 Fischetti, M., Salvagnin, D., and Zanette, A. (2010). A note on the selection of
Benders’ cuts. Mathematical Programming 124: 175–182.
119 Fisher, M.L. (1981). The Lagrangean relaxation method for solving integer
programming problems. Management Science 27: 1–18.
120 Fisher, M.L. and Jaikumar, R. (1981). A generalized assignment heuristic for
vehicle routing. Networks 11 (2): 109–124.
121 Fisher, M.L. and Rinnooy Kan, A.H.G. (eds.) (1988). The design, analysis and
implementation of heuristics. Management Science 34: 263–429.
122 Fleischmann, D. (1990). The discrete lot-sizing and scheduling problem. European Journal of Operational Research 44: 337–348.
123 Florian, M. and Klein, M. (1971). Deterministic production planning with
concave costs and capacity constraints. Management Science 18: 12–20.
124 Ford, L.R. Jr. and Fulkerson, D.R. (1956). Maximum flow through a network.
Canadian Journal of Mathematics 8: 399–404.
125 Ford, L.R. Jr. and Fulkerson, D.R. (1962). Flows in Networks. Princeton, NJ:
Princeton University Press.
126 Frangioni, A., Gendron, B., and Gorgone, E. (2017). On the computational
efficiency of subgradient methods: a case study with Lagrangian bounds.
Mathematical Programming Computation 9 (4): 573–604.
127 Fukasawa, R., Longo, H., Lysgaard, J. et al. (2006). Robust
branch-and-cut-and-price for the capacitated vehicle routing problem. Mathematical Programming 106: 491–511.
128 Fulkerson, D.R. and Gross, D.A. (1965). Incidence matrices and interval
graphs. Pacific Journal of Mathematics 15: 833–835.
References
129 Gade, D., Küçükyavuz, S., and Sen, S. (2014). Decomposition algorithms with
parametric Gomory cuts for two-stage stochastic integer programs. Mathematical Programming 144: 39–64.
130 Gambella, C., Ghaddar, B., and Naoum-Sawaya, J. (2019). Optimization
problems for machine learning: a survey. arXiv:1901.05331v3 [math OC],
December 2019.
131 Gamrath, G. (2010). Generic branch-cut-and-price, Diplomarbeit, 1 Fachbereich Mathematik der Technischen Universität Berlin.
132 Gamrath, G., Koch, T., Martin, A. et al. (2015). Progress in presolving for
mixed integer programming. Mathematical Programming Computation 7 (4):
367–398.
133 GAMS (2020). Modeling language. https://gams.com (accessed 21 April 2020).
134 Garey, M.R. and Johnson, D.S. (1979). Computers and Intractability: A Guide
to the Theory of NP-Completeness. San Francisco, CA: Freeman.
135 Gasse, M., Chételat, D., Ferroni, N. et al. (2019). Exact combinatorial optimization with graph convolutional neural networks. arXiv:1906.01629v2
[cs.LG], June 2019.
136 Geoffrion, A.M. (1972). Generalized Benders decomposition. Journal of Optimization Theory and Applications 10: 237–260.
137 Geoffrion, A.M. (1974). Lagrangean relaxation for integer programming.
Mathematical Programming Study 2: 82–114.
138 Geoffrion, A.M. and Graves, G.W. (1974). Multicommodity distribution design
by Benders decomposition. Management Science 20: 822–844.
139 Geoffrion, A.M. and Marsten, R.E. (1972). Integer programming algorithms: a
framework and state-of-the art survey. Management Science 18: 465–491.
140 Ghouila-Houri, A. (1962). Caracterisation des matrices totalement unimodulaires. Comptes rendus de l’Académie des Sciences 254: 1192–1194.
141 Gilmore, P.C. and Gomory, R.E. (1961). A linear programming approach to
the cutting stock problem. Operations Research 9: 849–859.
142 Gilmore, P.C. and Gomory, R.E. (1963). A linear programming approach to
the cutting stock problem: Part II. Operations Research 11: 863–888.
143 Gilmore, P.C. and Gomory, R.E. (1966). The theory and computation of knapsack functions. Operations Research 14: 1045–1074.
144 Gleixner, A., Bastubbe, M., Eifler, L. et al. (2018). The SCIP Optimization
Suite 6.0. ZIB-report 18-26. Zuse Institute Berlin.
145 Glover, F. (1968). Surrogate constraints. Operations Research 16: 741–749.
146 Glover, F. (1986). Future paths for integer programming and links to artificial
intelligence. Computers and Operations Research 13: 533–549.
147 Glover, F. (1989). Tabu search: Part I. ORSA Journal on Computing 1:
190–206.
148 Glover, F. (1990). Tabu search: Part II. ORSA Journal on Computing 2: 4–32.
299
300
References
149 Goemans, M.X. (1994). The Steiner polytope and related polyhedra. Mathematical Programming 63: 157–182.
150 Goffin, J.-L. (1977). On the convergence rates of subgradient optimization
methods. Mathematical Programming 13: 329–347.
151 Goldberg, D.E. (1989). Genetic Algorithms in Search, Optimization, and
Machine Learning. Reading, MA: Addison-Wesley.
152 Golden, B., Raghavan, S., and Wasil, E. (eds.) (2008). The Vehicle Routing
Problem. Springer.
153 Gomory, R.E. (1958). Outline of an algorithm for integer solutions to linear
programs. Bulletin of the American Mathematical Society 64: 275–278.
154 Gomory, R.E. (1960). An Algorithm for the Mixed Integer Problem. RM-2597.
The Rand Corporation.
155 Gomory, R.E. (1963). An algorithm for integer solutions to linear programs.
In: Recent Advances in Mathematical Programming (ed. R. Graves and P.
Wolfe), 269–302. New York: McGraw-Hill.
156 Gomory, R.E. (1965). On the relation between integer and non-integer solutions to linear programs. Proceedings of the National Academy of Sciences of
the United States of America 53: 260–265.
157 Gomory, R.E. (1969). Some polyhedra related to corner problems. Linear
Algebra and its Applications 2: 451–588.
158 Gomory, R.E. and Hu, T.C. (1961). Multi-terminal network flows. SIAM Journal 9: 551–570.
159 Gomory, R.E. and Johnson, E.L. (1972). Some continuous functions related to
corner polyhedra. Mathematical Programming 3: 23–85.
160 Graham, R.L. (1966). Bounds for certain multiprocessing anomalies. Bell
Systems Technical Journal 45: 1563–1581.
161 Gröflin, H. and Liebling, T. (1981). Connected and alternating vectors: polyhedra and algorithms. Mathematical Programming 20: 233–244.
162 Grötschel, M., Lovász, L., and Schrijver, A. (1981). The ellipsoid method and
its consequences in combinatorial optimization. Combinatorica 1: 169–197.
163 Grötschel, M., Lovász, L., and Schrijver, A. (1984). Corrigendum to our paper
“The ellipsoid method and its consequences in combinatorial optimization”.
Combinatorica 4: 291–295.
164 Grötschel, M., Lovasz, L., and Schrijver, A. (1988). Geometric Algorithms and
Combinatorial Optimization. Berlin: Springer-Verlag.
165 Grötschel, M. and Padberg, M.W. (1975). Partial linear characterizations of
the asymmetric travelling salesman polytope. Mathematical Programming 8:
378–381.
166 Grunbaum, B. (1967). Convex Polytopes. New York: Wiley.
References
167 Gu, Z., Nemhauser, G.L., and Savelsbergh, M.W.P. (1999). Lifted flow cover
inequalities for mixed 0–1 integer programs. Mathematical Programming 85:
439–467.
168 Guignard, M. and Kim, S. (1987). Lagrangean decomposition for integer
programming: theory and applications. RAIRO - Operations Research 21:
307–323.
169 Guignard, M. and Spielberg, K. (1981). Logical reduction methods in zero-one
programming. Operations Research 29: 49–74.
170 Günlük, O. and Pochet, Y. (2001). Mixing mixed-integer inequalities. Mathematical Programming 90 (3): 429–457.
171 GUROBI. https://www.gurobi.com (accessed 21 April 2020).
172 Hammer, P.L., Johnson, E.L., and Peled, U.N. (1975). Facets of regular 0-1
polytopes. Mathematical Programming 8: 179–206.
173 Held, M. and Karp, R.M. (1962). A dynamic programming approach to
sequencing problems. Journal of SIAM 10: 196–210.
174 Held, M. and Karp, R.M. (1970). The traveling salesman problem and minimum spanning trees. Operations Research 18: 1138–1162.
175 Held, M. and Karp, R.M. (1971). The traveling salesman problem and minimum spanning trees: Part II. Mathematical Programming 1: 6–25.
176 Held, M., Wolfe, P., and Crowder, H.P. (1974). Validation of subgradient optimization. Mathematical Programming 6: 62–88.
177 Hendel, G. (2018). Adaptive Large Neighbourhood Search for Mixed Integer
Programs. ZIB Report 18-60. Berlin: Konrad-Zuse Institute.
178 Hochbaum, D.S. (2018). Machine Learning and Data Mining with Combinatorial Optimization Algorithms, 109–129. INFORMS TutORials in Operations
Research. Published online: 19 October 2018.
179 Hoffman, A.J. and Kruskal, J.B. (1956). Integral boundary points of convex
polyhedra. In: Linear Inequalities and Related Systems (ed. H.W. Kuhn and
A.W. Tucker), 223–246. Princeton, NJ: Princeton University Press.
180 Holland, J.H. (1975). Adaptation in Natural and Artificial Systems. Ann Arbor,
MI: University of Michigan Press.
181 Ibarra, O.H. and Kim, C.E. (1975). Fast approximations algorithms for the
knapsack and sum of subset problems. Journal of the ACM 22: 463–468.
182 Jena, S.D., Cordeau, J.-F., and Gendron, B. (2017). Lagrangean heuristics
for large-scale dynamic facility location problems with generalized modular
capacities. Informs Journal of Computing 29 (3): 388–404.
183 Jepsen, M., Petersen, B., Spoorendonk, S., and Pisinger, D. (2008). Subset row
inequalities applied to the vehicle routing problem with time windows. Operations Research 56 (2): 497–511.
301
302
References
184 Jepsen, M., Petersen, B., Spoorendonk, S., and Pisinger, D. (2014). A
branch-and-cut algorithm for the capacitated profitable tour problem. Discrete
Optimization 14: 78–96.
185 Jeroslow, R.G. (1972). Cutting plane theory: disjunctive methods. Annals of
Discrete Mathematics 1: 293–330.
186 Johnson, E.L. (1980). Integer Programming - Facets, Subadditivity and Duality
for Group and Semigroup Problems. Philadelphia, PA: SIAM Publications.
187 Johnson, D.S., Demers, A., Ullman, J.D. et al. (1974). Worst case performance
bounds for simple one-dimensional packing algorithms. SIAM Journal on
Computing 3: 299–325.
188 Johnson, E.L., Mehrotra, A., and Nemhauser, G.L. (1993). Min-cut clustering.
Mathematical Programming 62: 133–152.
189 Jornsten, K. and Nasberg, M. (1986). A new Lagrangian relaxation approach
to the generalized assignment problem. European Journal of Operational
Research 27: 313–323.
190 Junger, M., Liebling, T., Naddef, D. et al. (eds.) (2010). 50 Years of Integer
Programming 1958–2008. Heidelberg: Springer-Verlag.
191 Jünger, M., Reinelt, G., and Thienel, S. (1995). Practical problem solving with
cutting plane algorithms in combinatorial optimization. In: Combinatorial
Optimization, DIMACS Series in Discrete Mathematics and Computer Science
(ed. W.J. Cook, L. Lovasz, and P. Seymour, 111–152. AMS.
192 Karmarkar, U.S. and Schrage, L. (1985). The deterministic dynamic product
cycling problem. Operations Research 33: 326–345.
193 Karp, R.M. (1972). Reducibility among combinatorial problems. In: Complexity of Computer Computations (ed. R.E. Miller and J.W. Thatcher), 85–103.
New York: Plenum Press.
194 Karp, R.M. (1975). On the complexity of combinatorial problems. Networks 5:
45–68.
195 Kellerer, H., Pferschy, U., and Pisinger, D. (2004). Knapsack Problems. Berlin:
Springer-Verlag.
196 Khalil, E.B., Le Bodic, P., Song, L. et al. (2016). Learning to branch in mixed
integer programming. Proceedings of the 30th AAAI Conference on Artificial
Intelligence. Phoenix, Arizona, pp. 724–731.
197 Kirkpatrick, S., Gelatt, C.D. Jr., and Vecchi, M.P. (1983). Optimization by simulated annealing. Science 220: 671–680.
198 Korte, B. and Vygen, J. (2005). Combinatorial Optimization: Theory and
Algorithms, 3e. Berlin: Springer-Verlag.
199 Kruskal, J.B. (1956). On the shortest spanning subtree of a graph and the
traveling salesman problem. Proceedings of the American Mathematical Society
7: 48–50.
References
200 Kuhn, H.W. (1955). The Hungarian method for the assignment problem.
Naval Research Logistics Quarterly 2: 83–97.
201 Land, A.H. and Doig, A.G. (1960). An automatic method for solving discrete
programming problems. Econometrica 28: 497–520.
202 Laporte, G. and Louveaux, F.V. (1993). The integer L-shaped method for
stochastic integer programs with complete recourse. Operations Research
Letters 13: 133–142.
203 Laporte, G., Nickel, S., and da Gama, F.S. (eds.) (2015). Location Science.
Springer.
204 Lawler, E.L. (1976). Combinatorial Optimizaton: Networks and Matroids. New
York: Holt, Rinehart and Winston.
205 Lemaréchal, C. (2001). Lagrangian relaxation. In: Computational Combinatorial Optimization: Papers from the Spring School Held in Schloss Dagstuhl,
May 15–19, 2000, Lecture Notes in Computer Science 2241 (ed. M. Junger and
D. Naddef), 112–156. Berlin: Springer-Verlag.
206 Lenstra, H.W. Jr. (1983). Integer programming with a fixed number of variables. Mathematics of Operations Research 8: 538–547.
207 Letchford, A.N., Eglese, R.W., and Lysgaard, J. (2002). Multistars, partial
multistars and the capacitated vehicle routing problem. Mathematical Programming 94: 21–40.
208 Lin, S. and Kernighan, B.W. (1973). An effective heuristic algorithm for the
traveling-salesman problem. Operations Research 21 (2): 498–516.
209 Linderoth, J. and Savelsbergh, M.W.P. (1999). A computational study of
search strategies for mixed integer programming. INFORMS Journal of Computing 11 (2): 173–187.
210 LINDO. Mathematical programming system. https://lindo.com (accessed 21
April 2020).
211 Little, J.D.C., Murty, K.G., Sweeney, D.W., and Karel, C. (1963). An algorithm
for the traveling salesman problem. Operations Research 11: 972–989.
212 Lodi, A. and Zarpellon, G. (2017). On learning and branching: a survey. TOP
25: 207–236.
213 Lovász, L. and Plummer, M.D. (1986). Matching Theory. Amsterdam:
North-Holland.
214 Lovász, L. and Schrijver, A. (1991). Cones of matrices and set functions and
0-1 optimization. SIAM Journal on Optimization 1: 166–190.
215 Lysgaard, J. (2003). CVRPSEP: a package of separation routines for the capacitated vehicle routing problem. www.asb.dk/-lys (accessed 21 April 2020).
216 Lysgaard, J., Letchford, A.N., and Eglese, R.W. (2004). A new branch-and-cut
algorithm for the capacitated vehicle routing problem. Mathematical Programming 100 (2): 423–445.
303
304
References
217 Magnanti, T.L. and Wolsey, L.A. (1995). Optimal trees. In: Network Models,
Handbooks in Operations Research and Management Science, vol. 7 (ed.
M.O. Ball, T.L. Magnanti, C.L. Monma, and G.L. Nemhauser), 503–615.
Amsterdam: North-Holland.
218 Magnanti, T.L. and Wong, R.T. (1981). Accelerating Benders decomposition:
algorithmic enhancement and model selection criteria. Operations Research
29: 464–484.
219 Maher, S.J. Implementing the Branch-and-Cut Approach for a general purpose Benders Decomposition Framework. Report. Exeter, United Kingdom:
College of Engineering, Mathematics and Physical Sciences, University of
Exeter.
220 Marchand, H. and Wolsey, L.A. (1999). The 0-1 knapsack problem with a single continuous variable. Mathematical Programming 85: 15–33.
221 Margot, F. (2002). Pruning by isomorphism in branch-and-cut. Mathematical
Programming 94: 71–90.
222 Margot, F. (2003). Exploiting orbits in symmetric ILP. Mathematical Programming 98: 3–21.
223 Margot, F. (2010). Symmetry in integer linear programming. In: 50 Years of
Integer Programming 1958–2008, Chapter 17 (ed. M. Junger, T. Liebling, D.
Naddef et al.), 647–686. Heidelberg: Springer-Verlag.
224 Martello, S. and Toth, P. (1990). Knapsack Problems: Algorithms and Computer Implementations. Chichester: Wiley.
225 Martin, R.K. (1991). Using separation algorithms to generate mixed integer
model reformulations. Operations Research Letters 10 (3): 119–128.
226 Martin, R.K. (1999). Large Scale Linear and Integer Optimization: A Unified
Approach. Boston, MA: Kluwer Academic Publishers.
227 Metropolis, N., Rosenbluth, A., Rosenbluth, H. et al. (1953). Equations of
state calculations by fast computing machines. Journal of Chemical Physics
21: 1087–1091.
228 Minkowski, H. (1896). Geometrie der Zahlen. Leibzig: Teubner.
229 Mirchandani, P.B. and Borenstein, D. (2017). A Lagrangian heuristic for
the real-time vehicle rescheduling problem. Mathematical Programming
Computation 9 (4): 573–604.
230 Mirchandani, P.B. and Francis, R.L. (eds.) (1990). Discrete Location Theory.
New York: Wiley.
231 Morrison, D.R., Jacobson, S.H., Sauppe, J.J., and Sewell, E.C. (2016).
Branch-and-bound algorithms: a survey of recent advances in searching,
branching, and pruning. Discrete Optimization 19: 79–102.
232 Nemhauser, G.L. and Trotter, L.E. (1974). Properties of vertex packing and
independence system polyhedra. Mathematical Programming 6: 48–61.
References
233 Nemhauser, G.L. and Wolsey, L.A. (1988). Integer and Combinatorial Optimization. New York: Wiley.
234 Nemhauser, G.L. and Wolsey, L.A. (1990). A recursive procedure for generating all cuts for 0-1 mixed integer programs. Mathematical Programming 46:
379–390.
235 Norman, R.Z. and Rabin, M.D. (1959). An algorithm for the minimum cover
of a graph. Proceedings of the American Mathematical Society 10: 315–319.
236 Osman, I.H. and Laporte, G. (1996). Metaheuristics: a bibliography. Annals of
Operations Research 63: 513–623.
237 Ostrowski, J. (2009). Symmetry in integer programming. PhD in Industrial
and Systems Engineering. Lehigh University.
238 Ostrowski, J., Linderoth, J., Rossi, F., and Smriglio, S. (2011). Orbital branching. Mathematical Programming 126: 147–178.
239 Padberg, M.W. (1973). On the facial structure of set packing polyhedra. Mathematical Programming 5: 199–215.
240 Padberg, M. and Rao, M. (1982). Odd minimum cut-sets and b-matchings.
Mathematics of Operations Research 7 (1): 67–80.
241 Padberg, M.W. and Rinaldi, G. (1991). A branch and cut algorithm for resolution of large scale symmetric traveling salesman problems. SIAM Review 33:
60–100.
242 Padberg, M.W., Van Roy, T.J., and Wolsey, L.A. (1985). Valid linear inequalities for fixed charge problems. Operations Research 33: 842–861.
243 Papadimitriou, C.H. and Stieglitz, K. (1982). Combinatorial Optimization:
Algorithms and Complexity. Englewood Cliffs, NJ: Prentice-Hall.
244 Papadimitriou, C.H. and Yannakakis, M. (1984). The complexity of facets
(and some facets of complexity). Journal of Computing and System Science 28:
244–259.
245 Pecin, D., Pessoa, A., Poggi, M., and Uchoa, E. (2017). Improved branchcut-and-price for capacitated vehicle routing. Mathematical Programming
Computation 9: 61–100.
246 Pessoa, A., De Aragao, M.P., and Uchoa, E. (2008). Robust branch-cutand-price algorithms for vehicle routing problems. In: The Vehicle Routing
Problem (ed. B. Golden, S. Raghavan, and E. Wasil), 297–325. Springer.
247 Pessoa, A., Sadykov, R., Uchoa, E., and Vanderbeck, F. (2018). Automation
and combination of linear-programming based stabilization techniques in
column generation. INFORMS Journal on Computing 30 (2): 339–360.
248 Pessoa, A., Sadykov, R., Uchoa, E., and Vanderbeck, F. (2019). A generic
exact solver for vehicle routing and related problems. In: Integer Programming and Combinatorial Optimization, Lecture Notes in Computer Science, vol.
11480, 354–369. Springer.
305
306
References
249 Pfetsch, M. and Rehn, T. (2019). A computational comparison of symmetry
handling methods for mixed integer programs. Mathematical Programming
Computation 11 (1): 37–93.
250 Pochet, Y. and Wolsey, L.A. (2006). Production Planning by Mixed Integer Programming, Springer Series in Operations Research and Financial Engineering.
New York: Springer.
251 Prim, R.C. (1957). Shortest connection networks and some generalizations.
Bell System Technological Journal 36: 1389–1401.
252 Psaraftis, H.N. (1980). A dynamic programming approach for sequencing
groups of identical jobs. Operations Research 28: 1347–1359.
253 Pulleyblank, W.R. (1983). Polyhedral combinatorics. In: Mathematical Programming: The State of the Art (ed. A. Bachem, M., Grotschel, and B. Korte),
312–345. Berlin: Springer-Verlag.
254 Queyranne, M. and Schulz, A.S. (1994). Polyhedral Approaches to Machine
Scheduling, Preprint 408/1994. Berlin: Department of Mathematics, Technical
University of Berlin.
255 Rahmaniani, R., Ahmed, S., Crainic, T.G. et al. (2018). The Benders Dual
Decomposition Method. CIRRELT-2018-03. Université de Montréal.
256 Rahmaniani, R., Crainic, T.G., Gendreau, M., and Rei, W. (2017). The Benders
decomposition algorithm: a literature review. European Journal of Operational
Research 259: 801–817.
257 Rardin, R. and Choe, U. (1979). Tighter Relaxations of Fixed Charge Network
Flow Problems. Industrial and Systems Engineering Report J-79-18. Georgia
Institute of Technology.
258 Rhys, J.M.W. (1970). A selection problem of shared fixed costs and network
flows. Management Science 17: 200–207.
259 Rothberg, E. (2007). An evolutionary algorithm for polishing mixed integer
programming solutions. INFORMS Journal of Computing 19 (4): 534–541.
260 Rothvoss, T. (2014). The matching polytope has exponential extension complexity. Proceedings of the 46th ACM Symposium on Theory of Computing.
New York, NY, pp. 263–272.
261 Ryan, D.M. and Foster, B.A. (1981). An integer programming approach
to scheduling. In: Computer Scheduling of Public Transport Urban Passenger Vehicle and Crew Scheduling (ed. A. Wren), 269–280. Amsterdam:
North-Holland.
262 Sadykov, R., Vanderbeck, F., Pessoa, A. et al. (2019). Primal heuristics for
branch-and-price: the assets of diving methods. INFORMS Journal on Computing, 31(2), 251–267.
263 Savelsbergh, M.W.P. (1993). A branch and price algorithm for the generalized
assignment problem. Operations Research 45 (6): 831–841.
References
264 Savelsbergh, M.W.P. (1994). Preprocessing and probing techniques for mixed
integer programming problems. ORSA Journal on Computing 6: 445–454.
265 Schrijver, A. (1980). On cutting planes. Annals of Discrete Mathematics 9:
291–296.
266 Schrijver, A. (1986). Theory of Linear and Integer Programming. Chichester:
Wiley.
267 Schrijver, A. (2003). Combinatorial Optimization: Polyhedra and Efficiency.
Berlin, Heidelberg: Springer.
268 SCIP (2012). Mathematical optimization: solving problems using SCIP and
Python. https://sur.ly/o/scipbook.readthedocs.io (accessed 21 April 2020).
269 Seymour, P.D. (1980). Decomposition of regular matroids. Journal of Combinatorial Theory B28: 305–359.
270 Sherali, H. and Adams, W. (1990). A hierarchy of relaxations between the
continuous and convex hull representations for zero-one programming problems. SIAM Journal on Discrete Mathematics 3: 411–430.
271 Stoer, J. and Witzgall, C. (1970). Convexity and Optimization in Finite Dimensions. Springer.
272 Sutter, A., Vanderbeck, F., and Wolsey, L.A. (1998). Optimal placement of
add/drop multiplexers: heuristic and exact algorithms. Operations Research
46: 719–728.
273 Takamizawa, K., Nishizeki, T., and Saito, N. (1982). Linear time computability of combinatorial problems on series parallel graphs. Journal of ACM 29:
623–641.
274 Tang, Y., Agrawal, S., and Faenza, Y. (2018). Reinforcement learning for integer programming: learning to cut. arXiv:1810.03218v2 [cs.LG], November
2018.
275 Toledo, C.F.M., Arantes, M.S., Hossomi, M.Y.B. et al. (2015). A relax-and-fix
with fix-and-optimize heuristic applied to multi-level lot-sizing problems.
Journal of Heuristics 21: 687–717.
276 Toth, P. and Vigo, D. (eds.) (2014). The Vehicle Routing Problem, SIAM Monographs on Discrete Mathematics and Applications, 2e. SIAM.
277 Valério de Carvalho, J.M. (2002). LP models for bin packing and cutting stock
problems. European Journal of Operational Research 141 (2): 253–273.
278 Vance, P.H., Barnhart, C., Johnson, E.L., and Nemhauser, G.L. (1994). Solving
binary cutting stock problems by column generation and branch-and-bound.
Computational Optimization and Applications 3: 111–130.
279 Vanderbeck, F. (1994). Decomposition and column generation for integer
programs. PhD thesis. Louvain-la-Neuve, Belgium: Faculté des Sciences
Appliqées, Université Catholique de Louvain.
307
308
References
280 Vanderbeck, F. (1996). Computational study of a column generation algorithm for bin packing and cutting stock problems. Mathematical Programming 86 (3): 565–594.
281 Vanderbeck, F. and Wolsey, L.A. (1996). An exact algorithm for IP column
generation. Operations Research Letters 19: 151–159.
282 Vanderbeck, F. and Wolsey, L.A. (2010). Reformulation and decomposition
of integer programs. In: 50 Years of Integer Programming 1958–2008 (ed. M.
Junger, T. Liebling, D. Naddef et al.), 431–504. Heidelberg: Springer-Verlag.
283 Vanderbei, R.J. (1996). Linear Programming: Foundations and Extensions.
Boston, MA: Kluwer.
284 Van Roy, T.J. and Wolsey, L.A. (1987). Solving mixed 0-1 problems by automatic reformulation. Operations Research 35: 45–57.
285 Van Slyke, R.M. and Wets, R. (1969). L-Shaped linear programs with applications to optimal control and stochastic programming. SIAM Journal on
Applied Mathematics 17: 638–663.
286 Vazirani, V.V. (2003). Approximation Algorithms. Berlin: Springer-Verlag.
287 Wagelmans, A.P.M., van Hoesel, C.P.M., and Kolen, A.W.J. (1992). Economic lot-sizing: an O(n log n) algorithm that runs in linear time in the
Wagner–Whitin case. Operations Research 40 (Suppl. 1): 145–156.
288 Wagner, H.M. and Whitin, T.M. (1958). Dynamic version of the economic lot
size model. Management Science 5: 89–96.
289 Weismantel, R. (1997). On the 0/1 knapsack polytope. Mathematical Programming 77: 49–68.
290 Weninger, D. and Wolsey, L.A. (2019). Benders’ algorithm with
(mixed)-Integer subproblems. Core Discussion Paper 2019–20.
Louvain-la-Neuve, Belgium: UCLouvain.
291 Weyl, H. (1950). The elementary theory of convex polyhedra. In: Contributions to the Theory of Games I (ed. H.W. Kuhn and A.W. Tucker), 3–18.
Princeton, NJ: Princton University Press.
292 Williamson, D.P. (2019). Network Flow Algorithms. New York: Cambridge
University Press.
293 Williamson, D.P. and Shmoys, D.B. (2011). The Design and Analysis of
Approximation Algorithms. Cambridge University Press.
294 Wolsey, L.A. (1975). Faces for a linear inequality in 0-1 variables. Mathematical Programming 8: 165–178.
295 Wolsey, L.A. (1975). Facets and strong valid inequalities for integer programs.
Operations Research 24: 367–372.
296 Wolsey, L.A. (1977). Valid inequalities, covering problems and discrete
dynamic programs. Annals of Discrete Mathematics 1: 527–538.
297 Wolsey, L.A. (1981). A resource decomposition algorithm for general mathematical programs. Mathematical Programming Studies 14: 244–257.
References
298 Wolsey, L.A. (1990). Valid inequalities for mixed integer programs with generalised and variable upper bound constraints. Discrete Applied Mathematics 25:
251–261.
299 Wong, R.T. (1980). Integer programming formulations of the traveling salesman problem. Proceedings of 1980 IEEE International Conference on Circuits
and Computers. Port Chester, NY, pp. 149–152.
300 Wright, S. (1997). Primal-Dual Interior Point Algorithms. Philadelphia, PA:
SIAM Publications.
301 XPRESS. https://www.fico.com/en/products/fico-xpress-optimization
(accessed 21 April 2020).
302 Yannakakis, M. (1991). Expressing combinatorial optimization problems by
linear programs. Journal Computer and System Sciences 43: 441–466.
303 Zangwill, W.I. (1966). A deterministic multi-period production scheduling
model with backlogging. Management Science 13: 105–119.
304 Ziegler, G.M. (1995). Lectures on Polytopes. New York: Springer-Verlag.
309
311
Index
97
98
97
-hard 104
3 − SAT 101
1-tree 29, 198
2-partition problem 110
a
Active node 117
Affine independence 170
Algorithm
primal-dual 69
Aspiration level 256
Assignment problem 5, 8, 67,
69, 95
generalized 208, 258
b
Backlogging 92
Benders’ algorithm
integer subproblems 244
LP subproblem 242
multiple subproblems 240
reformulation 236
Binary classification problem
286
Bounding 117
Branch-and-bound 116, 123
estimations 122
LP-based 120
tree storage 122
Branch-and-cut 123, 186, 284
Benders 237
performance 279
Branch-and-price 219
branching rules 225
Branch-cut-and-price 222, 226
Branching 117
Branching scheme 219
c
Changeover costs/times 278, 280
Chinese postman problem 77
Chvátal-Gomory inequality
145, 284
Clique 39
Clique finding 133
Clustering problem 224
co- 111
Column generation 213, 216, 285
Combinatorial optimization problem 4
Complementarity condition 196
Complexity 71, 95
extended formulation 105
optimization and separation 104
Integer Programming, Second Edition. Laurence A. Wolsey.
© 2021 John Wiley & Sons, Inc. Published 2021 by John Wiley & Sons, Inc.
Companion website: www.wiley.com/go/wolsey/integerprogramming2e
312
Index
Consecutive 1’s property 60
Constraint
aggregation 275
complicating 195
joint 203
redundant 130
Convergence 203
Convex function 201
Convex hull 15, 74, 201
proof 172
property 43, 52
Cover 175
excess 179
generalized 179
inequality 176
extended 176
separation 178
Cut
directed 53
minimum s-t 49
Cut pool 186
Cut-set constraint 8
Cutting plane algorithm 149, 280
Gomory fractional 150
Cutting stock problem 89
Discrete alternatives 11
Disjunction 11, 158
Divide and conquer 113
Dominance 168
Dual
Lagrangian 196, 207
matching 31
strong 30
superadditive 32
weak 30–31
Dual bound 26, 203
Duality 30, 116
Dynamic programming 79, 229
recursion 80
e
Efficient algorithm 43
Efficient optimization property 43
Enumeration 8
Enumeration tree 114
Extended formulation
integer knapsack 88
perfect matching polytope 105
stable set polytope 105
Extreme point 15, 33
Extreme ray 33
d
D-inequality 164
Dantzig-Wolfe reformulation
convexification 215
discretization 215
see Column generation 205
Decision problem 96
Decomposition 113, 148, 168, 213
Benders 236
Lagrangian relaxation 195
multiple subproblems 222
partitioning problems 223
Digraph 53
acyclic 79
Dimension 170
f
Face 170
Facet 170
generation 242
proof 172
Facility location problem
capacitated 140
uncapacitated 10, 13, 16, 37, 95, 148,
197, 241, 253
Farkas’ Lemma 33
Feasibilty cut 237
Fixed costs 9
Flow
decomposition 90
Index
directed 53
Flow conservation constraint 279
Flow cover inequality 169, 275
separation 181
Forest 50
Formulation 5, 12
mixed integer 9
better 16
extended 14, 58
ideal 15
improved 272
strong 148
weak 148
Fourier-Motzkin elimination 41
local search 36, 253
nearest neighbor 253
proximity search 261
relax-and-fix 262, 281
RINS 261
worst case analysis
106
i
In-out approach 242
Incidence matrix 6
node-edge
31
Incidence vector
5
Incumbent 36, 119
Independent set 56
g
Inequality strengthening 133
Generalized transportation problem
142
Genetic algorithm 257
Gomory cut 286
fractional 151
mixed integer 155
Graph
bipartite 65
connected 50
Eulerian 107
Graph equipartition problem 37, 257
Greedy algorithm 51, 54
Input length 97
Integer program 3, 95, 98
binary 3, 99
mixed 3, 141
0–1
140
totally unimodular 95
k
Knapsack problem
0–1 6, 8, 13, 16, 35, 85, 95, 98, 100,
140, 175, 188
integer
29, 86, 106
h
Heuristic 32, 251
2-exchange 253
construction 259
dive-and-fix 260
extended formulation 264
feasibility pump 260
greedy 35, 206, 252
improvement 261
Lagrangian 205
large neighborhood search 263
local branching 261
l
Labeling
65
Lagrange multiplier 196
Lagrangian decomposition 211
Lagrangian dual 196, 202
solution complexity
207
strength 200
Lagrangian relaxation 195, 283
Lift-and-project 159
Lifting 177
313
314
Index
Linear program 3, 34
Linear programming
dual 68
Local optimality 36
Logical inequalities 131
Lot-sizing problem
capacitated 100, 275
constant capacity 149
multi-item 223, 277
uncapacitated 10, 17, 80, 95, 97, 272
m
Machine learning 285
Master problem 215
Benders 237
convexity constraint 216
restricted 216
Matching 63
bipartite 65
blossom inequality 73
maximal 111
maximum cardinality 31
maximum weight 95
non-bipartite 73
perfect 75, 105
Matroid 55
Maximum flow problem 49, 95, 184
Maximum weight tree problem 50, 95
Minkowski’s Theorem 33
MIR inequality 153, 155, 275
Mixed integer programming system
271, 283
Modeling language 269
Multiplexer assignment problem 282
n
Neighborhood 36
Network flow problem
fixed charge 58, 80, 179, 270
minimum cost 46
No-good cut 246
Node
exposed 63
predecessor 83
successor 83
Node cover 31, 63
minimum cardinality 31
problem 101
Node selection 118
o
Odd hole 163
Odd set edge cover 74
Optimal subtour problem 183
Optimality conditions 25
Optimality cut 237
Optimization problem 104
Orbital branching 126
p
Path
alternating 63
augmenting 63, 65
shortest 79
Performance guarantee
a posteriori 251
a priori 251
Polyhedron 12
minimal description 170
Polynomial algorithm 97
Polynomial reduction 98
Preprocessing 129
linear program 129
bound tightening 129
integer program 131
Presolve
see Preprocessing 129
Primal bound 25, 34
Primal heuristic 251
Principle of optimality 80
Priorities 126, 284
Index
Problem
difficult 96
easy 43, 96
legitimate 96
Production routing problem 264
Projection 17
Prune
by bound 115
by infeasibility 116
by optimality 115
Pseudo-costs 124
q
Quadratic 0–1 problem 29, 184
r
Reduced cost fixing 137
Reduction lemma 96, 99
Reformulation
a priori 147
automatic 149
Relaxation 26, 116
combinatorial 28
Lagrangian 29
linear programming 27
Reoptimization 118
Restriction 34
Root of a tree 83
Rounding 4
integer 142
mixed integer 142
Run-times 280
Running time 97
s
Satisfiability problem 99
Search
best-node first 122
depth-first 122
Semi-continuous variables 126
Separation problem 43, 100, 150
subtour constraints 183
Set covering problem 6, 8, 95, 206
Shortest path problem 48, 95
resource-constrained 213
Simulated annealing 256, 285
Software 269
SOS1 125
SOS2 125
Special ordered sets 125
Split cut 156
Stable set 39, 141
Start-up 278, 280
Steiner tree problem 57, 95
Stochastic Program
2-stage with recourse 241
Strong branching 124, 286
Strong dual 49
property 43
Subgradient 202
Subgradient algorithm 202
Submodular
optimization problem 54
polyhedron 54
rank function 55
set function 54
Subroutine optimization library 271
Subtour
elimination constraint 8
generalized 183
separation 183
Subtree
of a tree problem 83
Surrogate Duality 212
Symmetry breaking 126, 284
t
Tabu search 255
list 255
Totally dual integral 56
315
316
Index
Totally unimodular 44, 47, 57, 184
Tour 28
2-optimal 253
Traveling salesman problem 7, 9, 28, 95
geometric 203
prize collecting 183
symmetric 28, 36, 98, 107, 198
heuristic 107
Tree 50
Triangle inequality 107
v
Valid inequality 139, 273
disjunctive 149
for IP 143
for LP 143
for Matching 144
mixed 0–1 179
mixed integer 153
redundant 168
strong 167–168
Variable
fixing 130, 206
most fractional 122
Vehicle routing problem
capacitated 226
ng-route 229
load formulation 230
q2-route 227
subtour constraints 228
w
Walk 107
Weyl’s theorem 41
k
1
Integer Programming: 2nd Edition
Solutions to Certain Exercises in IP Book
k
Chapter 1. Exercises 3, 6–8, 10, 16
Chapter 2. Exercises 1, 3, 7, 9, 11
Chapter 3. Exercises 2, 3, 8, 12, 14, 16
Chapter 4. Exercises 2, 6, 9, 12, 13
Chapter 5. Exercises 4, 5, 8, 11
Chapter 6. Exercises 1, 5, 9, 11, 12
Chapter 7. Exercises 3, 4, 10, 12
Chapter 8. Exercises 2, 4, 6, 8, 12, 17
Chapter 9. Exercises 3, 6, 16, 17
Chapter 10. Exercises 2, 4, 5, 6
Chapter 11. Exercises 1, 3
Chapter 12. Exercises 1, 2, 4
Chapter 13. Exercise 1
Chapter 14. Exercises 1, 3, 5
k
Solutions to Certain Exercises in Chapter 1
3.
Modeling disjunctions.
(i) Extend the formulation of discrete alternatives of Section 1.5 to the
union of two bounded polyhedra (polytopes) Pk = {y ∈ Rn ∶ Ak y ≤ bk ,
0 ≤ y ≤ u} for k = 1, 2 where maxk maxi {aki y − bki ∶ 0 ≤ y ≤ u} ≤ M.
Integer Programming, Second Edition. Laurence A. Wolsey.
© 2021 John Wiley & Sons, Inc. Published 2021 by John Wiley & Sons, Inc.
Companion website: www.wiley.com/go/wolsey/integerprogramming2e
k
k
2
Integer Programming: 2nd Edition
(ii) Show that an extended formulation for P1 ∪ P2 is the set Q:
y = 𝑤1 + 𝑤2
Ak 𝑤k ≤ bk xk
for k = 1, 2
0 ≤ 𝑤k ≤ uxk
for k = 1, 2
x1 + x2 = 1
y ∈ ℝn , 𝑤k ∈ ℝn , xk ∈ {0, 1} for k = 1, 2.
Solution:
Ak y ≤ bk +M𝟏𝛿k k ∈ [1, 2]
0≤y ≤ u
𝛿 1 + 𝛿2 = 1
k ∈ [1, 2]
𝛿k ∈ {0, 1}
(ii) First we show that projy (Q) ⊆ P1 ∪ P2 .
If x1 = 1, then 𝑤2 = x2 = 0 leaving
(i)
y = 𝑤1 ,
A1 𝑤1 ≤ b1 ,
0 ≤ 𝑤1 ≤ u
and thus y ∈ P1 . Similarly, if x2 = 1, it follows that y ∈ P2 .
Conversely, if y ∈ P1 ∪ P2 , suppose wlog that y ∈ P1 . Then (y, 𝑤1 , 𝑤2 ,
x1 , x2 ) ∈ Q with 𝑤1 = y, 𝑤2 = 0, x1 = 1, x2 = 0.
k
6.
Prove that the set of feasible solutions to the formulation of the traveling
salesman problem in Section 1.3 is precisely the set of incidence vectors of
tours.
Solution:
{
The solutions of the set
x ∈ ℤ+n(n−1) ∶
∑
j∶j≠i
xij = 1 i ∈ [1, n],
∑
i∶i≠j
}
xij = 1 j ∈ [1, n]
are assignments, namely a set of disjoint cycles, see Figure 1.2. The subtour elimination constraints eliminate any solution consisting of two or more
cycles. Thus, the only solutions remaining are the tours.
7.
The QED Company must draw up a production program for the next nine
weeks. Jobs last several weeks and once started must be carried out without interruption. During each week, a certain number of skilled workers are
required to work full-time on the job. Thus, if job i lasts pi weeks, li,u workers
are required in week u for u = 1, … , pi . The total number of workers available
in week t is Lt . Typical job data (i, pi , li1 , · · · , lipi ) is shown below.
k
k
k
Integer Programming: 2nd Edition
Job
Length
Week1
Week2
Week3
Week4
1
3
2
3
1
—
2
2
4
5
—
—
3
4
2
4
1
5
4
4
3
4
2
2
5
3
9
2
3
—
3
(i) Formulate the problem of finding a feasible schedule as an IP.
(ii) Formulate when the objective is to minimize the maximum number of
workers used during any of the nine weeks.
(iii) Job 1 must start at least two weeks before job 3. Formulate.
(iv) Job 4 must start not later than one week after job 5. Formulate.
(v) Jobs 1 and 2 both need the same machine, and cannot be carried out
simultaneously. Formulate.
Solution:
k
(i) Let xti = 1 if job i starts in period t.
Each job i must start in some period and terminate before the end of the
time horizon
∑
9−pi +1
xui = 1 i ∈ [1, 5].
u=1
If job i starts in period u, the number of workers required by job i in
period t is 𝓁i,t−u+1 for t ∈ [u, u + pi − 1]. So the bound on the number of
workers available in period t gives:
t
5
∑
∑
𝓁i,t−u+1 xui ≤ Lt t ∈ [1, 9].
i =1 u=t−pi +1
The remaining constraints are xti ∈ {0, 1} and xui = 0 if u > 9 − pi + 1.
∑5 ∑t
(ii) Using (i), let 𝜂t = i=1 u=t−pi +1 𝓁i,t−u+1 xui be the number of workers
used in period t. Add the constraints 𝜂t ≤ 𝜂 and the objective function
min 𝜂.
(iii) If job 1 has not started in the first t periods, job 3 cannot start in the first
t + 2 periods.
t
∑
u=1
xu1 ≥
t+2
∑
xu3 t ∈ [1, 7].
u=1
k
k
k
4
Integer Programming: 2nd Edition
(iv) If job 5 has started in the first t periods, job 4 must have started in the
first t + 1 periods.
t
∑
xu5 ≤
u=1
t+1
∑
xu4 t ∈ [1, 8].
u=1
(v) Jobs 1 and 2 cannot both be under way in period t.
t
∑
u=t−pi +1
8.
t
∑
xu1 +
xu2 ≤ 1 t ∈ [1, 9].
u=t−p2 +1
Show that the uncapacitated facility location problem of Section 1.5 with a
set N = {1, … , n} of depots can be written as the COP
{
}
∑
min c(S) +
fj ,
S⊆N
j∈S
where c(S) =
∑m
i=1 minj∈S cij .
Solution: Suppose (x, y) is an optimal solution and let S = {j ∈ N ∶ xj = 1}.
∑
∑
Then, j∈S fj = j∈N fj xj .
∑
∑
Also for fixed i ∈ M, as 0 ≤ yij ≤ xj = 0 for j ∉ S, min{ j∈N cij yij ∶ j∈N yij =
∑
∑
1, yi. ∈ ℝn+ } = min{ j∈S cij yij ∶ j∈S yij = 1, yi. ∈ ℝn+ } = minj∈S cij . The result
follows.
k
10.
A set of n jobs must be carried out on a single machine that can do only one
job at a time. Each job j takes pj hours to complete. Given job weights 𝑤j for
j = 1, … , n, in what order should the jobs be carried out so as to minimize
the weighted sum of their start times? Formulate this scheduling problem as
a mixed integer program.
Solution 1:
job j.
min
Let 𝛿ij = 1 if job i precedes job j and let tj be the start-time of
n
∑
𝑤j tj
j=1
tj ≥
∑
pi 𝛿ij
i∶i≠j
𝛿ij + 𝛿ji = 1 1 ≤ i < j ≤ n
𝛿ij + 𝛿jk + 𝛿ki ≤ 2 ∀i, j, k, i ≠ j ≠ k
𝛿ij ∈ {0, 1} ∀i, j, i ≠ j
k
(1)
k
k
Integer Programming: 2nd Edition
5
Note that if no other constraints are present, the constraints (1) and the integrality of the 𝛿ij can be dropped. The resulting linear program has optimal
𝑤
𝑤
solutions with 𝛿ij ∈ {0, 1} satisfying (1) in which i precedes j if p i > p j . This
i
j
is commonly known as Smith’s rule.
Solution 2: (Processing times pj are integer). Let yit = 1 if job i starts in
period t.
min
n
∑
∑
𝑤j ( tyjt )
t
j=1
∑
yit = 1 ∀ i
(2)
yju ≤ 1 ∀ t
(3)
t
t
∑ ∑
j
u=t−pj +1
y ∈ {0, 1}nT
T is the time horizon. The constraint (2) ensures that job i is started and (3)
that there is at most one job active at time t.
k
16.
Frequency Assignment. Frequencies from the range {1, … , 6} must be
assigned to 10 stations. For each pair of stations, there is an interference
parameter which is the minimum amount by which the frequencies of the
two stations must differ. The pairs with nonzero parameter are given below:
e = (5, 7) (2, 3) (3, 4) (4, 5) (5, 6) (6, 7) (7, 8) (8, 9)
3
2
4
2
3
1
1
2
e = (9, 10) (1, 8) (2, 10) (3, 10) (5, 10) (7, 10) (2, 5) (5, 9)
3
2
1
1
4
2
2
2
The goal is to minimize the difference between the smallest and largest frequency assigned. Formulate and solve.
Solution: Let xi ∈ ℤ ∩ [1, 6] be the value assigned to station i = 1, … , n.
Let e = (i, j) with i < j be the station pairs whose frequencies need to be separated by de . Let ze = 0 if the constraint is satisfied with xj − xi ≥ de and ze = 1
if the constraint is satisfied with xi − xj ≥ de .
Feasibility IP:
xj − xi ≥ de − Mze ∀ e ∈ E
xi − xj ≥ de − M(1 − ze ) ∀ e ∈ E
1 ≤ xj ≤ 6 ∀ j
x ∈ ℤn , z ∈ {0, 1}|E| .
k
k
k
6
Integer Programming: 2nd Edition
Solutions to Certain Exercises in Chapter 2
1.
Find a maximum cardinality matching in the graph of Figure 2.5a by inspection. Give a proof that the solution found is optimal.
Solution: Matching M = {(2, 2′ ), (3, 1′ ), (4, 3′ ), (5, 5′ ), (6, 6′ )} and node
cover R = {2, 3, 6, 3′ , 5′ } with |M| = |R|.
3.
Find primal and dual bounds for the integer knapsack problem:
z = max 42x1 + 26x2 + 35x3 + 71x4 + 53x5
14x1 + 10x2 + 12x3 + 25x4 + 20x5 ≤ 69
x ∈ Z+5 .
Solution:
c
c
As a1 > aj for j > 1, the solution of the linear programming
1
j
relaxation is x1 = 69
= 4 13
giving an upper bound of 69
⋅ 42 = 207.
14
14
14
69
A first greedy heuristic solution is x1 = ⌊ 14 ⌋ = 4 giving a lower bound of 168.
With x1 = 4, there remain 69 − 56 = 13 units available in the knapsack. This
leads to an improved greedy solution of x1 = 4, x3 = 1 of value 203.
k
7.
Network Formulation of the Integer Knapsack Problem with positive integer
coefficients aj > 0 for j ∈ [1, n] and b > 0.
Let
}
{ n
n
∑
∑
n
cj xj ∶
aj xj ≤ b, x ∈ ℤ+
G(d) = max
j=1
j=1
denoted problem P(d).
(i) Show that G(d) ≥ G(d − aj ) + cj ∀ aj ≤ d ≤ b and j ∈ [1, n] and G(d) ≥
G(d − 1) ∀ 1 ≤ d ≤ b.
(ii) Show that
min y(b)
y(d) − y(d − aj ) ≥ cj ∀j, d
y(d) − y(d − 1) ≥ 0 ∀d
y(0) = 0
is a strong dual of the knapsack problem.
(iii) Take the dual of this linear program and interpret the variables and constraints of the resulting LP.
k
k
k
Integer Programming: 2nd Edition
7
Solution:
(i) Let x∗ be an optimal solution to problem P(d − aj ) with G(d − aj ) = cx∗
and Ax∗ ≤ d − aj . Then x∗ + ej is feasible in P(d) with value cx∗ + cj . So
G(d) ≥ cx∗ + cj = G(d − aj ) + cj .
Let x∗ be an optimal solution to problem P(d − 1) with G(d − 1) = cx∗
and Ax∗ ≤ d − 1. Then, x∗ is feasible in P(d) with value cx∗ . So G(d) ≥
G(d − 1).
(ii) Take y(d) = G(d) for d ∈ [0, b]. Then, G(b) is both an upper bound on
the optimal value and the value of a primal feasible solution.
(iii) The dual is
∑
cj xj,d
max
∑
j
xj,d −
∑
j
d,j
xj,d+aj + zd − zd+1 = 0 0 ≤ d < b
∑
xj,b + zb = 1
j
xj,d ∈ ℝ1+ , zd ∈ ℝ1+
This is a longest path problem in an acyclic graph with nodes
V = {0, 1, … , b}, xj,d = 1 if the arc (d − aj , d) is used and zd = 1 if the
arc (d − 1, d) is used.
k
9.
Suppose that the value function 𝜙(d) = max{cx ∶ Ax ≤ d, x ∈ ℤn+ } is finite
valued for all d ∈ ℤm .
(i) Show that the value function 𝜙 is superadditive.
(ii) Prove the Strong Duality Theorem 2.8.
Solution:
(i) 𝜙(0) ≥ 0. If 𝜙(0) > 0, 𝜙(d) is unbounded, a contradiction. Thus 𝜙(0) = 0.
Suppose that 𝜙(di ) = cxi with Axi ≤ di , xi ∈ ℤn+ for i = 1, 2. Then x1 + x2
satisfies A(x1 + x2 ) ≤ d1 + d2 , x1 + x2 ∈ ℤn+ and has value c(x1 + x2 ). It
follows that 𝜙(d1 + d2 ) ≥ c(x1 + x2 ) = 𝜙(d1 ) + 𝜙(d2 ). Showing that 𝜙 is
nondecreasing is similar.
(ii) 𝜙(b) is a feasible value for both the primal and the dual as 𝜙(aj ) ≥ cj for
j ∈ [1, n].
k
k
k
8
Integer Programming: 2nd Edition
11.
Fourier–Motzkin elimination. Let Q be the polyhedron
ai y + 𝑤 ≤ bi
i ∈ [1, m]
(4)
c y − 𝑤 ≤ dj
j ∈ [1, n]
(5)
j
e y ≤ fk
k
(6)
k ∈ [1, K]
y ∈ ℝ ,𝑤 ∈ ℝ .
p
1
(7)
Show that P = projy (Q), where P is the polyhedron
(ai + cj )y ≤ bi + dj
e y ≤ fk
k
i ∈ [1, m], j ∈ [1, n]
(8)
(9)
k ∈ [1, K]
y∈ℝ .
p
(10)
Repeating this procedure allows one to project any polyhedron onto a subset
of its variables. Note that the number of constraints in the projected polyhedron can increase exponentially.
Solution: If y ∈projy (Q), there exists 𝑤 such that (y, 𝑤) ∈ Q. Combining
the valid inequalities (4) and (5) gives (8) and thus y ∈ P. So, projy (Q) ⊆ P.
Conversely, suppose that y ∈ P. From (8), it follows that cj y − dj ≤ bi − ai y for
all i, j and thus maxj [cj y − dj ] ≤ mini [bi − ai y]. Taking 𝑤 such that maxj [cj y −
dj ] ≤ 𝑤 ≤ mini [bi − ai y], 𝑤 ≤ bi − ai y for all i and 𝑤 ≥ cj y − dj for all j and
thus (y, 𝑤) ∈ Q. So, P ⊆ projy (Q).
k
Solutions to Certain Exercises in Chapter 3
2.
Prove that the polyhedron P = {(y1 , … , ym , x) ∈ R+m+1 ∶ x ≤ 1, yi ≤ x for
i = 1, … , m} has integer vertices.
Solution: The matrix A obtained from the constraints xi − y ≤ 0 i ∈ [1, m]
has a +1 and a −1 in each row. So it is transpose of a network matrix. Network
matrices are TU by Proposition 3.4. The dual of a network matrix is TU by
Proposition 3.1. As the rhs and bound vectors are integers, the vertices of P
are integral by Proposition 3.3.
3.
A 0–1 matrix B has the consecutive 1’s property if for any column j, bij = bi′ j =
1 with i < i′ implies blj = 1 for i < l < i′ .
A more general sufficient condition for total unimodularity is: Matrix A is
TU if
(i) aij ∈ {+1, −1, 0} for all i, j.
k
k
k
Integer Programming: 2nd Edition
9
(ii) For any subset M of the rows, there exists a partition (M1 , M2 ) of M such
that each column j satisfies
∑
∑
∣
aij −
aij ∣≤ 1.
i∈M1
i∈M2
Use this to show that a matrix with the consecutive 1’s property is TU.
Solution: Take any subset of the rows M. The matrix A∗ obtained by
removing the rows not in M still has the consecutive 1’s property. Assign
the remaining rows so that odd rows belong to M1 and even rows to
M2 . Then for column j, if the first 1 appears in an odd numbered row,
∑
∑
a − i∈M2 aij ∈ {0, 1} and if the first 1 appears in an even numbered
i∈M∑
1 ij
∑
row, i∈M1 aij − i∈M2 aij ∈ {0, −1}.
8.
Find a minimum weight spanning tree in the graph shown in Figure 3.4a.
Solution: The greedy algorithm selects the edges in the following order:
edge
cost comment
e1 = (3, 6) 1
e2 = (2, 3) 2
e3 = (2, 5) 3
e4 = (5, 9) 4
Cycle, Reject
e5 = (6, 9) −
e6 = (1, 2) 4
e7 = (5, 8) 6
e8 = (3, 7) 6
Cycle. Reject
e9 = (1, 6) −
e10 = (4, 8) 8
Finish.
k
12.
Show that the 0–1 covering problem
∑n
z = min j=1 fj xj
∑n
for i ∈ M
j=1 aij xj ≥ bi
x ∈ {0, 1}n
with aij ≥ 0 for i ∈ M, j ∈ N can be written in the form
{
}
∑
z = min
fj ∶ g(S) = g(N) ,
j∈S
where g ∶ (N) → R1+ is a nondecreasing set function.
(i) What is g?
(ii) Show that g is submodular and nondecreasing.
k
k
k
10
Integer Programming: 2nd Edition
Solution:
∑
∑
(i) g(S) = i∈M min( j∈S aij , bi ).
(ii) Suppose wlog that |M| = 1. 𝜌j (S) = g(S ∪ j) − g(S).
As g is nondecreasing, 𝜌j is nonnegative.
Case 1. If g(S ∪ k) ≥ b, 𝜌j (S ∪ k) = 0 ≤ 𝜌j (S).
∑
Case 2. If g(S ∪ k) < b, then 𝜌j (S ∪ k) = min[b − i∈S∪k ai , aj ]. As this
∑
also implies g(S) < b, 𝜌j (S) = min[b − i∈S ai , aj ] ≥ 𝜌j (S ∪ k). The
claim follows.
14.
Given a matroid, show that
(i) if A and B are independent sets with |A| > |B|, then there exists j ∈ A\B
such that B ∪ {j} is independent, and
(ii) for an arbitrary set A ⊆ N, every maximal independent set in A has the
same cardinality.
Solution:
(i) Let r be he rank function of the matroid. As A and B are independent,
r(A) = |A| and r(B) = |B| and by hypothesis r(A) > r(B). Now suppose
there is no j ∈ A\B such that B ∪ {j} is independent. In other words,
r(B) = r(B ∪ {j}) for all j ∈ A\B. By Proposition 3.11,
∑
r(A) ≤ r(B) +
[r(B ∪ {j}) − r(B)] for all A, B ⊆ N
k
j∈A\B
giving r(A) ≤ r(B) +
(ii) follows from (i).
16.
∑
j∈A\B 0 = r(B), a contradiction.
Consider the Steiner tree problem on the graph of Figure 3.5 with terminal
nodes 0, 4, 5, 6 and a weight of 1 on all the edges. Show that the LP relaxation
of the directed cut formulation (3.15)–(3.17) is not integral by describing
a fractional LP solution of smaller value than that of the optimal integer
solution.
Solution: Observe that all the directed cuts contain at least two arcs. Setting zij = 12 on each downward directed arc provides a feasible solution with
xe = 12 on each edge and value 92 . Clearly, the optimal integer solution is 5
as there is no solution using only one of the edges adjacent to node 0 and at
least 3 of the other edges are needed.
k
k
k
Integer Programming: 2nd Edition
11
Solutions to Certain Exercises in Chapter 4
2.
Find a maximum cardinality matching in the bipartite graph of Figure 4.6b.
Demonstrate that your solution is optimal.
Solution: M = {(1, 9), (2, 8), (3, 7), (6, 11)}. Augmenting path (5, 11),
(6, 11), (6, 12). M = {(1, 9), (2, 8), (3, 7), (5, 11), (6, 12)}. R = {2, 3, 6, 9, 11}.
6.
Find a maximum weight matching in the weighted bipartite graph of
Figure 4.7.
Solution:
Adding a node 12 or 6′ , the profit matrix is
⎛3
⎜
⎜8
⎜0
⎜8
⎜
⎜0
⎜0
⎝
0
0
8
0
6
1
0
0
2
0
3
0
7
4
0
1
2
0
0
0
4
0
0
2
0⎞
⎟
0⎟
0⎟
0⎟⎟
0⎟
0⎟⎠
Choosing a dual solution greedily so as to have a reduced cost of zero in each
row and column
u0 = (7, 8, 8, 8, 6, 2), 𝑣0 = (0, −2, 0, 0, 0, −2)
z = 35
M = {(1, 3′ ), (2, 1′ ), (5, 4′ ), (6, 6′ )}
V1+ = {2, 3, 4, 5}, V2+ = {1′ , 4′ }, 𝛿 = 1
u1 = (7, 7, 7, 7, 5, 2), 𝑣1 = (1, −2, 0, 1, 0, −2)
z = 33
M = {(1, 3′ ), (2, 1′ ), (3, 4′ ), (5, 2′ ), (6, 6′ )}
V1+ = {2, 4}, V2+ = {1′ }, 𝛿 = 3
u2 = (7, 4, 7, 4, 5, 2), 𝑣2 = (4, −2, 0, 1, 0, −2)
z = 30
M unchanged
V1+ = {1, 2, 4}, V2+ = {1′ , 3′ }, 𝛿 = 2
u3 = (5, 2, 7, 2, 5, 2), 𝑣3 = (6, −2, 2, 1, 0, −2)
z = 28
M = {(1, 3′ ), (2, 1′ ), (3, 4′ ), (4, 6′ ), (5, 2′ ), (6, 5′ )}
Optimal Solution z = 28.
k
9.
Ten researchers are engaged in a set of ten projects. Let Si denote the
researchers working on project i for i = 1, … , 10. To keep track of progress
k
k
k
12
Integer Programming: 2nd Edition
or problems, management wishes to designate one person working on
each project to report at their weekly meeting. Ideally, no person should
be asked to report on more than one project. Is this possible or not,
when S1 = {3, 7, 8, 10}, S2 = {4, 8}, S3 = {2, 5, 7}, S4 = {1, 2, 7, 9}, S5 =
{2, 5, 7}, S6 = {1, 4, 5, 7}, S7 = {2, 7}, S8 = {1, 6, 7, 10}, S9 = {2, 5}, S10 =
{1, 2, 3, 6, 7, 8, 10}?
Solution: This is known as a Systems of Discrete Representatives. Solve a
maximum cardinality or max flow problem.
Bipartite graph G with V1 = V2 = {1, … , n}. (ij) ∈ E if j ∈ Si .
∑
max
xij
∑
(ij)∈E
xij ≤ 1 i = 1, … , n
j∶(ij)∈E
∑
xij ≤ 1 j = 1, … , n
i∶(ij)∈E
xij ∈ {0, 1} (ij) ∈ E.
A primal solution: (1,10), (2,4), (3,2) (4,9) (6,1) (7,7) (8,6) (9,5) (10,8).
A dual solution: ui = 1 for i ∈ {1, 2, 4, 6, 8, 10}, 𝑣j = 1 for j ∈ {2, 5, 7}.
Flow = 9.
There is no such system. There are only three researchers(𝑣j = 1) available
to represent the four projects (ui = 0).
k
12.
Show that the convex hull of perfect matchings in a graph on an even number of nodes is described by the degree constraints (4.1), the nonnegativity
constraints (4.2) and the inequalities
∑
xe ≥ 1 for S odd, |S| ≥ 3.
e∈𝛿(S)
Solution: Let P′ denote the above polytope. From Theorem 4.2, we obtain
∑
the perfect matching polytope F by adding the valid inequality e∈E xe ≤ |V|
2
∑
as an equality. This in turn implies that e∈𝛿(i) xe = 1 for i ∈ V.
Now observe that the inequalities of P′ are clearly satisfied by the perfect
matchings and thus F ⊆ P′ . It remains to show that P′ ⊆ F.
∑ ∑
Summing the degree constraints over an odd set S gives i∈S e∈𝛿(i) xe = |S|,
∑
∑
∑
or 2 e∈E(S) xe + e∈𝛿(S,V\S) xe = |S|. Subtracting e∈𝛿(S,V\S) xe ≥ 1 and dividing
∑
by 2 gives e∈E(S) xe ≤ |S|−1
for S odd. As the degree and nonnegativity con2
straints are the same in P′ and F, the claim follows.
13.
(i) For their annual Christmas party the thirty members of staff of the
thriving company Ipopt were invited/obliged to dine together and
then spend the night in a fancy hotel. The boss’s secretary had the
k
k
k
Integer Programming: 2nd Edition
13
unenviable task of allocating the staff two to a room. Knowing the likes
and dislikes of everyone, he drew up a list of all the compatible pairs.
How could you help her to fill all fifteen rooms?
(ii) Recently a summer camp was organized for an equal number of English
and French children. After a few days, the children had to participate in
an orienteering competition in pairs, each pair made up of one French
and one English child. To allocate the pairs, each potential pair was
asked to give a weight from 1 to 10 representing their willingness to
form a pair. Formulate the problem of choosing the pairs so as to maximize the sum of the weights.
(iii) If you have a linear programming code available, can you help either
the boss’s secretary or the camp organizer or both?
Solution:
(i) Construct a graph with one node per person. Add an edge if staff members i and j are compatible. The problem is then to find a perfect matching with 15 edges.
(ii) Construct a bipartite graph with nodes V1 for the English children and
V2 for the French with |V1 | = |V2 |. Assign weights to each pait (i, j)
with i ∈ V1 , j ∈ V2 . The problem is to find a maximum weight assignment/matching in the bipartite graph.
(iii) As we have seen, a maximum weight assignment can be found by linear
programming. On the other hand, there is no small LP guaranteeing a
solution to the perfect matching problem in an arbitrary graph. There
is however an efficient algorithm. See discussion in Section 4.4.
k
Solutions to Certain Exercises in Chapter 5
4.
Formulate the optimal subtree of a tree problem as an integer program. Is
this IP easy to solve?
Solution: Let r be the root of the tree and let p(𝑣) denote the predecessor
of 𝑣 on the path from 𝑣 to the root. Let x𝑣 = 1 if node 𝑣 is part of the subtree.
Consider the formulation
max c𝑣 x𝑣
𝑣∈V
xr ≤ 1
x𝑣 − xp(𝑣) ≤ 0 𝑣 ∈ V\{r}
x ∈ ℝ|V|
+
Note that the constraint matrix is the dual of a network matrix. So it is TU.
As the rhs vector is integer, the extreme points are integral.
k
k
k
14
Integer Programming: 2nd Edition
5.
Given a digraph D = (V, A), travel times cij for (i, j) ∈ A for traversing the
arcs, and earliest passage times rj for j ∈ V, consider the problem of minimizing the time required to go from node 1 to node n.
(i) Describe a dynamic programming recursion.
(ii) Formulate as a mixed integer program. Is this mixed integer program
easy to solve?
Solution:
(i) Let G(j) be the earliest passage time at node j. Consider the recursion
G(j) ≥ max(rj , min (G(i) + cij ))
i∈V\{j}
with initialization G(1) = r1 .
(ii) One possible formulation. Let tj be the passage time at node j and xij = 1
if arc (i, j) lies on the path.
mintn
tj − ti ≥ cij xij − M(1 − xij ) i, j ∈ V, i ≠ j
tj ≥ rj j ∈ V
k
k
x ∈ {0, 1}|A| .
Because of the big M in the formulation, the linear programming relaxation will be weak.
8.
Solve the problem
1
max x13 + 2x22 + 4x3 + 4x4
2x12 + 4x2 + 6x3 + 5x4 ≤ t
x1 ≤ 3, x2 ≤ 2, x4 ≤ 1
x ∈ ℤ4+
for t ≤ 12. (Hint. One of the recursions in the chapter is easily adapted.)
Solution:
The problem is of the form
fr (𝜆) = max
n
∑
cj (xj )
j=1
n
∑
aj (xj ) ≤ 𝜆
j=1
xj ∈ [0, hj ] ∩ ℤ j ∈ [1, n]
k
k
Integer Programming: 2nd Edition
15
Use the recursion
fr (𝜆) =
11.
max (fr−1 (𝜆 − ar (xr )) + cr (xr )).
xr ∈[0,hr ]∩ℤ
Given a tree T and a list of T1 , … , Tm of subtrees of T with weights c(Ti )
for i = 1, … , m, describe an algorithm to find a maximum weight packing of
node disjoint subtrees.
Solution: Arbitrarily root the tree, so that each subtree is now rooted. Let
S(𝑣) be the successor nodes of 𝑣 in T and Σ(R) the successor nodes of tree
R. Let Ω𝑣 be the subtrees in the set that are rooted at node 𝑣 and G(𝑣) be the
value of an optimal packing of the subtrees completely lying in the subtree of
T rooted at 𝑣. Then, an optimal solution of value G(𝑣) either does not cover
node 𝑣 or it is covered by a tree R in Ω𝑣 .
(
)
∑
∑
G(𝑣) = max max[c(R) +
G(u),
G(u) .
R∈Ω𝑣
k
u∈S(R)
u∈S(𝑣)
Solutions to Certain Exercises in Chapter 6
1.
The 2-PARTITION problem is specified by n positive integers (a1 , … , an ).
∑
The problem is to find a subset S ⊂ N = {1, … , n} such that j∈S aj =
∑
j∈N\S aj , or prove that it is impossible. Show that 2-PARTITION is polynomially reducible to 0–1 KNAPSACK. Does this imply that 2-PARTITION is
NP-complete?
Solution: 2-PARTITION is a special case of 0–1 KNAPSACK, so
2-PARTITION is polynomially reducible to 0–1 KNAPSACK. The fact
that 0–1 KNAPSACK ∈ tells us nothing about the complexity of
2-PARTITION.
5.
Show that SET COVERING is polynomially reducible to UFL.
Solution:
Writing SET-COVERING as the problem
min{cx ∶ Ax ≥ 1, x ∈ ℤn+ }
with A an m by n 0–1 matrix and UFL as the problem
{
}
∑
yij = 1 for ∀ i, yij ≤ xj ∀i, j, y ∈ [0, 1]mn , x ∈ {0, 1}n .
min cx + dy ∶
j
k
k
k
16
Integer Programming: 2nd Edition
Take dij = M(1 − aij ). Then, a solution of UFL will have yij = 0 whenever
a = 0 because of the large penalty and also satisfy Ax ≥ 𝟏 by combining
∑ij
j yij = 1 for = 1 with yij ≤ xj .
Conversely, if x∗ is optimal in SET-COVERING, then the solution (x∗ , y∗ ) is
feasible in UFL by taking yi,ji = 1 where ji = min{j ∶ xj = 1, aij = 1} and has
the same cost.
9.
∑
Consider a 0–1 knapsack set X = {x ∈ {0, 1}n ∶ j∈N aj xj ≤ b} with
0 ≤ aj ≤ b for j ∈ N and let {xt }Tt=1 be the points of X. With it, associate the
bounded polyhedron Π1 = {𝜋 ∈ ℝn+ ∶ xt 𝜋 ≤ 1 for t = 1, … , T} with extreme
points {𝜋 s }Ss=1 . Consider a point x∗ with 0 ≤ xj∗ ≤ 1 for j ∈ N.
∑T
∑T
(i) Show that x∗ ∈ conv(X) if and only if min{ t=1 𝜆t ∶ x∗ ≤ t=1 xt 𝜆t , 𝜆 ∈
ℝT+ } = max{x∗ 𝜋 ∶ 𝜋 ∈ Π1 } ≤ 1.
(ii) Deduce that if x∗ ∉ conv(X), then for some s = 1, … , S, 𝜋 s x∗ > 1.
Solution:
∑T
∗ t
with t=1 𝜆∗t = 1, 𝜆∗ ∈ ℝT+ .
t=1 𝜆t x {
}
∑T
∑T
T
∗
t
So 𝜆∗ is feasible in the LP Z = min
t=1 𝜆t ∶ x ≤
t=1 𝜆t x , 𝜆 ∈ ℝ+
(i) If x∗ ∈ conv(X), then x∗ =
∑T
with objective value 1 and
{∑so Z ≤ 1.
}
T
∗ ≤ ∑T 𝜆 x t , 𝜆 ∈ ℝT
̂
Conversely if Z = min
𝜆
∶
x
+ ≤ 1, let 𝜆 be
t=1 t
t=1 t
∑
T ̂ t
𝜆t x + (1 − Z)𝟎 ∈ conv(X).
an optimal solution. The x∗ =
k
t=1
Just take the LP dual.
(ii) Follows from if and only if.
11.
∑
∑
Consider the 0–1 knapsack problem: Z = max{ j∈N cj xj ∶ j∈N aj xj ≤ b, x ∈
{0, 1}n } with 0 < aj ≤ b for j ∈ N. Consider a greedy heuristic that chooses
the better of the integer round down of the linear programming solution, and
the best solution in which just one variable xk = 1 where ck = maxj cj . Show
that zG ≥ 12 z.
Solution:
c
c
Suppose that the items are ordered so that a1 ≥ · · · ≥ an . The
1
linear programming solution is then x1 = … = xr−1 = 1, xr =
∑r−1n
b− j=1
aj
for
aj
some r with value Z LP . The greedy solution is x1 = … = xr−1 = 1. Otherwise
set xr = 1.
G
Z = max
( r−1
∑
j=1
)
cj , cr ≥ max
( r−1
∑
)
cj , cr
j=1
as required.
k
1
≥
2
( r−1
∑
j=1
)
cj + cr
≥
1 LP 1
Z ≥ Z
2
2
k
k
Integer Programming: 2nd Edition
12.
17
Consider the problem of finding a maximum cardinality matching from
Chapter 4. A matching M ⊆ E is maximal if M ∪ {f } is not a matching
for any f ∈ E\M. Let Z be the size of a maximum matching. Show that
|M| ≥ 12 Z for any maximal matching M.
∑
Solution: Consider the dual linear program: zLP = min{ i ui ∶ ui + uj ≥ 1
for (i, j) ∈ E, u ∈ ℝ|V|
+ }. Consider a maximal matching M. Set ui = 1 if node
i is incident to M. We claim that u is dual feasible. If not, there is some edge
(i, j) with ui + uj < 1. This implies that neither node i nor node j touches M
∑
and thus M is not maximal. Now i∈V ui = 2|M| ≥ Z LP ≥ Z.
Solutions to Certain Exercises in Chapter 7
3.
Consider the 0–1 knapsack problem:
}
{ n
n
∑
∑
n
max
cj xj ∶
aj xj ≤ b, x ∈ {0, 1}
j=1
k
j=1
with aj , cj > 0 for j = 1, … , n.
∑r−1
∑r
c
c
(i) Show that if a1 ≥ · · · ≥ an > 0, j=1 aj ≤ b and j=1 aj > b, the solution
1
n
(
∑r−1 )
of the LP relaxation is xj = 1 for j = 1, … , r − 1, xr = b − j=1 aj ∕ar ,
and xj = 0 for j > r.
(ii) Solve the instance
max 17x1 + 10x2 + 25x3 + 17x4
5x1 + 3x2 + 8x3 + 7x4 ≤ 12
x ∈ {0, 1}4
by branch-and-bound.
Solution:
∑r−1
(i) Let xj = 1 − xj . The constraint can now be rewritten as ar xr − j=1 aj xj +
∑n
∑r−1
j=r+1 aj xj = b −
j=1 aj
and the objective function as
∑r−1
∑n
∑r−1
max cr xr − j=1 cj xj + j=r+1 cj xj + j=1 cj
∑r−1
Substituting for xr in the objective function gives max j=1 cj +
∑r−1
aj
b−
∑r−1
∑n
a
a
cr aj=1 + j=1 (cj − cr a j )xj − j=r+1 (cj − cr a j )xj . As all the reduced
r
r
r
costs are nonpositive, the solution with xr basic and values xr =
xj = 1 for j = 1, … , r − 1 is optimal.
k
∑r−1
b− j=1
aj
ar
,
k
k
18
Integer Programming: 2nd Edition
(ii) Let b′ be the amount remaining from b when fixing and lower bounds
on variables are taken into account.
At any node, if aj > b′ , we set xj = 0,
c
c
Note that a1 > · · · > a4 .
1
4
Node 1. LP solution x = (1, 1, 0.5, 0), ZLP = 39.5
Branch on x3 .
Create nodes 2 and 3 with x3 = 0 and x3 = 1, respectively.
Node 2. x3 = 0.
LP solution x = (1, 1, 0, 47 ), ZLP = 36 57
Branch on x4 .
Create nodes 4 and 5 with x4 = 0 and x4 = 1, respectively.
Node 4. LP solution x = (1, 1, 0, 0), ZLP = 27. New incumbent Z = 27.
Prune by optimality.
Node 5. x4 = 1 implies remaining b′ = 5, so x3 = 0.
LP solution x = (1, 0, 0, 1), ZLP = 34. New incumbent Z = 34. Prune by
optimality.
Node 3. x3 = 1 implies x1 = x4 = 0.
LP Solution x = (0, 1, 1, 0), ZLP = 35. New incumbent Z = 35. Prune by
optimality.
All nodes have been pruned.
k
4.
Solve the integer knapsack problem:
max 10x1 + 12x2 + 7x3 + 2x4
4x1 + 5x2 + 3x3 + 1x4 ≤ 10
x1 , x2 ∈ Z+1 , x3 , x4 ∈ {0, 1}
by branch-and-bound.
′
At any node, we set xj ≤ ⌊ ba ⌋.
Solution:
c
j
c
Note that a1 > · · · > a4 .
1
4
This gives x1 ≤ 2 and x2 ≤ 2.
Node 1. LP solution x = (2, 25 , 0, 0), ZLP = 24.8.
As the objective function value must be integer. Z ≤ ⌊24.8⌋ = 24.
Branch on x2 .
Create nodes 2 and 3 with x2 = 0 and x2 ≥ 1, respectively.
Node 3. x2 ≥ 1 implies b′ = 5 and thus x1 ≤ 1
LP solution x = (1, 65 , 0, 0), ZLP = 24.4.
Branch on x2 .
Create nodes 4 and 5 with x2 ≤ 1 and x2 ≥ 2, respectively.
Node 5. As x2 = 2, b′ = 0 and thus x1 = x3 = x4 = 0.
k
k
k
Integer Programming: 2nd Edition
19
LP solution x = (0, 2, 0, 0), ZLP = 24. New incumbent. Z = 24.
As lower and upper bounds on Z are equal, the incumbent is optimal.
10.
Prove Proposition 7.6 concerning 0–1 preprocessing.
Solution:
(i) X = ∅ if and only if b < 0.
∑n
(ii) The constraint is redundant if and only if j=1 aj ≤ b.
(iii) xj = 0 if and only if aj > b.
(iv) xi + xj ≤ 1 is valid if and only if ai + aj > b.
X = {x ∈ {0, 1}5 ∶ x1 + 3x2 − 5x3 + x4 + 5x5 ≤ 0}.
Let xj = 1 − xj . The constraint can be rewritten as
x1 + 3x2 + 5x3 + x4 + 5x5 ≤ 5.
From (iv), we have that xi + x5 ≤ 1 whenever i ∈ {1, 2, 4} and xi + x3 ≤ 1
(or xi ≤ x3 ) for i ∈ {1, 2, 4, 5}.
12.
k
Suppose that Pi = {x ∈ ℝn ∶ Ai x ≤ bi } for i = 1, … , m and that Ck ⊆
{1, … , m} for k = 1, … , K. A disjunctive program is a problem of the form
max{cx ∶ x ∈ ∪i∈Ck Pi for k = 1, … , K}.
Show how the following can be modeled as disjunctive programs:
(i) A 0–1 integer program.
(ii) A linear complementarity problem: 𝑤 = q + Mz, 𝑤, z ∈ ℝm
+ , 𝑤j z j = 0
for j = 1, … , m.
(iii) A single machine sequencing problem with job processing times pj , and
variables tj representing the start time of job j for j = 1, … , n.
(iv) The nonlinear expression z ≥ min{3x1 + 2x2 − 3, 9x1 − 4x2 + 6}.
(v) The constraint: if x ∈ ℝ1+ is positive, then x lies between 20 and 50, and
is a multiple of 5.
Solution:
(i) 0–1 IP. X ⊆ {0, 1}n .
∪S⊆N PS
where PS = {x ∈ X ∶ x = xS }.
m
(ii) C = {(𝑤, z) ∈ ℝm
+ × ℝ+ ∶ 𝑤 = q + Mz}.
∪S⊆{1,…,m} PS
where PS = {(𝑤, z) ∈ C ∶ 𝑤i = 0 for i ∈ S, zi = 0 for i ∈ {1, … , m}\S}.
k
k
k
20
Integer Programming: 2nd Edition
(iii) A permutation 𝜋 ∶ {1, … , n} gives the ordering of the jobs. 𝜋(1) precedes 𝜋(2), etc.
∪𝜋 P 𝜋
where P𝜋 = {t ∈ ℝn+ ∶ t𝜋(i+1) ≥ t𝜋(i) + p𝜋(i) for i = 1, … , n − 1}.
(iv) .
(v) .
{(x, z) ∶ z ≥ 3x1 + 2x2 − 3} ∪ {(x, z) ∶ z ≥ 9x1 − 4x2 + 6}.
{x ∶ x = 0} ∪
10
⋃
{(x, k) ∶ x = 5k}.
k=4
Solutions to Certain Exercises in Chapter 8
2.
In each of the examples below, a set X and a point x or (x, y) are given. Find
a valid inequality for X cutting off the point.
(i) .
k
X = {(x, y) ∈ {0, 1} × ℝ2+ ∶ y1 + y2 ≤ 2x, yj ≤ 1 for j = 1, 2}
(x, y1 , y2 ) = (0.5, 1, 0)
(ii) .
X = {(x, y) ∈ ℤ1+ × ℝ1+ ∶ y ≤ 9, y ≤ 4x}
(
(x, y) =
(iii) .
)
9
,9
4
X = {(x, y1 , y2 ) ∈ ℤ1+ × ℝ2+ ∶ y1 + y2 ≤ 25, y1 + y2 ≤ 8x}
(x, y1 , y2 ) =
(iv) .
(
25
, 20, 5
8
)
X = {x ∈ ℤ5+ ∶ 9x1 + 12x2 + 8x3 + 17x4 + 13x5 ≥ 50}
(
)
25
x = 0, , 0, 0, 0
6
(v) .
X = {x ∈ ℤ4+ ∶ 4x1 + 8x2 + 7x3 + 5x4 ≤ 33}
(
)
33
x = 0, 0, , 0 .
7
Solution:
(i) y1 ≤ x. Violation 0.5
(ii) y ≤ 9 − 1(3 − x)
(iii) y1 + y2 ≤ 25 − 1(4 − x)
k
k
k
Integer Programming: 2nd Edition
21
9
8
(iv) Gomory fractional cut ⌈ 12
⌉x1 + ⌈ 12
⌉x + ⌈ 12
⌉x3 + ⌈ 17
⌉x + ⌈ 13
⌉x ≥
12 2
12 4
12 5
50
⌈ 12 ⌉ = 4.
(v) Gomory fractional cut 0x1 + x2 + x3 + 0x4 ≤ ⌊ 33
⌋ = 4.
7
4.
Consider the problem
min x1 + 2x2
x1 + x2
≥ 4
x1 + 5x2 ≥ 5
x ∈ ℤ2+ .
, 1 ) is the optimal linear programming solution.
(i) Show that x∗ = ( 15
4 4
(ii) Generate Gomory mixed integer cuts from the 2 rows of the optimal LP
tableau taking the slack variables to be continuous variables.
(iii) Observing that the slack variables are integer, generate the Gomory fractional cuts and compare.
(iv) Solve the instance.
Solution:
Optimal LP tableau:
min 17
4
k
x1
x2
+ 34 x3
+ 14 x4
− 54 x3
+ 14 x4
=
+ 14 x3
− 14 x4
=
15
4
1
4
ℤ1+ , x3 , x4 ∈ ℝ1+
x1 , x2 ∈
Gomory mixed integer cuts
row 1: 15
x + 14 x4 ≥ 34
4 3
row 2: 14 x3 + 34 x4 ≥ 14
Gomory fractional (all-integer) cuts
row 1: 34 x3 + 14 x4 ≥ 34
row 2: 14 x3 + 34 x4 ≥ 14
Adding the Gomory fractional cut from row 1 and using the dual simplex
algorithm gives an optimal solution x1 = 3, x2 = 1, x3 = 0, x4 = 3.
6.
Solve max{5x1 + 9x2 + 23x3 − 4y ∶ 2x1 + 3x2 + 9x3 ≤ 32 + y, x ∈ ℤ3+ , y ∈ ℝ1+ }
using MIR inequalities.
, 0), y = 0.
LP solution x = (0, 32
3
⌊ ⌋
y
32
x2 + 3x3 ≤
+ (
) = 10 + 1y.
3
3 1 − 23
Solution:
Then x = (1, 10, 0), y = 0
k
k
k
22
Integer Programming: 2nd Edition
8.
Consider the stable set problem. An odd hole is a cycle with an odd number
of nodes and no edges between nonadjacent nodes of the cycle. Let xj = 1 if
j lies in the stable set. Show that if H is the node set of an odd hole,
∑
xj ≤ (∣ H ∣ −1)∕2
j∈H
is a valid inequality.
Solution: Let h (odd) be the number of nodes.
One has the inequalities x1 + x2 ≤ 1, x2 + x3 ≤ 1, · · · , xh + x1 ≤ 1.
Summing and dividing by 2 gives the valid inequality x1 + x2 + · · · + xh ≤ h2 .
.
Chvatal–Gomory rounding gives x1 + x2 + · · · + xh ≤ ⌊ h2 ⌋ = |H|−1
2
12.
Prove Proposition 8.10.
Solution: Let Q = {x ∶ x = y1 + y2 , Ai yi ≤ bi zi , yi ≤ uzi i = 1, 2, z1 + z2 =
i
1, z1 , z2 ≥ 0}. Suppose (x, y, z) ∈ Q with 0 < zi < 1. Set xi = yzi . then
x = z1 x1 + z2 x2 with z1 + z2 = 1, z1 , z2 ≥ 0 with xi ∈ Pi as Ai xi ≤ bi and
xi ≤ u for i = 1, 2. So x ∈ conv(P1 ∪ P2 ).
When z1 = 1 or 0, it follows directly that x ∈ P1 , P2 , respectively.
The other direction is simple.
k
17.
An Extended Formulation.
Given the 0–1 integer program with X = {x ∈ {0, 1}n ∶ Ax ≤ b}. For simplicity take m = 1.
(i) Choose some variable xk and show that the nonlinear inequalities
n
∑
aj xj xk ≤ bxk and
j=1
n
∑
aj xj (1 − xk ) ≤ b(1 − xk )
j=1
are valid for X.
(ii) Show that xk2 = xk is valid for X.
(iii) Introduce additional variables yik = xi xk for all i ≠ k. Show that Qk is a
valid relaxation for X:
∑
aj yjk + ak xk ≤ bxk
∑
j
j≠k
aj −
∑
aj yjk − ak xk ≤ b(1 − xk )
j≠k
yik ≤ xk
for i ≠ k
yik ≤ xi
for i ≠ k
yik ≥ xi + xk − 1
n−1
x ∈ [0, 1] , y⋅k ∈ ℝ+ .
n
k
for i ≠ k
k
k
Integer Programming: 2nd Edition
23
(iv) Observe a certain resemblance to the formulation in Proposition 8.10.
(v) Repeat the reformulation for all variables xj and set yij = yji for all i ≠ j.
(vi) Repeat with pairs of variables, multiplying by xj xk , xj (1 − xk ), (1 − xj )xk ,
and (1 − xj )(1 − xk ) and introducing variables yijk , etc.
Solution:
∑
∑
(i) As j aj xj ≤ b is a valid inequality and xk ≥ 0, j aj xj xk ≤ bxk is a VI.
∑
Similarly as (1 − xk ) ≥ 0 j aj xj (1 − xk ) ≤ b(1 − xk ) is a VI.
(ii) xk2 = xk for xk ∈ {0, 1}.
(iii) If yik = xi xk with xi , xk ∈ {0, 1}, then yik ≤ xi , yik ≤ xk and yik ≥ xi +
xk − 1, yik ≥ 0 are VIs.
Conversely, if yik ≤ xi , yik ≤ xk and yik ≥ xi + xk − 1, yik ≥ 0 one can
check:
If x = (0, 0), then 0 ≤ yik ≤ xi = 0, so yik = 0. Correct.
If x = (1, 1), then 1 = xi ≥ yik ≥ xi + xk − 1 = 1, so yik = 1. Correct.
The two other cases are similar.
Solutions to Certain Exercises in Chapter 9
k
k
3.
In each of the examples below, a set X and a point x∗ are given. Find a valid
inequality for X cutting off x∗ .
(i) .
X = {x ∈ {0, 1}5 ∶ 9x1 + 8x2 + 6x3 + 6x4 + 5x5 ≤ 14}
(ii) .
)
(
5 3 3
x = 0, , , , 0 ,
8 4 4
X = {x ∈ {0, 1}5 ∶ 9x1 + 8x2 + 6x3 + 6x4 + 5x5 ≤ 14}
(iii) .
)
1 1 3 3
, , , ,0 ,
4 8 4 4
X = {x ∈ {0, 1}5 ∶ 7x1 + 6x2 + 6x3 + 4x4 + 3x5 ≤ 14}
(iv) .
)
1 1
1
, 1, , , 1 ,
7
2 4
X = {x ∈ {0, 1}5 ∶ 12x1 − 9x2 + 8x3 + 6x4 − 3x5 ≤ 2}
(
x=
(
x=
)
(
1 1
x = 0, 0, , , 1 .
2 6
Solution:
(i) x2 + x3 + x4 ≤ 2.
(ii) 2x1 + 2x2 + x3 + x4 ≤ 2.
k
k
24
Integer Programming: 2nd Edition
(iii) (x1 ) + x2 + x3 + x5 ≤ 2
(iv) Complementing gives 12z1 + 9z2 + 8z3 + 6z4 + 3z5 ≤ 14 with
z∗ = (0, 1, 12 , 16 , 0).
z2 + z3 ≤ 1 is violated. In terms of the x-variables, x3 ≤ x2 .
6.
In each of the examples below, a set X and a point (x∗ , y∗ ) are given. Find a
valid inequality for X cutting off (x∗ , y∗ ).
(i) X = {(x, y) ∈ {0, 1}3 × ℝ3+ ∶y1 + y2 + y3 ≤ 7, y1 ≤ 3x1 , y2 ≤ 5x2 ,
y3 ≤ 6x3 }
(x∗ , y∗ ) = ( 23 , 1, 0; 2, 5, 0).
(ii) X = {(x, y) ∈ {0, 1}3 × ℝ3+ ∶7 ≤ y1 + y2 + y3 , y1 ≤ 3x1 , y2 ≤ 5x2 ,
y3 ≤ 6x3 }
(x∗ , y∗ ) = ( 23 , 1, 0; 2, 5, 0).
(iii) X = {(x, y) ∈ {0, 1}6 × ℝ6+ ∶y1 + y2 + y3 ≤ 4 + y4 + y5 + y6 ,
y1 ≤ 3x1 , y2 ≤ 3x2 , y3 ≤ 6x3 , y4 ≤ 3x4 , y5 ≤ 5x5 , y6 ≤ 1x6 }.
(x∗ , y∗ ) = (1, 1, 0, 0, 25 , 0; 3, 3, 0, 0, 2, 0).
Solution:
(i) y1 + y2 + 2(1 − x1 ) + 4(1 − x2 ) ≤ 7 is violated by 23 .
(ii) Aggregating constraints gives 3x1 + 5x2 + 6x3 ≥ 7, x ∈ {0, 1}3 .
Valid inequality x1 + x2 + x3 ≥ 2 is violated by 13 .
(iii) y1 + y2 + (1 − x1 ) + (1 − x2 ) ≤ 4 + y4 + 2x5 + y6 is violated by 65 .
k
16.
Consider GAP with equality constraints
max
m n
∑
∑
cij xij
i=1 j=1
n
∑
xij
= 1 for i = 1, … , m
aij xij
≤ bj for j = 1, … , n
j=1
m
∑
i=1
x ∈ {0, 1}mn .
⎛5 7 ⎞
⎛20 16⎞
Solve an instance with m = 3, n = 2, (aij ) = ⎜3 8 ⎟, (cij ) = ⎜15 19⎟,
⎜
⎟
⎜
⎟
⎝2 10⎠
⎝19 14⎠
( )
6
and b =
by cutting planes.
21
k
k
k
Integer Programming: 2nd Edition
25
Solution:
Iteration 1
LP solution: Z = 57.2, x11 = 0.8, x12 = 0.2, x21 = 0, x22 = 1, x31 = 1, x32 = 0.
SP1 : VI for the first knapsack set {x ∈ {0, 1}3 ∶ 5x1 + 3x2 + 2x3 ≤ 6} cutting
off x∗ = (0.8, 0, 1).
Cover inequality x11 + x31 ≤ 1 is violated by 0.8. Cut added to LP.
Iteration 2
LP solution: Z = 54, x12 = x22 = x31 = 1. Integer and optimal.
17.
(Superadditive Inequalities) See Definition 2.6. Consider the feasible region
X = {x ∈ ℤn+ ∶ Ax ≤ b} and let = {F ∶ ℝm → ℝ1 ∶ F is superadditive, F is
nondecreasing, F(0) = 0}.
∑n
(i) Show that j=1 F(aj )xj ≤ F(b) is a valid inequality for X.
⌋
⌊∑n
(ii) Show that F ∶ ℝm → ℝ1 with F(d) =
i=1 ui di is superadditive for
u ∈ ℝm
+.
(iii) Show that if F 1 , F 2 ∈ , then F ∗ = min(F 1 , F 2 ) ∈ .
Solution:
∑n
∑n
∑n
(i) For x ∈ X, j=1 F(aj )xj = j=1∶xj >0 (F(aj + … + F(aj ))) ≤ j=1 F(aj xj ) ≤
)
(∑
n
n
F
j=1 aj xj ≤ F(b) where the first inequality uses x ∈ ℤ+ and superadditivity, the second uses superadditivity and F(0) = 0 and the third
uses F nondecreasing and Ax ≤ b.
⌊∑
⌋ ⌊∑
⌋ ⌊∑
⌋
∑
2
u d1 + u d2 =
ui d1i +
(ii) F(d1 + d2 ) =
i di
iu
) ⌊i ∑
⌋
⌊
⌋
(
(∑ i 1i i ∑ i 2i )i
∑
1
2
+1 if frac
i u i di +
i u i di ≥ 1 ≥
i u i di +
i u i di =
F(d1 ) + F(d2 ).
(iii) Wlog
min[F1 (u + 𝑣), F2 (u + 𝑣)] = F1 (u + 𝑣) ≥ F1 (u) + F1 (𝑣) ≥
min[F1 (u), F2 (u)] + min[F1 (𝑣), F2 (𝑣)].
k
Solutions to Certain Exercises in Chapter 10
2.
Suppose one dualizes the constraints yij ≤ xj in the strong formulation
of UFL.
(i) How strong is the resulting Lagrangian dual bound.
(ii) How easy is the solution of the Lagrangian subproblem?
Solution:
(i) WLD = ZLP as
solutions.
∑
n
j yij = 1, yi. ∈ ℝ+ is an integer polytope, LP has integer
k
k
k
26
Integer Programming: 2nd Edition
(ii) L(u) =
{
∑
i Li (u) + min
{
Li (u) = min
So L(u) =
4.
∑
j
(
xj fj −
∑
i
}
)
uij
∶ x ∈ {0, 1}n
∑
∑
(cij + uij )yij ∶
yij = 1, yi. ∈ ℝn+
j
∑
(cij + uij )) +
i min
j
∑
j (fj −
∑
where
}
j
−
i uij ) .
Consider GAP with equality constraints
max
n
∑
j=1
m
∑
i=1
m n
∑
∑
i=1 j=1
cij xij
xij = 1 for i = 1, … , m
aij xij ≤ bj for j = 1, … , n
x ∈ {0, 1}mn .
⎛20 16⎞
Solve an instance with m = 3, n = 2, (cij ) = ⎜15 19⎟,
⎜
⎟
⎝19 14⎠
⎛5 7 ⎞
(aij ) = ⎜3 8 ⎟,
⎜
⎟
⎝2 10⎠
( )
6
and b =
21
by Lagrangian relaxation.
k
Solution: The LP solution is Z = 57.2 with dual variables u =
(16, 19, 17.4), 𝑣 = (0.8, 0).
Set u1 = (16, 19, 17.4). Then, (cij − ui ) = (4, −4, 1.6; 0, 0, −3.4) and a solution
x(u1 ) = (1, 0, 0; 0, 1, 0) with L(u1 ) = 56.4, so 𝛾 = (0, 0, 1).
u2 = (16, 19, 17.4) − 𝜇(0, 0, 1). By inspection L(u) decreases for 𝜇 ≤ 2.4. Take
u2 = (16, 19, 15). Then, (cij − ui ) = (4, −4, 4; 0, 0, −1) and a solution x(u2 ) =
(0, 0, 1; 1, 1, 0) with L(u2 ) = 54 is feasible and thus optimal.
5.
Consider a 0–1 knapsack problem
Z = max 11x1 + 5x2 + 14x3
3x1 + 2x2 + 4x3 ≤ 5
x ∈ {0, 1}3 .
k
k
k
Integer Programming: 2nd Edition
27
Construct a Lagrangian dual by dualizing the knapsack constraint.
(i) What is the optimal value of the dual variable?
(ii) Suppose one runs the subgradient algorithm using step size (b) in
Theorem 10.4, starting with u0 = 2, 𝜇0 = 12 and 𝜌 = 12 . Show numerically that the subgradient algorithm does not reach the optimal dual
solution.
(iii) Given that L(u) is a 1-dimensional piecewise-linear convex function,
suggest an alternative to the subgradient algorithm.
Solution:
(i) As {x ∶ x ∈ [0, 1]3 } = conv{x ∶ x ∈ {0, 1}3 }, WLD = ZLP . The fractional
variable in the LP solution is x3 and so the optimal dual variable is
.
u = 14
4
(ii) Iteration 1. u1 = 2. L(u1 ) = max{(11 − 2 × 3)x1 + (5 − 2 × 2)x2 + (14 −
2 × 4)x3 + 2 × 5 ∶ x ∈ {0, 1}3 } = 22.
Iteration 2. u2 = max[2 − 12 (5 − 3 − 2 − 4), 0] = 4, L(u2 ) = 20
Iteration 3. u3 = 11
, L(u3 ) = 39
4
2
4
Iteration 4. u = 3, L(u4 ) = 19
, L(u5 ) = 75
Iteration 5. u5 = 25
8
4
51
Iteration 6. u6 = 16 , etc.
k
(iii) Try bisection.
6.
Lagrangian Decomposition. Consider the problem Z = max{cx ∶ Ai x ≤
bi for i = 1, 2, x ∈ ℤn+ } with the reformulation
max{𝛼cx1 + (1 − 𝛼)cx2 ∶ Ai xi ≤ bi for i = 1, 2,
x1 − x2 = 0, xi ∈ ℤn+ for i = 1, 2}
for 0 < 𝛼 < 1.
Consider the Lagrangian dual of this formulation in which the n constraints
x1 − x2 = 0 are dualized. What is the strength of this dual?
Solution:
L(u) = L1 (u) + L2 (u) where
L1 (u) = max{(𝛼c − u)x1 ∶ A1 x1 ≤ b1 , x1 ∈ ℤn+ } and
L2 (u) = max{((1 − 𝛼)c + u)x2 ∶ A2 x2 ≤ b2 , x2 ∈ ℤn+ }.
WLD = maxn L(u).
u∈ℝ
k
k
k
28
Integer Programming: 2nd Edition
By Theorem 10.3,
WLD = max{𝛼cx1 + (1 − 𝛼)cx2 ∶ x1 ∈ conv(A1 x1 ≤ b1 , x1 ∈ ℤn+ ),
x2 ∈ conv(A2 x2 ≤ b2 , x2 ∈ ℤn+ ), x1 = x2 }
= max{cx ∶ x ∈ conv(A1 x ≤ b1 , x ∈ ℤn+ ) ∩ conv(A2 x ≤ b2 , x ∈ ℤn+ )}.
Solutions to Certain Exercises in Chapter 11
1.
Consider the problem UFL with formulation as in Chapter 1
min
m n
∑
∑
i=1 j=1
cij yij +
n
∑
fj xj
j=1
n
∑
xij = 1 for j = 1, … , n
j=1
yij − xj ≤ 0
mn
y ∈ ℝ+ , x ∈ {0, 1}n .
k
for i = 1, … , n, j = 1, … , n
∑n
Consider column generation, taking the constraints j=1 xij = 1 as the complicating constraints.
(i) Describe the extreme points of conv(X) where X = {(x, y) ∈
{0, 1} × ℝn+ ∶ yi ≤ x for i = 1, … , m}.
(ii) What is the complete Master Problem?
(iii) What is the column generation subproblem?
(iv) Consider an instance with m = 4, n = 3,
⎛2 1 5⎞
⎟
⎜
3 4 2⎟
(cij ) = ⎜
⎜6 4 1⎟
⎜1 3 7⎟
⎠
⎝
and f = (8, 6, 5).
Construct the restricted Master Problem using all the initial columns
in which a depot serves exactly two clients. Carry out an iteration of the
algorithm.
Solution:
(i) The extreme points are (y, x) = (eS , 1) for all subsets S ⊆ M = {1, … , m}
and (𝟎, 0).
k
k
k
Integer Programming: 2nd Edition
29
(ii) The Master Problem is
∑∑ ∑
( cij + fj )𝜆j,S
∑ ∑
j
∑
j
S⊆M i∈S
𝜆j,S = 1 for i ∈ M
S∶i∈S
𝜆j,S ≤ 1 for j = 1, … , n
S⊆M
𝜆j,S ≥ 0 for S ⊆ M, j = 1, … , n
(iii) The subproblems are min
j = 1, … , n.
3.
i=1 (cij − ui )yij + fj xj ∶ (y.j , xj ) ∈ X
}
for
Consider GAP with equality constraints
m n
∑
∑
max
n
∑
k
{∑m
j=1
m
∑
i=1
i=1 j=1
cij xij
xij
= 1 for i = 1, … , m
aij xij
≤ bj for j = 1, … , n
x ∈ {0, 1}mn .
⎛5 7 ⎞
⎛20 16⎞
⎟
⎟
⎜
⎜
Solve an instance with m = 3, n = 2, (aij ) = ⎜3 8 ⎟, (cij ) = ⎜15 19⎟,
⎜2 10⎟
⎜19 14⎟
⎠
⎠
⎝
⎝
( )
6
by integer programming decomposition.
and b =
21
Solution: The LP Master problem is initialized with the solutions (1,0,0)
and (0,1,1) for the first knapsack constraint and (0,1,1) and (1,0,0) for the
second. This gives
max 20z11 +34z21 +33z12 +16z22
1
0
0
1 = 1
0
1
1
0 = 1
0
1
1
0 = 1
1
1
≤ 1
1
1 ≤ 1
z
∈
ℝ4+
k
k
k
30
Integer Programming: 2nd Edition
Iteration 1
LP solution has Z = 53, u = (19, 0, 33), 𝑣 = (1, 0)
SP1 takes the form:
𝜁 1 = max[(20, 15, 19) − (19, 0, 33)]x − 1
5x1 + 3x2 + 2x3 ≤ 6
x ∈ {0, 1}3
SP1 . Solution 𝜁 1 = 14, x∗ = (0, 1, 0). Column added to LPM.z31
Iteration 2
RLM: Z = 53, u = (5, 0, 19), 𝑣 = (15, 14)
SP1 . 𝜁 1 = 0, SP2 𝜁 2 = 16, x∗ = (1, 1, 0). Column added to LPM.z32
Iteration 3
RLM: Z = 53, u = (0, 16, −2), 𝑣 = (20, 19)
SP1 : 𝜁 1 = 2, x∗ = (0, 0, 1). Column added to LPM. z41
Iteration 4
RLM: Z = 54, u = (0, 15, −1), 𝑣 = (20, 20)
SP1 : 𝜁 1 = 0
SP2 : 𝜁 2 = 0
RLM is solved to optimality. z41 = z32 = 1 gives x31 = x12 = x22 = 1.
Solution is integer, so M is solved.
k
Solutions to Certain Exercises in Chapter 12
1.
Write an extended formulation with extreme points and extreme rays for the
polyhedron
−x1 +x2 ≤ 1
3x1 +x2 ≥ 5
x1 +x2 ≥ 1
x1 +2x2 ≤ 11.
Solution: P has extreme points (3, 4), (1, 2), and (2, −1) and extreme rays
(4, −3) and (2, −1) giving
extended
( ) the (
) formulation:
( )
( )
( )
3
2
1
4
2
2
P = {x ∈ ℝ ∶ x =
𝜆1 +
𝜆2 +
𝜆3 +
𝜇1 +
𝜇,
4
−1
2
−3
−1 2
𝜆1 + 𝜆2 + 𝜆3 = 1, (𝜆, 𝜇) ∈ ℝ3+ × ℝ2+ }.
2.
Consider the mixed integer program
+5x2 +2y1 −7y2 +5y3
max 4x1
3x1
+4x2 +2y1 −2y2 +3y3 ≤ 10
x ≤ 3, x ∈ ℤ2+ , y ≤ 2, y ∈ ℝ3+ .
Solve it using Benders’ algorithm.
k
k
k
Integer Programming: 2nd Edition
Solution:
Top node
BR z∗ = 127, x∗ = (3, 3). 𝜂 ∗ = 100.
SP Infeasible. u∗ = 1, uy∗ = (0, 2, 0) (dual variables on y ≤ 2).
Feasibility cut 3x1 + 4x2 ≤ 14 added.
BR z∗ = 118.25, x∗ = (3, 1.25). 𝜂 ∗ = 100.
SP 𝜙∗ = −14, u∗ = 3.5, uy∗ = (0, 0, 0).
Optimality cut 𝜂 + 10.5x1 + 14x2 ≤ 35 added.
BR z∗ = 35, x∗ = (0, 0). 𝜂 ∗ = 3.5.
SP 𝜙∗ = 14, u∗ = 0, uy∗ = (2, 0, 5)
Optimality cut 𝜂 ≤ 14 added.
BR z∗ = 22, x∗ = (2, 0). 𝜂 ∗ = 14.
SP 𝜙∗ = 20
, u∗ = 53 , uy∗ = (0, 0, 0)
3
Optimality cut 𝜂 + 5x1 + 20
x ≤ 50
added.
3 2
3
∗
∗
BR z = 16.1333, x = (0.5333, 0). 𝜂 ∗ = 14.
SP 𝜙∗ = 12.4, u∗ = 1, uy∗ = (0, 0, 2)
Optimality cut 𝜂 + 3x1 + 4x2 ≤ 14 added.
BR z∗ = 46
, x∗ = ( 43 , 0). 𝜂 ∗ = 10.
3
∗
SP 𝜙 = 10. Top node LP is solved.
x∗ ∉ ℤ2+ . Branch on x1 .
k
Node x1 ≤ 1
BR z∗ = 15.25, x∗ = (1, 0.25). 𝜂 ∗ = 10.
SP 𝜙∗ = 10. LP is solved.
x∗ ∉ ℤ2+ . Branch on x2 .
Node x1 ≤ 1, x2 ≤ 0
BR z∗ = 15, x∗ = (1, 0). 𝜂 ∗ = 11.
SP 𝜙∗ = 11. y∗ = (0.5, 0, 2) LP is solved. New incumbent. z∗ = 15.
Node is pruned by optimality.
Node x1 ≤ 1, x2 ≥ 1
BR z∗ = 15, Node pruned by bound.
Node x1 ≥ 2
BR z∗ = 44
, Node pruned by bound.
3
The enumeration is complete.
Optimal solution x∗ = (1, 0), y∗ = (0.5, 0, 2), Z = 15.
4.
Consider the facet-generating separation LP (12.9)–(12.14) and suppose that
x0 = 0 and x∗ ∉ P. Write the dual of this LP. Show that it can be interpreted
as
(i) finding the smallest value 𝜆 > 1 such that x∗ ∈ 𝜆P, or as
(ii) finding the last point on the line from the origin to x∗ that lies in P.
k
31
k
k
32
Integer Programming: 2nd Edition
Solution:
(i) The dual of
max 𝛾x∗ − 𝛾0
𝛾 − uF ≤ 0
−uG ≤ 0
u(d − Fx0 ) − 𝛾0 ≤ 0
𝛾0 ≤ 1
u ∈ ℝm
+.
is, with dual variables (x, y, 𝜆, 𝜇),
min 𝜇
x = x∗
−𝜆 + 𝜇 = −1
−Fx − Gy + 𝜇d ≥ 0
k
k
x, y, 𝜇, 𝜆 ≥ 0
which can be rewritten as
min 𝜆 − 1
Fx∗ + Gy ≤ 𝜆d
y ≥ 0, 𝜆 ≥ 1.
Let 𝜆∗ > 1 be an optimal solution.
(ii) Note that if x̂ ∈ P is the point such that 𝜆∗ x̂ = x∗ , then x̂ is the last point
in P on the line from the origin to x∗ .
Solutions to Certain Exercises in Chapter 13
1.
Devise a simple heuristic for the instance of GAP in Exercise 4 in Chapter 10.
Solution: A very naive approach.
Find a feasible solution.
Take the smallest aij in each column and set the corresponding xij = 1. If the
solution is infeasible and xij = 1, try to swap for another variable in the row
xi,k and test for feasibility.
k
k
Integer Programming: 2nd Edition
33
Improving a feasible solution.
Again if xij = 1, try to swap for another variable in the row xik that maintains
feasibility and increases the value cik > cij .
For this instance, initial solution x11 = x21 = x31 = 1. Infeasible in column 1.
Swap x11 and set x12 = 1. Solution feasible.
Feasible solution x12 = x21 = x31 = 1. Swap x21 and set x22 = 1 as solution
remains feasible and c22 = 19 > c21 = 15.
Feasible solution x12 = x22 = x31 = 1. Swapping x12 makes the solution
infeasible and swapping x31 decreases the value. Stop. Heuristic solution
x12 = x22 = x31 = 1 with objective value 19.
Solutions to Certain Exercises in Chapter 14
1.
k
As part of a multicommodity network design problem, you encounter
the subset of different commodities passing through an arc. Each of the
flows has an upper bound dj corresponding to its total demand. To
meet the aggregate flow on the arc, capacity in multiples of C units
needs to be installed. Thus, the set can be formulated as follows:
∑n
X = {(x, y) ∈ ℤ × ℝn+ ∶ j=1 yj ≤ Cx, yj ≤ dj for j = 1, … , n}. For an instance
with n = 6, C = 10, d = (4, 9, 6, 3, 5, 7), you obtain the fractional solution
y∗ = (0, 9, 6, 0, 0, 7), x∗ = 2.2. Find a valid inequality cutting off this point.
Describe a family of valid inequalities for the set X.
Solution: As y1 = y4 = y5 = 0, we relax the inequality to obtain
𝑤 = y2 + y3 + y6 ≤ 6x and also 𝑤 ≤ d2 + d3 + d6 = 22. Now, see Example
8.3, we obtain the inequality 𝑤 ≤ 22 − 2(3 − x) cutting off the point.
∑
∑
More generally, 𝑤 = j∈S 𝑤j ≤ Cx and 𝑤 ≤ j∈S dj leads to an exponential
family of inequalities.
3.
Consider an item as in the multi-item lot-sizing problem in Section 14.4.
(i) Suppose that the item cannot be produced for more than 𝛾 consecutive
periods. Formulate. If the formulation appears to be weak, look for a
stronger formulation.
(ii) If the item must be produced at least once every 𝛿 periods, give a strong
formulation.
Solution:
(i) One possibility: If there is a switch-on in period t, the item must not be
produced in one of the periods in the interval [t + 1, t + 𝛾]. This gives:
zt ≤
t+𝛾
∑
(1 − yu ).
u=t+1
k
k
k
34
Integer Programming: 2nd Edition
A better alternative: If the item is produced in period t, production of the
item must have started at some period in the interval [t − 𝛾 + 1, t]. This
gives
yt ≤
t
∑
zu .
u=t−𝛾+1
(ii) If not produced in t, production must start during the interval [t + 1,
t + 𝛿]. This gives
1 − yt ≤
t+𝛿
∑
zu .
u=t+1
5.
k
You have a discrete time model in which xti = 1 if job i starts in period t. All
three jobs must be carried out. Given two jobs, you wish to formulate the
constraint that the start of job 1 is not more than three periods after the start
of job 2 and the start of job 3 is at least five periods after the start of job 1.
(i) Formulate without introducing additional variables.
(ii) Let zti = 1 if job i starts in or before period t. Reformulate using the zti
variables. Can you say anything about the structure of the constraint
matrix?
Solution:
∑
(i) First, there are the assignment constraints t xti = 1 for i = 1, 2, 3. Then,
if job 2 has started in or before time t, then job 1 must start in or before
t + 3. This gives
t
∑
xu2 ≤
u=1
t+3
∑
xu1 .
u=1
Similarly, if job 3 starts in or before period t, then job 1 starts in or before
t − 5 giving:
t
∑
u=1
xu3 ≤
t−5
∑
xu1 .
u=1
(ii) xti ∈ {0, 1} becomes 0 ≤ z1i ≤ z2i ≤ · · · ≤ zTi = 1. The other two con1
1
and zt3 ≤ zt−5
for all appropriate t.
straints become zt2 ≤ zt+3
1
All the constraints have the form 𝑤 − 𝑤2 ≤ b with b integer. The matrix
is the dual of a network matrix and therefore totally unimodular.
k
k
0
You can add this document to your study collection(s)
Sign in Available only to authorized usersYou can add this document to your saved list
Sign in Available only to authorized users(For complaints, use another form )