Definition · RelaxationA relaxation of an optimisation problem is another problem with the same objective and a feasible set that contains the original one. Dropping the requirement that the variables be integers gives the linear programming relaxation: the same rows, the same objective, and x ≥ 0 in place of x ∈ {0, 1, 2, …}.
The word is worth taking literally. Nothing has been approximated and nothing has been solved approximately. A second, easier problem has been written down, and it has its own exact answer, which the simplex method of the earlier courses produces in exact fractions.
Theorem · The relaxation bounds the integer optimumFor a maximisation, z_LP ≥ z_IP. For a minimisation, z_LP ≤ z_IP. In both cases the relaxation errs on the optimistic side, and by an amount nothing in the relaxation reveals.
Every plan that satisfies the rows and is whole also satisfies the rows, so the integer feasible set is a subset of the relaxed one.
A maximum over a subset is at most the maximum over the whole set. Hence z_IP ≤ z_LP, and the minimisation case is the same argument with the inequality reversed.
□
That is all that is proved, and readers routinely hear more in it. It does not say the integer optimum is close to z_LP; it does not say the integer optimum is near the fractional point; and it says nothing whatever about rounding, which has not been mentioned.
Example · Four roundings of (9/4, 3/2)The relaxation of max 3x₁ + 4x₂ subject to 2x₁ + x₂ ≤ 6 and 2x₁ + 3x₂ ≤ 9 stops at (9/4, 3/2), worth 51/4. Its roundings are (2, 1), (2, 2), (3, 1) and (3, 2). (2, 2) breaks the second row, which wants 10 where 9 is allowed; (3, 1) breaks the first, which wants 7; (3, 2) breaks the first, which wants 8. Only (2, 1) survives, and it is worth 10.
The best whole-number plan need not be anywhere near the fractional one
There are ten whole-number plans in this region, and the best of them is (0, 3), worth 12. It is not a rounding of (9/4, 3/2); it is at the other end of the region, with the first variable at zero rather than at two or three. No amount of care about which way to round finds it, because rounding only ever looks at the corners of one little box.
51/4 = 12.75 z_LP, the relaxation
12 z_IP, the best whole-number plan
10 the best feasible rounding
51/4 ≥ 12 ≥ 10 and only the first ≥ is a theorem
The 3/4 between 51/4 and 12 is the integrality gap of this instance. It is not an error bar and not a rounding error: it is the price of the requirement that the plan be whole, measured on this instance and no other. The second gap, the 2 between 12 and 10, is the price of having rounded instead of solved.
The integer optimum here was found by trying every whole-number point in the box — thirty candidates, ten of them feasible. That is honest at this size and hopeless at any interesting one, which is what the last four lessons of this course are for. What matters now is that a number produced by enumeration is an answer, and a number produced by rounding is a guess with no bound attached.
Algebra’s “Systems of Inequalities and Linear Programming” ends by saying that rounding an optimal corner is not guaranteed to give the best whole-number answer, and that this is a different subject. This is that subject, and this is its first page: everything after it exists because the sentence is true.