Lecture 7 Constrained Optimization Lagrange Multipliers

Slides:



Advertisements
Similar presentations
ESSENTIAL CALCULUS CH11 Partial derivatives
Advertisements

Slide Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
First-Order Differential Equations
15 PARTIAL DERIVATIVES.
Tutorial 7 Constrained Optimization Lagrange Multipliers
Constrained Optimization
Math 3120 Differential Equations with Boundary Value Problems
Chap 1 First-Order Differential Equations
Math for CSLecture 71 Constrained Optimization Lagrange Multipliers ____________________________________________ Ordinary Differential equations.
DEPARTMENT OF MATHEMATI CS [ YEAR OF ESTABLISHMENT – 1997 ] DEPARTMENT OF MATHEMATICS, CVRCE.
Section 11.3 Partial Derivatives
Solving Systems of Equations. Rule of Thumb: More equations than unknowns  system is unlikely to have a solution. Same number of equations as unknowns.
Chemistry 330 The Mathematics Behind Quantum Mechanics.
Modeling with differential equations One of the most important application of calculus is differential equations, which often arise in describing some.
Mathematics. Session Differential Equations - 1 Session Objectives  Differential Equation  Order and Degree  Solution of a Differential Equation,
1 Economic Faculty Differential Equations and Economic Applications LESSON 1 prof. Beatrice Venturi.
LAGRANGE mULTIPLIERS By Rohit Venkat.
Differential Equations. Definition A differential equation is an equation involving derivatives of an unknown function and possibly the function itself.
ESSENTIAL CALCULUS CH07 Applications of integration.
EASTERN MEDITERRANEAN UNIVERSITY Department of Industrial Engineering Non linear Optimization Spring Instructor: Prof.Dr.Sahand Daneshvar Submited.
D Nagesh Kumar, IIScOptimization Methods: M2L4 1 Optimization using Calculus Optimization of Functions of Multiple Variables subject to Equality Constraints.
Chapter 21 Exact Differential Equation Chapter 2 Exact Differential Equation.
UNIVERSAL COLLEGE OF ENGINEERING AND TECHNOLOGY. FIRST ORDER LINEAR DIFFERENTIAL EQUATION PRESENTED BY ANVI VIRANI ENROLL NO:
Differential Equations
L8 Optimal Design concepts pt D
Mathe III Lecture 7 Mathe III Lecture 7. 2 Second Order Differential Equations The simplest possible equation of this type is:
Ch 2.1: Linear Equations; Method of Integrating Factors A linear first order ODE has the general form where f is linear in y. Examples include equations.
Functions of Several Variables Copyright © Cengage Learning. All rights reserved.
Warm Up. Solving Differential Equations General and Particular solutions.
9.1 Solving Differential Equations Mon Jan 04 Do Now Find the original function if F’(x) = 3x + 1 and f(0) = 2.
Differential Equations
Differential Equations
Copyright © Cengage Learning. All rights reserved. 14 Partial Derivatives.
Functions of Several Variables 13 Copyright © Cengage Learning. All rights reserved.
Section Lagrange Multipliers.
Searching a Linear Subspace Lecture VI. Deriving Subspaces There are several ways to derive the nullspace matrix (or kernel matrix). ◦ The methodology.
First Order Linear Differential Equations Any equation containing a derivative is called a differential equation. A function which satisfies the equation.
Warm Up 1.Find the particular solution to the initial value problem 2.Find the general solution to the differential equation.
Solving Systems of Equations. Rule of Thumb: More equations than unknowns  system is unlikely to have a solution. Same number of equations as unknowns.
Function Optimization
Mathematics.
First-Order Differential Equations
DIFFERENTIAL EQUATIONS
Separable Differential Equations
Differential Equations
1.5 Linear ODEs. Bernoulli Equation. Population Dynamics
Copyright © Cengage Learning. All rights reserved.
Linear Differential Equations
We will be looking for a solution to the system of linear differential equations with constant coefficients.
Systems of Ordinary Differential Equations Case I: real eigenvalues of multiplicity 1 MAT 275.
Functions of Several Variables
FIRST ORDER DIFFERENTIAL EQUATIONS
Ch 2.1: Linear Equations; Method of Integrating Factors
MTH1170 Differential Equations
Linear equation A linear equation is an algebraic equation in which each term is either a constant or the product of a constant and (the first power of)
Ordinary Differential Equation
The Implicit Function Theorem---Part 1
Engineering Analysis I
Physics 319 Classical Mechanics
The Lagrange Multiplier Method
Equations of Straight Lines
7.5 – Constrained Optimization: The Method of Lagrange Multipliers
13 Functions of Several Variables
Copyright © Cengage Learning. All rights reserved.
EE 458 Introduction to Optimization
Introduction to Partial Differential Equations
RAYAT SHIKSHAN SANSTHA’S S.M.JOSHI COLLEGE HADAPSAR, PUNE
Optimal Control of Systems
Differential Equations
Multivariable optimization with no constraints
Presentation transcript:

Lecture 7 Constrained Optimization Lagrange Multipliers ____________________________________________ Ordinary Differential equations Math for CS Lecture 7

Constrained Optimization Constrained optimization problem can be defined as following: Minimize the function ,while searching among x, that satisfy the constraints: Math for CS Lecture 7

Example 1 Consider the problem of minimizing f(x)=x1+x2 and constraint that g(x)=x12+x22-1. The figure shows the circle defined by g(x)=0 and the lines of constant value of f(x). One can see, that at the g(x,y)= x12+x22-1=0 x* solution x*, the gradient of f(x) is orthogonal to the circle. Otherwise, there is non-zero projection of the gradient on the circle, and therefore, sliding contrary to this projection projection decreases the f(x) without violating the constraint g(x)=0. Math for CS Lecture 7

Example 2 g(x,y)=0 Minimize the path between M and C, so that the path touches the constraint g(x)=0. Each ellipse describes the points lying on paths of the same lengths. Again, in the solution the gradient of f(x) is orthogonal to the curve of the constraint. Math for CS Lecture 7

Dimensionality Reduction The straightforward method to solve constrained optimization problem is to reduce the number of free variables: If x=(x1,..xn) and there are k constraints g1(x)=0,…gk(x)=0, then, the k constraint equations can (sometimes) be solved to reduce the dimensionality of x from n to n-k: Math for CS Lecture 7

Surfaces defined by constraint Now we consider the hard case, when dimensionality reduction is impossible. If there are no constraints (k=0), the gradient of f(x) vanishes at the solution x*: In the constrained case, the gradient must be orthogonal to the subspace, defined by the constraints (otherwise a sliding along this subspace will decrease the value f(x), without violating the constraint). Math for CS Lecture 7

g1(x)=0 g2(x)=0 λ1∆g1(x) λ2∆g2(x) Explanation The constraints limit the subspace of the solution. Here the solution lies on the intersection of the planes, defined by g1(x)=0 and g2(x)=0. The gradient f(x) must be orthogonal to this subspace (otherwise there is non-zero projection of f(x) along the constraint and the function value can be further decreased). The orthogonal subspace is spanned by λ1 g1(x)+ λ2 g2(x). Thus f(x*)= λ1 g1(x*)+ λ2 g2(x*). Math for CS Lecture 7

Constrain for coordinate and relaxation for the gradient We observe, that the more additional constraints are applied, the more restricted is the coordinate of the optimum (anywhere in R3 for k=0, on the surface for k=1, on the line for k=2), but the less restricted is the gradient of the function f(x) (zero, along the normal to the surface, within the plane, orthogonal to the line). This requirement for the gradient to lie in the hyperspace, orthogonal to the intersection of the hypersurfaces, defined by the constraints can be summarized as: (1) Math for CS Lecture 7

Lagrange Multipliers The second requirement is to satisfy the constraints: The requirements (1-2) can be written together in the elegant form. Define the function: Then, we can write to satisfy (1) and to satisfy (2). (2) (2) Math for CS Lecture 7

Lagrange Multipliers In other words, we have constructed a function that depends on a variable , and we require for that function. (2) Math for CS Lecture 7

Summary The constants λi are called Lagrange Multipliers. We obtained that the solution (λ* , x*) of the constrained optimization problem Satisfies the equations ,where (2) Math for CS Lecture 7

Ordinary Differential Equations (2) Linear Equations Separable equations Math for CS Lecture 7

Differential Equations 1. A differential equation is an equation involving an unknown function and its derivatives. 2. The order of the differential equation is the order of the highest derivative of the unknown function involved in the equation. 3. A linear differential equation of order n is a differential equation written in the following form: where is not the zero function. (2) Math for CS Lecture 7

Differential Equations 4. Existence: Does a differential equation have a solution? 5. Uniqueness: Does a differential equation have more than one solution? If yes, how can we find a solution which satisfies particular conditions? 6. If the values of the unknown function y(x) and its derivatives at some point are known is called an initial value problem (in short IVP). 7. If no initial conditions are given, we call the description of all solutions to the differential equation the general solution. (2) Math for CS Lecture 7

First order differential equation A first order linear differential equation has the following form: To solve this equation, let us multiply both sides by : (2) Math for CS Lecture 7

Separable Equations The differential equation of the form is called separable, if f(x,y) = h(x)·g(y); that is, In order to solve it, perform the following steps: (1) Solve the equation g(y) = 0, which gives the constant solutions of (a); (2) Rewrite the equation (a) as (a) (2) Math for CS Lecture 7

Separable Equations (3) Now we can integrate to obtain (2) (4) Now we can write down all the solutions, obtained in (1) and (2). If this is an IVP, we must use an initial to find a particular solution. (2) Math for CS Lecture 7