Constrained Optimization Matop
Constrained Optimization Matop
Constrained Optimization Matop
CONSTRAINED
OPTIMALITY CRITERIA
218 Engineering Optimization: Methods and Applications, Second Edition. A. Ravindran, K. M. Ragsdell and
G. V. Reklaitis © 2006 John Wiley & Sons, Inc. ISBN: 978-0-471-55814-9
5.2 LAGRANGE MULTIPLIERS 219
Example 5.1
Example 5.2
⭸L
⫽ 2x1 ⫺ 2v ⫽ 0 ⇒ x 1o ⫽ v
⭸x1
⭸L v
⫽ 2x2 ⫺ v ⫽ 0 ⇒ x 2o ⫽
⭸x2 2
HL(x; v) ⫽ 冋 册
2
0
0
2
which is positive definite. This implies that HL(x; v) is a convex function for
all x. Hence x o1 ⫽ v, x o2 ⫽ v /2 corresponds to the global minimum. To deter-
mine the optimal v, we substitute the values of x o1 and x o2 in the constraint
2x1 ⫹ x2 ⫽ 2 to get 2v ⫹ v /2 ⫽ 2 or vo ⫽ –45 . Hence the constrained minimum
is attained at x o1 ⫽ –45 , x o2 ⫽ –25 , and min ƒ(x) ⫽ –45 .
⭸L
⫽0 for j ⫽ 1, 2, . . . , N
⭸xj
⭸L
⫽0 for j ⫽ 1, 2, . . . , N
⭸xj
h1(x) ⫽ 0
Example 5.3
Maximize ƒ(x) ⫽ x1 ⫹ x2
Subject to x12 ⫹ x22 ⫽ 1
222 CONSTRAINED OPTIMALITY CRITERIA
Solution
⭸L
⫽ 1 ⫺ 2vx2 ⫽ 0
⭸x2
There are two solutions to this system of three equations in three variables,
given by
(x (1); v1) ⫽ ⫺ 冉 1 1
,⫺ ;⫺
兹 2 兹2
1
2 冪冊
(x (2); v2) ⫽ 冉 1
,
1
兹 2 兹2
; 冪冊 1
2
HL(x; v) ⫽ 冋 ⫺2v
0
0
⫺2v 册
Evaluating the matrix H at the two solutions, we find that
and
Hence, (x (2); v2) corresponds to the maximum of L with respect to x, and the
optimal solution is x o1 ⫽ x 2o ⫽ 1/ 兹2. [Note that (x (1); v1) corresponds to the
minimum of L.]
Minimize ƒ(x)
Subject to hk (x) ⫽ 0 k ⫽ 1, 2, . . . , K
冘vh
K
L(x; v) ⫽ ƒ(x) ⫺ k k
k⫽1
Here v1, v2, . . . , vK are the Lagrange multipliers, which are unspecified
parameters whose values will be determined later. By setting the partial de-
rivatives of L with respect to x equal to zero, we get the following system of
N equations in N unknowns:
⭸L(x; v)
⫽0
⭸x1
⭸L(x; v)
⫽0
⭸x2
⯗
⭸L(x; v)
⫽0
⭸xN
h1(x) ⫽ 0
h2(x) ⫽ 0
⯗
hK (x) ⫽ 0