Lagrange 对偶函数
Lagrange 函数
考虑标准形式的优化问题
定义该问题的 Lagrange 函数
其中定义域
Lagrange 对偶函数
定义 Lagrange 对偶函数
如果 Lagrange 函数关于
最优值的下界
对偶函数构成了原问题最优值
几何意义
为了便于理解,我们考虑只有一个变量

TikZ 代码
\begin{tikzpicture}[x=2.2cm,y=0.5cm,line cap=round]
% family of lines f0 + lambda f1, the solid f0 and the dashed lower envelope
\draw[gray!40] (-1,-2) rectangle (1,5);
\foreach \t in {-0.9,-0.75,...,0.9}
\draw[gray!55] plot[domain=-1:1] (\x, {1.5*\t*\x - 0.75*\t*\t - 1});
\draw[dashed] plot[domain=-1:1] (\x, {0.75*\x*\x - 1});
\draw[thick] plot[smooth] coordinates {(-1,4.2) (-0.75,2.0) (-0.5,1.5) (-0.1,1.9) (0.15,2.1) (0.5,2.0) (0.75,3.0) (1,4.2)};
\draw[dotted] (-0.5,-2) -- (-0.5,5);
\draw[dotted] (0.5,-2) -- (0.5,5);
\fill (-0.5,1.5) circle (1.6pt);
\node[below] at (0,-2) {$x$};
\node[left] at (-1,4) {\small $4$};
\node[left] at (-1,0) {\small $0$};
\node[left] at (-1,-2) {\small $-2$};
\node[below] at (-1,-2) {\small $-1$};
\node[below] at (-0.5,-2) {\small $-0.5$};
\node[below] at (0.5,-2) {\small $0.5$};
\node[below] at (1,-2) {\small $1$};
\end{tikzpicture}图中表示的是对偶可行点给出的下界。粗的实线表示目标函数
通过线性逼近来理解
可以通过对集合
其中,
类似地,
如果我们用线性函数
用“软”约束代替“硬”约束的思想在后文考虑内点法时会再次提到。
举例
线性方程组的最小二乘解
其中
由于
因此,对偶函数为
它是一个二次凹函数,定义域为
Lagrange 对偶函数和共轭函数
共轭函数和 Lagrange 对偶函数紧密相关。下面的问题说明了一个简单的联系。
虽然这个问题没有什么挑战性,但是我们还是可以很容易地得到 Lagrange 函数为
即,我们得到了结论