Fundamentals of Operation Research
Online BA · Sem 6
0% complete
0/10 lessons
Lesson 5 of 10Economics
Duality in Linear Programming
Fundamentals of Operation Research
About the video
Duality in Linear Programming | Primal to Dual Conversion | LPP
Dr.Gajendra Purohit
Study notes
Every linear programming problem (the primal) has an associated dual problem built from the same data. Duality theorems link the optimal values and solutions of the two problems, and dual variables can be read as shadow prices of resources.
Forming the Dual
- Primal max Z = c^T x subject to Ax <= b, x >= 0 gives dual min W = b^T y subject to A^T y >= c, y >= 0.
- Each primal constraint gives one dual variable; each primal variable gives one dual constraint.
- The objective coefficients and the right-hand sides swap roles, and the constraint matrix is transposed.
- An equality constraint in the primal gives an unrestricted (free) dual variable, and a free primal variable gives an equality dual constraint.
- The dual of the dual is the primal.
Duality Theorems
- Weak duality: for any feasible x and y in a max primal, c^T x <= b^T y.
- Strong duality: if either problem has a finite optimum, so does the other, and Z* = W*.
- If the primal is unbounded, the dual is infeasible, and vice versa.
- Complementary slackness: at the optimum, y_i * (slack of primal constraint i) = 0 and x_j * (surplus of dual constraint j) = 0.
Interpretation and Use
- The optimal dual variable y_i is the shadow price: the change in Z per unit increase in b_i.
- Optimal dual values can be read from the Cj - Zj (or Zj - Cj) row under the slack columns of the final primal simplex table.
- Solving the dual can be easier when the primal has many constraints and few variables.
Key terms
- Primal
- The original LP problem.
- Dual
- The LP built from the primal by transposing data and swapping objective and RHS roles.
- Shadow price
- The marginal value of one extra unit of a resource, given by the optimal dual variable.
- Complementary slackness
- At the optimum, either a constraint is tight or its corresponding dual variable is zero.
- Weak duality
- For a max primal, any feasible primal value is at most any feasible dual value.
Takeaways
- Max with <= constraints becomes min with >= constraints, using the transposed matrix.
- At the optimum, primal and dual objective values are equal.
- Dual variables are shadow prices of the primal resources.
- A slack (non-binding) constraint has a zero shadow price.
Contribute
Was this lesson helpful?
We read every rating and fix the weakest lessons first.