Steps in The Simplex Method
Steps in The Simplex Method
s.t. constraints
x1 + 2x2 <= 16
x1 + x2 <= 9
3x1 + 2x2 <= 24
x1, x2 >=0
EQUATIONS:
Iteration 1
**notice that the slack variables in the tableau below is in RREF form, this
will always be the case for involved constraints (same with surplus variables)
8. Divide the current pivot row by the pivot element. This is the new Pivot
Row.
9. New Row = Current Row - (Pivot Column Coefficient * New Pivot Row)
10. Everything else is replaced except for the new pivot row.
** this tableau is only a basis for the formula in number 2. Note that number
1 is the only thing done here
Basic X1 X2 S1 S2 S3 RHS
P -40 -30 0 0 0 0
S1 1 2 1 0 0 16
S2 1 1 0 1 0 9
X1 1 2/3 0 0 1/3 8
**the tableau below doesn’t have to be shown, its to just show the process of
step 2. Also to make it easier for you, no matter what, the Pivot Column will
always be 0 except for the Pivot Element
Basi X1 X2 S1 S2 S3 RHS
c
P -40 – (- -30 – (-40 0 – (-40*0) 0 – (-40*0) 0 – (-40 * 0 – (-40*8)
40*1) = * 2/3) = - =0 =0 1/3) = = 320
0 10/3 40/3
S1 1 – (1*1) 2 – (1* 1 – (1*0) = 0 – (1*0) = 0– 16 – (1*8)
=0 2/3) = 4/3 1 0 (1*1/3) = =8
-1/3
S2 1 – (1-1) 1 – (1* 0 – (1*0) = 1 – (1*0) = 0 – (1* 9 – (1*8) =
=0 2/3) = 1/3 0 1 1/3) = - 1
1/3
X1 1 2/3 0 0 1/3 8
Step 3:
1. Check if there are no more negative values in the Z row. If there’s none,
you can finalize your answers. If there still is, proceed to the next
iteration, repeat step 1
Basi X1 X2 S1 S2 S3 RHS
c
P 0 -10/3 0 0 40/3 320
S1 0 4/3 1 0 -1/3 8
S2 0 1/3 0 1 -1/3 1
X1 1 2/3 0 0 1/3 8
Iteration 2
Basic X1 X2 S1 S2 S3 RHS
P 0 -10/3 0 0 40/3 320
S1 0 4/3 1 0 -1/3 8
X2 0 1 0 3 -1 3
X1 1 2/3 0 0 1/3 8
Basi X1 X2 S1 S2 S3 RHS
c
X2 0 1 0 3 -1 3
Basic X1 X2 S1 S2 S3 RHS
Z 0 0 0 10/3 10 330
S1 0 0 1 -4 1 4
X2 0 1 0 3 -1 3
X1 1 0 0 -2/3 1 6
S1=4; meaning 4 units of resource were unused in the first constraint, while
S2 and S3 are zero, meaning the second and third constraints were fully
utilized.
NOTES:
If all ratios are negative or zero, the problem has no feasible solution.
If the pivot element is 0, it usually means the solution is infeasible or
the problem is not set up correctly.