Professional Documents
Culture Documents
1
INTRODUCTION TO NONLINEAR PROGRAMMING (NLP)
In LP, our goal was to maximize or minimize a linear
function subject to linear constraints:
Maximize profit P = 7X1 + 10X2
Subject to:
4
Example problem: Maximize f(x) = -x2 + 9x + 4
(An unconstrained problem that can be solved without a search)
30
25
20
f(x)
Local maximum
350
300
250
f(x)
200
150
This is trickier: a value x whose first derivative is zero and
100
whose second derivative is negative is not necessarily the
solution point! It could be a local maximum point rather
50
than the desired global maximum point.
0
0 1 2 3 4 5 6 7 8 6 9
x
Constrained Problem: Maximize f(x) subject to: x ≥ 7
450
400
350
300
Solution point
250
f(x)
200
150
2500
2000
f(x)
1500
1000
500
0
0 5 10 15 20 25
x
Kuhn-Tucker
Conditions
1
Introduction
2
Kuhn Tucker Conditions: Optimization
Model
X=[x1,x2,…,xn]
3
Kuhn Tucker Conditions
∂f m
∂g
+ ∑ λj =0 i = 1, 2,..., n
∂xi j =1 ∂xi
λj g j = 0 j = 1, 2,..., m
gj ≤ 0 j = 1, 2,..., m
λj ≥ 0 j = 1, 2,..., m
4
Kuhn Tucker Conditions …contd.
5
Example (1)
Minimize f = x1
2
+ 2 x2
2
+ 3 x3
2
subject to
g1 = x1 − x2 − 2 x3 ≤ 12
g 2 = x1 + 2 x2 − 3 x3 ≤ 8
6
Example (1) …contd.
Kuhn – Tucker Conditions
∂f ∂g ∂g 2 x1 + λ1 + λ2 = 0 (2)
+ λ1 1 + λ2 2 = 0
∂xi ∂xi ∂xi 4 x2 − λ1 + 2λ2 = 0 (3)
6 x3 − 2λ1 − 3λ2 = 0 (4)
λj g j = 0 λ1 ( x1 − x2 − 2 x3 − 12) = 0 (5)
λ2 ( x1 + 2 x2 − 3 x3 − 8) = 0 (6)
x1 − x2 − 2 x3 − 12 ≤ 0 (7)
gj ≤ 0 x1 + 2 x2 − 3 x3 − 8 ≤ 0 (8)
λ1 ≥ 0 (9)
λj ≥ 0 λ2 ≥ 0 (10)
7
Example (1) …contd.
8
Example (1) …contd.
Case 2: x1 − x2 − 2 x3 − 12 = 0
¾ Using (2), (3) and (4), we have −λ1 − λ2 − λ1 − 2λ2 − 2λ1 + 3λ2 − 12 = 0
2 4 3
or 17λ1 + 12λ2 = −144
9
Example (2)
10
Example (2) …contd.
Kuhn – Tucker Conditions
∂f ∂g ∂g 2 x1 + 60 + λ1 + λ2 = 0 (11)
+ λ1 1 + λ2 2 = 0
∂xi ∂xi ∂xi 2 x2 + λ2 = 0 (12)
λ1 ( x1 − 80) = 0 (13)
λj g j = 0 λ2 ( x1 + x2 − 120) = 0 (14)
x1 − 80 ≥ 0 (15)
gj ≤ 0 x1 + x2 + 120 ≥ 0 (16)
λ1 ≤ 0 (17)
λj ≥ 0
λ2 ≤ 0 (18)
11
Example (2) …contd.
12
Example (2) …contd.
Case 2: ( x1 − 80) = 0
λ2 = −2 x2
λ1 = 2 x2 − 220 (19)
13
Example (2) …contd.
¾ For x2 = 0 , λ1 = −220
the desired
14
Thank you
15