Chapter 2. Constrained Optimization
Chapter 2. Constrained Optimization
CONSTRAINED
OPTIMIZATION
1
INTRODUCTION
In economic optimisation problems, the
variables involved are often required to
satisfy certain constraints
In case of unconstrained optimisation
problems, no restrictions have been made
regarding the value of the choice variables
However, in reality optimisation of a certain
economic function should be in line with
certain resource requirement or availability
This rises from the problem of scarcity
For example:
Maximisation of production should be subject to
2
the availability of inputs
CONT’D
Minimisation of costs should also satisfy a certain
level of output
The constraint in economics is the non-
negativity restrictions
Although sometimes negative values may
be admissible, most functions in economics
are meaningful only in the first quadrant.
Thus, this constraints should be
considered in the optimisation.
The constraints in optimisation
Constraints on the availability of the inputs
None -ve solution 3
Budget or money
CONT’D
Constrained Optimization deals with optimization of
the objective function (the function to be optimized)
subject to constraints (restrictions).
4
2.1 ONE VARIABLE CONSTRAINED OPTIMIZATION
s.t x 0
In unconstrained optimization operation:
F.O.C: f’(x)=-6x-7=0
X=-7/6; However, imposing the non-negative constraint we
have:
X*=0; and f(0)=-3(02)-7(0)+2=2
f’(0)= -7<0
It is maximized at this critical values 7
2.2 TWO VARIABLES PROBLEMS WITH EQUALITY CONSTRAINTS
8
CONT’D
For example in maximization of utility using
indifference curve approach, the consumer is
assumed to consume two bundles of goods.
Example:
10
CONT’D
m ax u x1 x 2
Example:
s.t x 1 4x 2 120
4 x2 120 x 1
4 4
x 2 30 x 1 / 4
2
u x 1 ( 30 x 1 / 4 ) 30 x 1 1 / 4 x 1
du
F .C .C MU 1 30 1 / 2 x 1 0
dx 1
11
30 1 / 2 x 1 ; x 1 60 x2 30 60/ 4 15
B. LAGRANGE MULTIPLIER METHOD
When the constraint is a complicated function or
when there are several constraints, we resort to the
method of Lagrange
subject to
L f ( x 1 , x 2 ) ( c g ( x 1 , x 2 ))
F.O.C
L1 f1 ( x1 , x 2 ) g 1 ( x1 , x 2 ) 0
L 2 f 2 ( x1 , x 2 ) g 2 ( x1 , x 2 ) 0
L c g ( x1 , x 2 ) 0
13
CONT’D
We can express the optimal choices of variable , x1 , and x2 as
implicit functions of the parameter c.
x* x1 * (c )
x2 x 2 (c )
* (c )
Now, since the optimal value of L depends on , x1 , and x2 we
may consider L to be a function of c.
That is L( *, *, *)
x x 1 2
14
CONT’D
S.O.C. for a constrained optimization problem
Max : f x , y subject to , g x , y
F.O.C. for
L f x , y g x , y
L g x , y 0 x
Lx f x 2x 0 y
Ly f y 2 y 0
15
CONT’D
To find the S.O.C find the second derivatives
L 0 , L x g x , L y g y
Lxx f xx g xx , Lxy f xy g xy
L yy f yy g yy
16
CONT’D
The bordered Hessian H is simply the plain Hessian
bordered by the first order derivatives of the constraint
with zero on the principal diagonal.
L xx L xy
L yx L yy
g 2 x1 , x 2 , x 3 c 2
L2 f 2 1 g 12 2 g 22 0
L 3 f 3 1 g 31 2 g 32 0
L 1 C 1 g 1 x 1 , x 2 , x 3 0
L 2 C 2 g 2 x1 , x 2 , x 3 0 18
MORE THAN ONE EQUALITY CONSTRAINT
S.O.C
0 0 g11 g12 g31
0 0 g12 g22 g32
H g11 g12 L11 L12 L13
g12 g22 L21 L22 L23
g31 g32 L31 L32 L33
principal diagonal.
19
THE BORDERED HESSIAN
20
SECOND ORDER CONDITION
Determinantal Criterion for sign definiteness:
21
EXAMPLE-1
23
EXAMPLE 2
Second order condition: first find the second order partial derivatives
Z11 2, Z12 Z21 0, Z22 2
and the border elements:
g1 1, g2 4
Form the bordered Hessian Determinant:
0 1 4
H 1 2 0 34 0
4 0 2
the value z 174 is a minimum.
25
N-VARIABLE CASE:
Objective function: z f ( x1 , x2 , , xn )
subject to g ( x1 , x2 , , xn ) c
with z f ( x1 , x2 , , xn ) [c g ( x1 , x2 , , xn )]
gn Z n1 Z n 2 Z nn
N-VARIABLE CASE:
Z Z1 Z 2 Z n 0 Z Z1 Z 2 Z n 0
Second order .
H2 0, H3 0, H4 0, H5 0, H2 0, H3 0,... Hn 0
sufficient condition
...,(1)n Hn 0
28
EXAMPLE: LEAST COST COMBINATION OF INPUTS
Minimize : C PK K PL L
subject to: Q ( K , L) Q0
0 QK QL
H QK QKK QKL (QKK QL 2 2QKL QK QL QLLQK 2 ) 0
QL QLK QLL
30
SELF ACTIVITY
1. The production function of the firm is given as: K .
3 1
Q 64 L 4 4
Labor costs 96 dollar per unit and capital costs 162 dollar
per unit so that the firm decides to produce 3456 units of
output (Q).
a. Determine the amount of labor and capital that should be
utilized so as to minimize costs.
b. Calculate the minimum cost and economically interpret
lambda.
2. Given the objective function as f(x,y,z)=4xyz2
Subject to x+y+z=56
a. Use lagrange multiplier to calculate the critical values
of the choice variables.
b. Check whether the objective function has maximum or
minimum value at the obtained critical values using
bordered hessian test.
c. Estimate the effect on the value of objective function
for one unit change in the constraint function.
31
2.3. INEQUALITY CONSTRAINTS AND THE THEORY OF
KUHN -TUCKER
33
CONT’D
fj 0 xj 0 and xj fj = 0 (j=1,2,…,n)
Where f j
x j
35
EFFECT OF INEQUALITY CONSTRAINTS
Now let’s see the effect of inequality constraints
(with three choice variables (n=3) and two
constraints (m=2)
Maximize = f(x1,x2,x3)
Subject to g1(x1,x2,x3) r1
g2(x1,x2,x3) r2
and x1, x2, x3 0
36
CONT’D
Using two dummy variables (s1 & s2):
We can reduce 2nd and 3rd KKT condition using the fact
that to
38
CONT’D
Equivalently,
Where gij =
39
CONT’D
The above condition can be generalized to the case of n choice
variables and m constraints.
Consider:
40
EXAMPLE
Given the utility maximization problem
Maximize U = U(x, y)
Subject to Px X + Py Y B
and X, Y 0
Suppose further that ration has been imposed on x
such that X xo , then the problem can be written as:
Maximize U = U(x, y)
Subject to Px X + Py Y B
X xo
and X, Y 0
41
CONT’D
The Lagrangian function is:
The lagrangian is
45
CONT’D
Now assume that ration constraint to be nonbinding 2=0
Then x = y , given the budget constraint x+y=100 x=y=50
But this violates the rationing constraint
x 40
Thus, we have to take the alternative constraint that rationing
is binding x=40
y=60 using complementary slackness Zx =Zy= 0 *1=40 and
*2 =20
46
ECONOMIC APPLICATION
War time rationing
Assume the consumer which maximize utility with two
goods and rationing on both goods such that coupon (c)
is given cx and cy of it can be purchased by the
consumer
The Lagrangian
47
CONT’D
since both the constraints are linear, the constraint
qualification is satisfied and the KKT condition are
necessary
48
CONT’D
The KKT conditions are now:
50
EXERCISES
1. Find the value of x that maximize the production
Q=64x-2x2+96y-4y2-13
Subject to x+y ≤ 20
2. Given the following non-linear programming problem
Maximize Z=XY
Subject to -X-Y ≤ 1
X+Y ≤ 2
X, Y ≥ 0
a. Find the critical points of the function
3. Maximize 4x1+3x2
Subject to 2x1 + x2 ≤ 10
x1, x2 ≥ 0
4. Maximize x1x2
Subject to 5x1+ 4x2 ≤ 50
3x1 + 6x2 ≤ 40
x1, x2 ≥ 0