Simplex with Greater-Than Constraints: Two-Stage and Big-M Methods | OCR 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 , the origin is not feasible ( 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.
Surplus and artificial variables
- For constraints, add slacks as before: , .
- For , subtract a surplus variable : . s₃ is how much you are over the minimum.
- At the origin this gives , which is not allowed. So add an artificial variable :
- Now x = y = s₃ = 0 and a₁ = 4 is a valid (artificial) starting point.
- a₁ has no real meaning. Any solution with is not really feasible. The aim is to drive a₁ to 0.
The recipe: setting up a ≥ constraint
- Subtract a surplus to make an equation. Why: the left side is bigger than the right by exactly the surplus.
- Add an artificial. Why: it gives that row a basic variable with a positive starting value, so the first tableau is legal.
- Leave rows alone: a slack is enough there.
- 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 . 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 subject to , , . Explain why simplex can't start at the origin without help.
Answer:
- and , with all variables .
- At the origin , which is not : 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
- Stage 1 objective: minimise the sum of the artificial variables, . Equivalently maximise . Why: the best possible value is A = 0, and reaching it means a real feasible point.
- 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.
- 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.
- When I = 0 (all artificials are 0), you are at a real vertex. Delete the artificial columns and the I row.
- Stage 2: carry on with ordinary simplex using the P row.
👀 Watch me do it: build the I row
| What I write | Why I do it |
|---|---|
| Maximise minus the artificial. | |
| Rearrange the third constraint for a₁ (it is basic, so it must be replaced). | |
| Substitute and simplify the signs. | |
| Everything on the left, like the P row. Value is −4. |
| Basic variable | x | y | s₁ | s₂ | s₃ | a₁ | Value |
|---|---|---|---|---|---|---|---|
| s₁ | 1 | 1 | 1 | 0 | 0 | 0 | 8 |
| s₂ | 2 | 1 | 0 | 1 | 0 | 0 | 12 |
| a₁ | 1 | 2 | 0 | 0 | −1 | 1 | 4 |
| P | −1 | −3 | 0 | 0 | 0 | 0 | 0 |
| I | −1 | −2 | 0 | 0 | 1 | 0 | −4 |
👀 Watch me do it: the Stage 1 pivot
| What I write | Why 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.
All notes in The Simplex Algorithm
- The Simplex Algorithm: Slack Variables, Tableaux and Pivoting
- The Simplex Algorithm: Reading Tableaux, Three Variables and Solver Output
- Simplex with Greater-Than Constraints: Two-Stage and Big-M Methods
What's inside for this topic
3 teacher notes, 78 practice questions, 36 flashcards, 2 quizzes.
Get the full notes, every practice question, flashcards, quizzes and mock papers.
Previous note: The Simplex Algorithm: Reading Tableaux, Three Variables and Solver Output
All OCR A Level Further Maths topics · A Level Further Maths