One Iteration of the Simplex Method

A simplex iteration moves from one basic feasible solution to an adjacent one. A nonbasic variable with negative reduced cost enters the basis; the minimum ratio test decides how far it can increase before a basic variable reaches zero, and that variable leaves. The test is what keeps the new point feasible.

Definition

Given a basis B with basic feasible solution x , an iteration selects an entering variable x j with c ¯ j < 0 , computes the direction u = A B − 1 A j , and finds the step θ = min { x B ( i ) / u i : u i > 0 } . The basic variable attaining that minimum leaves the basis, x j enters at value θ , and the remaining basic variables move to x B ( i ) − θ u i .

Formal statement

With u = A B − 1 A j , the new point is x j = θ and x B ( i ) ← x B ( i ) − θ u i , where θ = min i : u i > 0 x B ( i ) / u i . The objective changes by θ c ¯ j ≤ 0 . If u ≤ 0 no ratio exists and the program is unbounded.

Assumptions and scope

  • Only components with u i > 0 enter the ratio test. A basic variable whose component is zero or negative does not fall as the entering variable increases, so it never limits the step.

  • If every component of u is nonpositive, the entering variable can increase without limit while feasibility holds, and the program is unbounded. No leaving variable exists.

  • A tie in the minimum ratio means more than one basic variable reaches zero together. Either may leave, and the resulting basic feasible solution is degenerate.

  • When the minimum ratio is zero the step is zero: the basis changes but the point does not. This is stalling, and repeated stalling can cycle without an anti-cycling rule.

Worked material

Contrast

Which rows enter the ratio test

The ratio test looks like "divide and take the smallest", and applying it to every row is the most common way an iteration goes wrong. The restriction to u i > 0 is not a convention; it is what the test means.

Take a basis with x B ( 1 ) = 8 , x B ( 2 ) = 3 , and an entering direction

u = ( 4 − 2 ) .

Incorrect. Compute both ratios: 8 / 4 = 2 and 3 / ( − 2 ) = − 1.5 . Take the smaller, − 1.5 , and let the second basic variable leave.

Correct. Only the first row qualifies, because u 2 = − 2 is negative. So θ ∗ = 8 / 4 = 2 and the first basic variable leaves.

Why the second row cannot limit anything. As the entering variable rises to θ , the second basic variable becomes

x B ( 2 ) − θ u 2 = 3 − θ ( − 2 ) = 3 + 2 θ .

It rises. It moves away from zero, never toward it, so no value of θ ever makes it negative. A row like this places no restriction on the step, and its ratio is not a step length at all. It is a negative number with no interpretation.

Taking it as the minimum would set θ ∗ = − 1.5 , moving backwards along the edge to a point that fails feasibility, and reporting a leaving variable that was never in danger.

A row with u i = 0 is excluded for the same reason. That basic variable does not move at all, so it cannot reach zero, and its ratio would require dividing by zero.

The reliable phrasing. The ratio test asks which basic variable hits zero first. Only variables that are falling can hit zero, and u i > 0 is exactly the condition for falling.

Common errors

Common misconception

The minimum ratio test compares the ratio in every row, so a row whose direction component is zero or negative competes for the minimum like any other.

Related units

Requires

Connected

Learn this topic

Used in

Sources

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.