Practice: Reduced Costs and the Optimality Test

Recognition · Interpretation

In a standard-form minimization program, what does the reduced cost of a nonbasic variable measure?

2 hints available, least help first.

Hint 1: Retrieval cue

If a nonbasic variable rises by one unit, what else in the solution has to change?

Hint 2: Concept cue

The constraints must keep holding, so the basic variables shift. Both that shift and the variable's own coefficient affect the objective.

Direct application · Evaluation

Minimise c T x with c = ( 3 , 2 , 0 , 0 ) subject to

A = ( 1 1 1 0 2 1 0 1 )

at the basis B = { 3 , 4 } . What are the reduced costs of x 1 and x 2 , and is the basis optimal?

2 hints available, least help first.

Hint 1: Retrieval cue

What is A B when the basis is the slack columns?

Hint 2: Concept cue

With c B = 0 , what does y T = c B T A B − 1 come to?

Error diagnosis · Explanation · Evaluation

A student is minimizing x 1 + 4 x 2 subject to

x 1 + x 2 + x 3 = 3 , x 1 + x 4 = 1 , x 1 , x 2 , x 3 , x 4 ≥ 0 ,

with c = ( 1 , 4 , 0 , 0 ) T , at the basis B = { 2 , 1 } taken in that order, so that A B has first column A 2 = ( 1 , 0 ) T and second column A 1 = ( 1 , 1 ) T .

The student writes:

" x 3 and x 4 both have cost coefficient 0 , so neither can improve the objective. The current basis must be optimal."

(a) Compute the dual vector and the reduced cost of x 3 .

(b) Explain precisely where the student's reasoning fails.

(c) State the sign condition that decides optimality for this MINIMISATION, and say what verdict the maximisation condition would have returned on the same numbers.

Write your answer, then compare it with the worked solution.

3 hints available, least help first.

Hint 1: Retrieval cue

Work out c B and A B for the stated basis before judging the claim.

Hint 2: Concept cue

The basic costs here are not zero, so the dual vector is not zero either, and the indirect cost term does not vanish.

Hint 3: Next step

Compute y T = c B T A B − 1 , then subtract y T A 3 from c 3 .

Compare with the worked solution

Comparing does not record a result. Judging your own written answer cannot show that you can do this without help.

With B = { 2 , 1 } in that order, A B = ( 1 1 0 1 ) and c B = ( c 2 , c 1 ) T = ( 4 , 1 ) T . Then A B − 1 = ( 1 − 1 0 1 ) and y T = c B T A B − 1 = ( 4 , 1 ) ( 1 − 1 0 1 ) = ( 4 , − 3 ) . For x 3 , with c 3 = 0 and A 3 = ( 1 , 0 ) T , the reduced cost is c ¯ 3 = 0 − ( 4 , − 3 ) ⋅ ( 1 , 0 ) T = − 4 . The reduced cost is negative, so x 3 does improve the objective and the basis is not optimal. The student's reasoning fails because a zero cost coefficient does not imply a zero reduced cost: the reduced cost also prices the compensating movement of the basic variables, captured by the term y T A j . Since y depends on the basis, the same variable has different reduced costs at different bases, so reduced costs must be recomputed after every basis change rather than read off c .

(c) The sign condition. For a minimisation, a basis is optimal when every reduced cost is NONNEGATIVE: a negative c ¯ j means raising x j lowers the objective, which is an improvement. Here c ¯ 3 = − 4 < 0 , so the basis is not optimal.

Applied to the same numbers, the maximisation condition, stop when every reduced cost is nonpositive, would look at c ¯ 3 = − 4 ≤ 0 and declare the basis optimal. Same arithmetic, opposite verdict. The condition is not a property of the reduced costs; it is chosen by the direction of the objective, and applying the wrong one terminates the algorithm at a point that is not optimal.

A complete answer does each of these:

  • dual vector or equivalent
  • reduced costs correct
  • sign convention applied
  • conclusion follows
  • basis relativity

Transfer · Evaluation · Method selection

A colleague has implemented the optimality test as: "stop when every reduced cost is nonnegative." They now apply the same solver to a maximization problem by passing the objective coefficients through unchanged, and report that it terminates immediately at the starting basis.

Explain why the solver stops early, state the two correct ways to handle a maximization objective, and say what the reported optimal value means in each case. Then identify what would have to be true of the starting basis for the colleague's result to be correct by coincidence.

Write your answer, then compare it with the worked solution.

2 hints available, least help first.

Hint 1: Retrieval cue

Under minimization, which sign of reduced cost means 'this move helps'?

Hint 2: Strategy cue

Consider what happens to every reduced cost if you replace c by −c.

Compare with the worked solution

Comparing does not record a result. Judging your own written answer cannot show that you can do this without help.

The stopping rule 'all reduced costs nonnegative' is derived for minimization: a negative reduced cost marks a direction that lowers the objective. For maximization the improving directions are the ones with positive reduced cost, so a rule that stops when none are negative will stop at the first basis where nothing is negative, which is typically immediately and has nothing to do with maximal value. The two correct routes are: convert the objective by minimizing − c T x and keep the rule unchanged, in which case the reported minimum v corresponds to an original maximum of − v ; or keep the objective as c T x and reverse the rule to stop when every reduced cost is nonpositive, in which case the reported value is the maximum directly. The colleague's result would be correct by coincidence only if the starting basis happened to be optimal for the maximization problem, which for this rule means every nonbasic reduced cost is exactly zero or the starting basis is already optimal in both senses, for instance when all nonbasic reduced costs are zero, so no direction changes the objective at all.

A complete answer does each of these:

  • sign convention applied
  • conclusion follows
  • basis relativity
Practice data

Your practice record is stored in this browser only. Clearing it removes every answer and every scheduled review, and cannot be undone.

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.