An algebraic method of solving the standard form of a linear programming problem which allows the solution of multivariable problems, which could not be tackled graphically. The process is as follows, using a two-variable, two-constraint problem to illustrate. To maximize P = 2x+3y, subject to x+2y ≤ 20, 2x+y ≤15, x ≥ 0, y ≥ 0:
The simplex tableau is a table which shows the current values for each variable in each constraint, with the last row, known as the objective row, showing the values in the equation derived from the objective function. The simplex algorithm is the process by which that table is manipulated in order to find the optimal solution. In the solution, the algorithm will produce a series of tableaux.
The initial tableau for this problem will be:
basic variable | x | y | s | t | value |
---|
s | 1 | 2 | 1 | 0 | 20 |
t | 2 | 1 | 0 | 1 | 15 |
P | − 2 | − 3 | 0 | 0 | 0 |
The optimality condition is that when the objective row shows zero in all columns representing basic variables and no negative entries, then it represents an optimal solution.
The standard procedure to achieve this condition is to repeat the following set of steps until all the basic variables, x and y, have been set to zero.
basic variable | x | y | s | t | value |
---|
s | 0.5 | 1 | 0.5 | 0 | 10 |
t | 1.5 | 0 | −0.5 | 1 | 5 |
P | −0.5 | 0 | 1.5 | 0 | 30 |
The process would now be repeated, and x will now be the entering variable, and the values at step 2 are 20 for s, and 10/3 for t, so t is the leaving variable, and at step 3 the pivotal row will read t, 1, 0, −1/3, 2/3, 10/3.
Repeating step (iv) gives:
basic variable | x | y | s | t | value |
---|
s | 0 | 1 | 2/3 | 1/3 | 25/3 |
t | 1 | 0 | −1/3 | 2/3 | 10/3 |
P | 0 | 0 | 4/3 | 1/3 | 95/3 |
For a many-variable problem this would have to be repeated for each variable in turn, but in this simple example the optimality condition is now satisfied and the maximum value of P is 95/3 occurring when s = 4/3 and t = 1/3, corresponding to x = 10/3 and y = 25/3. In this simple problem, the solution could have been found much more quickly by the vertex method, but the simplex method is an important tool because it can be applied to more complicated problems.