Applies when a tableau is optimal (objective row satisfies the optimality criterion) but infeasible (some RHS is negative). Common after adding a new constraint to an already-optimal tableau.
Iteration Steps
Select Leaving Variable
The basic variable with the most negative RHS.
Select Entering Variable
Among columns with a negative entry in the leaving row, the one minimizing the ratio:
Ratio=entryobjective row coefficient
If no negative entry exists in the leaving row, the problem is infeasible. Stop.
Pivot
Same as the primal simplex algorithm’s pivot step.
Repeat until every RHS is ≥0, at which point the tableau is both optimal and feasible.
Worked Example
Take the optimal tableau from the simplex algorithm example (z=3x1+5x2, optimum x1=2, x2=6, z=36) and add the constraint x1+x2≤5, which the current optimum violates (2+6=8).
Adding slack s4 gives x1+x2+s4=5. Substituting the x1 and x2 rows to eliminate the basic variables leaves −61s2−31s3+s4=−3. The objective row is unchanged, so the tableau is still optimal but now infeasible.
1 /
entering columnleaving rowpivot elementupdated this step
Basic
x1
x2
s1
s2
s3
s4
RHS
Ratio
z
0
0
0
3/2
1
0
36
s1
0
0
1
1/3
−1/3
0
2
x2
0
1
0
1/2
0
0
6
x1
1
0
0
−1/3
1/3
0
2
s4
0
0
0
−1/6
−1/3
1
−3
Ratio
9
3
Most negative RHS is −3, so s4 leaves. Only s2 and s3 have
negative entries in that row, so only those columns get a ratio.
The ratio row’s minimum is 3 under s3, so s3 enters. Pivot on −31.
Basic
x1
x2
s1
s2
s3
s4
RHS
Ratio
z
0
0
0
1
0
3
27
s1
0
0
1
1/2
0
−1
5
x2
0
1
0
1/2
0
0
6
x1
1
0
0
−1/2
0
1
−1
s3
0
0
0
1/2
1
−3
9
Ratio
2
Still infeasible: x1=−1. The only negative entry in that row is under
s2, giving the only ratio (2), so s2 enters. Pivot on −21.
Basic
x1
x2
s1
s2
s3
s4
RHS
Ratio
z
2
0
0
0
0
5
25
s1
1
0
1
0
0
0
4
x2
1
1
0
0
0
1
5
s2
−2
0
0
1
0
−2
2
s3
1
0
0
0
1
−2
8
Ratio
Every RHS is ≥0 and the objective row is still non-negative. Optimal at
x1=0, x2=5, z=25.