Tableau Simplex on 2-Variable Problems
Execute the full simplex algorithm on a 2-variable maximization linear program using the tableau form: select the entering variable via the most-negative-coefficient rule, select the leaving variable via the minimum ratio test, perform a pivot, and iterate until the objective row contains no negative entries.
Tutorial
Choosing the Entering Variable
Once a simplex tableau has been set up, we use the objective row (the bottom row) to test for optimality and to decide where to pivot next.
Optimality test. If every entry in the bottom row to the left of the RHS is , the current basic feasible solution is optimal and the algorithm terminates.
Otherwise, we must pivot. The entering variable -- the variable about to enter the basis -- is chosen by locating the most negative entry in the bottom row. The column containing that entry is the pivot column.
For example, consider the tableau
The bottom row has two negative entries: under and under . Since , the most negative entry is , so the pivot column is the column and the entering variable is .