ENG 401 · Engineering Mathematics VI (Mathematical Modelling and Operation Research)
Our notes
2 min readWhy the simplex method
The graphical method works only for two variables. The simplex method (George Dantzig, 1947) moves from corner to corner of the feasible region, improving the objective each time, until no better corner exists.
Standard form
For a maximisation with ≤ constraints, add a slack variable to each:
x + 2y + s₁ = 40; 2x + y + s₂ = 50; all variables ≥ 0.
Slack = unused resource.
Worked example (the furniture problem, profits in ₦ thousands)
Maximise Z = 2x + 3y.
Initial tableau
| Basis | x | y | s₁ | s₂ | RHS |
|---|---|---|---|---|---|
| s₁ | 1 | 2 | 1 | 0 | 40 |
| s₂ | 2 | 1 | 0 | 1 | 50 |
| Z | −2 | −3 | 0 | 0 | 0 |
Iteration 1
- Entering: most negative in the Z row: y (−3).
- Ratio test: 40 ÷ 2 = 20; 50 ÷ 1 = 50. Smallest: s₁ leaves. Pivot = 2.
- New y row: divide by 2: (0.5, 1, 0.5, 0 | 20).
- s₂ row − 1 × new y row: (1.5, 0, −0.5, 1 | 30).
- Z row + 3 × new y row: (−0.5, 0, 1.5, 0 | 60).
Iteration 2
- Entering: x (−0.5).
- Ratios: 20 ÷ 0.5 = 40; 30 ÷ 1.5 = 20. s₂ leaves. Pivot = 1.5.
- New x row: divide by 1.5: (1, 0, −1/3, 2/3 | 20).
- y row − 0.5 × new x row: (0, 1, 2/3, −1/3 | 10).
- Z row + 0.5 × new x row: (0, 0, 4/3, 1/3 | 70).
| Basis | x | y | s₁ | s₂ | RHS |
|---|---|---|---|---|---|
| x | 1 | 0 | −1/3 | 2/3 | 20 |
| y | 0 | 1 | 2/3 | −1/3 | 10 |
| Z | 0 | 0 | 4/3 | 1/3 | 70 |
No negatives remain in the Z row: optimal. x = 20, y = 10, Z = 70 (₦70,000). This matches the graphical solution: the second check.
Reading the final tableau
- Basic variables (x, y) take the RHS values; non-basic (s₁, s₂) are zero: both resources fully used.
- Z-row entries under the slacks are shadow prices: one more carpentry hour adds 4/3 thousand ≈ ₦1,333; one more finishing hour adds ₦333.
Minimisation and ≥ constraints
- Minimise Z by maximising −Z.
- A ≥ constraint gets a surplus variable (subtracted) and an artificial variable to start; the Big-M or two-phase method drives artificials out.
Special signs in the tableau
| Sign | Meaning |
|---|---|
| A zero in the Z row under a non-basic variable at the optimum | Alternative optima |
| No positive entry in the entering column | Unbounded |
| Artificial variable still positive at the end | Infeasible |
Exams usually ask
- Solve a three-constraint LP by simplex.
- Interpret shadow prices from the final tableau.
Common mistake
Choosing the leaving row by the largest ratio, or including negative or zero entries in the ratio test. Use the smallest non-negative ratio with a positive pivot entry.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Simplex algorithm
(opens en.wikipedia.org in a new tab)
Wikipedia, Simplex algorithm, CC BY-SA 4.0 · licence
-
Slack variable
(opens en.wikipedia.org in a new tab)
Wikipedia, Slack variable, CC BY-SA 4.0 · licence
-
Big M method
(opens en.wikipedia.org in a new tab)
Wikipedia, Big M method, CC BY-SA 4.0 · licence
-
NOUN MTH 309: Optimization Theory
NOUN course book (PDF, about 2.8 MB). Linear programming and constrained optimisation.
(opens nou.edu.ng in a new tab)
Watch
-
Best pick Initial Simplex Tableau setup | Artificial Variables, Slack, Surplus | Iteration 0
9 min · ≈ 41 MB · about ₦23
(opens youtube.com in a new tab)
-
Simplex Method Problem 1- Linear Programming Problems (LPP) - Engineering Mathematics - 4
25 min · ≈ 113 MB · about ₦63
(opens youtube.com in a new tab)
-
The Simplex Method (Minimization Problem)
12 min · ≈ 54 MB · about ₦30
(opens youtube.com in a new tab)
-
15. Linear Programming: LP, reductions, Simplex
1 h 23 min · ≈ 374 MB · about ₦210
(opens youtube.com in a new tab)
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.