Optimization Using Calculus: Optimization of Functions of Multiple Variables Subject To Equality Constraints
Optimization Using Calculus: Optimization of Functions of Multiple Variables Subject To Equality Constraints
Optimization Using Calculus: Optimization of Functions of Multiple Variables Subject To Equality Constraints
Objectives
Optimization of functions of multiple variables subjected to equality constraints using
the method of constrained variation, and the method of Lagrange multipliers.
Constrained optimization
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 not be linear. The problem statement is as follows: Maximize (or minimize) f(X), subject to gj(X) = 0, j = 1, 2, , m where
x1 x X = 2 M xn
df =
f f dx1 + dx2 = 0 x1 x2
(1)
Optimization Methods: M2L4
= g ( x1* , x2* ) +
(4)
which is the condition that must be satisfied for all admissible variations. Assuming , (4) can be rewritten as
g / x2 0
dx2 =
g / x1 * * ( x1 , x2 )dx1 g / x2
(5)
f g f g =0 x1 x2 x2 x1 (x1* , x 2* )
This gives us the necessary condition to have [x1*, x2*] as an extreme point (maximum or minimum)
(7)
f g + =0 x1 (x * , x * ) x1 1 2
f g + =0 x2 x2 (x * , x * ) 1 2
(9)
(10)
Optimization Methods: M2L4
(11)
Hence equations (9) to (11) represent the necessary conditions for the point [x1*, x2*] to be an extreme point. Note that could be expressed in terms of g / x1 as well and g / x1 has to be non-zero. Thus, these necessary conditions require that at least one of the partial derivatives of g(x1 , x2) be non-zero at an extreme point.
10
L f g ( x1 , x2 , ) = ( x1 , x2 ) + ( x1 , x2 ) = 0 x2 x2 x2 L ( x1 , x2 , ) = g ( x1 , x2 ) = 0
(13)
11
where
In this case the Lagrange function, L, will have one Lagrange multiplier j for each constraint as (14)
12
i = 1, 2,..., n
j = 1, 2,..., m
L = g j ( X) = 0, j
(15)
j = 1, 2,..., m
which represent n + m equations in terms of the n + m unknowns, xi and j. The solution to this set of equations gives us x1* 1* (16) * * x and * = 2 X= 2
13
M xn*
M * m
=0
(17)
14
(18)
Similarly, a sufficient condition for f(X) to have a relative maximum at X* is that each root of the polynomial in , defined by equation (17) be negative. If equation (17), on solving yields roots, some of which are positive and others negative, then the point X* is neither a maximum nor a minimum.
15
Example
2 2 Minimize f ( X) = 3 x1 6 x1 x2 5 x2 + 7 x1 + 5 x2 , Subject to
x1 + x2 = 5
or
16
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
x2 =
1 2
x1 =
11 2
1 11 X* = , ; * = [ 23] 2 2
Thank you
19