2 Nonlinear Programming Models
2 Nonlinear Programming Models
Topics Convex sets and convex programming First-order optimality conditions Examples Problem classes
General NLP
Minimize f(x) s.t. gi(x) (, , =) bi, i = 1,,m x = (x1,,xn)T is the n-dimensional vector of decision variables f (x) is the objective function gi(x) are the constraint functions bi are fixed known constants
Convex Sets
Definition: A set S n is convex if every point on the line segment connecting any two points x1, x2 S is also in S. Mathematically, this is equivalent to x0 = x1 + (1)x2 S for all such 0 1. x1
x1
x2
x1
x2 x2
x2
x1
Convex Programming
Min f (x1,,xn) s.t. gi(x1,,xn) bi i = 1,,m x1 0,,xn 0 is a convex program if f is convex and each gi is convex. Max f (x1,,xn) s.t. gi(x1,,xn) bi i = 1,,m x1 0,,xn 0 is a convex program if f is concave and each gi is convex.
5 4 3 2 1
x1
Optimality conditions Stationarity: L(x,) = f (x) + igi (x) = 0 Complementarity: igi(x) = 0, i = 1,,m Feasibility: gi(x) bi, i = 1,,m Nonnegativity: i 0, i = 1,,m
i=1 m
Solution by Substitution
s 2r 2 h= 2r s 2r 2 rs Volume = V = r2 [ r 3 ] = 2 2r
d2V 0 for all r 0 dr 2 Thus V(r ) is concave on r 0 so the solution is a global maximum.
Solution: x1* = 69.2, x2* = 30.8, f (x*) = 72.1 Is this a global optimum?
0 8.3205 6
0 5.547 4
ij = cov(ri, rj)
If ij > 0 then returns on i and j are positively correlated. If ij < 0 returns are negatively correlated.
i =1 j =1
ijxixj
pj xj b, xj 0, j = 1,,n
where 0 is determined by the investor. Smaller values of represent greater risk aversion. 3) Min f (x) = V(x) s.t. R(x) , pj xj b, xj 0, j = 1,,n
j =1 n
where 0 is the desired rate of return (minimum expectation) is selected by the investor.
1 ft
x
y
each link
What is equilibrium shape of chain? Decision variables: Let (xj, yj), j = 1,,n, be the incremental horizontal and vertical displacement of each link, where n 10. Constraints: xj2 + yj2 = 1, j = 1,,n, each link has length 1 x1 + x2 + y1 + y2 +
Objective: Minimize chains potential energy Assuming that the center of the mass of each link is at the center of the link. This is equivalent to minimizing
1 y + (y + 1 y ) + (y + y + 1 y ) + 1 1 1 2 2 3 2 2 2
+ (y1 + y2 +
1 + yn-1 + 2 yn)
3 1 + 2 yn-1 + 2 yn
Summary
Min (n j + )yj
j =1 n
+ xn = 10 + yn = 0
No!
Constraints xj2 + yj2 = 1 for all j yield a nonconvex feasible region so there may be several local optima. Consider a chain with 4 links:
I2
I4
I3
100v
I1
I6
10
I7
I5
20
Problem: Determine the current flows I1, I2,,I7 so that the total content is minimized Content: G(I) =
Solution Approach
Electrical Engineering: Use Kirchoffs laws to find currents when power source is given. Operations Research: Optimize performance measure in network taking flow balance into account. Linear resistor: Voltage, v(I ) = IR Content function, G(I ) = I 2R/2 Battery: Voltage, v(I ) = E Content function, G(I ) = EI
10 I 4
-100 I1
5 I3
10 I5
0 I6
0 I7
Minimize Z = 100I1 + 5I2 + 5I3 + 10I4 + 10I5 subject to I1 I2 = 0, I2 I3 I4 = 0, I5 I6 = 0, I5 + I7 = 0, I3 + I6 I7 = 0, I1 I6 = 0 Solution: I1 = I2 = 50/9, I3 = 40/9, I4 = I5 = 10/9, I6 = 50/9, I7 = 10/9