Key idea of this section
maximise cᵀx subject to Ax ≤ b, x ≥ 0 The feasible region is a polyhedron; a bounded optimum is attained at a vertex Simplex method: walk from vertex to adjacent vertex, improving the objective
Linear programmes
A linear programme (LP) optimises a linear objective over a set described by finitely many linear inequalities and equations. In the form used here, we seek to maximise cᵀx subject to Ax ≤ b and x ≥ 0, with A an m × n matrix. Any LP can be brought to this form by standard tricks: an equation is two inequalities, a free variable is a difference of two nonnegative ones, and minimising cᵀx is maximising −cᵀx. The subject was created in the Second World War era for planning problems. Leonid Kantorovich formulated production-planning LPs in 1939, George Dantzig invented the simplex method in 1947, and John von Neumann conjectured the duality theorem in the same year. Kantorovich and Tjalling Koopmans shared the 1975 Nobel prize in economics for the theory of optimal allocation of resources.
Polyhedra and vertices
The feasible region P = {x : Ax ≤ b, x ≥ 0} is a polyhedron: an intersection of finitely many closed half-spaces {x : aᵀx ≤ β}. It is convex, since each half-space is. A point v ∈ P is a vertex (extreme point) if it is not a proper convex combination of two other points of P. Algebraically, v is a vertex exactly when the constraints active at v (those holding with equality) include n whose normal vectors are linearly independent; then v is the unique solution of those n equations. Since there are finitely many ways to choose n constraints out of m + n, a polyhedron has finitely many vertices.
Theorem 10.1 (Fundamental theorem of linear programming)
If an LP over a polyhedron P that contains no line has a finite optimal value, the optimum is attained at a vertex of P.
Proof sketch. The set F of optimal points is a non-empty polyhedron (P intersected with the hyperplane cᵀx = z*), and any vertex of F is a vertex of P, because if a point of F is a proper convex combination of two points of P, both points must also be optimal and hence lie in F. Take x ∈ F with the largest possible rank r of the active constraints of F at x. If r < n, there is a nonzero direction d orthogonal to all active normals; moving along x + td stays in F until a new constraint becomes active, which must happen in one direction or the other because F contains no line. The new point has larger rank, a contradiction. So r = n and x is a vertex. ∎
The polyhedron {Ax ≤ b, x ≥ 0} never contains a line (the constraints x ≥ 0 forbid it), so the theorem applies to every LP in our form.
A worked example
Maximise z = 3x + 2y subject to x + y ≤ 4, x + 3y ≤ 7, x ≤ 3, x ≥ 0, y ≥ 0. The vertices of the feasible pentagon and the objective values are
(0, 0): z = 0 (3, 0): z = 9 (3, 1): z = 11 (x = 3 and x + y = 4) (5/2, 3/2): z = 21/2 (x + y = 4 and x + 3y = 7) (0, 7/3): z = 14/3
so the optimum is z = 11 at (3, 1). Optimality can be certified without listing vertices: at (3, 1) the active constraints are x ≤ 3 and x + y ≤ 4, and the objective gradient (3, 2) = 1·(1, 0) + 2·(1, 1) is a nonnegative combination of their outward normals. So no feasible direction can increase z. The multipliers 1 and 2 are the dual solution of Lesson 11.
The simplex method
The simplex method makes this search systematic. Introduce slack variables s₁ = 4 − x − y, s₂ = 7 − x − 3y, s₃ = 3 − x, all required to be nonnegative, and write the objective in terms of the current nonbasic variables, which are set to zero; the starting vertex is the origin, where z = 3x + 2y = 0.
Pivot 1. The coefficient of x in z is positive, so increasing x improves z. The ratio test asks how far x can grow before a basic variable becomes negative: s₁ allows x ≤ 4, s₂ allows x ≤ 7, s₃ allows x ≤ 3. The minimum is 3, so x enters and s₃ leaves: x = 3 − s₃, and substituting gives
s₁ = 1 + s₃ − y, s₂ = 4 + s₃ − 3y, z = 9 − 3s₃ + 2y.
Pivot 2. Now y has a positive coefficient. The ratio test gives y ≤ 1 (from s₁) and y ≤ 4/3 (from s₂), so y enters and s₁ leaves: y = 1 + s₃ − s₁. Substituting,
z = 11 − 2s₁ − s₃, s₂ = 1 + 3s₁ − 2s₃, x = 3 − s₃.
All coefficients in the objective row are now negative, so no move improves z, and the vertex (x, y) = (3, 1) with z = 11 is optimal. The negatives of the slack coefficients, 2, 0 and 1, are again the dual prices.
Each pivot moves along an edge of the polyhedron to an adjacent vertex with a larger (or, at a degenerate vertex, equal) objective value. Degeneracy can make the naive method cycle forever; Bland's rule (1977), always choosing the eligible variable with the smallest index, prevents cycling, so the method terminates in finitely many steps.
Complexity
The simplex method is extraordinarily fast in practice, typically needing a small multiple of m pivots, yet Klee and Minty (1972) constructed deformed cubes on which Dantzig's pivoting rule visits all 2ⁿ vertices. Whether some pivoting rule runs in polynomial time is open, and is linked to the polynomial Hirsch conjecture on diameters of polytopes (the original Hirsch conjecture was disproved by Francisco Santos in 2010). The first polynomial-time algorithm for LP was Khachiyan's ellipsoid method (1979); Karmarkar's interior-point method (1984) was the first that was also practical. Spielman and Teng's smoothed analysis (2001) explained the practical success of simplex: under small random perturbations of the data, its expected running time is polynomial. Whether LP admits a strongly polynomial algorithm, one whose number of arithmetic operations is bounded by a polynomial in m and n alone, is one of Smale's eighteen problems for the twenty-first century.
Exercise
- (a)Maximise x + 2y subject to x + y ≤ 5, y ≤ 3, x, y ≥ 0, by listing vertices.
- (b)In the worked example, which constraint is slack at the optimum, and by how much?
- (c)Explain why the LP "maximise x subject to x − y ≤ 1, x, y ≥ 0" has no vertex at which the optimum is attained.
Show solution
Answers: (a) The vertices are (0, 0), (5, 0), (2, 3), (0, 3), with values 0, 5, 8, 6; the maximum is 8 at (2, 3). (b) x + 3y ≤ 7 has x + 3y = 6 at (3, 1), so it is slack by 1 (s₂ = 1). (c) The objective is unbounded: (t + 1, t) is feasible for every t ≥ 0 with value t + 1 → ∞. Theorem 10.1 needs a finite optimal value.