
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The so-called KT conditions widely used in nonlinear optimization
Typology: Exercises
1 / 1
This page cannot be seen from the preview
Don't miss anything!

A Karush-Kuhn-Tucker Example It’s only for very simple problems that we can use the Karush-Kuhn-Tucker conditions to solve a nonlinear programming problem. Consider the following problem:
maximize f (x, y) = xy subject to x + y^2 ≤ 2 x, y ≥ 0
Note that the feasible region is bounded, so a global maximum must exist: a continuous function on a closed and bounded set has a maximum there. We write the constraints as g 1 (x, y) = x + y^2 ≤ 2, g 2 (x, y) = −x ≤ 0, g 3 (x, y) = −y ≤
y − λ 1 + λ 2 = 0 x − 2 yλ 1 + λ 3 = 0 λ 1 (2 − x − y^2 ) = 0 λ 2 x = 0 λ 3 y = 0 x + y^2 ≤ 2 x, y, λ 1 , λ 2 , λ 3 ≥ 0
In each of the “complementary slackness” equations λi(bi − gi(x 1 ,... , xn)) = 0, at least one of the two factors must be 0. With n such conditions, there would potentially be 2n^ possible cases to consider. However, with some thought we might be able to reduce that considerably. Case 1: Suppose λ 1 = 0. Then the first KKT condition says y + λ 2 = 0 and the second says x + λ 3 = 0. Since each term is nonnegative, the only way that can happen is if x = y = λ 2 = λ 3 = 0. Indeed, the KKT conditions are satisfied when x = y = λ 1 = λ 2 = λ 3 = 0 (although clearly this is not a local maximum since f (0, 0) = 0 while f (x, y) > 0 at points in the interior of the feasible region). Case 2: Suppose x + y^2 = 2. Now at least one of x = 2 − y^2 and y must be positive. Case 2a: Suppose x > 0. Then λ 2 = 0. The first KKT condition says λ 1 = y. The second KKT condition then says x − 2 yλ 1 + λ 3 = 2 − 3 y^2 + λ 3 = 0, so 3y^2 = 2 + λ 3 > 0, and λ 3 = 0. Thus y =
2 /3, and x = 2 − 2 /3 = 4/3. Again all the KKT conditions are satisfied. Case 2b: Suppose x = 0, i.e. y =
The global maximum is at (4/ 3 ,