Definition
Optimization problems may be viewed from either the primal problem or the dual problem.
Properties
Consider the following optimization problem
The original problem is called a Primal problem subject to Let a be the domain of the problem and the be its feasible set
The Lagrangian function corresponding to the primal problem is called a Lagrangian primal function where the variable is called a Primal variable, and are called Dual variables
Since by the constraints, the Lagrangian primal function is always lower than or equal to the for all in the feasible set
Let a primal optimal value be the feasible optimal value of the primal problem
Let a Lagrange dual function be the minimum of the Lagrangian primal function for all in the domain
We say another optimization problem for the Lagrange dual function a Dual problem subject to
Since the Lagrange dual function minimize the Lagrangian primal function , it is always lower than or equal to the primal optimal value that minimizes that
Let a dual optimal value be the maximum of the dual problem
Then, by the above inequality, become the lower bound of This property is called a Weak Duality
and the difference between the dual optimal value and the primal optimal value is called a Duality Gap
If the dual optimal value and the primal optimal value are the same, then this property is called a Strong Duality
Solution for the Problem Satisfying Strong Duality
Find the Lagrange dual function by using the gradient condition find the dual optimal variables from the dual problem by using the gradient condition obtain the primal optimal variable using the dual optimal variables
Visual Explanation of Duality
Consider an optimization problem subject to
Let a set where
And let be the primal optimal solution
By definition of Lagrange dual function, where
Consider plane
Where the feasible region is of
The optimal value is given by the tangent horizontal line that indicates the minimum value when
Since , the line always has negative slope. So, for a given , the line provides the lower bound of the objective function
The figure shows the hyperplanes for different values
We see that gives the best lower bound , also see that Strong Duality does not hold because
Optimality Property
If we have feasible solutions to the primal and dual problems such that their respective objective functions are equal, then these solutions are optimal to their respective problems
Proof Let a prime variable be and dual variables be satisfying
Since the primal optimal minimize , the value with the prime variable always greater than or equal to the
And by the assumption, the first term and the last term of the inequality become the same.
Then, by the equality , the dual variable are the dual optimal, and by the equality , the primal variable is the primal optimal And the two are the same.
Therefore, values are optimal.
Facts
If the primal is a minimization problem, then the dual is a maximization problem, and vice versa
The solution to the primal is an upper bound to the solution of the dual, and the solution of the dual is a lower bound to the solution of the primal, and vice versa
For the minimization primal problem, the dual optimal is a lower bound of the primal optimal
For the minimization primal problem, the dual optimal is a lower bound of the primal optimal