Local vs. Global Optima:: Let X Be A Feasible Solution, Then
Local vs. Global Optima:: Let X Be A Feasible Solution, Then
Global Optima
Defn: Let x be a feasible solution, then
x is a global max if f(x) f(y) for every feasible y. x is a local max if f(x) f(y) for every feasible y sufficiently close to x (i.e., xj-eyj xj+ e for all j and some small e).
z
B A C
z = f(x)
x 1
1
We say that a set S is convex, if for every two points x and y in S, and for every real number l in [0,1], lx + (1-l)y e S.
x y
4 2
W
2 4 6 8 10 12 14
3
Rule of thumb: suppose for all x, y S the midpoint of x and y is in S. Then S is convex.
It is convex if the entire line segment is always in S.
(x+y)/2
S
6
B C
B C
B C
7
g(x)
x y (y+z)/2 z
Convex Functions
Convex Functions: f(l y + (1-l)z) l f(y) + (1-l)f(z) for every y and z and for 0l.
e.g., l = 1/2
x y (y+z)/2 z
Concave Functions
Concave Functions: f(l y + (1-l)z) l f(y) + (1-l)f(z) for every y and z and for 0 l.
e.g., l = 1/2
x y (y+z)/2 z
10
11
f(-x)
-x
12
13
A local min of a convex function on a convex feasible region is also a global min.
14
A local max of a concave function on a convex feasible region is also a global max.
16
17