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.

Step 1 of 157%

Tutorial

Introduction to the Minimum Ratio Test

After we've selected the entering variable xjx_j, we need to determine which basic variable leaves the basis. This is decided by the minimum ratio test.

For each row ii of the simplex tableau (excluding the objective row) whose pivot-column entry satisfies aij>0a_{ij} > 0, compute the ratio

θi=biaij,\theta_i = \dfrac{b_i}{a_{ij}},

where bib_i is the right-hand side of row ii. The row rr that achieves the minimum value of θi\theta_i is the pivot row, and the basic variable currently in row rr is the leaving variable.

Why this works: as we increase xjx_j from 00, the basic variable in row ii takes the value biaijxjb_i - a_{ij}\,x_j. Feasibility requires this to stay nonnegative, so xjbi/aijx_j \leq b_i / a_{ij}. 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 (2,3,1)(2,\, 3,\, 1) and right-hand sides (8,9,5)(8,\, 9,\, 5), the ratios are 82=4\tfrac{8}{2}=4, 93=3\tfrac{9}{3}=3, and 51=5\tfrac{5}{1}=5. The minimum is 33 in row 22, so row 22 is the pivot row.

navigate · Enter open · Esc close · ⌘K/Ctrl K toggle