- Introduced by
- Ailsa Land & Alison Doig
- Year
- 1960
- Type
- Exact combinatorial optimization algorithm
- Family
- Mathematical programming
What does it do?
Branch and Bound is an exact method for integer and combinatorial optimization, introduced by Ailsa Land and Alison Doig in 1960.
It organizes the search as a tree of subproblems, uses relaxation-based upper bounds to discard branches that cannot improve the best known solution, and, when the bounds are valid, returns a provably optimal integer solution. It is the core search procedure inside many mixed-integer programming solvers used in operations research, logistics, scheduling and engineering design.
The intuition behind the method
Imagine searching for the highest-valued item hidden in a vast maze of rooms. Instead of checking every room, you estimate the maximum possible value reachable from each corridor before entering it. If that ceiling is lower than the best item you already hold, you skip the entire corridor without looking inside. Branch and Bound works the same way: it splits the problem into smaller pieces, computes optimistic upper bounds for each piece, and immediately discards any piece that provably cannot beat the current best solution.
History
Land and Doig published the method in Econometrica in 1960 as an automatic procedure for discrete programming problems. The paper's abstract describes it as a numerical algorithm that requires no special techniques beyond those used in ordinary linear programming. Later developments added cutting planes (branch-and-cut) and column generation (branch-and-price), and the method became a central component of integer programming solvers.
When to use it
Choose Branch and Bound when some decision variables must take integer or binary values, the model can be written as a linear or convex program whose relaxation gives valid upper bounds, and a certified optimal solution is required rather than an approximation. It is a poor fit when the model is nonlinear and non-convex without a usable relaxation, because the bounds may then be invalid or too weak to prune anything. It is also unsuitable when the instance is very large and the enumeration tree is likely to outgrow the available time, or when a good answer is needed within a strict time limit. In those situations heuristics or metaheuristics are usually preferred.
Limitations and considerations
- Worst-case running time is exponential in the number of integer variables, reflecting that the integer programs it solves are NP-hard in general; on poorly structured instances the tree can grow beyond practical size.
- Performance depends strongly on the branching-variable rule and the node-selection order, so results can vary widely between otherwise identical formulations.
- Pruning relies on the LP relaxation giving meaningful upper bounds; when the relaxation is weak, few nodes are fathomed by bound.
- Memory use can become substantial when many open nodes must be stored at the same time.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Guarantees global optimality for integer and combinatorial programs when the bounding relaxation is valid.
- Bound-based pruning can discard large parts of the enumeration tree on well-formulated instances, so the search can examine far fewer nodes than full enumeration.
- Extensible: cutting planes (branch-and-cut) and column generation (branch-and-price) can be added to tighten bounds or handle large variable sets.
- Implemented in mature commercial solvers such as CPLEX and Gurobi and in open-source solvers such as GLPK and CBC.
Applications
- Airline crew scheduling and fleet assignment in operations research.
- Supply-chain network design and facility location problems.
- Travelling salesman and other routing problems in combinatorial optimization.
- Financial portfolio optimization with cardinality constraints.
How it works
How it works
The algorithm first solves a relaxed version of the problem, typically the LP relaxation obtained by dropping the integrality requirements. For a maximization problem, the relaxed optimum is an upper bound on the best integer value, because every feasible integer solution is also feasible in the relaxation. If the relaxed solution already has integer values for the required variables, that subproblem is solved without further branching.
Formula
\text{Solve LP relaxation: } z^* = \max\{\mathbf{c}^\top \mathbf{x} \mid A\mathbf{x} \leq \mathbf{b},\, \mathbf{x} \geq 0\}When the relaxed solution has a fractional value for an integer variable, the algorithm splits the feasible region into two subproblems. One adds the constraint that the variable is at most its rounded-down value, and the other adds the constraint that it is at least its rounded-up value. Together these cover all integer solutions that the parent node contained, so no feasible solution is lost, and each child has a tighter feasible region.
Formula
\text{Select fractional variable } x_j \notin \mathbb{Z}\text{; create sub-problems: } x_j \leq \lfloor x_j^* \rfloor \text{ and } x_j \geq \lceil x_j^* \rceilEach open node receives its own relaxation bound. A node whose upper bound does not exceed the value of the incumbent, the best integer solution found so far, cannot contain a better solution and is therefore pruned. The tightness of these bounds largely determines how many nodes must be examined. The description here assumes maximization. For a minimization problem the roles reverse: the incumbent value gives an upper bound on the optimum, each node's relaxation gives a lower bound, and a node is pruned when its lower bound is at least the incumbent value.
Formula
\text{Compute bound } UB_k \text{ for node } k\text{; prune if } UB_k \leq z_{\text{inc}}A node is fathomed, meaning it is closed for good, in one of three cases: its relaxation is infeasible, its bound does not exceed the incumbent value, or its relaxed solution is already integer-feasible. In the last case the incumbent is replaced if the new solution is better. When no open nodes remain, the incumbent is the optimal solution.
Formula
\text{Fathom node } k \text{ if infeasible, or } UB_k \leq z_{\text{inc}}, \text{ or } \mathbf{x}^*_k \in \mathbb{Z}^n\text{; update } z_{\text{inc}} \leftarrow \max(z_{\text{inc}}, z_k)Common pitfalls
- Always branching on the first fractional variable, rather than using a deliberate selection rule, often produces deep, unbalanced trees and slow convergence.
- Omitting valid inequalities (cutting planes) leaves the relaxation loose, so far more nodes must be examined than necessary.
- Stopping early at a nonzero optimality gap without reporting it can lead users to treat a near-optimal solution as exact.
- Applying the method to nonlinear or non-convex relaxations without suitable convexification can produce invalid bounds, and therefore incorrectly pruned optima. For non-convex continuous problems, branch and bound generally requires ad hoc, problem-specific bounding and branching code and is not usually offered as a ready-made solver option; for mixed-integer linear models, by contrast, standard software is widely available.
Frequently asked questions
How does Branch and Bound differ from exhaustive enumeration?
Exhaustive enumeration evaluates every feasible integer solution explicitly, which is infeasible for large problems. Branch and Bound avoids this by computing relaxation-based upper bounds at each node of the search tree and pruning entire subtrees whenever the bound cannot exceed the best solution already found. In practice, only part of the tree is examined, although the amount varies greatly with the instance.
What is the role of the LP relaxation in Branch and Bound?
The LP relaxation drops the integrality requirements, leaving a linear program that can be solved by the simplex or interior-point method. For a maximization problem, its optimal value serves as an upper bound for the corresponding integer subproblem. When this bound is tight, close to the true integer optimum, fewer branches need to be explored. Tighter relaxations, often obtained by adding valid inequalities, can substantially reduce the work of the algorithm.
When should I use Branch and Bound versus a metaheuristic like genetic algorithms?
Choose Branch and Bound when you need a certificate of optimality and can afford the computation time, particularly for medium-sized problems with well-structured LP relaxations. Metaheuristics are preferable when the problem is very large, lacks a useful relaxation, or must be solved within a tight time budget where a near-optimal solution is acceptable. Some practitioners combine the two, for example by running Branch and Bound with an optimality-gap tolerance that stops the search early.
Related methods
Sources
Land, A. H., & Doig, A. G. (1960). An automatic method of solving discrete programming problems. Econometrica, 28(3), 497–520.
Open DOI referenceNumerical Methods in Finance and Economics: A MATLAB-Based Introduction, p. 584