Definition · IncumbentThe incumbent is the best feasible solution found so far, together with its value. It is a lower bound on the optimum of a maximisation and an upper bound for a minimisation, and its provenance is irrelevant: a plan is a plan.
Definition · Global bound and optimality gapThe global bound is the best bound over every node still open, or the incumbent's own value when none is. The absolute gap is the difference between the global bound and the incumbent; the relative gap is that difference divided by the incumbent. A gap of zero means the incumbent is optimal, and that is a proof.
Take max 4x₁ + 3x₂ subject to 3x₁ + 2x₂ ≤ 17 welding and 2x₁ + 5x₂ ≤ 23 painting. The root relaxation is worth 261/11, about 23.73. Its answer is 23, at (5, 1). Watch what is proved along the way, taking the newest open node each time.
after node incumbent global bound gap relative
3 none 47/2 — —
5 21 47/2 5/2 11.9%
7 21 70/3 7/3 11.1%
9 23 23 0 0.00%
Read the second row as a sentence. “Nothing beats 21 by more than 5/2.” That is all of it. It is a statement about 47/2, which is a property of a relaxation, and it contains no claim about how likely 21 is to be best. As it happens 21 is not best: the answer is 23, two more, and well within the 5/2 the bound allowed.
The first row is worth as much as the others. With no incumbent there is no gap and nothing whatever has been proved — a bound alone rules out nothing, because it does not exhibit a plan. Two numbers are needed, and a report with one of them is not a weaker report; it is a different kind of statement.
What a two per cent gap says, and what it does not
A 2% gap proves that nothing beats the incumbent by more than 2%. There is no probability in that sentence and none can be smuggled in: the gap is a bound on how wrong the plan in hand could be, not an estimate of how wrong it is. The incumbent is frequently optimal long before the gap closes, and the nodes spent after it was found buy the proof rather than the plan.
That is also the honest answer to “can we stop?”. Stopping with a stated gap is a result: the plan is in hand and its worst case is quantified. Stopping without one leaves a plan and a hope, and the two look identical on a slide.
Search order changes the work and not the answer. On this instance, taking the newest open node closes the tree in nine nodes; taking the most promising open node closes it in seven, and reaches the answer without ever holding a worse incumbent — its first incumbent is 23, and the gap is zero the moment it appears. Neither order is right; they trade a good early plan against a fast-falling bound, and which helps depends on the instance.
The reason a gap is the deliverable at all is that the alternative cannot be promised. The search tree's worst case is exponential and that result belongs to the Algorithms path’s “Backtracking and Branch-and-Bound”; the vocabulary for saying what kind of hardness this is belongs to Discrete Mathematics’ “P, NP and NP-Completeness”. Neither is restated here. What is this lesson's own is the consequence: if the tree may not close, then the number you report has to be the pair.