Simplex with Greater-Than Constraints: Two-Stage and Big-M Methods | OCR B (MEI) A Level Further Maths notes

Free preview: Simplex with Greater-Than Constraints: Two-Stage and Big-M Methods

When the Origin Isn't Allowed: Surplus and Artificial Variables

Year 2 (A level) for OCR A, where the simplex algorithm is A level content. Two-stage simplex and big-M are listed for Edexcel (D1), which does not mark AS content in its specification, so check your own specification for when it is taught.

Let's start with the problem. Simplex always starts at the origin, where every decision variable is 0. That worked because every constraint was ⩽, and making nothing never breaks a "no more than" rule.

  • But some rules say "at least": a contract needs at least 4 units, a diet needs at least 30 g of protein.
  • With a constraint like x+2y⩾4, the origin is not feasible (0⩾4 is false).
  • Simplex would start outside R and could give nonsense. We need a feasible starting vertex. This note gives two ways to find one.

Maximise P=x+3y s.t. x+y⩽8,2x+y⩽12,x+2y⩾4,x,y⩾0

Surplus and artificial variables

  • For ⩽ constraints, add slacks as before: x+y+s1=8, 2x+y+s2=12.
  • For ⩾, subtract a surplus variable s3⩾0: x+2y−s3=4. s₃ is how much you are over the minimum.
  • At the origin this gives s3=−4, which is not allowed. So add an artificial variable a1⩾0:

x+2y−s3+a1=4

  • Now x = y = s₃ = 0 and a₁ = 4 is a valid (artificial) starting point.
  • a₁ has no real meaning. Any solution with a1>0 is not really feasible. The aim is to drive a₁ to 0.

The recipe: setting up a ≥ constraint

  1. Subtract a surplus to make an equation. Why: the left side is bigger than the right by exactly the surplus.
  2. Add an artificial. Why: it gives that row a basic variable with a positive starting value, so the first tableau is legal.
  3. Leave ⩽ rows alone: a slack is enough there.
  4. Get rid of the artificials, by the two-stage method or the big-M method (the next pages).

💡 In plain words

  • ≤: add a slack. ≥: subtract a surplus and add an artificial.
  • Artificial variables are scaffolding: they get you started, then must disappear.

📝 Why not just a surplus?

  • ✗ Wrong: basic variable s₃ with value 4 in the row x+2y−s3=4. At the origin s₃ = −4, not 4.
  • ✓ Right: the coefficient of s₃ is −1, so it can't be basic with a positive value. That is exactly why a₁ is needed.

✏️ YOUR TURN 1

Try this first:

Write the equations for: maximise P=2x+y subject to x+y⩽10, x+3y⩾6, x,y⩾0. Explain why simplex can't start at the origin without help.

Answer:

  • x+y+s1=10 and x+3y−s2+a1=6, with all variables ⩾0.
  • At the origin x+3y=0, which is not ⩾6: the origin is infeasible (s₂ would be −6).
  • The artificial a₁ = 6 gives a legal starting tableau.

The Two-Stage Method: Stage 1

The idea is simple. Before chasing profit, first get rid of the scaffolding. Stage 1 is a simplex problem whose only goal is to make the artificials zero.

The recipe: two-stage simplex

  1. Stage 1 objective: minimise the sum of the artificial variables, A=a1. Equivalently maximise I=−A. Why: the best possible value is A = 0, and reaching it means a real feasible point.
  2. Write I in terms of the non-basic variables. Why: a basic variable must not appear in an objective row, or the tableau reads wrongly.
  3. Run simplex using the I row for pivot choices, carrying the P row along too. Why: the P row is then ready for Stage 2.
  4. When I = 0 (all artificials are 0), you are at a real vertex. Delete the artificial columns and the I row.
  5. Stage 2: carry on with ordinary simplex using the P row.

👀 Watch me do it: build the I row

What I writeWhy I do it
I=−a1Maximise minus the artificial.
a1=4−x−2y+s3Rearrange the third constraint for a₁ (it is basic, so it must be replaced).
I=−4+x+2y−s3Substitute and simplify the signs.
I−x−2y+s3=−4Everything on the left, like the P row. Value is −4.
Basic variablexys₁s₂s₃a₁Value
s₁1110008
s₂21010012
a₁1200−114
P−1−300000
I−1−20010−4

👀 Watch me do it: the Stage 1 pivot

What I writeWhy I do it
Most negative in the I row: −2, so y enters.In Stage 1 the I row picks the column, not the P row.
Ratios 8 ÷ 1 = 8, 12 ÷ 1 = 12, 4 ÷ 2 = 2.Positive entries in the y column only.
Pivot row a₁, pivot 2.Smallest ratio, so a₁ leaves: exactly what we want.
New y row = a₁ row ÷ 2; clear the y column in s₁, s₂, P and I.Ordinary row operations, done to both objective rows.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in · Subscribe · Start free trial

All notes in The Simplex Algorithm

  1. The Simplex Algorithm: Slack Variables, Tableaux and Pivoting
  2. The Simplex Algorithm: Reading Tableaux, Three Variables and Solver Output
  3. Simplex with Greater-Than Constraints: Two-Stage and Big-M Methods

What's inside for this topic

3 teacher notes, 82 practice questions, 39 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: The Simplex Algorithm: Reading Tableaux, Three Variables and Solver Output

Simplex with Greater-Than Constraints: Two-Stage and Big-M Methods on other exam boards

All OCR B (MEI) A Level Further Maths topics · A Level Further Maths