ENG 401 · Engineering Mathematics VI (Mathematical Modelling and Operation Research)
Our notes
2 min readThe dual problem
Every LP (the primal) has a partner (the dual). For a maximisation with ≤ constraints:
| Primal | Dual |
|---|---|
| Maximise cᵀx | Minimise bᵀu |
| Ax ≤ b | Aᵀu ≥ c |
| x ≥ 0 | u ≥ 0 |
| Each constraint | gives a dual variable |
| Each variable | gives a dual constraint |
Worked example
Primal (furniture, ₦ thousands): max Z = 2x + 3y; x + 2y ≤ 40; 2x + y ≤ 50.
Dual: minimise W = 40u₁ + 50u₂
subject to:
- u₁ + 2u₂ ≥ 2 (chair)
- 2u₁ + u₂ ≥ 3 (table)
- u₁, u₂ ≥ 0
Solve (both constraints tight at the optimum): from the first, u₁ = 2 − 2u₂; then 4 − 4u₂ + u₂ = 3 → u₂ = 1/3, u₁ = 4/3.
W = 40 × 4/3 + 50 × 1/3 = 160/3 + 50/3 = 210/3 = 70.
Check: W = Z = 70, as the strong duality theorem says. And u₁ = 4/3, u₂ = 1/3 are exactly the shadow prices in the final simplex tableau.
Economic meaning
The dual variables are the value of one more unit of each resource. A buyer wanting to rent the workshop's hours would pay at least ₦1,333 per carpentry hour and ₦333 per finishing hour to match the profit.
Complementary slackness
- If a resource is not fully used (slack > 0), its shadow price is 0.
- If a shadow price is positive, the resource is fully used.
Sensitivity analysis
How much can the data change before the optimal corner changes?
Objective coefficient range (chairs). The optimum stays at (20, 10) while the slope of the objective lies between those of the two binding constraints:
1/2 ≤ c₁ ÷ 3 ≤ 2 → 1.5 ≤ c₁ ≤ 6 (₦1,500 to ₦6,000 per chair).
Check at the ends: c₁ = 1.5: Z(20, 10) = 30 + 30 = 60 = Z(0, 20). Tie, so the edge of the range. c₁ = 6: Z(20, 10) = 120 + 30 = 150 = Z(25, 0). Tie. Correct.
Right-hand-side change. Add one carpentry hour (41): solving x + 2y = 41 and 2x + y = 50 gives x = 19.667, y = 10.667, Z = 39.333 + 32 = 71.333. Increase = 1.333 thousand = the shadow price. Confirmed. This holds only within a range of RHS values, beyond which the binding constraints change.
Why it matters
Costs, prices and capacities are estimates. Sensitivity analysis tells the engineer which estimates must be accurate and how robust the plan is.
Exams usually ask
- Write the dual of a given LP and solve it.
- Find the range of an objective coefficient for which the solution stays optimal.
Common mistake
Applying a shadow price far beyond its valid range. Once another constraint becomes binding, the value changes.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Duality (optimization)
(opens en.wikipedia.org in a new tab)
Wikipedia, Duality (optimization), CC BY-SA 4.0 · licence
-
Dual linear program
(opens en.wikipedia.org in a new tab)
Wikipedia, Dual linear program, CC BY-SA 4.0 · licence
-
Shadow price
(opens en.wikipedia.org in a new tab)
Wikipedia, Shadow price, 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 Dual Simplex Method Problem - Linear Programming Problems (LPP) - Engineering Mathematics 4
25 min · ≈ 113 MB · about ₦63
(opens youtube.com in a new tab)
-
Duality: Lagrangian and dual problem
14 min · ≈ 63 MB · about ₦35
(opens youtube.com in a new tab)
-
How to Solve a Linear Programming Problem Using the Dual Simplex Method
11 min · ≈ 50 MB · about ₦28
(opens youtube.com in a new tab)
-
Lecture 13: Duality in Linear Programming
1 h 16 min · ≈ 342 MB · about ₦192
(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.