











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












z = max{c T^ x : x ∈ F },
where F denotes the set of feasible solutions (as we saw, F is usually defined im- plicitly via constraints). If F can be decomposed into a union of simpler sets F = F 1 ∪ · · · ∪ Fk and if
z [j]^ := max{c T^ x : x ∈ Fj } (j = 1,... , k),
then
z = max j
z [j]^.
Let us work through an example to see how such decompositions might arise in practice:
Example 11. Let F be the set of feasible tours of the travelling salesman problem on a network of 4 cities. Let node 1 be the departure city.
F can be subdivided F = F(1,2) ∪ F(1,3) ∪ F(1,4) into the disjoint sets of tours that start with an arc (1, 2), (1, 3) or (1, 4) respectively.
Each of the sets F(1,2) , F(1,3) and F(1,4) can be further subdivided according to the choice of the second arc, F(1,2) = F(1,2)(2,3) ∪ F(1,2)(2,4) etc.
Finally, we see that each of these sets corresponds to a specific TSP tour and cannot be further subdivided. We have found an enumeration tree of the TSP tours.
We see that F was decomposed on a first level, and then each of the constituent parts was further decomposed on a further level and so on. Also, each Fj corresponds to a branch (or subtree) of the enumeration tree.
Thus, Proposition 3.1 allows us to decompose a hard problem into a possibly large number of easier branch problems, and to find an optimal solution of F by comparing the solutions found for the branch problems.
Of course, for even quite moderately sized problems such a tree can no longer be explicitly enumerated, as the number of leaves grows exponentially in the problem size. The idea of implicit enumeration is based on building up the enumeration tree as we explore it, and to prune certain parts that are not worth looking at before those parts are even generated. The pruning mechanisms are based on the following insight:
Proposition 3.2. Consider the problem
z = max{c T^ x : x ∈ F },
F
F(1,2) F(1,3) F(1,4)
F(1,2)(2,3) F(1,2)(2,4) F(1,3)(3,2) F(1,3)(3,4) F(1,4)(4,2) F(1,4)(4,3)
Fig. 3.1. The implicit enumeration tree of Example 11.
and let F = F 1 ∪ · · · ∪ Fk be a decomposition of its feasible domain into smaller sets. Let z[j]^ ≤ z [j]^ ≤ z [j]^ be lower and upper bounds on z [j]^ = max{c T^ x : x ∈ Fj } for all j. Then
z := max j z[j]^ ≤ z ≤ max j z [j]^ =: z
gives an upper and lower bound on z. Proof. For all j, z =≥ z [j]^ ≥ z[j]^ , so z ≥ max (^) j z[j]^. Furthermore, z = max (^) j z [j]^ ≤ max (^) j z [j]^.
3.1. Pruning Mechanisms. We speak of “pruning” a branch when we detect that we need no longer explore it further. This can happen for a variety of reasons.
Why would an empty subset Fj appear in the decomposition of F? Remember that we don’t set up the decomposition tree explicitly but use an implicit enumeration, typically by introducing more and more constraints as we move towards the leaves of the enumeration tree.
As we proceed, the constraints may become incompatible and correspond to an empty set Fj , but this may not be a-priori obvious and has to be detected. For example, in the case where the bounds z[j]^ , z [j]^ are computed via LP relaxation, the simplex algorithm will detect if the LP relaxation is infeasible, and then Fj is empty as well.
If LP relaxation is used for generating dual bounds in a branch-and-bound sys- tem, we speak of LP based branch-and-bound. We will now explore this framework in more detail: Throughout the algorithm we will maintain and update a list AN of active nodes (denoted by their feasible sets Fj ; we denote the feasible sets of their LP relaxations by Pj ), a primal bound z on max{c T^ x : x ∈ F }, and an incumbent x∗^ (the best solution encountered so far).
3.3. An Example of Branch and Bound in Action. As a way of illustrating the LP based branch-and-bound technique, let us now solve the IP instance
(F ) z = max 4x 1 − x 2 s.t. 7x 1 − 2 x 2 ≤ 14 x 2 ≤ 3 2 x 1 − 2 x 2 ≤ 3 x ∈ Z^2 +.
(P ) z = max 4x 1 − x 2 s.t. 7x 1 − 2 x 2 ≤ 14 x 2 ≤ 3 2 x 1 − 2 x 2 ≤ 3 x ≥ 0
of (F ). Introducing slack variables x 3 , x 4 , x 5 and applying the simplex algorithm, we obtain the optimal dictionary
x 1 =
x 3 −
x 4
x 2 = 3 − 0 · x 3 − x 4
x 5 =
x 3 −
x 4
z =
x 3 −
x 4
from which we read off the nonintegral solution (x 1 , x 2 ) =
that corresponds to the upper (or dual) bound z = 597. We could have generated a lower bound by finding a feasible solution for (IP ) via a heuristic, but since we did not, we set z = −∞.
F 1 = F ∩ {x : xj ≤ (xj )}, F 2 = F ∩ {x : xj ≥ *xj +}.
F
F 1 F 2
59 7
−∞
x 1 ≤ 2 x 1 ≥^3
Fig. 3.4. The partial enumeration tree after the first fractional branching.
Of course, futher down the tree we can use the same branching rule to subdivide any Fj thus generated. In our case this leads to the two subproblems
(F 1 ) z = max 4x 1 − x 2 s.t. 7x 1 − 2 x 2 ≤ 14 x 2 ≤ 3 2 x 1 − 2 x 2 ≤ 3 x 1 ≤ 2 x ∈ Z^2 +.
and
(F 2 ) z = max 4x 1 − x 2 s.t. 7x 1 − 2 x 2 ≤ 14 x 2 ≤ 3 2 x 1 − 2 x 2 ≤ 3 x 1 ≥ 3 x ∈ Z^2 +.
Note that upon solving the LP relaxations of these two problems we will have
max{z [1]^ , z [2]^ } < z,
since x 1 would have to be allowed to take the value 207 for the value z to be attained. Thus, branching on a fractional variable guarantees that the upper bounds decrease strictly in subsequent iterations, unless there exist multiple optimal solutions for the parent LP relaxation.
So far we obtain the partial enumeration tree of Figure 3.4. The branches dangling off the nodes F 1 and F 2 still need to be explored. We mark these nodes as active. The node F on the other hand has been processes and is inactive.
F
F 1 F 2
F 11 F 12
59 7
−∞
(^152)
x 1 ≤ 2 x 1 ≥^3
x 2 = 0 (^) x 2 ≥ 1
Fig. 3.5. The partial enumeration tree after the second fractional branching.
Using the same approach as before, we introduce
F 11 = F 1 ∩ {x : x 2 ≤ 0 } = F 1 ∩ {x : x 2 = 0} (since x 2 ≥ 0), F 12 = F 1 ∩ {x : x 2 ≥ 1 }.
We now arrive at the partial enumeration tree of Figure 3.5, and the new list of active nodes is F 11 , F 12 , F 2.
(P 2 ) z = max 4x 1 − x 2 s.t. 7x 1 − 2 x 2 ≤ 14 x 2 ≤ 3 2 x 1 − 2 x 2 ≤ 3 x 1 ≥ 3 x ≥ 0
of the problem
(F 2 ) z [1]^ = max{c T^ x : x ∈ F 2 }.
Proceeding the same way as above, we express the new constraint x 1 ≥ 3 in terms of the optimal nonbasic variables of (LP). We had found x 1 = 20/ 7 − 1 / 7 x 3 − 2 / 7 x 4. Thus, the new constraint is
1 7 x 3 +
x 4 ≤ −
F
F 1 F 2
F 11 F 12
59 7
−∞
(^152) −∞
x 1 ≤ 2 x 1 ≥^3
x 2 = 0 (^) x 2 ≥ 1
Fig. 3.6. The branch corresponding to F 2 can be pruned.
After introducing a new slack variable x 6 , we find that (LP 2 ) is equivalent to
z = max
x 3 −
x 4
s.t. x 1 =
x 3 −
x 4
x 2 = 3 − 0 · x 3 − x 4
x 5 =
x 3 −
x 4
x 6 = −
x 3 −
x 4
x 1 ,... , x 6 ≥ 0.
But this LP is infeasible, because the last constraint contradicts x 6 ≥ 0. Hence, F 2 can be pruned by infeasibility, and we arrive at the partial enumeration tree of Figure 3.6.
the optimal solution (x [12] 1 , x [12] 2 ) = (2, 1) corresponding to the optimal value z [12]^ = 7. Since x [12]^ is integral, this is a feasible solution for (F 1 ) and provides a lower bound z[12]^ = 7. In fact, F 12 can now be pruned by optimality. The partial enumeration tree is now as in Figure 3.7.
3.4. LP Based Branch and Bound: The General Case. Let us now de- scribe the LP based branch-and-bound algorithm for general IP instances. We start with a variant that only uses dual bounds.
Algorithm 3.3. [LP based branch-and-bound] AN = {F }, z = −∞, x∗^ = ∅ (initialisation) while AN .= ∅, repeat choose a problem Fj ∈ AN and apply simplex alg. to x[j]^ := arg max{c T^ x : x ∈ Pj } if simplex alg. found Pj = ∅ set AN = AN \ {Fj } elseif simplex alg. found LP relaxation unbounded set z [j]^ = z = +∞ and AN = (AN \ {Fj }) ∪ {F (^) j[1] , F (^) j[2] } (branch- ing) else (x[j]^ is finite) set z [j]^ = c T^ x[j]^ , z = max(z, z [j]^ ) if z [j]^ ≤ z set AN = AN \ {Fj } elseif x[j]^ is feasible for F set z = z [j]^ , x∗^ = x[j]^ and AN = AN \ {Fi : z [i]^ ≤ z} else (Fj not pruned) set AN = (AN \ {Fj }) ∪ {F (^) j[1] , F (^) j[2] } (branching) end end end.
Remarks: The algorithm is constructed to either stop with an optimal incumbent x∗^ , or with x∗^ = ∅ as certificate of infeasibility of the problem. In the first case the final bounds satisfy z = z.
The efficiency of the algorithm can be improved if we also compute a lower bound for Fj (using a heuristic) and use this to update the global lower bound z.
In LP-based branch-and-bound the LP relaxation of each subproblem is only slightly different from that of its parent problem. In this situation the simplex algo- rithm does not have to be started from scratch. Instead, it is much more economical to use a warm start from a basic feasible solution constructed from the optimal dic- tionary of its parent. We will discuss this technique in the next section.
Algorithm 3.4. [Variant with lower bounds] AN = {F }, z = −∞, x∗^ = ∅ (initialisation) while AN .= ∅, repeat choose a problem Fj ∈ AN and apply simplex alg. to x[j]^ := arg max{c T^ x : x ∈ Pj } if simplex alg. found Pj = ∅ set AN = AN \ {Fj } else using heuristic, compute lower bound z[j] set z = max{z, z[j]^ } and AN = AN \ {Fi : z [i]^ ≤ z} if simplex alg. found LP relaxation unbounded set z [j]^ = z = +∞ and AN = (AN \ {Fj }) ∪ {F j [1] , F (^) j[2] } (branching) else (x[j]^ is finite) set z [j]^ = c T^ x[j]^ , z = max(z, z [j]^ ) if z [j]^ ≤ z set AN = AN \ {Fj } elseif x[j]^ is feasible for F set z = z [j]^ , x∗^ = x[j]^ and AN = AN \ {Fi : z [i]^ ≤ z} else (Fj not pruned) set AN = (AN \ {Fj }) ∪ {F (^) j[1] , F (^) j[2] } (branching) end end end end.
4.1. Warm-Starting the LP Relaxations. In LP-based branch-and-bound the LP relaxation of each subproblem is only slightly different from that of its par- ent problem. In the example of Section 3.3 we have seen that in this situation the simplex algorithm does not have to be started from scratch. Instead, it is much more economical to use a warm start from a basic feasible solution constructed from the optimal dictionary of its parent. Let us now discuss this technique in more detail, distinguishing four different cases. Let x∗^ , y ∗^ be optimal solutions for the primal and dual LP instances
(P) max x c T^ x (D) min y b T^ y
s.t. Ax ≤ b, s.t. AT^ y ≥ c, x ≥ 0 y ≥ 0.
4.1.1. The objective function changes.
(P’) max x ˜c T^ x
s.t. Ax ≤ b, x ≥ 0 ,
This dictionary is optimal, as all the coefficients that appear in the z-line are nonpos- itive. We can read off the new primal optimal solution
x ˜∗ 1 =
, x˜∗ 2 = ˜x∗ 3 = 0,
and the new optimal dual solution
y ˜ ∗ 1 = 3, y˜ ∗ 2 = ˜y 3 ∗ = 0.
Both yield the new optimal objective function value
6˜x∗ 1 + 5˜x∗ 2 + 2˜x∗ 3 = 15 = 5˜y ∗ 1 + 11˜y ∗ 2 + 8˜y ∗ 3.
4.1.2. A new variable appears.
(P’) max x,x (^) n+ c T^ x + c (^) n+1 xn+
s.t. Ax + axn+1 ≤ b, x, xn+1 ≥ 0 ,
Note that (x∗^ , 0) is primal feasible for (P’). A few simplex iterations can therefore be applied to the primal dictionary corresponding to (x∗^ , 0), and the new primal and dual optimal solutions can be read off the new optimal dictionary.
Example 13. Consider the LP instance from Example 12 and let us add a new variable,
(P’) max 5x 1 + 4x 2 + 3x 3 + x 4 s.t. 2 x 1 + 3x 2 + x 3 − x 4 ≤ 5 4 x 1 + x 2 + 2x 3 + x 4 ≤ 11 3 x 1 + 4x 2 + 2x 3 − 2 x 4 ≤ 8 x 1 , x 2 , x 3 , x 4 ≥ 0.
Introducing slack variables,
x 5 = 5 − 2 x 1 − 3 x 2 − x 3 + x 4 , x 6 = 11 − 4 x 1 − x 2 − 2 x 3 − x 4 , x 7 = 8 − 3 x 1 − 4 x 2 − 2 x 3 + 2x 4.
To find the dictionary corresponding to (x∗^ , 0) = (2, 0 , 1 , 0) (or (2, 0 , 1 , 0 , 0 , 1 , 0) with the slack variables) we need to reformulate these equations so as to express x 1 , x 3 , x 6 in terms of x 2 , x 4 , x 5 , x 7. Gaussian elimination yields
x 1 = 2 − 2 x 2 − 2 x 5 + x 7 , x 6 = 1 + 5x 2 − 3 x 4 + 2x 5 , x 3 = 1 + x 2 + x 4 + 3x 5 − 2 x 7.
Expressing z = 5x 1 + 4x 2 + 3x 3 + x 4 in terms of x 2 , x 4 , x 5 , x 7 by substituting from the previous equations, we find the required dictionary to warm-start the simplex method:
x 1 = 2 − 2 x 2 − 2 x 5 + x 7 x 6 = 1 + 5x 2 − 3 x 4 + 2x 5 x 3 = 1 + x 2 + x 4 + 3x 5 − 2 x 7 z = 13 − 3 x 2 + 4x 4 − x 5 − x 7.
4.1.3. The right-hand side changes.
(P’) max x c T^ x
s.t. Ax ≤ ˜b, x ≥ 0 ,
Note that y ∗^ is still feasible for the new dual
(D’) min y
˜b T^ y
s.t. AT^ y ≥ c, y ≥ 0 ,
We can thus proceed as in Section 4.1.1 with (D’) in the role of (P’).
4.1.4. A new constraint appears. This is the most common change in the context of branching algorithms for IP.
(P’) max x c T^ x
s.t. Ax ≤ b, a T m+1 x ≤ b (^) m+1 , x ≥ 0 ,
In the context of the new dual this corresponds to the situation where a new variable appears,
(D’) min y,y (^) m+ b T^ y + b (^) m+1 y (^) m+
s.t. AT^ y + a (^) m+1 y (^) m+1 ≥ c, y, y (^) m+1 ≥ 0.
Thus, (y ∗^ , 0) is feasible for (D’), and we can proceed as in Section 4.1.2 with (D’) taking the place of (P’).
4.2. Fine-Tuning Branch-and-Bound. Commercial branch-and-bound sys- tems for integer and mixed integer programming are designed to solve as few LP subproblems as possible and to solve them rapidly. Typically, such software allows the user to switch on or off a number of options to fine-tune the method to specific problem classes. We will now discuss a list of typical options and the mathematical reasoning behind them.
How many sweeps of this process are needed? One can show that after two sweeps of all the constraints and variables, the bounds cannot improve any further! Redundant Constraints: Using the final upper bounds in constraint 3,
x 1 + x 2 + x 3 ≤
so that this constraint is redundant and can be omitted.
The remaining problem is
max 2x 1 + x 2 − x 3 5 x 1 − 2 x 2 + 8x 3 ≤ 15 8 x 1 + 3x 2 − x 3 ≥ 9 7 8 ≤ x 1 ≤
, 0 ≤ x 2 ≤ 1 , 1 ≤ x 3 ≤
Variable fixing:
max
2 x 1 :
≤ x 1 ≤
Example 14 shows how to simplify linear programming instances. In the prepro- cessing of IPs we have further possibilities:
7 x 1 + 3x 2 − 4 x 3 − 2 x 4 ≤ 1 − 2 x 1 + 7x 2 + 3x 3 + x 4 ≤ 6 − 2 x 2 − 3 x 3 − 6 x 4 ≤ − 5 3 x 1 − 2 x 3 ≥ − 1 x ∈ B^4.
Generating logical inequalities: The first constraint shows that x 1 = 1 ⇒ x 3 = 1, which can be written as
x 1 ≤ x 3.
Likewise, x 1 = 1 ⇒ x 4 = 1, or equivalently,
x 1 ≤ x 4.
Finally, constraint 1 also shows that the problem is infeasible if x 1 = x 2 = 1. Therefore, the following constraint must hold,
x 1 + x 2 ≤ 1.
We can process the remaining constraints in a similar vein: Constraint 2 yields the inequalities x 2 ≤ x 1 and x 2 + x 3 ≤ 1, constraint 3 yields x 2 + x 4 ≥ 1 and x 3 + x 4 ≥ 1, and constraint 4 yields x 1 ≥ x 3.
Although the introduction of the new logical constraints makes the problem seem more complicated, the formulation becomes tighter and thus better. Furthermore, we can now process the problem further:
Combining pairs of logical inequalities: We now consider pairs involving the same variables: The inequalities x 1 ≤ x 3 and x 1 ≥ x 3 yield x 1 = x 3 , x 1 + x 2 ≤ 1 and x 2 ≤ x 1 yield x 2 = 0, and then x 2 + x 4 ≥ 1 yields x 4 = 1.
Simplifying: Substituting the identities x 2 = 0, x 3 = x 1 and x 4 = 1 we found, all four constraints become redundant.
We are left with the choice x 1 ∈ { 0 , 1 }, and hence the feasible set contains only two points
S = {(1, 0 , 1 , 1), (0, 0 , 0 , 1)}.
4.2.2. Selection of Algorithm to Solve the LPs. The simplex algorithm implemented in a branch-and-bound system typically lets the user choose some pa- rameters. Likewise, interior-point LP solvers can be fine-tuned via certain parameters. We cannot discuss this issue further in the framework of this course.
4.2.3. Node Selection. Depth-First: A depth-first strategy aims at finding a feasible solution quickly, by only choosing an active node that is a direct descendant of the previously processed node. This strategy also makes it easier to warm-start the LP calculations in each iteration. Best-Node-First: To minimise the total number of nodes processed during the run of the algorithm, the optimal strategy is to always choose the node with the largest upper bound, i.e., S (^) j such that
z [j]^ = max{z [i]^ : S (^) i ∈ List}.
Under this strategy we will never branch on a node S (^) t whose upper bound z [t]^ is smaller than the optimal value z of S. This is called a best-node-first strategy. The depth-first and best-node-first strategies are usually mutually contradictory, so a compromise has to be reached. Usually, depth-first is used initially until a feasible solution is found and a lower bound z is established.
candidate variables, branches up and down for each xj ∈ C, computes upper bounds z (^) jU and z (^) jD by solving the LP relaxations of the up and down branching corresponding to xj , and chooses the variable having the largest effect
j ∗^ = arg min{max(z Uj , z Dj ) : j ∈ C}
as the actual branching variable for the branch-and-bound scheme. That is, one explores several possible branchings and chooses to pursue the branches below only the most promising branching variable.
4.2.5. Further Improvements to Branch-and-Bound Systems. LP based branch-and-bound may not be strong enough to solve really hard IP problems. In these cases one has to resort to the following improvements.
Finding feasible solutions via heuristics. This is hard, but when it succeeds, it generates lower bounds that allow pruning by bound.
Finding better dual bounds through combinatorial relaxation, duality, or semidef- inite programming relaxation.
Tightening the formulation of the IP, having the effect that fewer branching nodes are needed until an optimal solution is found. This can be achieved with cutting plane and branch-and-cut methods, or by Lagrangian relaxation or column generation ap- proaches in which part of the feasible region is convexified.