Relative Extreme Values
设 f(x,y) 是双变量函数,点 (x0,y0) 被称为极值点,当且仅当 f(x0,y0)≥(≤)f(x,y) for all (x,y) in some neighborhood of (x0,y0).
当 (x0,y0) 为 f(x,y) 的极值点时,有 fx(x0,y0)=fy(x0,y0)=0.满足偏导数为 0 的点称为 critical point.
Saddle Point, Extreme Point
令 P(x0,y0) 为 f(x,y) 的关键点,且 A=fxx(x0,y0),B=fxy(x0,y0),C=fyy(x0,y0),对于 H=AC−B2
- 如果 H>0 and A<0,那么 P 为极大值点 (Relative Maximum)
- 如果 H>0 and A>0,那么 P 为极小值点 (Relative Minimum)
- 如果 H<0,那么 P 是鞍点 (Saddle Point)
- 否则 H=0,无法判断.
拉格朗日乘数法找极值点
沃趣,这不是最优化理论里面讲到的符号优化方法吗(
Consider constraints g(x,y,z)=0, we just need to minimize the following objective function, so that the constraints are satisfied.
f(x,y,z)−λg(x,y,z)
Consider finding the partial derivatives for x,y,z,λ so as to find the critical points.
fxfyfzg=λgx=λgy=λgz=0
Newton-Raphson Method to Solve Equations
沃趣,迭代法!
经典的牛顿迭代法是这样做单变量的迭代:
xn+1=xn−f′(xn)f(xn)
This method can be extended to multi-variable cases. Consider the following eqns
{f(x,y)=0g(x,y)=0
假设其真实解为 (a,b) 我们初始的估计为 (x0,y0),那么我们可以不妨设
x0+hy0+k=a=b
那么,让两个方程的左式都在 (x0,y0) 处进行泰勒展开:
{0=f(x0,y0)+hfx(x0,y0)+kfy(x0,y0)0=g(x0,y0)+hgx(x0,y0)+kgy(x0,y0)
于是,我们可以解出 h0,k0 的具体数值,再代入 x1=x0+h0,y1=y0+k0 进行多轮迭代.