The Dual of Linear Programming (LP)
Explore how to formulate and solve the dual problem in linear programming, understand its relationship with the primal problem, and learn when solving the dual offers computational advantages. This lesson helps you grasp key concepts like Lagrangian duality, the role of constraints, and practical solution methods using NumPy and SciPy.
We'll cover the following...
In some cases, the dual problem of an LP problem might be easier to solve than the primal problem. If the primal is a minimization problem, the dual will be a maximization problem, and vice versa. So, depending on the specifics of the problem (simpler constraints or objective function), it might be easier to solve the dual problem than the primal problem.
Calculation of the dual objective
Consider an LP problem whose primal is given as follows:
where
The Lagrangian function
where
The dual of Lagrangian is given as follows:
Because