Professional Documents
Culture Documents
Dd7ea95f 3fa0 4fa9 Be6a 34cccecb3a97
Dd7ea95f 3fa0 4fa9 Be6a 34cccecb3a97
Optimum:
X1=0
X2=0
2
Minimize within a
linear equality constraint
Minimize f ( x1 x2 ) 025x12 x22
Subject to the constraint ( x1 x2 ) 0
Where ( x1 x2 ) 5 x1 x2
3
Defining the optimum mathematically
At the optimum 0
x1
0
x2
0
6
Additional equality constraints
Minimize f ( x1 x2 )
Subjectto 1 ( x1 x2 ) 0
2 ( x1 x2 ) 0
3 ( x1 x2 ) 0
f ( x1 x2 ) 11 ( x1 x2 ) 22 ( x1 x2 ) 33 ( x1 x2 )
f 11 22 33 0
0 0
Solution x1 x2
0 0 0
1 2 3
7
Inequality constraints
This region above and to the right of the line is not allowed
because it violates the constraint
We call this the “infeasible region”
G(x1, x2)<=0
Part of the x1,x2 plane is divided into the “feasible region” and the remaining
Is the “infeasible region” the solution can be on the constraint line or anywhere
Within the feasible region – but not in the infeasible region.
8
Optimization gets harder when we add
“inequality” constraints
Minimize f (x)
Subject to i (x) 0 i 1 2… N
gi (x) 0 i 1 2… Ng
x vector of real numbers dimension N
By adding the less than or equal to constraint “g” we must follow more
elaborate procedures than simply finding where the gradient of the
Lagrangian is equal to zero.
9
The Karush-Kuhn-Tucker Conditions
N Ng
(x ) f (x) ii (x) i gi (x)
i 1 i 1
10
Complementary slackness condition
applies independently to each
inequality constraint
i0 0
i0 gi (x0 ) 0 Either: or
i 0
0
gi ( x 0 ) 0
or
both are true
11
Sample problem with an
inequality constraint
Minimize f ( x1 x2 ) 025 x12 x22
Subject to ( x1 x2 ) 5 x1 x2 0
g ( x1 x2 ) x1 02 x2 3 0
12
Solution to the sample with inequality
constraint
The Lagrangian for this problem is:
f ( x1 x2 ) [ ( x1 x2 )] [ g ( x1 x2 )]
025 x12 x22 (5 x1 x2 ) ( x1 02 x2 3)
05 x1 0
First condition of KKT gives: x1
2 x2 02 0
x2
13
Solution continued
The third KKT condition gives: x1 02 x2 3 0
14
Solution continued
If 0 , then by conditions 1 and 2
x1 4
x2 1
2
but
g ( x1 x2 ) x14 4 02(1) 3 12 0
x2 1
15
16