Professional Documents
Culture Documents
Lagrange Function
f ( x, y)
subject to
g( x, y) = c
Example:
Find the extrema of function
f ( x, y) = x2 + 2 y2
subject to
g( x, y) = x + y = 3
∇g minimum in (2, 1)
1
∇f ∇ f = λ∇ g
2
x+y = 3
Extrema of f ( x, y) = x2 + 2 y2 subject to g( x, y) = x + y = 3
f x (x∗) = λ gx (x∗)
f y (x∗) = λ gy (x∗) ∇g
g(x∗) = c x∗
Transformation yields ∇f
f x (x∗) − λ gx (x∗) = 0
f y (x∗) − λ gy (x∗) = 0
c − g(x∗) =0
The l.h.s. is the gradient of L( x, y; λ) = f ( x, y) + λ (c − g( x, y)) .
L( x, y; λ) = f ( x, y) + λ (c − g( x, y))
L x = f x − λ gx = 0
L y = f y − λ gy = 0
Lλ = c − g( x, y) = 0
f ( x, y) = x2 + 2y2 subject to g( x, y) = x + y = 3
Lagrange function:
Critical points:
L x = 2x − λ =0
Ly = 4y − λ =0
Lλ = 3 − x − y =0
Matrix
0 gx gy
H̄(x; λ) = gx L xx L xy
gy Lyx Lyy
f ( x, y) = x2 + 2y2 subject to g( x, y) = x + y = 3
0 gx gy 0 1 1
|H̄(x0 ; λ0 )| = gx L xx L xy = 1 2 0 = −6 < 0
gy Lyx Lyy 1 0 4
Objective function
f ( x1 , . . . , x n )
and constraints
g1 ( x 1 , . . . , x n ) = c 1
..
. (k < n)
gk ( x1 , . . . , x n ) = c k
Lagrange Function:
L( x1 , . . . , xn ; λ1 , . . . , λk )
k
= f ( x1 , . . . , xn ) + ∑ λi (ci − gi ( x1 , . . . , xn ))
i =1
subject to
x1 + 2 x2 = 2 and x2 − x3 = 3
Lagrange function:
L( x1 , x2 , x3 ; λ1 , λ2 ) = (( x1 − 1)2 + ( x2 − 2)2 + 2 x32 )
+ λ1 (2 − x1 − 2 x2 ) + λ2 (3 − x2 + x3 )
L x1 = 2 ( x1 − 1) − λ1 =0
L x2 = 2 ( x2 − 2) − 2 λ1 − λ2 =0
L x3 = 4 x3 + λ2 =0
L λ1 = 2 − x1 − 2 x2 =0
L λ2 = 3 − x2 + x3 =0
We get the critical points of L by solving this system of equations.
x1 = − 76 , x2 = 10
7, x3 = − 11
7 ; λ 1 = − 26
7 , λ2 =
44
7 .
∂g1 ∂g1
0 ... 0 ∂x1 ... ∂xn
. .. .. .. .. ..
.. . . . . .
∂gk ∂gk
0 ... 0 ...
H̄(x; λ) =
∂g1
∂x1 ∂xn
. . . L x1 x n
∂gk
∂x1 ... ∂x1 L x1 x1
. .. .. .. .. ..
. . .
. . . .
∂g1 ∂gk
∂xn ... ∂xn L x n x1 . . . L xn xn
For r = k + 1, . . . , n
let Br (x; λ) denote the (k + r )-th leading principle minor of H̄(x; λ).
Lagrange Function:
L( x1 , x2 , x3 ; λ1 , λ2 ) = (( x1 − 1)2 + ( x2 − 2)2 + 2 x32 )
+ λ1 (2 − x1 − 2 x2 ) + λ2 (3 − x2 + x3 )
Critical point of L:
x1 = − 76 , x2 = 10
7, x3 = − 11
7 ; λ 1 = − 26
7 , λ2 =
44
7 .
Critical point x0 = (− 67 , 10
7 , − 11
7 ) is a local minimum.
Lagrange function:
L( x, y, λ∗) = ( x2 + 2y2 ) + 4 · (3 − ( x + y))
Hessian matrix:
!
2 0 H1 = 2 >0
HL ( x, y) =
0 4 H2 = 8 >0
L is convex in ( x, y).
(x∗; λ∗) = (− 76 , 10
7 , − 11
7 ; − 26 44
7 , 7 )
is a critical point of the Lagrange function of optimization problem
min / max f ( x1 , x2 , x3 ) = ( x1 − 1)2 + ( x2 − 2)2 + 2 x32
subject to g1 ( x 1 , x 2 , x 3 ) = x 1 + 2 x 2 = 2
g2 ( x 1 , x 2 , x 3 ) = x 2 − x 3 = 3
Lagrange function:
L(x; λ∗) = (( x1 − 1)2 + ( x2 − 2)2 + 2 x32 )
− 267 (2 − x1 − 2 x2 ) +
44
7 (3 − x2 + x3 )
Hessian matrix:
2 0 0 H1 = 2 >0
H L ( x1 , x2 , x3 ) = 0 2 0 H2 = 4 >0
0 0 4 H3 = 16 >0
L is convex in x.
x∗ = (− 67 , 10
7 , − 11
7 ) is a global minimum.
f ∗(c) = f (x∗(c))
∂f∗
(c) = λ∗j (c)
∂c j
∂L(x, c)
=
∂c j (x∗(c),λ∗(c))
∂ k
= f (x) + ∑ λi (ci − gi (x))
∂c j i =1 (x∗(c),λ∗(c))
= λ∗j (c)
df∗
= λ∗ = 4
dc
∂ f ∗(p) ∂L(x, p)
=
∂p j ∂p j (x∗(p),λ∗(p))
Minimize expenses
I constraint optimization
I graphical solution
I Lagrange function and Lagrange multiplier
I extremum and critical point
I bordered Hessian matrix
I global extremum
I interpretation of Lagrange multiplier
I envelope theorem