Constrained Optimization
Constrained Optimization
DC-1
Semester-II
Table of Contents
1. Learning outcomes
2. Introduction
7. Envelope results
8. Exercises
9. References
Learning outcomes:
After you have read this chapter, you should be able to:-
Introduction
In the last chapter, we covered optimization if objective function of two or more choice variable.
But that optimization was unconstrained. It was unconstrained in the sense that for example, in
case of discriminating monopolist; there was no restriction or limit to what level of output to be
produced. But there could have been constraints, that given the level of technique, & machinery,
the total maximum output that could be produced is suppose; 1000 units. In such a case,
optimized maximum may differ if value of extrema is greater than provided this constraint.
In this chapter, we will cover optimization with equality constraints. The new optimum referred
here is constrained optimum, which is likely to differ from free optimum.
This chapter is divided into sections. In the first section, we will analyze geometric properties of
constraint.
The primary purpose of imposing a constraint is to give due cognizance to certain limiting
factors present in the optimization problem under discussion. In the last chapter, we saw hills
and valleys in 2D and bowls and domes in 3D and found relative extrema in all such cases. But
there were no constraints.
Let us take example of a consumer who consumes only good & has utility function:
U(x) = - (x-2)2+4
Its free optimum (maximum) is at x=2. But if government imposes some restriction that no one
can consume more than 1 unit of x then constrained optimum is at x=1 .This is shown in fig 1
below.
Fig.1
Let us consider another example that utility of a consumer depends on two goods, x1 & x2, with
utility function as follows:-
U = x1x2+2x1
If one finds, partial derivative of U then one would find that marginal utilities are positive and
increasing function of x1 & x2. Hence, an unconstrained optimum would give result for
purchasing infinite amount of goods. But a consumer has constraint known as budget constraint.
If price of x1 is Rs. 4 and price of x2 is Rs.2; income of consumer is Rs.100 then the constraint
becomes:
4x1+2x2=100
This constraint now narrows down the choice of x1 & x2 & one can find optimum x1& x2.
Fig.2
If one considers a general function z = f( x,y) and assumes it appears like a dome in 3D then free
extremum is peak of the dome but constrained extremum is at the peak of u-shaped curve
situated on top of the constraint. In fig.2, MN is constraint line indicating that sum of x & y
cannot go beyond this line. Then constrained maxmium is at point B.
All the points viz. C,D,E,F,G & H are feasible (Infact, the entire section of the bowl in the right
hand side of constraint is feasible section). In Fig.3, various level curves of the function Z=f(x,y)
are drawn. It is 2D projection of a 3D dome. M N is the constraint on sum of X & Y say of the
form g(x,y) =c.
Fig.3
A constrained maximum can be expected to have a lower value than the free
maximum. It could also be that free optimum is also constrained maximum in
which a case, constraint is not binding. If constraint is binding, which
generally it is; free maximum is higher than constrained maximum. But
constrained maximum can never exceed free optimum.
The condition for optimum of f(x,y) = z requires that steep of level curve f (x,y) = z1 is equal to
the slope of constraint g(x,y) = c, which can be expressed as follows:-
g x ( x, y ) f x( x, y)
g y ( x, y ) f y( x, y )
Example1:
Suppose one wishes to maximize f(x,y)= xy subject to 2x+y = m.The constraint can also be
written as y=m-2x. Then objective function becomes f(x,y(x)) = x (m-2x). Now, the objective
function becomes function of one variable. So, for its optimization
f
0
x
f
m 4x 0
x
4x m
m
x
4
2 m m
and y m
m 4 2
Similar result can also be desired by using calculus techniques as follows:-
f x( x, y ) 2
f y ( x, y ) 1
y 2
x 1
y 2x
Suppose f (x0,y0) is optimum value of f(x,y) = z with the constrains g (x,y)= c. Then we know
that:
f x( x, y ) g x ( x, y )
f y( x, y ) g y ( x, y )
f x( x, y ) f y ( x, y )
g x ( x, y ) g y ( x, y )
At (x0,y0); the above ratios would have some common value. The common value of these ratios
is known as Lagrange multiplier and then the above equation becomes:
f x( x, y) g x ( x, y) 0
f y( x, y) g y ( x, y) 0
L( x, y) f ( x, y) ( g ( x, y) c)
The partial derivatives of L(x, y) with respect to x and y are Lx ( x, y) f x( x, y) g x ( x, y) and
Ly ( x, y) f y( x, y) g y ( x, y) , respectively.
Equate these partial derivatives equal to zero and solve these equations along with constraint
The advantage of lagrangean function over slope equality method is that this method
can involve more than two variable and more than one constraint (which we will solve
is coming examples).
Example 1 contd.:-
The lagrangean is L( x, y) xy (2 x y m)
Lx ( x, y) y 2 0 (1)
Ly ( x, y) x 0 (2)
L ( x, y) 2 x 2 m 0 (3)
y = 2x
Putting y = 2x in third equation , we get x=m/4 and y = m/2. The result obtained here again is
same as done by previous techniques. Hence, any of these techniques is equally applicable.
Also y = x from equation 2, so x= m/4. Notice that x,y & λ: all are function of m. m, here is
referred as parameter because optimal value of f(x,y) is also function of m as optimum value
equals (m/4) (m/2) i.e.(m/8).
Suppose consider the objective is to maximize f(x,y) subject to g (x,y) = c . Suppose that, x* &
y* are the values of x and y that solve for this problem. In general, x & y depend on (parameter
of this model) we assume x=x*(c) and y = y*(c) are differentiable functions of c. The associated
value f* of f(x,y) is then also function of c,
Here f*(c) is also called optimal value function. Also, λ is a function of parameter: c. taking
differential of above equation, we get:
df * (c) df ( x* , y* )
g x ( x* , y* (c)dx* g y ( x* , y* )dy* dc
So it implies df * (c) dc
df * (c)
Also (c )
dc
Thus, the Lagrange multiplier is the rate at which the optimal value of the objective function
changes with respect to changes in the parameter c.
In economic applications, c after denotes the available stock of resources which acts as constraint
on utility or profit function: f (x,y). λ becomes then the shadow price of the resource as it
indicates how utility or profit changes as dc more units of recourses are provided.
Consider again that objective is to maximize f(x,y) subject to g (x,y) = c. Then, we know that
f* f y
gx g y
In other words, at maximum point ratio of fi to gi is same for every choice variable, i (x & y
here). The numerators (fi) are the marginal contributions of each choice variable to function f.
They show the marginal benefit that one more unit of x or y will have for the function to be
maximized (f(x,y).Denominators i.e. gi:s are marginal cost of each choice variable. That is, they
reflect the added burden on the constraint of using slightly more of x ( or y).
Example 1 contd:-
Objective was to maximize f (x,y )= xy subject to 2x+y = m. As solved earlier, x(m) = m/4,
y(m)= m/2, and λ(m) = m/4. So the value function is f* (m) = (m/4) (m/2) = m2/8.
df * (m) m
(m)
dm 4
Suppose m is 100 so f *(100) = 100/8. If m increases to 101 then, new optimized value would be
f *(101) = 101/8. f*(101) – f*(100) = 25.125.
df * (c)
(c) (100) 25
dc
which is a good approximation to the actual change is the optional value function
Example 2 :
Sufficient Conditions
The conditions that we studied till now were necessary conditions but not sufficient. To make
this clear, let us consider following example:
max f ( x, y) 2 x 3 y subject to
x y 5
1
Lx ( x, y ) 2 0
2 x
1
Ly ( x, y ) 3 0
2 y
x y 5
Solving first two equations yields y 4 x / 9 . Putting this value is third equation yields x = 9 and
y = 4. This is indicated by point P in Fig. 4. But as it is evident (9, 4) does not solve the problem
(of maximizing f(x, y)). Rather solution to this problem is Q = (0, 25) where constraint is
satisfied and 2x + 3y optimized value of 75 (instead of 30 at point P).
Figure 4
So, this lays the ground that these first o5rder conditions are though necessary but not
sufficient.
Let there be some stationary point ( x0 , y0 ) . By implicit function theorem, the equation
g ( x, y) c defines g as differentiable function of x in some neighbourhood of ( x0 , y0 ) . Let this
be denoted by y h( x) , then
y h( x) g x ( x, y) / g y ( x, y)
Then
dz
f x( x, y ) f y( x, y ) y
dx
dz g ( x, y )
f x( x, y ) f y( x, y ) x
dx g y ( x, y )
dz
The necessary condition becomes 0.
dx
The sufficient condition for maximum of z becomes that second order derivative of z with
respect to x becomes less than zero (for max.).
d2z g x g xy
( g xx g ) g y ( g yx g yy y ) g x
f f y ( f f y ) f
g y ( g y )2
xx xy yx yy xy
dx 2
d 2z 1
[ f xx f xx ( g y )2 2( f xy f xy ) g x g y ( f yy g yy )( g x ) 2 ]
dx 2
( g y ) 2
0 g x g y
D( x, y ) g x f xx g xx f xy g xy
g y f xy g xy f yy g yy
d 2z 1
D ( x, y )
dx 2
( g y )2
A sufficient condition for ( x0 , y0 ) to solve constraint problem is that ( x0 , y0 ) satisfies the first
order conditions and moreover, that the bordered Hessian D ( x0 , y0 ) given above is > 0 in the
maximization case and, is < 0 in the minimization case.
Envelope Results
maximization, income is fixed and we find optimal values of xi ' s that maximize utility. But
then in next period if income changes, then optimal solution would also change. To see, how
optimal solution changes when parameters change, we would encounter here Envelope Theorem.
where r = (r1, ..., rk) is vector of parameters and x = (x1, ..., xn) is vector of choice
variables.
The optimization would give solution as x1* (r), ...., xn* (r) and optimal value of
f (x, r) f * (r) , where f * (r ) is optimal value function for this problem.
Suppose now we wish to study how our optimal value function changers when nth parameter rh
changes. One way is to assume this new rh, set lagrangean function, obtain value of f (x, r ) . To
avoid such tedious process is study how optimal value function changes as rh changes.
The above equation implies that f * ( x) changes on two accounts : first, change in rj changes
vector r and it changes f (x, r ) directly and second, rh changes all the functions x1* (r ) and
m
hence indirectly changes f (x* , r), r) . Let the L(x* , r ) f (x, r )
j 1
j g j (x, r ) . The first
So
rh i 1 j 1 xi rh rh
i 1 xi
.
rh
rh
0
f * (r ) m
gi (x* (r), r) f (x* (r), r)
So j
rh j 1 xi rh
L(x* (r ), r )
rh
Lx e x p 0 (1)
Ly e y q 0 (2)
L px qy m 0 (3)
e x p
Solving first two equations yields y
e q
p
e x e y
q
p
x y ln
q
p
x y ln
q
Putting value of x in (3)
p
P y* ln q*y m
q
p
ln m
y*
q
pq
p
ln m
p
x*
q
ln
pq q
Cost function of the firm that uses capital K and labour, L to produce single output q. and
production function is Q F ( K , L) K 1/ 2 L1/ 4 . The prices of labour and capital are w and r
respectively.
K 1/ 2 L1/ 4 Q
L( K , L) k wL ( K 1/ 2 L1/ 4 Q)
1
Lk r K 1/ 2 L1/ 4 0 (1)
2
1
LL w K 1/ 2 L3 / 4 0 (2)
4
r
L K
2w
r * 2 / 3 2 / 3 2 / 3 4 / 3
L* K 2 r w Q
2w
Example 4:
Suppose a firm produces TV sets at two different locations and x1 units are produced at first
location and x2 at second location. The joint cost function is given by
If the firm has to supply an order of 100then this being constraint x1* and x2* would be produced
so as to reduce cost.
L ( x1 x2 1000) 0 (3)
x1* 400
x2* 600
So firm should 400 units of TV sets at first location and 600 units at second location.
0 1 1
D( x1 , x2 ) 1 0.2 0.2 0.2 0
1 0.2 0.4
Hence (400, 600) stationary point is a minima and min. cost is 2,69,000.
C *
(3.22 / 3 r 2 / 3 w1/ 3Q 4 / 3 )
r r
2
3 22 / 3 r 1/ 3 w1/ 3Q4 / 3
3
K
Now, if instead envelope theorem is used, which states that
C * (r , w, Q) L( K , L, r , w, Q)
=K
r r
C *
Similarly, L.
w
Exercises
Q1. If the utility of a consumer depends on two goods: x and y and utility function is given by
U= (x+2)(y+1). If prices of x and y are Rs. 2 and Rs.5, respectively and income is Rs.51. find the
optimal levels of x and y purchased by the consumer and indirect utility function.
Q2. The production function of a firm is given by X= and prices of capital and labor are
fixed at Rs. r and Rs. w, respectively.
Q3. The incomes of an individual in current and next year are Rs.500 and Rs. 792
respectively.his utility function of two consumption expenditures x and y is U= . If the
market interest rate is 10% p.a. ,determine optimum consumption expenditures and amount
consumer should borrow or lend in current year.
[Hint: constraint is income in two periods but consumption could differ from income of that
period as consumer can borrow or lend in the market.]
Q4. A monopolist has the following demand functions for each of his products X and Y; x=72-
0.5px and y=120-py. the combined cost is C=x2+xy+y2+35 and the maximum product is 40 units.
Find
Q5. Find the optimal mix and its cost in the case when a producer chooses an output
corresponding to isoquant k2l=16 and respective prices of c apital and labor are Re.1 and Rs.2,
respectively. Also find the expansion path.
[Hint: expansion path shows change in optimal values when output changes parameter changes]
References
K. Sydsaeter and P. Hammond, Mathematics for Economic Analysis, Pearson Educational Asia, Delhi,
2002