Introduction To Optimization: (Iii) Lagrange Multipliers and Kuhn-Tucker Conditions
Introduction To Optimization: (Iii) Lagrange Multipliers and Kuhn-Tucker Conditions
Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Objectives
2 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Constrained optimization with equality
constraints
A function of multiple variables, f(x), is to be optimized subject to one or more
equality constraints of many variables. These equality constraints, gj(x), may or may
where x1
x
(1)
X 2
xn
3 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Constrained optimization…
4 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Solution by method of Lagrange
multipliers
Continuing with the same specific case of the optimization problem with
f g
And (2) written as
(3) x 0
1x 1 (x * , x * )
1 2
f g
0
x2 x2 (x * , x * ) (4)
1 2
5 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Solution by method of Lagrange multipliers…
Also, the constraint equation has to be satisfied at the extreme point
g ( x1 , x2 ) ( x * , x * ) 0 (5)
1 2
Hence equations (2) to (5) represent the necessary conditions for the point
6 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Solution by method of Lagrange multipliers…
The conditions given by equations (2) to (5) can also be generated by
7 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Necessary conditions for a general problem
For a general problem with n variables and m equality constraints the
In this case the Lagrange function, L, will have one Lagrange multiplier j
for each constraint as
L( x1 , x2 ,..., xn , 1 , 2 ,..., m ) f ( X) 1 g1 ( X) 2 g 2 ( X) ... m g m ( X)
(8)
8 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Necessary conditions for a general problem…
L is now a function of n + m unknowns, x1 , x2 ,..., xn , 1 , 2 ,..., m , and the
necessary conditions for the problem defined above are given by
L f m g j
( X) j ( X) 0, i 1, 2,..., n; j 1, 2,..., m
xi xi j 1 xi
L (9)
g j ( X) 0, j 1, 2,..., m
j
9 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Sufficient conditions for a general problem
A sufficient condition for f(X) to have a relative minimum at X* is that each
10 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Sufficient conditions for a general problem…
where 2 L
Lij ( X* , * ), for i 1, 2,..., n and j 1, 2,..., m
xi x j (12)
g p
g pq ( X* ), where p 1, 2,..., m and q 1, 2,..., n
xq
negative.
If equation (11), on solving yields roots, some of which are positive and
11 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Example
2 2
Minimize f ( X) 3x1 6 x1 x2 5 x2 7,x1 5 x2
Subject to x1 x2 5
Solution
g1 ( X) x1 x2 5 0
L( x1 , x2 ,..., xn , 1 , 2 ,..., m ) f ( X) 1 g1 ( X) 2 g 2 ( X) ... m g m ( X)
with n = 2 and m = 1
L =3 x12 6 x1 x2 5 x22 7 x1 5 x2 1 ( x1 x2 5)
L
6 x1 6 x2 7 1 0
x1
1
x1 x2 (7 1 )
6
1
5 (7 1 ) or1 23
6
12 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Example… L
6 x1 10 x2 5 1 0
x2
1
3 x1 5 x2 (5 1 )
2
1
3( x1 x2 ) 2 x2 (5 1 )
2
1 11
x2 x1
2 2
11 1
Hence, X* , ; λ* 23
2 2
g1
g11 1
x1 ( X*,λ* )
g1
g12 g 21 1
x2 ( X*,λ* )
programming problems.
15 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Kuhn-Tucker Conditions: Optimization
Model
Consider the following optimization problem
Minimize f(X)
subject to
gj(X) ≤ 0 for j=1,2,…,p
X=[x1,x2,…,xn]
16 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Kuhn-Tucker Conditions
Kuhn-Tucker conditions for X* = [x1* , x2* , . . . xn*] to be a local minimum are
f m
g
j 0 i 1, 2,..., n
xi j 1 xi
j g j 0 j 1, 2,..., m
g j 0 j 1, 2,..., m
j 0 j 1, 2,..., m
17 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Kuhn Tucker Conditions …
18 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Example 1
Minimize
2 2 2
f x 2 x 3x
1 2 3
subject to
g1 x1 x2 2 x3 12
g 2 x1 2 x2 3x3 8
19 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Example 1…
Kuhn – Tucker Conditions
f g g 2 x1 1 2 0 (14)
1 1 2 2 0 4 x2 1 22 0 (15)
xi xi xi
6 x3 21 32 0 (16)
j g j 0 1 ( x1 x2 2 x3 12) 0 (17)
2 ( x1 2 x2 3x3 8) 0 (18)
x1 x2 2 x3 12 0 (19)
g j 0
x1 2 x2 3x3 8 0 (20)
1 0 (21)
j 0 2 0 (22)
20 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Example 1…
From (17) either 1 = 0 or x1 x2 2 x3 12 0 ,
Case 1: 1 = 0
21 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Example 1…
Case 2: x1 x2 2 x3 12 0
1 2 1 22 21 32
Using (14), (15) and (16), we have 12 0
2 4 3
or 171 122 144
X* = [ 0 0 0 ]
22 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Example 2
Minimize
f x12 x22 60 x1
subject to
g1 x1 80 0
g 2 x1 x2 120 0
23 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Example 2…
Kuhn – Tucker Conditions
f g g 2 x1 60 1 2 0 (23)
1 1 2 2 0
xi xi xi 2 x2 2 0 (24)
1 ( x1 80) 0 (25)
j g j 0 2 ( x1 x2 120) 0 (26)
x1 80 0 (27)
g j 0 x1 x2 120 0 (28)
1 0 (29)
j 0
2 0 (30)
24 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Example 2…
Case 1
2 2
From (23) and (24) we have x1 2
30 andx2 2
Using these in (26) we get2 2 150 0
2 0 or 150
and (28)
For2 150 , X* = [ 45, 75]. But this solution set violates (27)
25 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Example 2…
Case 2: ( x1 80) 0
2 2 x2
1 2 x2 220 (31)
26 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Example 2…
This solution set is satisfying all equations from (27) to (31) and hence
the desired
X* = [ 80, 40 ]
27 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
BIBLIOGRAPHY / FURTHER READING
Principles and Practice, John Wiley & Sons, New York, 2001.
3. Taha H.A., Operations Research – An Introduction, 8th edition, Pearson
28 Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc
Thank You
Water Resources Systems Planning and Management: M2L3 D Nagesh Kumar, IISc