The Minimum Ratio Test and the Leaving Variable
Once the entering variable has been chosen in a simplex iteration, the minimum ratio test determines which basic variable leaves the basis. Rows with non-positive pivot-column entries are skipped, and if every entry is non-positive the LP is unbounded.
Tutorial
Introduction to the Minimum Ratio Test
After we've selected the entering variable , we need to determine which basic variable leaves the basis. This is decided by the minimum ratio test.
For each row of the simplex tableau (excluding the objective row) whose pivot-column entry satisfies , compute the ratio
where is the right-hand side of row . The row that achieves the minimum value of is the pivot row, and the basic variable currently in row is the leaving variable.
Why this works: as we increase from , the basic variable in row takes the value . Feasibility requires this to stay nonnegative, so . The tightest of these bounds is reached first, and that row's basic variable hits zero, forcing it to leave.
Quick illustration: with pivot-column entries and right-hand sides , the ratios are , , and . The minimum is in row , so row is the pivot row.