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:Rn→RmA:\mathbb{R}^n\to\mathbb{R}^m, and defines

p⋆=inf⁡x∈Rn (f(x)+g(Ax)),d⋆=sup⁡y∈Rm (−f∗(A⊤y)−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 f∗f^* and g∗g^* are and p⋆,d⋆p^\star,d^\star use and . The inequality d⋆≤p⋆d^\star\le p^\star (weak duality) follows from the , and under suitable regularity conditions one has strong duality d⋆=p⋆d^\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 sup⁡y{⟨b,y⟩−f∗(A⊤y)}\sup_y\{\langle b,y\rangle-f^*(A^\top y)\}.
  • The Lasso objective inf⁡x(λ∥x∥1+12∥Ax−b∥22)\inf_x\left(\lambda\|x\|_1+\tfrac12\|Ax-b\|_2^2\right) has a Fenchel dual sup⁡y(⟨b,y⟩−12∥y∥22)\sup_y\left(\langle b,y\rangle-\tfrac12\|y\|_2^2\right) subject to the constraint ∥A⊤y∥∞≤λ\|A^\top y\|_\infty\le \lambda, because the conjugate of λ∥x∥1\lambda\|x\|_1 is an indicator of an ℓ∞\ell_\infty-ball.