Reduced Costs and the Optimality Test
What you will be able to do
Given a minimization program in standard form and a specified basis, the learner can compute the reduced cost of each nonbasic variable and determine whether the corresponding basic feasible solution is optimal, without a formula sheet.
Orientation
A variable's cost coefficient tells you what it costs directly. It says nothing about what the basic variables must give up to accommodate it, which is the number that actually decides whether bringing it in helps.
This is the test the simplex method runs at every iteration. The previous unit established that the search can be confined to corners; this one supplies the stopping rule. Without it an algorithm could move between corners forever with no way to recognize that it has arrived.
The reduced cost also answers a question worth asking on its own: what would it actually cost to start using a variable currently held at zero.
This unit assumes you can identify a basis and its basic feasible solution, and that you can invert a small matrix or solve a small linear system.
Intuition
Reduced cost as direct plus indirect effect
A nonbasic variable sits at zero. Ask what happens if you raise it to one.
Two things change, not one.
The direct effect is the obvious one: the objective picks up
The indirect effect is the one that is easy to forget. The constraints
The reduced cost is the sum of both effects. It is the net change in the objective per unit of
That is why a variable with an attractive-looking coefficient can still be a bad move: the adjustment it forces may cost more than the variable saves. And it is why the optimality test looks at reduced costs rather than at the cost vector directly.
Figure
Objective change along two edges leaving one vertex
Minimising
Two nonbasic variables can be raised from zero, and each raise travels along one edge of the region.
Raising
Raising
So the reduced cost is a directional rate, and the direction is not arbitrary: it is the edge the basis produces when that one variable is allowed off its bound, with the basic variables adjusting to keep
The optimality test reads the same way: if every edge leaving the vertex goes uphill, every
Two variables in two dimensions is the readable case. With more variables the picture stops being drawable, while the arithmetic is unchanged.
Definition
Reduced cost and the optimality condition
Let the program be
and let
Reduced cost. For each variable
Writing
Basic variables carry no information. For
Every basic variable has reduced cost zero by construction. Only the nonbasic ones are informative.
Optimality condition. If
The reasoning is direct: any feasible move raises some nonbasic variable, each unit of which changes the objective by that variable's reduced cost. If no reduced cost is negative, no available move lowers the objective.
Procedure
Computing reduced costs and testing optimality
Given a standard-form minimization program and a basis
Assemble the basis data. Collect the basic columns into
Form the dual vector. Solve
which in practice means solving
Compute one reduced cost per nonbasic variable. For each
Basic variables can be skipped: their reduced costs are zero by construction.
Apply the test. If every
Check the objective sense before concluding. This test is stated for minimization. For a maximization program, either convert to minimization first or reverse the condition; applying the minimization rule unchanged inverts the answer.
Worked example
Testing a basis for optimality
Problem. For the program
subject to
decide whether the basis
Goal. Compute the reduced costs of the nonbasic variables
Relevant principle. A basis is optimal for a minimization program when no nonbasic variable has a negative reduced cost.
Step 1: assemble the basis data.
Reason: the slack columns happen to form an identity basis, which makes this the natural starting basis.
Step 2: form the dual vector.
Reason: with zero basic costs there is no indirect cost to account for at this basis.
Step 3: reduced costs of the nonbasic variables.
Step 4: apply the test.
Both reduced costs are positive, and the basic variables have reduced cost zero. No nonbasic variable is negative, so the basis is optimal.
Check. The basic solution here is
Interpretation. Both
Contrast
The cost coefficient is not the reduced cost
Reading
Take
with
Then
The dual vector is
Now the nonbasic variable
The coefficient says zero; the reduced cost says
The error runs the other way too: a variable with a small positive
The reliable rule is that