1 Unconstrained and Constrained Optimization. 2 Agenda General Ideas of Optimization Interpreting the First Derivative Interpreting the Second Derivative.

Slides:



Advertisements
Similar presentations
Business Calculus Extrema. Extrema: Basic Facts Two facts about the graph of a function will help us in seeing where extrema may occur. 1.The intervals.
Advertisements

Fin500J: Mathematical Foundations in Finance
Section 3.1 – Extrema on an Interval. Maximum Popcorn Challenge You wanted to make an open-topped box out of a rectangular sheet of paper 8.5 in. by 11.
Analyzing Multivariable Change: Optimization
4.3 Connecting f’ and f’’ with the Graph of f
Optimization. f(x) = 0 g i (x) = 0 h i (x)
Section 4.2 The Derivative in Graphing and Applications- “Analysis of Functions II: Relative Extrema; Graphing Polynomials”
Maximum and Minimum Value Problems By: Rakesh Biswas
Optimization in Engineering Design 1 Lagrange Multipliers.
MIT and James Orlin © Nonlinear Programming Theory.
Optimization using Calculus
Extremum. Finding and Confirming the Points of Extremum.
1 Math Review APEC 3001 Summer Objectives Review basic algebraic skills required to successfully solve homework, quiz, and exam problems in this.
Economics 214 Lecture 37 Constrained Optimization.
Finding a free maximum Derivatives and extreme points Using second derivatives to identify a maximum/minimum.
2.3 Curve Sketching (Introduction). We have four main steps for sketching curves: 1.Starting with f(x), compute f’(x) and f’’(x). 2.Locate all relative.
D Nagesh Kumar, IIScOptimization Methods: M2L3 1 Optimization using Calculus Optimization of Functions of Multiple Variables: Unconstrained Optimization.
1 Optimization. 2 General Problem 3 One Independent Variable x y (Local) maximum Slope = 0.
Introduction to Optimization (Part 1)
Applied Economics for Business Management
Relative Extrema.
Managerial Economics Managerial Economics = economic theory + mathematical eco + statistical analysis.
f /(x) = 6x2 – 6x – 12 = 6(x2 – x – 2) = 6(x-2)(x+1).
First and Second Derivative Test for Relative Extrema
Chapter 2 Applications of the Derivative. § 2.1 Describing Graphs of Functions.
1 Cost Minimization and Cost Curves Beattie, Taylor, and Watts Sections: 3.1a, 3.2a-b, 4.1.
1 Review of General Economic Principles Review Notes from AGB 212.
Lesson 4-3 First and Second Derivative Test for Relative Extrema.
In this section, we will investigate some graphical relationships between a function and its second derivative.
Solving Linear Programming Problems: The Simplex Method
Consider minimizing and/or maximizing a function z = f(x,y) subject to a constraint g(x,y) = c. y z x z = f(x,y) Parametrize the curve defined by g(x,y)
1 Technology Beattie, Taylor, and Watts Sections: , b.
MAT 213 Brief Calculus Section 4.2 Relative and Absolute Extreme Points.
D Nagesh Kumar, IIScOptimization Methods: M2L4 1 Optimization using Calculus Optimization of Functions of Multiple Variables subject to Equality Constraints.
Optimization unconstrained and constrained Calculus part II.
Using Derivatives to Sketch the Graph of a Function Lesson 4.3.
Copyright © 2016, 2012 Pearson Education, Inc
Interval Notation Interval Notation to/from Inequalities Number Line Plots open & closed endpoint conventions Unions and Intersections Bounded vs. unbounded.
(iii) Lagrange Multipliers and Kuhn-tucker Conditions D Nagesh Kumar, IISc Introduction to Optimization Water Resources Systems Planning and Management:
4.1 Extreme Values of Functions
Math Review and Lessons in Calculus
Beattie, Taylor, and Watts Sections: 3.1b-c, 3.2c, , 5.2a-d
Introduction to Optimization
Calculus-Based Optimization AGEC 317 Economic Analysis for Agribusiness and Management.
Extremum & Inflection. Finding and Confirming the Points of Extremum & Inflection.
Economics 2301 Lecture 37 Constrained Optimization.
Section Lagrange Multipliers.
Calculus III Hughes-Hallett Chapter 15 Optimization.
4.1 Extreme Values of Functions Absolute (Global) Extreme Values –One of the most useful things we can learn from a function’s derivative is whether the.
D Nagesh Kumar, IISc Water Resources Systems Planning and Management: M2L2 Introduction to Optimization (ii) Constrained and Unconstrained Optimization.
AP Calculus Chapter 5. Definition Let f be defined on an interval, and let x 1 and x 2 denote numbers in that interval f is increasing on the interval.
Advanced Mathematics D. Chapter Four The Derivatives in Graphing and Application.
§ 2.3 The First and Second Derivative Tests and Curve Sketching.
Extreme Values of Functions
Review Problems Sections 3-1 to 3-4
Concavity.
Beattie, Taylor, and Watts Sections: , b
MK. OPTMIMASI BAGIAN 2 Kuliah 1: 12 NOVEMBER 2017.
Mathematical Economics
Unconstrained and Constrained Optimization
Cost Minimization and Cost Curves
PRELIMINARY MATHEMATICS
Outline Unconstrained Optimization Functions of One Variable
Derivatives in Action Chapter 7.
4.2 Critical Points, Local Maxima and Local Minima
Copyright © Cengage Learning. All rights reserved.
Analyzing f(x) and f’(x) /
Calculus-Based Optimization AGEC 317
Multivariable optimization with no constraints
Analyzing Multivariable Change: Optimization
Presentation transcript:

1 Unconstrained and Constrained Optimization

2 Agenda General Ideas of Optimization Interpreting the First Derivative Interpreting the Second Derivative Unconstrained Optimization Constrained Optimization

3 Optimization There are two ways of examining optimization. Minimization In this case you are looking for the lowest point on the function. Maximization In this case you are looking for the highest point on the function.

4 Needed Terminology Critical Point A point x* on a function is said to be a critical point if when you evaluate the derivative of the function at the point x*, then the derivative at that point is zero, i.e., f’(x*) = 0.

What observations can you make about the attributes of a minimum? 5

6 Questions Regarding the Minimum What is the sign of the slope when you are to the left of the minimum point? Another way of saying this is what is f’(x) when x < x*? Note: x* denotes the point where the function is at a minimum.

7 Questions Regarding the Minimum Cont. What is the sign of the slope when you are to the right of the minimum point? Another way of saying this is what is f’(x) when x > x*? What is the sign of the slope when you at the minimum point? Another way of saying this is what is f’(x) when x = x*?

8 Graphical Representation of a Minimum y x y = f(x) = x 2 – 8x

What observations can you make about the attributes of a maximum? 9

10 Questions Regarding the Maximum What is the sign of the slope when you are to the left of the maximum point? Another way of saying this is what is f’(x) when x < x*? Note: x* denotes the point where the function is at a maximum.

11 Questions Regarding the Maximum Cont. What is the sign of the slope when you are to the right of the maximum point? Another way of saying this is what is f’(x) when x > x*? What is the sign of the slope when you at the maximum point? Another way of saying this is what is f’(x) when x = x*?

12 Graphical Representation of a Maximum y x y = f(x) = -x 2 + 8x

13 Interpreting the First Derivative The first derivative of a function as was shown previously is the slope of the curve evaluated at a particular point. In essence it tells you the instantaneous rate of change of the function at the given particular point. Knowing the slope of the function can tell you where a maximum or a minimum exists on a curve. Why?

14 Question Can the derivative tell you whether you are at a maximum or a minimum? The answer is yes if you examine the slope of the function around the critical point, i.e., the point where the derivative is zero. An easier way of examining whether you have a maximum or a minimum is to examine the second derivative of the function.

15 The Second Derivative The second derivative of a function f(x) is the derivative of the function f’(x), where f’(x) is the derivative of f(x). The second derivative can tell you whether the function is concave or convex at the critical point. The second derivative can be denoted by f’’(x).

16 Concavity and the Second Derivative The maximum of a function f(x) occurs when a critical point x* is at a concave portion of the function. This is equivalent to saying that f’’(x*) < 0. If f’’(x) < 0 for all x, then the function is said to be concave.

17 Convexity and the Second Derivative The minimum of a function f(x) occurs when a critical point x* is at a convex portion of the function. This is equivalent to saying that f’’(x*) > 0. If f’’(x) > 0 for all x, then the function is said to be convex.

18 Special Case of the Second Derivative Suppose you have a function f(x) that has a maximum at x*. What does it mean when the second derivative is equal to zero, i.e., f’’(x*) = 0? This is a point where the second derivative may not be able to tell you whether you have a maximum or a minimum. Usually in this case you will get a saddle point/point of inflection where the point is neither a maximum nor a minimum.

19 Example of Special Case of the Second Derivative Suppose y = f(x) = x 3, then f’(x) = 3x 2 and f’’(x) = 6x, This implies that x* = 0 and f’’(x*=0) = 0. y=f(x)=x 3 x y

20 Unconstrained Optimization An unconstrained optimization problem is one where you only have to be concerned with the objective function you are trying to optimize. An objective function is a function that you are trying to optimize. None of the variables in the objective function are constrained.

21 First and Second Order Condition For a Maximum The first order condition for a maximum at a point x* on the function f(x) is when f’(x*) = 0. The second order condition for a maximum at a point x* on the function f(x) is when f’’(x*) < 0.

22 First and Second Order Condition For a Minimum The first order condition for a minimum at a point x* on the function f(x) is when f’(x*) = 0. The second order condition for a minimum at a point x* on the function f(x) is when f’’(x*) > 0.

23 Example of Using First and Second Order Conditions Suppose you have the following function: f(x) = x 3 – 6x 2 + 9x Then the first order condition to find the critical points is: f’(x) = 3x x + 9 = 0 This implies that the critical points are at x = 1 and x = 3.

24 Example of Using First and Second Order Conditions Cont. The next step is to determine whether the critical points are maximums or minimums. These can be found by using the second order condition. f’’(x) = 6x – 12 = 6(x-2)

25 Example of Using First and Second Order Conditions Cont. Testing x = 1 implies: f’’(1) = 6(1-2) = -6 < 0. Hence at x =1, we have a maximum. Testing x = 3 implies: f’’(3) = 6(3-2) = 6 > 0. Hence at x =3, we have a minimum. Are these the ultimate maximum and minimum of the function f(x)?

26 Relative Vs. Absolute Extremum A relative extremum is a point that is locally greater or lesser than all points around it. A relative extrema can be found by using the first order condition. An absolute extremum is a point that is either absolutely greater than or less than all other points, i.e., f(x*) > f(x) for all x not equal to x* for a maximum and f(x*) < f(x) for all x not equal to x* for a minimum.

27 Finding the Absolute Extremum To find the absolute extremum, you need to compare all the critical points on the function, as well as, any potential end points of the function like  and - . When evaluating a polynomial function at , the value of the function at  takes the value of the at the highest ordered variable.

28 Finding the Absolute Extremum Cont. Some properties of  :  +  =   -  is undefined c*  = , where c is any value greater than zero  *  =   * (-  ) = -  From the previous example, the relative extremum points occur at x =- , 1, 3, and . The absolute maximum occurs at x =  and the absolute minimum occurs at x =- .

29 Unconstrained Optimization: Two Variables Suppose you have a function y = f(x 1,x 2 ), then to find the critical points, you can use the following first order condition:

30 Unconstrained Optimization: Two Variables Cont. The second order condition are more complex where you have to examine the second derivative of each of the variables, as well as, the cross derivative.

31 Constrained Optimization Constrained Optimization is said to occur when one or more of the variables in the objective function is constrained by some function. Hence a constrained optimization problem will have an objective functions and a set of constraints.

32 Constrained Optimization Cont. The Constrained Optimization problem where you are trying to maximize can be set-up as the following: Maximize an objective function f(x) with respect to x given a set of constraints g(x)=c.

33 Example of Constrained Optimization Suppose that you want to maximize f(x) = 5x -x 2, subject to the constraint that x = 2. Since x = 2 is the constraint, the answer to this is trivial where x* = 2.

34 Constrained Optimization: Two Variables The Constrained Optimization problem where you are trying to maximize can be set-up as the following: Maximize an objective function f(x 1,x 2 ) with respect to x 1,x 2 given a set of constraints g(x 1,x 2 ) = c.

35 Example of Constrained Optimization: Two Variables Suppose you want to maximize y = f(x 1,x 2 ) = x 1 x 2 with respect to x 1 and x 2 given that 600 = x 1 + 2x 2. To solve this problem, we can turn this constrained problem into an unconstrained problem.

36 Example of Constrained Optimization: Two Variables Cont. If we solve the constraint for x 1 as a function of x 2 we get x 1 = 600 – 2x 2. Plugging x 1 into the objective function gives the following new unconstrained maximization problem. Maximize (600 – 2x 2 )x 2 w.r.t. x 2. The first order condition is 600 – 4x 2 =0. Which implies x 2 *=150. Which implies x 1 *=300.

37 Motivating the Lagrange Method In the previous problem, we made a substitution to turn the constrained optimization problem into an unconstrained problem. While this made solving the problem easier, there may be times when you have multiple constraints or potentially inequality constraints that make changing the constrained into the unconstrained difficult or impossible.

38 Motivating the Lagrange Method Cont. Another way of solving the above problem is using Lagrange’s method. The Lagrange method uses what is called a Lagrange multiplier to transform the problem. The Lagrange multiplier tells us how much will be added to the optimization problem if the constraint was relaxed by one unit.

39 Setting-Up the Lagrange The Constrained Optimization problem where you are trying to maximize can be set-up as the following: Maximize an objective function f(x 1,x 2 ) with respect to x 1 and x 2 given a set of constraints g(x 1,x 2 ) = c.

40 Solving the Lagrange Problem To solve the Lagrange problem, you need to optimize L(x 1,x 2, ) with respect to x 1, x 2, and. This is equivalent to using the first and second order conditions.

41 Example of Lagrange Suppose you want to maximize y = f(x 1,x 2 ) = x 1 x 2 with respect to x 1 and x 2 given that 600 = x 1 + 2x 2. This implies: