Decision Mathematics 1 (Paper 3D or 4D), topic 5 (Linear programming), spec point 5.3
Setting up the tableau
Add slack variables, and write the objective as . Each constraint is a row, with the slack variable as its basic variable; the objective row goes at the bottom.
The algorithm
- Pivot column: the most negative number in the objective row.
- Pivot row: for each row with a positive entry in the pivot column, find . Choose the smallest .
- Divide the pivot row by the pivot so the pivot becomes 1. The entering variable replaces the basic variable of that row.
- Add or subtract multiples of the new pivot row to make every other entry in the pivot column 0.
- Repeat until there are no negative numbers in the objective row. The tableau is then optimal.
Worked example
Maximise subject to and , with .
| Basic | Value | ||||
|---|---|---|---|---|---|
| 2 | 1 | 1 | 0 | 10 | |
| 1 | 3 | 0 | 1 | 15 | |
| 0 | 0 | 0 |
enters (most negative, ). : , , so leaves.
| Basic | Value | ||||
|---|---|---|---|---|---|
| 0 | 1 | 5 | |||
| 1 | 0 | 5 | |||
| 0 | 0 | 20 |
enters. : , , so leaves.
| Basic | Value | ||||
|---|---|---|---|---|---|
| 1 | 0 | 3 | |||
| 0 | 1 | 4 | |||
| 0 | 0 | 1 | 1 | 25 |
No negatives remain, so this is optimal: , , , . Both resources are fully used.
Minimising
To minimise , maximise instead, then change the sign of the answer.
Reading the final tableau
Basic variables take the values in the value column; non-basic variables are 0.
Common mistake: choosing the pivot row using the largest , or including rows where the pivot column entry is zero or negative. Only positive entries count.
Exam tip: show the row operations you used (for example R1 − R2) and give the final values of every variable, including the slack variables, and say what they mean.
Check yourself
How do you know a tableau is optimal (when maximising)?
There are no negative entries in the objective row.
values are 4, 6 and (negative entry). Which row is the pivot row?
The row with .
A slack variable is 3 in the final tableau. What does it mean?
3 units of that resource are unused.