Lecture 12-3: Duality#
Download the original slides: CMSE382-Lec12_3.pdf
Warning
This is an AI-generated transcript of the lecture slides and may contain errors or inaccuracies. Please refer to the original course materials for authoritative content.
This Lecture#
Topics:
Dual for strictly convex quadratic programming
Dual for convex quadratic programming
Announcements:
Homework 6 is due on Friday, April 17, 2026 at 11:59pm.
Last Time#
Dual objective function#
Consider the general model referred to as the primal model
and \(f, g_i,h_j\) are functions defined on \(X\).
The Lagrangian of the problem is
The dual objective function \(q: \mathbb{R}_+^m \times \mathbb{R}^p \to \mathbb{R} \cup \{-\infty\}\) is
Weak duality theorem#
Primal Problem
and \(f, g_i,h_j\) are functions defined on \(X\).
Dual Problem
where \(\text{dom}(q)=\{(\boldsymbol{\lambda},\boldsymbol{\mu}) \in \mathbb{R}_{+}^m \times \mathbb{R}^p: q(\boldsymbol{\lambda},\boldsymbol{\mu}) > -\infty\}\), and \(q(\boldsymbol{\lambda},\boldsymbol{\mu})=\min_{\mathbf{x}\in X}{L(\mathbf{x},\boldsymbol{\lambda},\boldsymbol{\mu})}\).
Theorem (Weak duality theorem)
Consider the primal problem and its dual. Then \(q^* \leq f^*\), where \(q^*, f^*\) are the optimal dual and primal values, respectively.
Strong duality of convex problems with equality & inequality constraints#
Primal Problem (P)
Dual Problem (D)
where \(\text{dom}(q)=\{(\boldsymbol{\lambda},\boldsymbol{\mu}) \in \mathbb{R}_{+}^m \times \mathbb{R}^p: q(\boldsymbol{\lambda},\boldsymbol{\mu}) > -\infty\}\), and \(q(\boldsymbol{\lambda},\boldsymbol{\mu})=\min_{\mathbf{x}\in X}{L(\mathbf{x},\boldsymbol{\lambda},\boldsymbol{\mu})}\).
For (P): \(X\) is a convex set and \(f,g_1,\ldots, g_m\) are convex functions over \(X\). The functions \(h_1,\ldots,h_p,s_1,\ldots,s_q\) are affine.
Theorem (Strong duality under equality & inequality constraints)
If the generalized Slater’s condition is satisfied in (P) and \(f^*\) has a finite optimal value, then the optimal value of (D) is attained, and the optimal values of the primal and dual problems are the same \(f^*=q^*\).
Dual for linear programming#
Primal
Dual
Strong duality holds
If the primal problem is feasble (meaning the constraint set is not empty) and has a finite solution, then the optimal dual value is equal to the optimal primal value:
Quadratic Linear Programming#
Strictly Convex Quadratic Programming#
Primal
\(Q\in \mathbb{R}^{n \times n}\) is positive definite, \(\mathbf{c} \in \mathbb{R}^n\), and \(\mathbf{b} \in \mathbb{R}^m\).
Dual
Strong duality holds
\(L(\mathbf{x},\boldsymbol{\lambda}) = \mathbf{x}^T Q\mathbf{x} + 2\mathbf{c}^T \mathbf{x} + 2\boldsymbol{\lambda}^T (A\mathbf{x} - \mathbf{b})\)
\(\nabla_x L(\mathbf{x}^*,\boldsymbol{\lambda})=2 Q \mathbf{x}^* + 2 (A^{\top} \boldsymbol{\lambda} + \mathbf{c})=\mathbf{0}\)
\(\mathbf{x}^*=-Q^{-1}(\mathbf{c} + A^{\top}\boldsymbol{\lambda})\)
The objective function becomes
Dual for convex quadratic programming#
Convex Quadratic Program
where \(Q \in \mathbb{R}^{n \times n}\) is positive semi-definite, \(\mathbf{c} \in \mathbb{R}^n\), and \(\mathbf{b} \in \mathbb{R}^m\).
Since \(Q \succeq 0\)
\(Q\) is not necessarily invertible
The dual problem formulated for the strictly convex case is not possible in the convex case.
A new formulation for the convex case is needed.
The trick: write \(Q = D^\top D\) for some matrix \(D\), and make a new variable \(\mathbf{z} = D\mathbf{x}\).
Dual for convex quadratic programming#
Reformulated primal problem
Dual Problem