UNIHIVE

Study Hub UNIPORT ENG 401

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

Duality and sensitivity analysis

The dual problem, shadow prices, and how far data can change before the answer changes.

Our notes

2 min read

The dual problem

Every LP (the primal) has a partner (the dual). For a maximisation with ≤ constraints:

PrimalDual
Maximise cᵀxMinimise bᵀu
Ax ≤ bAᵀu ≥ c
x ≥ 0u ≥ 0
Each constraintgives a dual variable
Each variablegives 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

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.