KKTgeometry
KKTgeometry
min f ( x1 , x2 ,..., x n)
s.t. ( x1 , x 2 ,..., xn) X
December 1, 2005 1
MS&E 211
• Problem:
• Minimize f(x), where x is a vector that could have any values,
positive or negative
• First Order Necessary Condition (min or max):
• f(x) = 0 (∂f/∂xi = 0 for all i) is the first order necessary
condition for optimization
• Second Order Necessary Condition: ∂2f/∂xi2 > 0
• 2f(x) is positive semidefinite (PSD) ∂f/∂xi = 0
• [x• 2f(x) • x ≥ 0 for all x ] f
• Second Order Sufficient Condition
(Given FONC satisfied)
• 2f(x) is positive definite (PD)
• [ x • 2f(x) • x > 0 for all x ] xi
December 1, 2005 2
MS&E 211
December 1, 2005 3
MS&E 211
December 1, 2005 4
MS&E 211
• Problem:
• Minimize f(x), where x is a vector, x > 0
• First Order Necessary Condition:
• ∂f/∂xi = 0 if xi > 0 f ∂f/∂xi > 0 ∂f/∂xi = 0
• ∂f/∂xi ≥ 0 if xi = 0
• Thus: [∂f/∂xi]xi = 0 for all xi, or
f(x) • x = 0, f(x) ≥ 0
xi
• If interior point (x > 0), then f(x) = 0
• Nothing changes if the constraint is not binding
December 1, 2005 6
MS&E 211
December 1, 2005 7
MS&E 211
g (x) ≥ b
x1
December 1, 2005 8
MS&E 211
-f(x’)
x1
December 1, 2005 9
MS&E 211
f(x) constant
x2 -g(x)
December 1, 2005 x1 10
MS&E 211
-f(x)
g(x) ≥ b
x1
If -g(x) and -f(x) are not parallel, there are feasible
points with less f(x).
December 1, 2005 11
MS&E 211
x2 f(x) constant
-f(x)
g(x) ≥ b
-g(x)
x1
If -g(x) and -f(x) are parallel but in opposite
direction, there are feasible points with less f(x).
December 1, 2005 12
MS&E 211
December 1, 2005 X1 13
MS&E 211
December 1, 2005 14
MS&E 211
December 1, 2005 15
MS&E 211
x1
Both constraints are binding
December 1, 2005 16
MS&E 211
• Lagrangian:
• L(x, 1, 2) = f(x) - 1 [g1(x)-b1] - 2 [g2(x)-b2]
• Minimize L(x, 1, 2) over x.
• Use principles of unconstrained maximization
• L(x, 1, 2) = 0 (gradient with respect to x only)
• L(x, 1, 2) = f(x) - 1 g1(x) - 2 g2(x) = 0
• Thus f(x) = 1 g1(x) + 2 g2(x)
• Maximize L(x, 1, 2) over 1≥ 0, 2 ≥ 0.
• g1(x)-b1 > 0, then 1=0
• g2(x)-b2 > 0, then 2=0
December 1, 2005 19
MS&E 211
min f ( x1 , x 2 ,..., x n)
s.t. g1 ( x1 , x 2 ,..., x n) b1
g 2 ( x1 , x 2 ,..., x n) b2
g m ( x1 , x 2 ,..., x n) bm
December 1, 2005 20
MS&E 211
December 1, 2005 21
MS&E 211
s.t.
- 0.25 ( x1 − 2) 2 − ( x2 − 2) 2 − 1
KKT Conditions
2 x1 0.5( 2 − x1 )
− = 0
2 x2 2( 2 − x 2 )
- 0.25 ( x1 − 2) 2 − ( x2 − 2) 2 − 1
0
[1 − 0.25 ( x1 − 2) 2 − ( x2 − 2) 2 ] = 0
December 1, 2005 22
MS&E 211
-f(x)
g(x)
December 1, 2005 23
MS&E 211
Economical Interpretation of
Lagrange Multipliers
December 1, 2005 25
MS&E 211
December 1, 2005 26