The Simplex Algorithm: Reading Tableaux, Three Variables and Solver Output | AQA A Level Further Maths notes
Free preview: The Simplex Algorithm: Reading Tableaux, Three Variables and Solver Output
Simplex with Three Variables
Year 2 (A level) for OCR A. OCR B (MEI) Modelling with Algorithms has the same content at AS (Y413) and A level (Y433). AQA and Edexcel do not mark AS content in their specifications, so check your own specification.
Watch: 1-minute explainer
Here's where simplex earns its keep. With three products you would need a 3D graph, which is impossible to draw accurately by hand. Simplex doesn't care: one more variable is just one more column.
A firm makes three products, x, y and z units a day:
Quick recap of the recipe
- Add a slack to each constraint (r, s, t) and write .
- Pivot column: most negative entry in the objective row.
- Pivot row: smallest ratio Value ÷ (positive entry in the pivot column).
- Divide the pivot row by the pivot; clear the rest of the column.
- Repeat until the objective row has no negatives.
| Basic variable | x | y | z | r | s | t | Value |
|---|---|---|---|---|---|---|---|
| r | 1 | 2 | 1 | 1 | 0 | 0 | 20 |
| s | 3 | 1 | 2 | 0 | 1 | 0 | 30 |
| t | 1 | 1 | 1 | 0 | 0 | 1 | 12 |
| P | −4 | −5 | −3 | 0 | 0 | 0 | 0 |
👀 Watch me do it: iteration 1
| What I write | Why I do it |
|---|---|
| Most negative: −5, so y enters. | Each unit of y adds 5 to P, the most of any variable. |
| Ratios: 20 ÷ 2 = 10, 30 ÷ 1 = 30, 12 ÷ 1 = 12. | All three entries in the y column are positive, so all three rows count. |
| Pivot row r, pivot 2. | 10 is the smallest ratio: labour runs out first. |
| New y row = R1 ÷ 2 = (½, 1, ½, ½, 0, 0 | 10). | Make the pivot 1. |
| s row − y row; t row − y row. | Each had 1 in the y column, so subtract one lot of the new y row. |
| P row + 5 × y row. | −5 + 5(1) = 0. |
| Basic variable | x | y | z | r | s | t | Value |
|---|---|---|---|---|---|---|---|
| y | ½ | 1 | ½ | ½ | 0 | 0 | 10 |
| s | 5/2 | 0 | 3/2 | −½ | 1 | 0 | 20 |
| t | ½ | 0 | ½ | −½ | 0 | 1 | 2 |
| P | −3/2 | 0 | −½ | 5/2 | 0 | 0 | 50 |
- Read it: y = 10, s = 20, t = 2; x = z = r = 0; P = 50.
- Check: ✓. Still negatives (−3/2 and −½), so keep going.
Finishing the Three-Variable Problem
👀 Watch me do it: iteration 2, with fractions
| What I write | Why I do it |
|---|---|
| Most negative: , so x enters. | is more negative than . |
| Ratios: , , . | Dividing by a fraction: multiply by its reciprocal. |
| Pivot row t, pivot . | 4 is smallest. |
| New x row = t row × 2 = (1, 0, 1, −1, 0, 2 | 4). | Dividing by ½ is the same as doubling. |
| y row − ½ × x row | Clears the ½ under x: (0, 1, 0, 1, 0, −1 | 8). |
| s row − 5/2 × x row | Clears the 5/2: (0, 0, −1, 2, 1, −5 | 10). |
| P row + 3/2 × x row | Clears the −3/2: (0, 0, 1, 1, 0, 3 | 56). |
| Basic variable | x | y | z | r | s | t | Value |
|---|---|---|---|---|---|---|---|
| y | 0 | 1 | 0 | 1 | 0 | −1 | 8 |
| s | 0 | 0 | −1 | 2 | 1 | −5 | 10 |
| x | 1 | 0 | 1 | −1 | 0 | 2 | 4 |
| P | 0 | 0 | 1 | 1 | 0 | 3 | 56 |
- No negatives in the objective row: optimal.
- Make 4 of x, 8 of y and none of z, for a profit of 56.
- Check in the original objective: ✓.
📝 Fractions or decimals?
- Keep exact fractions (½, 5/2). Decimals such as 0.333 build up rounding errors over several pivots.
- ✗ Wrong: choosing the pivot row by the smallest entry (½ appears twice). ✓ Right: the smallest ratio.
✏️ YOUR TURN 1
Try this first:
Maximise subject to , , , . Carry out the first iteration and state the vertex reached.
Answer:
- z enters (−4). Ratios: 10 ÷ 2 = 5, 12 ÷ 1 = 12, 15 ÷ 1 = 15. Pivot row r, pivot 2.
- New z row = r ÷ 2 = (½, ½, 1, ½, 0, 0 | 5).
- s − z row = (3/2, ½, 0, −½, 1, 0 | 7). t − z row = (½, 5/2, 0, −½, 0, 1 | 10). P + 4 × z row = (0, −1, 0, 2, 0, 0 | 20).
- Vertex: x = y = 0, z = 5, with s = 7, t = 10 and P = 20. There is still −1 under y, so it is not yet optimal.
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
Video
What's inside for this topic
3 teacher notes, 64 practice questions, 36 flashcards, 2 quizzes.
Get the full notes, every practice question, flashcards, quizzes and mock papers.
Previous note: The Simplex Algorithm: Slack Variables, Tableaux and Pivoting Next note: Simplex with Greater-Than Constraints: Two-Stage and Big-M Methods
The Simplex Algorithm: Reading Tableaux, Three Variables and Solver Output on other exam boards
All AQA A Level Further Maths topics · A Level Further Maths