Presentation is loading. Please wait.

Presentation is loading. Please wait.

Optimization unconstrained and constrained Calculus part II.

Similar presentations


Presentation on theme: "Optimization unconstrained and constrained Calculus part II."— Presentation transcript:

1 Optimization unconstrained and constrained Calculus part II

2 Setting-Up Optimization Problems Define the agent’s goal: objective function and identify the agent’s choice (control) variables Identify restrictions (if any) on the agent’s choices (constraints). If no constraints exist, then we have unconstrained minimization or maximization problems. If constraints exist, what type? Equality Constraints (Lagrangian) Inequality Constraints (Linear Programming)

3 Mathematically, Optimize y = f(x 1, x 2,...,x n ) subject to (s.t.) g j (x 1, x 2,...,x n ) ≤ b j or = b j j = 1, 2,..., m. or ≥ b j y =f(x 1, x 2,...,x n ) → objective function x 1, x 2,...,x n → set of decision variables (n) optimize → either maximize or minimize g i (x 1, x 2,...,x n ) → constraints (m)

4 Constraints refer to restrictions on resources legal constraints environmental constraints behavioral constraints

5 Review of Derivatives y=f(x): First-order condition: Second-order condition: Constant function: Power function: Sum of functions: Product rule: Quotient rule: Chain rule:

6 Unconstrainted Univariate Maximization Problems: max f(x) Solution: Derive First Order Condition (FOC): f’(x)=0 Check Second Order Condition (SOC): f’’(x)<0 Local vs. global: If more than one point satisfy both FOC and SOC, evaluate the objective function at each point to identify the maximum.

7 Example PROFIT = -40 + 140Q – 10Q 2 Find Q that maximizes profit

8 Example PROFIT = -40 + 140Q – 10Q 2 Find Q that maximizes profit 140 – 20Q = set 0 Q = 7 - 20 < 0 max profit occurs at Q = 7 max profit = -40 + 140(7) – 10(7) 2 max profit = $450

9 Minimization Problems: Min f(x) Solution: Derive First Order Condition (FOC): f’(x)=0 Check Second Order Condition (SOC): f’’(x)>0 Local vs. global: If more than one point satisfy both FOC and SOC, evaluate the objective function at each point to identify the minimum.

10 Example COST = 15 -.04Q +.00008Q 2 Find Q that minimizes cost

11 Example COST = 15 -.04Q +.00008Q 2 Find Q that minimizes cost -.04 +.00016Q = set 0 Q = 250.00016 > 0 Minimize cost at Q = 250 min cost = $10

12 Unconstrained Multivariate Optimization Max FOC: SOC:

13 Example Find Q1 and Q2 that maximize Profit

14 Example PROFIT is a function of the output of two products (e.g.heating oil and gasoline) Q 1 Q 2 Solve Simultaneously Q 1 = 5.77 units Q 2 = 4.08 units

15 Second-Order Conditions (-20)(-16) – (-6) 2 > 0 320 – 36 > 0 we have maximized profit.

16 Constrained Optimization Solution: Lagrangian Multiplier Method Maximize y = f(x 1, x 2, x 3, …, x n ) s.t. g(x 1, x 2, x 3, …, x n ) = b Solution: Set up Lagrangian: FOC:

17 Lagrangian Multiplier Interpretation of Lagrangian Multiplier λ: the shadow value of the constrained resource. o If the constrained resource increases by 1 unit, the objective function will change by λ units.

18 Example Maximize Profit = subject to (s.t.) 20Q 1 + 40Q 2 = 200 Could solve by direct substitution Note that 20Q 1 = 200 – 40Q 2 → Q 1 = 10 – 2Q 2 Maximize Profit =

19 Lagrangian Multiplier Method

20


Download ppt "Optimization unconstrained and constrained Calculus part II."

Similar presentations


Ads by Google