Loading
The simplex method solves linear programmes by moving from corner to corner of the feasible region. Each tableau picks an entering variable (most negative zⱼ − cⱼ) and a leaving one (smallest ratio).
Maximise subject to .
| Basis | x | y | s1 | s2 | s3 | b | Ratio |
|---|---|---|---|---|---|---|---|
| s1 | 1 | 0 | 1 | 0 | 0 | 4 | — |
| s2 | 0 | 2 | 0 | 1 | 0 | 12 | 6 ← |
| s3 | 3 | 2 | 0 | 0 | 1 | 18 | 9 |
| zⱼ − cⱼ | -3 | -5 | 0 | 0 | 0 | 0 |
| Basis | x | y | s1 | s2 | s3 | b | Ratio |
|---|---|---|---|---|---|---|---|
| s1 | 1 | 0 | 1 | 0 | 0 | 4 | 4 |
| y | 0 | 1 | 0 | 1/2 | 0 | 6 | — |
| s3 | 3 | 0 | 0 | -1 | 1 | 6 | 2 ← |
| zⱼ − cⱼ | -3 | 0 | 0 | 5/2 | 0 | 30 |
| Basis | x | y | s1 | s2 | s3 | b | Ratio |
|---|---|---|---|---|---|---|---|
| s1 | 0 | 0 | 1 | 1/3 | -1/3 | 2 | — |
| y | 0 | 1 | 0 | 1/2 | 0 | 6 | — |
| x | 1 | 0 | 0 | -1/3 | 1/3 | 2 | — |
| zⱼ − cⱼ | 0 | 0 | 0 | 3/2 | 1 | 36 |
The calculator below opens on this example.
Choosing the leaving row by the largest ratio.
Including negative or zero entries in the ratio test.
Stopping too early.
Forgetting to divide the pivot row first.
All variables are taken to be ≥ 0. Use <=, >= or = in constraints.
Add this calculator to a new note, next to your own working. It stays live: change the numbers there any time.