Practice: One Iteration of the Simplex Method

Recognition · Interpretation

During a simplex iteration the entering direction is u = A B − 1 A j . Which rows are included in the minimum ratio test?

2 hints available, least help first.

Hint 1: Retrieval cue

Write the i -th basic value after a step of θ and ask when it can reach zero.

Hint 2: Concept cue

The ratio test asks which basic variable hits zero first. Which of them are moving toward zero at all?

Method selection

A minimization problem is at a basic feasible solution where the nonbasic variables have reduced costs

c ¯ 1 = − 3 , c ¯ 2 = 0 , c ¯ 3 = 5 , c ¯ 4 = − 1.

Select every variable that is eligible to enter the basis.

Select every option that applies

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

Direct application · Completion

A simplex iteration has basic values x B = ( 6 , 4 ) and entering direction u = A B − 1 A j = ( 2 , − 1 ) . What is the step length, and which basic variable leaves?

2 hints available, least help first.

Hint 1: Retrieval cue

Which rows enter the minimum ratio test?

Hint 2: Concept cue

A basic variable with u i < 0 is growing, not shrinking.

Interpretation

During a simplex iteration an entering variable is chosen, and the direction it generates has no positive component: increasing the entering variable does not decrease any basic variable.

Select every conclusion that follows.

Select every option that applies

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

Direct application

A simplex iteration starts at x = ( 0 , 0 , 8 , 5 ) , where s 1 = 8 and s 2 = 5 are the basic slack variables. The entering variable x 1 decreases s 1 by 2 and s 2 by 1 for each unit of increase, and the ratio test sets the step to 4 .

After the pivot, what is the value of s 2 ?

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

Direct application · Construction

Consider the standard-form program

min − 3 x 1 − 2 x 2 subject to 2 x 1 + x 2 + x 3 = 12 , x 1 + 2 x 2 + x 4 = 12 , x 1 , x 2 , x 3 , x 4 ≥ 0 ,

at the basis B = { 1 , 4 } , whose basic feasible solution is x 1 = 6 , x 4 = 6 , x 2 = x 3 = 0 .

Carry out one simplex iteration. Compute the reduced costs, choose an entering variable and justify the choice, compute the direction, run the minimum ratio test showing which rows you include and why, and report the new basis and the value of every variable at the new point.

Suppose instead the entering direction had come out with no positive components. State what the ratio test returns and what that says about the program.

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

3 hints available, least help first.

Hint 1: Retrieval cue

Which two columns form A B here, and what are their cost coefficients?

Hint 2: Concept cue

Compute y T = c B T A B − 1 first, then the reduced cost of each nonbasic variable.

Hint 3: Next step

With the entering column chosen, solve A B u = A j and form the ratios on the positive rows.

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 = { 1 , 4 } the basic columns are A 1 = ( 2 , 1 ) T and A 4 = ( 0 , 1 ) T , and c B = ( − 3 , 0 ) T . This gives y T = c B T A B − 1 = ( − 3 / 2 , 0 ) . The nonbasic reduced costs are c ¯ 2 = − 2 − ( − 3 / 2 ) ( 1 ) − 0 ( 2 ) = − 1 / 2 and c ¯ 3 = 0 − ( − 3 / 2 ) ( 1 ) − 0 ( 0 ) = 3 / 2 . Only c ¯ 2 is negative, so x 2 enters. The direction is u = A B − 1 A 2 = ( 1 / 2 , 3 / 2 ) T . Both components are strictly positive, so both rows enter the ratio test: 6 / ( 1 / 2 ) = 12 and 6 / ( 3 / 2 ) = 4 . The minimum is θ ∗ = 4 , attained in the second row, so x 4 leaves. The new basis is { 1 , 2 } with x 2 = 4 , x 1 = 6 − 4 ( 1 / 2 ) = 4 , and x 3 = x 4 = 0 . The objective moves from − 18 to − 20 , a fall of θ ∗ | c ¯ 2 | = 4 × 1 / 2 = 2 .

No positive components. The ratio test is taken over rows where the direction is strictly positive, because only those bound how far the step may go before a basic variable reaches zero. If no component is positive, the test is over an empty set and returns no leaving variable: moving along the direction keeps every basic variable nonnegative however far it goes. The objective falls without limit, so the program is unbounded and the method stops there rather than pivoting.

A complete answer does each of these:

  • entering variable justified
  • direction computed
  • ratio test restricted
  • leaving variable and step
  • updated solution reported
  • unboundedness recognised

Error diagnosis · Explanation

At a basic feasible solution the basic values are x B ( 1 ) = 8 and x B ( 2 ) = 3 , and the entering direction is

u = ( 4 − 2 ) .

A student writes:

"The ratios are 8 / 4 = 2 and 3 / ( − 2 ) = − 1.5 . The minimum is − 1.5 , so θ ∗ = − 1.5 and the second basic variable leaves."

Identify the error, explain what happens to the second basic variable as the entering variable increases, and give the correct step length and leaving variable.

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

2 hints available, least help first.

Hint 1: Retrieval cue

Can a step length be negative? What would that mean for the direction of travel?

Hint 2: Concept cue

Write 3 − θ ( − 2 ) and evaluate it at θ = 0 , 1 , 2 .

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 second row should not be in the ratio test at all, because u 2 = − 2 is negative. As the entering variable rises to θ , the second basic variable becomes x B ( 2 ) − θ u 2 = 3 − θ ( − 2 ) = 3 + 2 θ , which increases. It moves away from zero, so it never limits the step and its ratio is not a step length. Only the first row qualifies, giving θ ∗ = 8 / 4 = 2 , and the first basic variable leaves. The student's answer is also self-evidently wrong before any analysis: a negative step length would move backwards along the edge, away from the improvement the reduced cost promised.

A complete answer does each of these:

  • ratio test restricted
  • direction computed
  • leaving variable and step

Transfer · Evaluation · Explanation

A colleague is running the simplex method and reports: "I found an entering variable with reduced cost − 2 , computed the direction, and every component of u came out negative. My code raised a divide-by-zero style error because the ratio test had nothing to minimize over, so I patched it to pick the row with the least negative ratio and carry on."

Explain what the empty ratio test actually means about the program, why the patch is wrong, and what the code should report instead. Then describe what happens to the objective and to feasibility as the entering variable increases without limit.

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

2 hints available, least help first.

Hint 1: Retrieval cue

The ratio test exists to find the first basic variable to hit zero. What if none of them is heading there?

Hint 2: Strategy cue

Write x B ( i ) − θ u i with every u i ≤ 0 and ask whether any choice of θ ≥ 0 makes it negative.

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.

An empty ratio test means no basic variable falls as the entering variable rises, so none of them ever reaches zero. The entering variable can increase without limit while every constraint continues to hold, which is precisely the condition for the program to be unbounded. The patch is wrong because a negative ratio is not a step length: taking it moves backwards along the edge, and the row it names was never approaching zero, so the resulting point violates feasibility while the code reports a successful pivot. The correct behavior is to terminate and report that the program is unbounded, optionally returning the ray direction. As the entering variable rises to θ , the basic values x B ( i ) − θ u i all increase or hold steady because each u i ≤ 0 , so feasibility is preserved for every θ ≥ 0 ; the objective changes by θ c ¯ j = − 2 θ , which falls without bound. There is therefore no finite optimum to find.

A complete answer does each of these:

  • unboundedness recognised
  • direction computed
  • ratio test restricted
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.