BA245 - Lesson4 - Activity 4 - Optimization
BA245 - Lesson4 - Activity 4 - Optimization
BA 245
Managerial Economics
First Semester, AY 2020-2021
LESSON 4
CONSTRAINED OPTIMIZATION
Introduction
Min f (x)
Subject to gi ( x ) =Ci for I = 1,….,n equality constraint
h j ( x) ≥ d j for j = 1,….,m inequality constraint
where gi(x) and hi(x) are constraints that are required to be satisfied (these are called hard
constraints), and f(x) is the objective function that needs to be optimized subject to the
constraints.
Solution Methods
We Commit to the highest standards of education, value our stakeholders, Strive for continual improvement of our products and services,
and Uphold the University’s tenets of Truth, Excellence, and Service to produce globally competitive and morally upright individuals.
Substitution method
For very simple problems, say a function of two variables subject to a single equality
constraint, it is most practical to apply the method of substitution. The idea is to substitute the
constraint into the objective function to create a composite function that incorporates the
effect of the constraint. For example, assume the objective is to maximize f ( x , y )=x∗y ff
subject to + y =10 x. The constraint implies y=10−x y, which can be substituted into the
objective function to create p ( x ) =x ( 10−x ) =10 x −x2 . The first-order necessary condition
∂p
gives =10−2 x=0, which can be solved for x=5x and, consequently, y=10−5=5 y.
∂x
Lagrange multiplier
If the constrained problem has only equality constraints, the method of Lagrange
multipliers can be used to convert it into an unconstrained problem whose number of
variables is the original number of variables plus the original number of equality constraints.
Alternatively, if the constraints are all equality constraints and are all linear, they can be
solved for some of the variables in terms of the others, and the former can be substituted out
of the objective function, leaving an unconstrained problem in a smaller number of variables.
Given the problem of maximizing U =x1 x 2+2 x 1 subject to the constraint 4 x1 +2 x 2=60, let
us write what is referred to as the Lagrangian function, which is a modified version of the
objective function that incorporates the constraint as follows:
Z=x 1 x 2+ 2 x 1 + λ(60−4 x1 −2 x 2)
The symbol λ representing some as yet undetermined number is called a Lagrange multiplier.
The following simultaneous equations are derived as first-order condition for maximum
(extremum):
∂Z
(
Zλ ≡
∂λ )
=60−4 x 1−2 x 2=0
∂Z
(
Z1 ≡
∂ x1 )
=x 2 +2−4 λ=0
∂Z
(
Z2 ≡
∂ x2 )
=x 1−2 λ=0
We Commit to the highest standards of education, value our stakeholders, Strive for continual improvement of our products and services,
and Uphold the University’s tenets of Truth, Excellence, and Service to produce globally competitive and morally upright individuals.
The first equation will guarantee the satisfaction of the constraint. Thus, by incorporating the
constraint into the Lagrangian function Z and by treating the Lagrange multiplier as an extra
variable, we can obtain the constrained maximum U.
Solving the three equations simultaneously for the critical values of the variables, we find
x́ 1=8 , x́ 2=14∧ λ́=4, and the value of our objective function Ź=128.
To solve for the optimization problem with two or more constraints we can use Solver
application using MS Excel. Follow the link https://www.solver.com/excel-solver-tutorial-
step-step-product-mix-example-excel for the step-by-step procedure on creating a Solver
model.
We Commit to the highest standards of education, value our stakeholders, Strive for continual improvement of our products and services,
and Uphold the University’s tenets of Truth, Excellence, and Service to produce globally competitive and morally upright individuals.
Activity
1.2. What values of x and y will maximize profit if the firm faces the constraint
x+y=8?
1.3. What values of x and y will maximize profit if the firm faces the constraint
x+0.5y=7.5?
1.4. Repeat 1.2 using Solver.
1.5. Repeat 1.3 using Solver.
1.6. Use Solver to solve Z=x2+2xy+yw2, subject to 2x+y+w2=24 and x+w=8.
Online sources:
https://www.solver.com/excel-solver-tutorial-step-step-product-mix-example-excel
https://en.wikipedia.org/wiki/Constrained_optimization#:~:text=In%20mathematical%20optimization
%2C%20constrained%20optimization,of%20constraints%20on%20those%20variables.
Other sources:
Chiang, A. C., Fundamental Method of Mathematical Economics. 3rd Ed.
Samuelson, W.F., Marks, S.G., Managerial Economics. 4th Ed.
Prepared by:
We Commit to the highest standards of education, value our stakeholders, Strive for continual improvement of our products and services,
and Uphold the University’s tenets of Truth, Excellence, and Service to produce globally competitive and morally upright individuals.