The Revised Simplex Method in Matrix Form

Performs one iteration of the simplex method using matrix operations: identify the basic feasible solution via xB=B1bx_B = B^{-1}b, compute reduced costs to select the entering variable, then apply the minimum ratio test to find the leaving variable.

Step 1 of 157%

Tutorial

Introduction

Consider a linear program in standard form:

min  cTxsubject toAx=b,  x0,\min\; c^T x \quad \text{subject to} \quad Ax = b,\; x \geq 0,

where AA is m×nm \times n with m<nm < n, bRmb \in \mathbb{R}^m, and cRnc \in \mathbb{R}^n.

The revised simplex method tracks the current vertex of the feasible region using matrix operations rather than a tableau. At each iteration, we maintain a basis -- a choice of mm linearly independent columns of AA forming an invertible m×mm \times m matrix BB. The remaining columns form NN, so

A=[BN],x=[xBxN],c=[cBcN].A = [\,B \mid N\,], \quad x = \begin{bmatrix} x_B \\ x_N \end{bmatrix}, \quad c = \begin{bmatrix} c_B \\ c_N \end{bmatrix}.

The constraint Ax=bAx = b becomes BxB+NxN=bBx_B + Nx_N = b. Setting the nonbasic variables xN=0x_N = 0 gives the basic solution

xB=B1b,xN=0.x_B = B^{-1}b, \qquad x_N = 0.

If xB0x_B \geq 0, this is a basic feasible solution (BFS) and corresponds to a vertex of the feasible polytope.

For example, with

A=[21101101],b=[53],A = \begin{bmatrix} 2 & 1 & 1 & 0 \\ 1 & 1 & 0 & 1 \end{bmatrix},\quad b = \begin{bmatrix} 5 \\ 3 \end{bmatrix},

and basis indices {3,4}\{3, 4\}, the basis matrix is B=IB = I, so xB=b=(5,3)Tx_B = b = (5, 3)^T. The BFS is x=(0,0,5,3)Tx = (0, 0, 5, 3)^T.

navigate · Enter open · Esc close · ⌘K/Ctrl K toggle