1
MATHEMATICS 1 CONTENTS Unconstrained optimization Constrained - - PowerPoint PPT Presentation
MATHEMATICS 1 CONTENTS Unconstrained optimization Constrained - - PowerPoint PPT Presentation
Constrained optimization BUSINESS MATHEMATICS 1 CONTENTS Unconstrained optimization Constrained optimization Lagrange method Old exam question Further study 2 UNCONSTRAINED OPTIMIZATION Recall extreme values in two dimensions
2
CONTENTS Unconstrained optimization Constrained optimization Lagrange method Old exam question Further study
3
UNCONSTRAINED OPTIMIZATION Recall extreme values in two dimensions βͺ first-order conditions: stationary points occur when
ππ ππ¦ = ππ ππ§ = 0
βͺ second-order conditions: extreme value when in addition
π2π ππ¦2 π2π ππ§2 β π2π ππ¦ππ§ 2
> 0 βͺ nature of extreme value:
βͺ minimum when
π2π ππ¦2 > 0
βͺ maximum when
π2π ππ¦2 < 0
4
UNCONSTRAINED OPTIMIZATION Recall Cobb-Douglas production function βͺ π πΏ, π = π΅πΏπ½ππΎ Obviously (?) you want to maximize output βͺ so set
ππ ππΏ = π΅π½πΏπ½β1ππΎ = 0
βͺ and
ππ ππ = π΅πΏπ½πΎππΎβ1 = 0
This never happens! βͺ check! But you still want to maximize output βͺ within the constraints of your budget
5
CONSTRAINED OPTIMIZATION Suppose: βͺ the price of 1 unit of πΏ is π βͺ the price of 1 unit of π is π βͺ the available budget is π Budget line: ππΏ + ππ = π
6
CONSTRAINED OPTIMIZATION
πΏ π π1 π2 πβ πΏβ πβ
Iso-production line for π1 Iso-production line for π2 Budget line Optimum point on line for optimum production πβ
7
CONSTRAINED OPTIMIZATION Problem formulation: βͺ ΰ΅maximize π πΏ, π = π΅πΏπ½ππΎ subject to ππΏ + ππ = π More in general αmax π π¦, π§ s.t. π π¦, π§ = π Constrained optimization problem βͺ π π¦, π§ is the objective function βͺ π π¦, π§ = π is the constraint βͺ π¦ and π§ are the decision variables
8
EXERCISE 1 Given is the profit function π π, π = 5π2 + 12π2 and the capacity constraint 8π + 4π = 20. Write as αmin/max subject to.
10
CONSTRAINED OPTIMIZATION Visualisation of π¨ = π π¦, π§ βͺ in 3D βͺ as level curve
11
LAGRANGE METHOD How to solve the constrained optimization problem? αmax π π¦, π§ s.t. π π¦, π§ = π Trick: βͺ introduce extra variable (Lagrange multiplier) π βͺ define new function (Lagrangian) β π¦, π§, π βͺ as follows β π¦, π§, π = π π¦, π§ β π π π¦, π§ β π
Observe that β is a function of 3 variables, while the objective function π is a function of 2 variables
12
LAGRANGE METHOD Motivation: βͺ solutions of the constrained optimization are among the stationary points of β βͺ in other words: all stationary points of β are candidate solutions of the original constrained maximization problem Lagrange method βͺ Joseph-Louis Lagrange (1736-1813)
13
LAGRANGE METHOD So, αmax π π¦, π§ s.t. π π¦, π§ = π is equivalent to max β π¦, π§, π βͺ if we define β π¦, π§, π = π π¦, π§ β π π π¦, π§ β π We have written the constrained optimization problem with 2 decision variables as an unconstrained optimization problem with 3 decision variables βͺ trade-off
βͺ unconstrained easier than constrained βͺ 3 decision variables harder than 2
14
EXERCISE 2 Given is the profit function π π, π = 5π2 + 12π2 and the capacity constraint 8π + 4π = 20. Write the Lagrangian.
16
LAGRANGE METHOD Example 1 Constrained problem: βͺ ΰ΅max π π¦, π§ = π¦2 + π§2 s.t. π π¦, π§ = π¦2 + π¦π§ + π§2 = 3 Lagrangian: βͺ β π¦, π§, π = π¦2 + π§2 β π π¦2 + π¦π§ + π§2 β 3 First-order conditions for stationary points: βͺ
πβ ππ¦ = 0
βͺ
πβ ππ§ = 0
βͺ
πβ ππ = 0
17
LAGRANGE METHOD Example 1 (continue) βͺ
πβ ππ¦ = 2π¦ β π 2π¦ + π§ = 0
βͺ
πβ ππ§ = 2π§ β π π¦ + 2π§ = 0
βͺ
πβ ππ = βπ¦2 β π¦π§ β π§2 + 3 = 0
So: βͺ
2π¦ 2π¦+π§ = 2π§ π¦+2π§ β 2π¦2 + 4π¦π§ = 4π¦π§ + 2π§2 β π¦2 = π§2
βͺ βπ¦2 Β± π¦2 β π¦2 + 3 = 0 β 3π¦2 = 3 β¨ π¦2 = 3 βͺ π¦ = β1 β¨ π¦ = 1 β¨ π¦ = 3 β¨ π¦ = β 3 βͺ π§ follows, and so does π
18
LAGRANGE METHOD Example 1 (continued) Four stationary points π¦, π§, π of Lagrangian: βͺ 1,1, 2
3 , β1, β1, 2 3 ,
3, β 3, 2 and β 3, 3, 2 βͺ check! Four other points π¦, π§, π do not satisfy all equations: βͺ 1, β1,2 , β1,1,2 , 3, 3, 2
3 and β 3, β 3, 2 3
βͺ check! So, π¦, π§ = 1,1 , β1, β1 , 3, β 3 and β 3, 3 are candidate solutions to the original constrained problem
19
LAGRANGE METHOD Example 1 (continued) Determine nature of these points (min/max/saddle) and then determine the maximum βͺ π 1,1 = 12 + 12 = 2 βͺ π β1, β1 = β1 2 + β1 2 = 2 βͺ π 3, β 3 = 3
2 + β 3 2 = 6
βͺ π β 3, 3 = β 3
2 +
3
2 = 6
So: βͺ 3, β 3 and β 3, 3 are maximum points βͺ and (1,1) and β1, β1 are mimimum points
20
LAGRANGE METHOD Example 2 Constrained problem: βͺ ΰ΅maximize π πΏ, π = π΅πΏ0.4π0.7 (π΅ > 0) subject to 25πΏ + 10π = π (π > 0) Lagrangian βͺ β πΏ, π, π = π΅πΏ0.4π0.7 β π 25πΏ + 10π β π First-order conditions for stationary points βͺ
πβ ππΏ = 0.4π΅πΏβ0.6π0.7 β 25π = 0
βͺ
πβ ππ = 0.7π΅πΏ0.4πβ0.3 β 10π = 0
βͺ
πβ ππ = β 25πΏ + 10π β π = 0
21
LAGRANGE METHOD Example 2 (continued) βͺ π =
0.4π΅πΏβ0.6π0.7 25
=
0.7π΅πΏ0.4πβ0.3 10
βͺ multiply both sides with πΏ0.6 (to get rid of πΏβ0.6) and with π0.3 (to get rid of πβ0.3) βͺ
0.4π΅π 25
=
0.7π΅πΏ 10
β 25πΏ =
10Γ0.4 0.7
π βͺ
10Γ0.4 0.7
π + 10π = π β π =
0.7 1.1 π 10 and πΏ = 0.4 1.1 π 25
βͺ π = β― (not intetesting) βͺ Candidate maximum point: πΏ, π =
0.4 1.1 π 25 , 0.7 1.1 π 25
22
LAGRANGE METHOD Example 2 (continued) Determine nature of the stationary point of Lagrangian: βͺ take πΏ = 0 β π =
π 10 and see that π = 0
βͺ likewise take π = 0 β πΏ =
π 25 and see that π = 0
βͺ so for 0 <
0.4 1.1 π 25 < π 25 and 0 < 0.7 1.1 π 10 < π 10, also π > 0
βͺ therefore πΏ, π =
0.4 1.1 π 25 , 0.7 1.1 π 10 is a maximum
Here, we look at two βneighbouringβ points of the stationary point: one βto the leftβ and one βto the rightβ. We find that both have a lower function value, so the stationary point is a maximum.
23
LAGRANGE METHOD
πΏ π πΏβ = 0.4 1.1 π 25 πβ = 0.7 1.1 π 10
Budget line 25πΏ + 10π = π Optimum point on line for optimum production πβ Optimal Cobb- Douglas line πβ = π΅πΏ0.4π0.7 Different point on the same budget line with π < πβ Different point on the same budget line with π < πβ
24
LAGRANGE METHOD Full procedure: βͺ rewrite constrained optimization problem in 2D as an unconstrained optimization problem in 3D (from α max π π¦, π§
- s. t. π π¦, π§ = π to max β π¦, π§, π )
βͺ find π¦ and π§ such that
πβ ππ¦ = 0 πβ ππ§ = 0 πβ ππ = 0
βͺ check if the stationary points are indeed a maximum
Do not use
π2β ππ¦2 π2β ππ§2 β π2β ππ¦ππ§ 2
for this!
25
OLD EXAM QUESTION 22 October 2014, Q2a
26
OLD EXAM QUESTION 27 March 2015, Q2bβ
27
FURTHER STUDY Sydsæter et al. 5/E 14.1-14.2 Tutorial exercises week 5 Lagrange method Lagrange for Cobb-Douglas Intuitive idea of Lagrange