Module 5 of 6 · Lesson 2 of 4
One Iteration of the Simplex Method
What you will be able to do
Given a standard-form minimization program and a basic feasible solution, the learner can select an entering variable from the reduced costs, apply the minimum ratio test to find the leaving variable and the step length, and report the resulting basis and basic feasible solution, without a tableau template.
Orientation
One iteration: choose a variable to bring in, find how far it can rise before something breaks, and see which variable hit zero first. Everything else in the simplex method is repetition.
The previous unit supplied the stopping rule. This one supplies the step. Together they are the whole method: test for optimality, and if the test fails, move to an adjacent corner and test again.
The step that carries the real content is the minimum ratio test, which answers a question the reduced cost cannot: not whether to move, but how far you may move before leaving the feasible region.
This unit assumes you can compute reduced costs and identify a basis and its basic feasible solution.
Intuition
Moving along an edge to the next vertex
A nonbasic variable sits at zero. Start raising it.
The constraints still have to hold, so the basic variables move in compensation. Some of them rise, some of them fall, and how fast each one moves is fixed by the arithmetic of the basis.
You are now walking along an edge of the feasible region, and the reduced cost told you this walk improves the objective. The only question left is when to stop.
The answer is: when the first falling basic variable reaches zero. One step further and it would go negative, which the nonnegativity restrictions forbid. So the walk ends exactly there, at the next corner.
Two things follow immediately.
A basic variable that is rising, or holding steady, never ends the walk. It is drifting away from zero, not toward it, so it places no limit at all. Only the falling ones matter, which is why the ratio test excludes rows with
And if nothing is falling, the walk never ends. The entering variable increases forever while every constraint stays satisfied, and the objective improves forever with it. That is what an unbounded program looks like from the inside.
Simulation
One simplex pivot as travel along an edge
The feasible region of the worked program,
Move the control and the red point walks along the bottom edge. The basic variables compensate:
That is the minimum-ratio test, and this is what it means: not an arithmetic rule, but the question of which constraint becomes tight first as you move. One step further and
Definition
The iteration
Let
Entering variable. Choose a nonbasic
Direction. Raising
the basic values become
Minimum ratio test. Feasibility requires
Leaving variable. A row attaining the minimum has its basic variable driven exactly to zero; that variable leaves the basis and
The new point.
Unboundedness. If
Procedure
Steps of one iteration
Given a standard-form minimization program, a basis
Compute the reduced costs of the nonbasic variables. Form
Test for optimality. If every
Choose an entering variable. Pick any
Compute the direction.
Check for unboundedness. If no component of
Run the minimum ratio test on the positive rows only. For each
Identify the leaving variable and the step.
Update. Replace the leaving index with
Check. The new point should satisfy
Worked example
Two iterations to the optimum
Problem. In standard form:
Start from the slack basis
Goal. Iterate to optimality, reporting each entering and leaving variable.
---
Iteration 1.
With
Entering:
Direction:
Ratio test: both components are positive, so both rows count.
Leaving:
New point:
---
Iteration 2.
Basis
Now
Entering:
Direction:
Ratio test:
Leaving:
New point:
---
Iteration 3: the test.
Basis
Both are positive, so no variable improves the objective and the method stops.
Check.
Interpretation. The optimum is
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
Take a basis with
Incorrect. Compute both ratios:
Correct. Only the first row qualifies, because
Why the second row cannot limit anything. As the entering variable rises to
It rises. It moves away from zero, never toward it, so no value of
Taking it as the minimum would set
A row with
The reliable phrasing. The ratio test asks which basic variable hits zero first. Only variables that are falling can hit zero, and