Professional Documents
Culture Documents
Introduction
= 0.01 =3
GD with
= 0.4
zigzag
shape
Definition. A set C is a convex set if for any x, y ∈ C and for any scalar
θ with 0 θ 1, we have
θx + (1 − θ)y ∈ C
Example of Example of a
a convex set non-convex set
Note. Convex sets are sets such that a straight line connecting any
two elements of the set lie inside the set.
convex
• f(x) is convex if and only if for any two points x, y it holds that
f(y) > f(x) + ∇xf(x)T(y − x)
g(x, y) = 0
: Lagrange multiplier
L(x, y, ) := f(x, y) + g(x, y) is called g(x, y) = 0
Lagrangian
Set 0 = g(x, y) = x – y – 1
and L(x, y, ) = f(x, y) + g(x, y) = x2 + y2 + (x – y – 1)
We find all values of (x0, y0, ) such that
Lx(x0,y0,)= 0, Ly(x0,y0,) = 0, and L(x0,y0,) = 0 // partial derivatives of L
2x0 + = 0, 2y0 - = 0, and x0 – y0 – 1 = 0
x0 = 1/2, y0 = -1/2, = -1
The minimum value of f s.t. x – y – 1 = 0 is f(x0,y0) = ½.
(Note that we can use the fact y = x – 1 and plug in f(x, y) = x2 + y2.)
Set 0 = g(x, y) = x2 + y2 – 1
and L(x, y, ) = f(x, y) + g(x, y) = 2x + y + (x2 + y2 – 1)
We find all values of (x0, y0, ) such that
Lx(x0,y0,)= 0, Ly(x0,y0,) = 0, and L(x0,y0,) = 0
2 + 2x0 = 0, 1 + 2y0 = 0, and x02 + y02 – 1 = 0
(x0, y0, ) = (2/5,1/5,-5/2), (x0, y0, ) = (-2/5,-1/5, 5/2)
The minimum value of f s.t. g(x, y) = 0 is f(-2/5, -1/5) = -5.
f(x) D()
f(x) D() f(x)
f(x)
D() D()
2 2 33
subject to 2 4 8
x
2 1 1 5
x2
0 1 1
0 1 8
2 2 33
2 4 8
x
subject to 2 1 1 5
x2
0 1 1
0 1 8
1 2 1
x1
s .t . 3 1 4
x2
2 3 3
The optimal value must lie in the shaded region, and is indicated by the star