Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 26

Nonlinear Programming Theory

Why is nonlinear programming different from linear programming?

1
IEOR160 2011

Difficulties of NLP Models


Linear Program:

Nonlinear Programs:

2
IEOR160 2011

Graphical Analysis of Non-linear programs in two dimensions: An example


Minimize subject to

( x  14)  ( y  15)
(x - 8)2 x x x +y

+ (y - 9)2 e 49 u 2 e 13 e 24

3
IEOR160 2011

Where is the optimal solution?


y
18 16 14 12 10 8 6 4 2 0 0
IEOR160 2011

Note: the optimal solution is not at a corner point. It is where the isocontour first hits the feasible region.

x
2 4 6 8 10 12 14 16 18
4

Another example:
y
18 16 14 12 10 8 6 4 2 0 0
IEOR160 2011

Minimize (x-8)2 + (y-8)2

Then the global unconstrained minimum is also feasible. The optimal solution is not on the boundary of the feasible region.
x
2 4 6 8 10 12 14 16 18
5

Local vs. Global Optima


Defn: Let x be a feasible solution, then
x is a global max if f(x) u f(y) for every feasible y. x is a local max if f(x) uf(y) for every feasible y sufficiently close to x (i.e., xj-Ieyj exj+ I for all j and some small I).
z B A C max f(x) s.t. 0 e x e 1

z = f(x)

x 1
6

There may be several locally optimal solutions. IEOR160 2011

When is a locally optimal solution also globally optimal?




For minimization problems


The objective function is convex. The feasible region is convex.

7
IEOR160 2011

Convexity and Extreme Points


P
14
IEOR160 2011

We say that a set S is convex, if for every two points x and y in S, and for every real number P in [0,1], Px + (1-P)y I S.

The feasible region of a linear program is convex.


We say that an element w I S is an extreme point (vertex, corner point), if w is not the midpoint of any line segment contained in S.

12 10 8 6

x y

4 2

W
2 4 6 8 10 12 14
8 8

On convex feasible regions




If all constraints are linear, then the feasible region is convex

9
IEOR160 2011

On Convex Feasible Regions




The intersection of convex regions is convex

10
IEOR160 2011

Recognizing convex sets




Rule of thumb: suppose for all x, y 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
11
IEOR160 2011

Which are convex?

B C
IEOR160 2011

B C

B C
12 12

Joining two points on a curve


The line segment joining two points on a curve. Let f( ) be a function, and let g(Py+(1-P z)) = P f(y) + (1- P)f(z) for 0eP e. g(y) = f(y) g(z) = f(z) g(y/2 + z/2) = f(y)/2 + g(z)/2 f(x)
f(z) f(y)/2 + f(z)/2 f(y)

g(x)

x
IEOR160 2011

13

(y+z)/2

Convex Functions
Convex Functions: f(P y + (1- P)z) eP f(y) + (1- P)f(z) for every y and z and for 0ePe. e.g., P = 1/2 f(y/2 + z/2) ef(y)/2 + f(z)/2 We say strict convexity if sign Line joining any points is < for 0 P .
is above the curve

f(x) f(z) f(y)/2 + f(z)/2 f(y)

x
IEOR160 2011

14

(y+z)/2

Concave Functions
Concave Functions: f(P y + (1- P)z) u P f(y) + (1- P)f(z) for every y and z and for 0 ePe. e.g., P = 1/2 f(y/2 + z/2) u f(y)/2 + f(z)/2 We say strict concavity if sign is < for 0 P .

Line joining any points is below the curve


f(z) f(y)/2 + f(z)/2 f(y)

x
IEOR160 2011

15

(y+z)/2

Classify as convex or concave or both or neither.

16
IEOR160 2011

More on convex functions


f(x)

f(-x)

If f(x) is convex, then f(-x) is convex.

-x
IEOR160 2011

17

More on convex functions


y

If f(x) is convex, then K - f(x) is concave.

x
IEOR160 2011

18

More on convex functions


If f(x) is a twice differentiable function of one variable, and if f(x) > 0 for all x, then f(x) is convex.
10 9 8 7 6 5 4 3 2 1 0 -4 -3 -2 -1 0 1 2 3 4

f(x) = x2.
f(x) = 2x, f(x) = 2

2.5 2 1.5

f(x) = - ln(x) for x > 0


f(x) = -1/x,
IEOR160 2011

1 0.5 0 -0.5 0 -1 -1.5 -2 0.5 1 1.5 2 2.5 3 3.5 4

f(x) = 1/x2

19

Even more on convex functions


If f(x) is convex and g(x) is convex, then so is f(x) + g(x)

8 7 6 5 4 3 2 1

f(x)+g(x)

f(x)
-3
IEOR160 2011

0 -2 -1 0 1 2

g(x)
3 20

Even more on convex functions


If f(x) is convex and g(x) is convex, then so is max [f(x), g(x)]

8 7 6 5 4 3 2 1

max[f(x), g(x)]

f(x)
-3
IEOR160 2011

0 -2 -1 0 1 2

g(x)
3 21

What functions are convex?


     

f(x) = 4x + 7 f(x) = 4x2 13 f(x) = ex for x > 0

all linear functions some quadratic functions

f(x) = 1/x for x > 0 f(x) = |x| f(x) = - ln(x) for x > 0

22
IEOR160 2011

Convex functions vs. convex sets


If y = f(x) is convex, then {(x,y) : f(x) e y} is a convex set y f(x)

x
IEOR160 2011

23

Local Minimum Property




A local min of a convex function on a convex feasible region is also a global min. Strict convexity implies that the global minimum is unique. The following NLPs can be solved Minimization Problems with a convex objective function and linear constraints

24
IEOR160 2011

Local minimum property


There is a unique local minimum for the function below. y f(x)

The local minimum is a global minimum x


IEOR160 2011

25

Local Maximum Property




A local max of a concave function on a convex feasible region is also a global max. Strict concavity implies that the global optimum is unique. Given this, the following NLPs can be solved Maximization Problems with a concave objective function and linear constraints

26
IEOR160 2011

You might also like