Convex duality: primal and dual problems

Primal and dual convex optimization problems and the relationship between their optimal values.
Convex duality: primal and dual problems

A primal-dual pair in convex optimization is a pair of problems built from convex objectives so that the dual objective gives a universal lower bound on the primal optimal value. A common (Fenchel) form starts from convex f:Rn(,+]f:\mathbb{R}^n\to(-\infty,+\infty] and g:Rm(,+]g:\mathbb{R}^m\to(-\infty,+\infty] and a linear map A:RnRmA:\mathbb{R}^n\to\mathbb{R}^m, and defines

p=infxRn(f(x)+g(Ax)),d=supyRm(f(Ay)g(y)), p^\star=\inf_{x\in\mathbb{R}^n}\,\bigl(f(x)+g(Ax)\bigr),\qquad d^\star=\sup_{y\in\mathbb{R}^m}\,\bigl(-f^*(A^\top y)-g^*(-y)\bigr),

where ff^* and gg^* are and p,dp^\star,d^\star use and . The inequality dpd^\star\le p^\star (weak duality) follows from the , and under suitable regularity conditions one has strong duality d=pd^\star=p^\star, often certified by conditions.

Examples:

  • Equality constraints can be encoded by choosing g(u)g(u) to be 00 when u=bu=b and ++\infty otherwise, turning p=inf{f(x):Ax=b}p^\star=\inf\{f(x):Ax=b\} into a dual of the form supy{b,yf(Ay)}\sup_y\{\langle b,y\rangle-f^*(A^\top y)\}.
  • The Lasso objective infx(λx1+12Axb22)\inf_x\left(\lambda\|x\|_1+\tfrac12\|Ax-b\|_2^2\right) has a Fenchel dual supy(b,y12y22)\sup_y\left(\langle b,y\rangle-\tfrac12\|y\|_2^2\right) subject to the constraint Ayλ\|A^\top y\|_\infty\le \lambda, because the conjugate of λx1\lambda\|x\|_1 is an indicator of an \ell_\infty-ball.