Lably
Skip to content

Duality (optimization)

Principle in mathematical optimization

  • 8 min read
  • 5 chapters

Related on Lably

Through Mathematical optimization, Optimization problem and Maximum and minimum

In general, the optimal values of the primal and dual problems need not be equal. Their difference is called the duality gap. For convex optimization problems, the duality gap is zero under a constraint qualification condition. This fact is called strong duality.

Dual problem

Usually the term "dual problem" refers to the Lagrangian dual problem but other dual problems are used – for example, the Wolfe dual problem and the Fenchel dual problem. The Lagrangian dual problem is obtained by forming the Lagrangian of a minimization problem by using nonnegative Lagrange multipliers to add the constraints to the objective function, and then solving for the primal variable values that minimize the original objective function. This solution gives the primal variables as functions of the Lagrange multipliers, which are called dual variables, so that the new problem is to maximize the objective function with respect to the dual variables under the derived constraints on the dual variables (including at least the nonnegativity constraints).

In general given two dual pairs of separated locally convex spaces (X,X∗) and (Y,Y∗) and the function f:X→R∪{+∞}, we can define the primal problem as finding x^ such that f(x^)=infx∈Xf(x). In other words, if x^ exists, f(x^) is the minimum of the function f and the infimum (greatest lower bound) of the function is attained.

If there are constraint conditions, these can be built into the function f by letting f~=f+Iconstraints where Iconstraints is a suitable function on X that has a minimum 0 on the constraints, and for which one can prove that infx∈Xf~(x)=infxconstrainedf(x). The latter condition is trivially, but not always conveniently, satisfied for the characteristic function (i.e. Iconstraints(x)=0 for x satisfying the constraints and Iconstraints(x)=∞ otherwise). Then extend f~ to a perturbation function F:X×Y→R∪{+∞} such that F(x,0)=f~(x).

The duality gap is the difference of the right and left hand sides of the inequality

supy∗∈Y∗−F∗(0,y∗)≤infx∈XF(x,0),

where F∗ is the convex conjugate in both variables and sup denotes the supremum (least upper bound).

Duality gap

The duality gap is the difference between the values of any primal solutions and any dual solutions. If d∗ is the optimal dual value and p∗ is the optimal primal value, then the duality gap is equal to p∗−d∗. This value is always greater than or equal to 0 (for minimization problems). The duality gap is zero if and only if strong duality holds. Otherwise the gap is strictly positive and weak duality holds.

In computational optimization, another "duality gap" is often reported, which is the difference in value between any dual solution and the value of a feasible but suboptimal iterate for the primal problem. This alternative "duality gap" quantifies the discrepancy between the value of a current feasible but suboptimal iterate for the primal problem and the value of the dual problem; the value of the dual problem is, under regularity conditions, equal to the value of the convex relaxation of the primal problem: The convex relaxation is the problem arising replacing a non-convex feasible set with its closed convex hull and with replacing a non-convex function with its convex closure, that is the function that has the epigraph that is the closed convex hull of the original primal objective function.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Applied mathematics