Practice: Transforming the Variables

Recognition · Classification

A variable satisfies x ≥ 4 . Which treatment puts it into standard form?

2 hints available, least help first.

Hint 1: Retrieval cue

What would you measure from so that the bound becomes automatic?

Hint 2: Concept cue

Set u = x − 4 and ask what restriction u carries.

Direct application · Construction · Explanation

Convert to standard form, and give the rule for reading the answer back:

max 6 m + 2 n − 5 k subject to m + n + k ≤ 25 , m − n ≥ 4 , m ≥ 3 , n  free , k ≤ 0.

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

2 hints available, least help first.

Hint 1: Retrieval cue

Classify all three variables before substituting anything.

Hint 2: Strategy cue

The shift changes the right-hand sides as well as leaving a constant in the objective.

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.

Classify. m is bounded below by 3 ; n is unrestricted; k is nonpositive.

Substitutions. m = u + 3 with u ≥ 0 ; n = n + − n − with n ± ≥ 0 ; k = − w with w ≥ 0 .

Objective.

6 ( u + 3 ) + 2 ( n + − n − ) − 5 ( − w ) = 6 u + 18 + 2 n + − 2 n − + 5 w .

Maximising this is maximising 6 u + 2 n + − 2 n − + 5 w with the constant 18 held aside. Negating for a minimisation:

min − 6 u − 2 n + + 2 n − − 5 w .

First constraint. ( u + 3 ) + ( n + − n − ) + ( − w ) ≤ 25 , so u + n + − n − − w ≤ 22 . With a slack: u + n + − n − − w + s 1 = 22 , s 1 ≥ 0 .

Second constraint. ( u + 3 ) − ( n + − n − ) ≥ 4 , so u − n + + n − ≥ 1 . With a surplus: u − n + + n − − e 1 = 1 , e 1 ≥ 0 .

Discard the absorbed restrictions. m ≥ 3 is gone into u ≥ 0 ; the declarations that n is free and k nonpositive are replaced by nonnegativity on their substitutes.

Result.

min − 6 u − 2 n + + 2 n − − 5 w

subject to u + n + − n − − w + s 1 = 22 , u − n + + n − − e 1 = 1 , and u , n + , n − , w , s 1 , e 1 ≥ 0 .

Reading back. If the minimum is z , the original maximum is − z + 18 . The original variables are m = u + 3 , n = n + − n − , k = − w .

What the shift touched. Two places, not one: the constant 18 in the objective, and the right-hand sides, which moved from 25 to 22 and from 4 to 1 . Both come from the same substitution.

A complete answer does each of these:

  • selects substitution
  • substitutes everywhere
  • handles constants
  • recovers original

Comparison · Method selection

A variable satisfies x ≤ 15 , and x ≥ 0 is also stated. What is the correct treatment?

2 hints available, least help first.

Hint 1: Retrieval cue

Does x already satisfy the nonnegativity condition standard form asks for?

Hint 2: Concept cue

Which family changes a constraint's form, and which replaces a variable?

Direct application

A program minimizes x 1 + x 2 subject to x 1 ≥ 2 and x 2 ≥ 0 , with no other constraints. Substituting x 1 = y 1 + 2 with y 1 ≥ 0 turns the objective into y 1 + x 2 + 2 , whose minimum over y 1 , x 2 ≥ 0 is attained at y 1 = x 2 = 0 .

Report the optimal value of the ORIGINAL program.

Enter the value. It is checked against the answer and the precision this task asks for.

Direct application

A program minimizes 2 x 1 + x 2 subject to x 1 + x 2 ≥ 4 , x 1 ≤ 7 , x 1 ≥ 3 and x 2 ≥ 0 . The substitution x 1 = y 1 + 3 with y 1 ≥ 0 is applied.

Select every place the substitution must be carried out.

Select every option that applies

Every option that applies, and only those. The set is checked as a whole.

Error diagnosis · Explanation · Evaluation

A model has a sign-unrestricted variable q , converted as q = q + − q − . Run twice, the solver reports:

  • Run A: q + = 7 , q − = 0 , objective 340 .
  • Run B: q + = 11 , q − = 4 , objective 340 .

The analyst concludes: "The problem has at least two distinct optimal plans, so there is flexibility in how we set q ."

Evaluate that conclusion.

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

2 hints available, least help first.

Hint 1: Retrieval cue

Compute q + − q − for each run before judging the claim.

Hint 2: Concept cue

What happens to the difference when you add the same amount to both members?

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.

Recover the original variable in each run. Run A: q = 7 − 0 = 7 . Run B: q = 11 − 4 = 7 .

They are the same solution. Both runs set q = 7 . There is one plan here, reported in two different spellings of the same value.

Why both spellings are optimal. The split is not unique: for any t ≥ 0 , the pair ( q + + t , q − + t ) gives the same difference. Run B is Run A with t = 4 . The objective contains c ( q + − q − ) , so the t cancels there too and the value is unchanged at 340 , which is exactly what the reports show.

So the converted program does have infinitely many optimal solutions. The entire ray { ( 7 + t , t ) : t ≥ 0 } is optimal. That is a property of the conversion, not a property of the original problem.

The error in the conclusion. 'Flexibility in how we set q ' would mean several distinct values of q attaining the optimum. Nothing here shows that; q = 7 in both runs. The analyst has mistaken a redundancy in the representation for a choice in the plan.

What genuine flexibility would look like. Two reported solutions whose recovered values differ, say q = 7 in one and q = 11 in another, both with objective 340 . That would be multiple optima in the original problem, caused by the objective being parallel to a binding constraint, and it would be worth reporting.

The habit that prevents this. Always recover and report the original variables. The recovery rule is part of the conversion, and a solution expressed in converted variables has not yet been read back into the problem that was asked.

A complete answer does each of these:

  • selects substitution
  • substitutes everywhere
  • handles constants
  • recovers original

Transfer · Interpretation · Evaluation

A program had one sign-unrestricted variable q , split as q = q + − q − during conversion. The columns of q + and q − in the constraint matrix are therefore negatives of one another.

Say what this implies about any basis containing both of them, what it implies about a basic feasible solution in which both are positive, and why the conversion nonetheless causes no difficulty in practice.

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

2 hints available, least help first.

Hint 1: Retrieval cue

What does it mean for two columns to be negatives of each other?

Hint 2: Strategy cue

Which variables are zero at a basic feasible solution?

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.

A basis cannot contain both. If A q − = − A q + , the two columns are linearly dependent. One is ( − 1 ) times the other. A basis is a set of independent columns, so no basis contains both. At most one member of the pair is ever basic.

Consequently at most one is ever positive at a basic feasible solution. Nonbasic variables are zero, so if only one of the pair can be basic, the other is zero. A basic feasible solution therefore always has q + = 0 or q − = 0 , and the split is unique at the corners even though it is not unique in general.

This is the reconciliation. Earlier the ray { ( q + + t , q − + t ) } was all optimal, which suggested infinitely many optimal solutions. Those interior points of the ray are feasible but are not basic feasible solutions. They have both members positive and so cannot arise from any basis. The simplex method, which only ever visits basic feasible solutions, never reports one.

Why no difficulty arises in practice. The method returns a corner, where exactly one of the pair is positive, so the reported split is the tidy one: q = 7 comes back as ( 7 , 0 ) rather than ( 11 , 4 ) . The non-uniqueness is real and is invisible to an algorithm that walks corners.

What still requires care. Two different runs may return different corners, and any reported solution must still be read back through q = q + − q − before it is a statement about the original problem. And if a solution arrives from a method that does not restrict itself to corners, an interior-point method, for instance, both members can be positive and the recovery step is the only thing that makes the answer intelligible.

Why this is the transfer. The substitution was introduced as bookkeeping performed once. It quietly changes the structure of the constraint matrix, and the consequence surfaces much later, in which column sets can be bases at all.

A complete answer does each of these:

  • selects substitution
  • substitutes everywhere
  • handles constants
  • recovers original
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.