UNIHIVE

Study Hub UNIPORT ENG 401

ENG 401 · Engineering Mathematics VI (Mathematical Modelling and Operation Research)

The simplex method

Standard form, slack variables, tableaux, pivoting, and reading the answer.

Our notes

2 min read

Why 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

Basisxys₁s₂RHS
s₁121040
s₂210150
Z−2−3000

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).
Basisxys₁s₂RHS
x10−1/32/320
y012/3−1/310
Z004/31/370

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

SignMeaning
A zero in the Z row under a non-basic variable at the optimumAlternative optima
No positive entry in the entering columnUnbounded
Artificial variable still positive at the endInfeasible

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

Watch

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.

All ENG 401 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.