Lagrangian Duality
In the following section we will derive the so-called dual problem of a (primal) optimization problem, following the derivation demonstrated in a series of short lectures which accompany the book [Bierlaire2018]. Possibly the most important property of the dual problem (from a practical point of view) is that it is convex even if the primal optimization problem is not [Boyd2004].
Let us consider a constrained optimization problem in the form to which we will refer to as the primal problem. With regard to this problem, let us define the Lagrangian where and are Lagrange multipliers, and the dual function
Theorem
Let be the solution to the primal problem. If , then
Proof
(For any and , I can find an that minimizes the Lagrangian as well as or better than by violating the constraints.)
and
(Because if and then )
Corollary
Let be the solution to the primal problem and feasible w.r.t its constraints. If and , , then
Dual problem
As was proven provides a lower bound on the solution of the primal problem when . The dual problem can then be regarded as maximing this lower bound by penalizing violations of the primal problem's constraints using the Lagrange multipliers:
The second condition states that we consider on and such that the dual function is bounded. This is necessary for the problem to be well posed.
(Weak duality) theorem
If is the solution to the primal problem and is the solution to the dual problem, then
Corollary
If one problem is unbounded the other is infeasible.
Corollary
If such that they are optimal.