E1 251 Linear and Nonlinear Op2miza2on: Chapter 3: Condi/ons of Maxima and Minima
E1 251 Linear and Nonlinear Op2miza2on: Chapter 3: Condi/ons of Maxima and Minima
1
3.1
Defini2on
of
extremum
f (x)
*
x
x 2
3.1.2
Defini2on:
local
minimum
!2ε 1
2ε 2
f (x)
*
x
x 3
3.1.3
Defini2on:
strict
local
minimum
f (x)
* *
x
x x 4
3.2
Review
of
single
variable
minimiza2on
If (1) is satisfied:
2
d
(2.a) if f ′′(x * ) = 2 f (x * ) < 0, then x * is a maximizer
dx
(2.b) if f ′′(x * ) > 0, then x * is a minimizer
(2.c) if f ′′(x * ) = 0, then second derivative test is
insufficient.
5
Can
you
minimize
this
?
f (x) = 4 x + 3
f (x)
3
−3 / 4
x
6
Can
you
minimize
this
?
f (x) = x + ax + b
2
f ′(x * ) = 2x * + a = 0 ⇒ x * = −a / 2
f ′′(x) = 2 = f ′′(x * )
Second derivative test is satisfied for x * = −a / 2
⇒ x * = −a / 2 is a minimizer f (x)
2
a
f (x * ) = f (a / 2) = b −
4
⎛ a2 ⎞
2
⎛ a⎞
f (x) = ⎜ x + ⎟⎠ + ⎜ b − ⎟
⎝ 2 ⎝ 4⎠
x
7
Can
you
minimize
this
?
f (x) = x 3
f ′(x) = 3x = 0 ⇒ x = 0 (a candidate minimizer)
2 *
f ′′(x) = 6x
f ′′(x * ) = f ′′(0) = 0 ⇒ x * = 0 is not a minimizer
f (x)
⎧ 0, for x ≤ a
⎪
⎪
f (x) = ⎨ (x − a)2 , for x > a
⎪
⎪ (x + a) 2
, for x < −a
⎩
f (x)
−a a x
9
f (x)
f ′(x)
f ′′(x)
−a a
−a a
−a a
10
3.3
Introducing
FONC,
SONC,
and
SOSC
11
Second
order
necessary
condi/ons:
12
Look
at
these
examples…
⎧ f3 (x) = x 3
f1 (x) = x 2 0, for x ≤ a
⎪
⎪
f2 (x) = ⎨ (x − a)2 , for x > a
⎪
⎪ (x + a) 2
, for x < −a
⎩
(1) All satisfy FONC and SONC-Min
(2) Only f1 (x) satisfies SOSC-SMin
(3) f1 (x), f2 (x) and f4 (x) have minima and f3 (x) does
not have any minimum
f4 (x) = x 4 (4) f1 (x) and f4 (x) have strict minima.
13
Examples:
Least
squares
approxima2on:
Given a set of numbers {a1 , a2 ,…, aN } , find x minimizing
2
( )
N
f (x) = ∑ x − a j
j =1
Applying FONC:
N
1
( ) ⇒ x* = ∑ a j
N
f ′(x * ) = 2∑ x * − a j = 0
j =1
N j =1
f ′′(x) = 2N ⇒ SOSC-SMin is satisfied
Weighted
Least
squares
approxima2on:
Given a set of numbers {a1 , a2 ,…, aN } , and their confidence
estimates {c1, c2 ,…, cN } , find x minimizing
2
( )
N
f (x) = ∑ c j x − a j
j =1
14
3.4
Proofs
for
single
variable
problem
15
3.4.1
Proof
of
FONC-‐Min
17
3.4.3
Proof
of
second
order
sufficient
condi/on
(SOSC)
19
Posi2ve
semi-‐definite
matrices
20
An n × n symmetric matrix, M, is positive semi-definite if
and only if all the eigen values of M are non-negative.
21
3.5.2
The
condi/ons
First
order
necessary
condi/on
(FONC):
22
Second
order
necessary
condi/on
for
local
Minimum
(SONC-‐Min):
*
A point x is a strong local minimum of a function f (x),
if ∇f (x ) = 0 and its Hessian, F(x ), is positive
* *
definite. 23
Exercises
Find points satisfying FONC and SONC of the function
f (x1 , x2 ) = x12 + x22
f (x1 , x2 ) = x12 − x22
f (x1 , x2 ) = x1 x2
f (x1 , x2 , x3 ) = x1 x2 + x2 x3 + x1 x3
f (x) = ∑ x − a ( j )
j=1
24
3.6
Proofs
of
Condi2ons
of
extremum
for
mul2variable
func2on
27