Total unimodularity and integrality
Use determinant structure to explain when a continuous relaxation already has integral vertices.
On this page
The question for today
What you’ll understand
- Distinguish total unimodularity from a determinant-one square matrix.
- Prove vertex integrality from an integral right-hand side and TU constraints.
- Recognize structural and numerical limits of the integrality conclusion.
Integer constraints are often the source of combinatorial difficulty, but some models hide a favorable matrix structure. Their continuous relaxations have integral vertices, making a linear optimization algorithm sufficient to find an integer optimum when a finite optimum exists. Total unimodularity is a strong, checkable structural explanation for this phenomenon. It is a property of every square minor of a constraint matrix, not merely the determinant of the whole matrix or the fact that its entries look discrete.
Every square minor matters
A matrix is totally unimodular, abbreviated TU, when every square submatrix has determinant zero, one, or minus one. The one-by-one minors force all entries to lie in . A square integer matrix with determinant one or minus one is unimodular, but need not be totally unimodular: an entry of two already violates the one-by-one condition. Conversely, a rectangular TU matrix may have no determinant of its own. The definition controls every possible nonsingular basis that can arise, which is why it is useful for an optimization algorithm that changes bases.
Several operations preserve TU: transposing, multiplying a row or column by minus one, deleting rows or columns, and appending an identity matrix or its negative. These facts follow by reducing the relevant determinant using signs and expansion along unit columns or rows. Adding an arbitrary valid inequality is not on this list and can destroy TU. A modeler must inspect the actual augmented matrix after adding resource limits, side constraints, or variable transformations. Integrality is a theorem about the specified representation with an integral right-hand side, not a decorative label attached permanently to an application.
Why vertices become integral
Consider with TU and integral . At a vertex, choose a full-rank square system of active constraints from and the nonnegativity rows. Its coefficient matrix is a nonsingular minor of the TU augmentation with negative identity, so its determinant is one or minus one. Its inverse is integral by the adjugate formula. Multiplying that inverse by the integral active right-hand side gives an integral vertex. This proof establishes the key implication directly and shows exactly where the integrality of is needed.
Because nonnegativity makes this polyhedron pointed, a feasible LP with finite optimal value has an optimal vertex, hence an integer optimum. The objective coefficients do not need to be integral. The theorem does not say that every feasible point is integral: convex combinations of distinct integer vertices are usually fractional. Nor does it guarantee feasibility, boundedness, or uniqueness. If an interior-point method returns the midpoint of an optimal edge, it may return a fractional optimum even though an integral optimal vertex exists. A vertex extraction or combinatorial algorithm can then supply an integral representative.
Incidence structure and failure cases
A directed node-arc incidence matrix has one minus one and one plus one in each non-loop arc column. It is TU: for any square submatrix, a column with at most one nonzero entry permits induction by determinant expansion; if every column has two entries, their opposite signs make the row sum zero and the determinant vanishes. Bipartite graph node-edge incidence matrices are also TU after changing signs on one vertex partition. This links matching and flow integrality to a concrete determinant argument rather than to an assumption that networks are automatically easy.
A triangle's unsigned node-edge incidence matrix has determinant two in absolute value, so it is not TU. With unit capacities at vertices, assigning one-half to each of its three edges satisfies the degree inequalities and can be a fractional vertex. Odd-set inequalities repair the matching description, but the original degree matrix alone lacks the bipartite guarantee. A separate failure is a nonintegral right-hand side: even the TU one-by-one matrix gives the fractional endpoint one-half when its bound is one-half. Check structure and data together before dropping integer declarations.
Work it through
An integral relaxation with a fractional feasible point
Maximize subject to , , and . Verify TU and identify an integer optimum without imposing integer variables.
The resource matrix is . Its entries are zero or one and its only two-by-two determinant is minus one, so all square minors satisfy the TU condition.
The integral resource vector is . The vertex theorem therefore guarantees integer vertices. The feasible point illustrates why not every feasible point must be integral.
Combining the inequalities yields . The feasible integer point attains five and is consequently optimal for both the LP and its integer restriction.
The continuous relaxation has an integer optimum (2,1), certified by a bound of five; fractional interior points remain perfectly possible.
The living notebook
Explore the model
Interactive lab · matrix
Unimodular does not mean totally unimodular
Pause and Reset; set scale to 1 and shear to 1, giving an integer matrix with determinant one and only unit minors. Reset and set scale to 1 and shear to 2; its determinant is still one, but the entry two violates TU. Play to compare the transformed squares, both with area one.
- Area scale · det A
- 1.4
- Singular values · σmax, σmin
- 1.597, 0.876
- Condition number · κ₂(A)
- 1.823
The selected matrix is A = [[a,b],[0,1]]. Playback interpolates geometry between the identity and A; readouts always describe A. Its determinant is a and its singular values come from AᵀA. Positive a makes every supported matrix invertible. This two-dimensional family is not a general eigensolver or a learned network. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forPreserving area and the integer lattice for this square matrix is weaker than controlling all minors. The instrument's determinant readout is not a TU test; examine its displayed entries as well.
Pause & reason
Check your understanding
Your turn
Try it yourself
Show why a determinant-one integer matrix need not be TU using . Then give a nonintegral-bound counterexample with a TU matrix.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Inspect one-by-one minors before the full determinant; afterward use a one-variable interval.
Compare with the solution
The full determinant is one, so is unimodular, but its one-by-one minor containing the entry two violates the TU definition. Separately, is TU, yet has fractional vertex . The right-hand side must be integral for the standard vertex-integrality theorem.
Keep the idea
Take it with you
- TU controls all square minors, including individual entries.
- TU plus integral resource data guarantees integral vertices, not integral points everywhere.
- Side constraints and nonintegral bounds can invalidate a relaxation's integrality guarantee.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.