Girish Mahajan (Editor)

Revised simplex method

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Revised simplex method

In mathematical optimization, the revised simplex method is a variant of George Dantzig's simplex method for linear programming.

Contents

The revised simplex method is mathematically equivalent to the standard simplex method but differs in implementation. Instead of maintaining a tableau which explicitly represents the constraints adjusted to a set of basic variables, it maintains a representation of a basis of the matrix representing the constraints. The matrix-oriented approach allows for greater computational efficiency by enabling sparse matrix operations.

Problem formulation

For the rest of the discussion, it is assumed that a linear programming problem has been converted into the following standard form:

minimize c T x subject to A x = b , x 0

where ARm×n. Without loss of generality, it is assumed that the constraint matrix A has full row rank and that the problem is feasible, i.e., there is at least one x0 such that Ax = b. If A is rank-deficient, either there are redundant constraints, or the problem is infeasible. Both situations can be handled by a presolve step.

Optimality conditions

For linear programming, the Karush–Kuhn–Tucker conditions are both necessary and sufficient for optimality. The KKT conditions of a linear programming problem in the standard form is

A x = b , A T λ + s = c , x 0 , s 0 , s T x = 0

where λ and s are the Lagrange multipliers associated with the constraints Ax = b and x0, respectively. The last condition, which is equivalent to sixi = 0 for all 1 < i < n, is called the complementary slackness condition.

By what is sometimes known as the fundamental theorem of linear programming, a vertex x of the feasible polytope can be identified by being a basis B of A chosen from the latter's columns. Since A has full rank, B is nonsingular. Without loss of generality, assume that A = [BN]. Then x is given by

x = [ x B x N ] = [ B 1 b 0 ]

where xB0. Partition c and s accordingly into

c = [ c B c N ] , s = [ s B s N ] .

To satisfy the complementary slackness condition, let sB = 0. It follows that

B T λ = c B , N T λ + s N = c N ,

which implies that

λ = ( B T ) 1 c B , s N = c N N T λ .

If sN0 at this point, the KKT conditions are satisfied, and thus x is optimal.

Pivot operation

If the KKT conditions are violated, a pivot operation consisting of introducing a column of N into the basis at the expense of an existing column in B is performed. In the absence of degeneracy, a pivot operation always results in a strict decrease in cTx. Therefore, if the problem is bounded, the revised simplex method must terminate at an optimal vertex after repeated pivot operations because there are only a finite number of vertices.

Select an index m < qn such that sq < 0 as the entering index. The corresponding column of A, Aq, will be moved into the basis, and xq will be allowed to increase from zero. It can be shown that

( c T x ) x q = s q ,

i.e., every unit increase in xq will results in a decrease by sq in cTx. Since

B x B + A q x q = b ,

xB must be correspondingly decreased by ΔxB = B−1Aqxq subject to xB − ΔxB0. Let d = B−1Aq. If d0, no matter how much xq is increased, xB − ΔxB will stay nonnegative. Hence, cTx can be arbitrarily decreased, and thus the problem is unbounded. Otherwise, select an index p = argmin1≤im {xi/di | di > 0} as the leaving index. This choice effectively increases xq from zero until xp is reduced to zero while maintaining feasibility. The pivot operation concludes with replacing Ap with Aq in the basis.

Numerical example

Consider a linear program where

c = [ 2 3 4 0 0 ] T , A = [ 3 2 1 1 0 2 5 3 0 1 ] , b = [ 10 15 ] .

Let

B = [ A 4 A 5 ] , N = [ A 1 A 2 A 3 ]

initially, which corresponds to a feasible vertex x = [0 0 0 10 15]T. At this moment,

λ = [ 0 0 ] T , s N = [ 2 3 4 ] T .

Choose q = 3 as the entering index. Then d = [1 3]T, which means a unit increase in x3 will results in x4 and x5 being decreased by 1 and 3, respectively. Therefore, x3 is increased to 5, at which point x5 is reduced to zero, and p = 5 becomes the leaving index.

After the pivot operation,

B = [ A 3 A 4 ] , N = [ A 1 A 2 A 5 ] .

Correspondingly,

x = [ 0 0 5 5 0 ] T , λ = [ 0 4 / 3 ] T , s N = [ 2 / 3 11 / 3 4 / 3 ] T .

A positive sN indicates that x is now optimal.

Degeneracy

Because the revised simplex method is mathematically equivalent to the simplex method, it also suffers from degeneracy, where a pivot operation does not result in a decrease in cTx, and a chain of pivot operations causes the basis to cycle. A perturbation or lexicographic strategy can be used to prevent cycling and guarantee termination.

Basis representation

Two types of linear systems involving B are present in the revised simplex method:

B z = y , B T z = y .

Instead of refactorizing B, usually an LU factorization is directly updated after each pivot operation, for which purpose there exist several strategies such as the Forrest−Tomlin and Bartels−Golub methods. However, the amount of data representing the updates as well as numerical errors builds up over time and makes periodic refactorization necessary.

References

Revised simplex method Wikipedia