Lecture 25 Nonlinear Programming. November 9, 2009

Similar documents
(1) Given the following system of linear equations, which depends on a parameter a R, 3x y + 5z = 2 4x + y + (a 2 14)z = a + 2

Unconstrained Optimization Principles of Unconstrained Optimization Search Methods

MTAEA Convexity and Quasiconvexity

Chapter 4.1 & 4.2 (Part 1) Practice Problems

4 Using The Derivative

Unconstrained Optimization

Introduction to CVX. Olivier Fercoq and Rachael Tappenden. 24 June pm, ICMS Newhaven Lecture Theatre

Convexity and Optimization

Use Derivatives to Sketch the Graph of a Polynomial Function.

MATH3016: OPTIMIZATION

Convexity and Optimization

EC422 Mathematical Economics 2

2 Second Derivatives. As we have seen, a function f (x, y) of two variables has four different partial derivatives: f xx. f yx. f x y.

Chapter 3 Numerical Methods

Introduction to Modern Control Systems

22. LECTURE 22. I can define critical points. I know the difference between local and absolute minimums/maximums.

Department of Mathematics Oleg Burdakov of 30 October Consider the following linear programming problem (LP):

Lecture 2 Optimization with equality constraints

CMU-Q Lecture 9: Optimization II: Constrained,Unconstrained Optimization Convex optimization. Teacher: Gianni A. Di Caro

Convex Optimization. August 26, 2008

MAT121: SECTION 2.7 ANALYZING GRAPHS AND PIECEWISE FUNCTIONS

FOUNDATIONS OF OPERATIONS RESEARCH

CO367/CM442 Nonlinear Optimization Lecture 1

Applied Lagrange Duality for Constrained Optimization

OPTIMIZATION METHODS

5 Day 5: Maxima and minima for n variables.

Shiqian Ma, MAT-258A: Numerical Optimization 1. Chapter 2. Convex Optimization

Characterizing Improving Directions Unconstrained Optimization

2. Suppose we drew many tangent lines for this second curve. How do the slopes of these tangent lines change as we look from left to right?

Local and Global Minimum

Section 4.3: How Derivatives Affect the Shape of the Graph

Machine Learning for Signal Processing Lecture 4: Optimization

LECTURE 18 - OPTIMIZATION

EE/AA 578: Convex Optimization

a) y = x 3 + 3x 2 2 b) = UNIT 4 CURVE SKETCHING 4.1 INCREASING AND DECREASING FUNCTIONS

Optimization Methods: Optimization using Calculus-Stationary Points 1. Module - 2 Lecture Notes 1

10-701/15-781, Fall 2006, Final

Convexity Theory and Gradient Methods

3.3 Optimizing Functions of Several Variables 3.4 Lagrange Multipliers

Affine function. suppose f : R n R m is affine (f(x) =Ax + b with A R m n, b R m ) the image of a convex set under f is convex

4 LINEAR PROGRAMMING (LP) E. Amaldi Fondamenti di R.O. Politecnico di Milano 1

Convex Optimization MLSS 2015

Introduction to Convex Optimization. Prof. Daniel P. Palomar

CONCAVITY AND INFLECTION POINTS

Lecture 2 September 3

ISM206 Lecture, April 26, 2005 Optimization of Nonlinear Objectives, with Non-Linear Constraints

EC5555 Economics Masters Refresher Course in Mathematics September Lecture 6 Optimization with equality constraints Francesco Feri

Introduction. Optimization

ReviewUsingDerivatives.nb 1. As we have seen, the connection between derivatives of a function and the function itself is given by the following:

Mathematical Programming and Research Methods (Part II)

Tutorial on Convex Optimization for Engineers

Financial Optimization ISE 347/447. Lecture 13. Dr. Ted Ralphs

(f) Find an interval over which f is concave upwards.

TMA946/MAN280 APPLIED OPTIMIZATION. Exam instructions

AM 221: Advanced Optimization Spring 2016

MATHEMATICS II: COLLECTION OF EXERCISES AND PROBLEMS

REAL-CODED GENETIC ALGORITHMS CONSTRAINED OPTIMIZATION. Nedim TUTKUN

This lecture: Convex optimization Convex sets Convex functions Convex optimization problems Why convex optimization? Why so early in the course?

Lecture 18 Solving Shortest Path Problem: Dijkstra s Algorithm. October 23, 2009

Resource Management in Computer Networks -- Mapping from engineering problems to mathematical formulations

Learning a classification of Mixed-Integer Quadratic Programming problems

maximize c, x subject to Ax b,

Section 4.2 selected answers Math 131 Multivariate Calculus D Joyce, Spring 2014

Convexity: an introduction

Algorithms for convex optimization

Global Optima for Linearly Constrained Business Decision Models

Chapter 15 Introduction to Linear Programming

Programming, numerics and optimization

Lec13p1, ORF363/COS323

An approach to 3D surface curvature analysis

QEM Optimization, WS 2017/18 Part 4. Constrained optimization

Minima, Maxima, Saddle points

Constrained and Unconstrained Optimization

Unconstrained and Constrained Optimization

Graphing. I ll put this information together with some other techniques into a step-by-step graphing procedure. Here it is:

Optimization. Industrial AI Lab.

Classification of Optimization Problems and the Place of Calculus of Variations in it

K-Means and Gaussian Mixture Models

Convex Optimization. Chapter 1 - chapter 2.2

Optimization Methods: Advanced Topics in Optimization - Multi-objective Optimization 1. Module 8 Lecture Notes 2. Multi-objective Optimization

Properties of a Function s Graph

ME 555: Distributed Optimization

Section 3.1(part), Critical Numbers, Extreme Values, Increasing/Decreasing, Concave Up/Down MATH 1190

LP-Modelling. dr.ir. C.A.J. Hurkens Technische Universiteit Eindhoven. January 30, 2008

Solution Methods Numerical Algorithms

LECTURE NOTES Non-Linear Programming

Lagrangian Relaxation: An overview

Lecture 2: August 31

1. Show that the rectangle of maximum area that has a given perimeter p is a square.

4.3, Math 1410 Name: And now for something completely different... Well, not really.

AB Calculus: Extreme Values of a Function

Lecture 19: Convex Non-Smooth Optimization. April 2, 2007

IE521 Convex Optimization Introduction

Constrained Optimization

College of Computer & Information Science Fall 2007 Northeastern University 14 September 2007

Lagrange Multipliers and Problem Formulation

Lagrange multipliers. Contents. Introduction. From Wikipedia, the free encyclopedia

1-1. What you'll Learn About Critical Points/Extreme Values. 1 P a g e

CPSC 340: Machine Learning and Data Mining. Robust Regression Fall 2015

f x How can we determine algebraically where f is concave up and where f is concave down?

Transcription:

Nonlinear Programming November 9, 2009

Outline Nonlinear Programming Another example of NLP problem What makes these problems complex Scalar Function Unconstrained Problem Local and global optima: definition, characterization Convex and Concave Functions Multivariate Function Unconstrained Problem Local and global optima: definition, characterization Convex and Concave Functions Operations Research Methods 1

Another Example: Portfolio Selection with Risky Securities Lecture 25 Consider investing in n stocks, knowing the following information The current price of each share of stock j is p j Our budget for buying the shares is B The expected return of each share is µ j Being risk averse, we want the return to be at least some amount L The mutual risk of investment in stocks i and j is σ ij We want to decide on the number of shares of each stock j, so as to minimize the total risk of the investment. Formulate the problem as NLP. Operations Research Methods 2

Let x j be the number of shares of stock j Budget constraint Risk averse constraint n j=1 p j x j B Expected return is n j=1 µ j x j Expected return should be at least L n j=1 µ j x j L Total variance (risk) of the investment V (x) = n n i=1 j=1 σ ij x i x j Operations Research Methods 3

Putting this all together, we have minimize V (x) = subject to n j=1 n j=1 x j 0 n n i=1 j=1 p j x j B µ j x j L for all j σ ij x i x j William Sharpe and Harry Markowitz received Nobel Prize in Economics 1990 for developing (nlp) model to study the effects of asset risk, return, correlation and diversification of investment portfolio returns. Operations Research Methods 4

Why are NLP problems complex Nonlinearities itself are not that bad Complexity comes from nonconvexities Nonconvexity gives rise to existence of multiple local and global minima Lack of efficient (practical) mathematical tools to distinguish among them Operations Research Methods 5

Unconstrained Optimization: Scalar Function Given scalar function f : R R, determine min x R f(x) The function may have local and global minima. difficulties when solving the problem. These can cause Operations Research Methods 6

Local and Global Minima A point x R is a local minimum if there exists and open interval (a, b) containing x and such that f(x ) f(x) for all x (a, b) A point x R is a global (absolute) minimum if f(x ) f(x) for all x R Operations Research Methods 7

In the figure, suppose f(x) continues to go up for x < 0 and stays on level 0 for x 5. Then, x = 1 and x = 3 are local minima, while all the points in the interval [5, + ) are global minima Suppose now that f(x) starts growing after x = 5. Then, x = 1 and x = 3 are local minima, while x = 5 is a unique global minimum If f(x) keeps decreasing after x = 5, then a global minimum does not exist Operations Research Methods 8

Local and Global Maxima A point x R is a local maximum if there exists and open interval (a, b) containing x and such that f(x ) f(x) for all x (a, b) A point x R is a global (absolute) maximum if f(x ) f(x) for all x R Operations Research Methods 9

Concave and Convex Functions Concave and convex functions do not have local and global minima All maxima are global for a concave function All minima are global for convex function Operations Research Methods 10

Formal Characterization of Minima/Maxima Let f denote the derivative of f If x is a local (or global) minimum it satisfies the following relation f (x ) = 0 If x is a local (or global) maximum it satisfies the same relation The points x that are solution to f (x ) = 0 are referred to as stationary points of f. The stationary points include local and global minima and maxima, but may also include the points that are none of the above such as inflection points Example: f(x) = x 3. The only solution to f (x) = 0 is x = 0, which is an inflection point. Operations Research Methods 11

How do we find the minima and maxima in this case? We find all the solutions of the equation f (x) = 0 and then We check the second derivative at each of these points x : If f (x ) < 0, then x is a local maximum If f (x ) > 0, then x is a local minimum If f (x ) = 0, then we need higher order derivatives (until the sign is nonzero) f (m) > 0 and m even, then x is a local minimum; otherwise it is inflection point f (m) < 0 and m even, then x is a local maximum; otherwise it is inflection point where f (m) denotes the m-th derivative Operations Research Methods 12

Once we have all local minima (maxima), we find the global as the x with the smallest of the values f(x ), and making sure that the function is bounded below (above). Bounded below means: f(x) does not decrease to infinity when x or x + Operations Research Methods 13

Formal Characterization of Convex and Concave Scalar Functions Function f is concave over R under any of the following conditions: f (x) is decreasing function over R f (x) 0 for all x R Operations Research Methods 14

Function f is convex over R under any of the following conditions: f (x) is increasing function over R f (x) 0 for all x R Every function f is either Convex Concave, or Nether convex nor concave Example Characterize the following functions as convex, concave, or neither convex nor concave f(x) = x 2 f(x) = 1 2x 2 f(x) = x 3 1 Operations Research Methods 15

Unconstrained Optimization: Multivariate Function Operations Research Methods 16

Unconstrained Problem Given scalar function f : R n R, determine min f(x) x R n The function may have local and global minima, which cause difficulties when solving the problem Operations Research Methods 17

Local and Global Minima and Maxima A point x R n is a local minimum if there exists and open ball B centered at x and such that f(x ) f(x) for all x B A point x R n is a global (absolute) minimum if f(x ) f(x) for all x R n A point x R n is a local maximum if there exists and open ball B centered at x and such that f(x ) f(x) for all x B A point x R n is a global (absolute) maximum if f(x ) f(x) for all x R n Operations Research Methods 18

Concave and Convex Functions Concave and convex functions do not have local and global minima For a concave function f : R n R, every maximum is global For convex function f : R n R, every minimum is global Operations Research Methods 19

Formal Characterization of Minima/Maxima Let f denote the gradient of f, i.e., f(x) = f(x) x 1. f(x) x n Every (local and global) minimum x satisfies the following relation f(x ) = 0 Also, every (local or global) maximum x satisfies the above relation The points x that satisfy f(x ) = 0 are stationary points of f. Operations Research Methods 20

The stationary points include local and global minima and maxima, but may also include the points that are none of the above such as saddle points Example: f(x 1, x 2 ) = x 1 x 2. The only solution to f(x) = 0 over R n is x 1 = 0 x 2 = 0 The function can grow to + and decrease to, so f does not have any local (or global) minima or maxima. The point x = (0, 0) is a saddle point. Operations Research Methods 21

How do we characterize the minima and maxima in this case? Lecture 25 In theory, we find all the solutions of the equation f(x) = 0 and then we rely on the second order information, the Hessian of the function f The Hessian of f : R n R is the n n matrix, denoted 2 f(x) and with entries given by [ 2 f(x)] ij = 2 f(x) x i x j Operations Research Methods 22

Example of Hessians: The Hessian of f(x 1, x 2 ) = x 1 x 2 is 2 f(x 1, x 2 ) = [ 0 1 1 0 ] The Hessian of f(x 1, x 2 ) = x 3 1 x 4 2 is 2 f(x 1, x 2 ) = [ 6x1 0 0 12x 2 2 ] Operations Research Methods 23

Having the solutions x to f(x) = 0, to determine the nature of the points x, we do the following: We check the Hessian 2 (x ) at each of the points x : If the matrix 2 f(x ) is negative definite [ 2 f(x ) < 0], then x is a local maximum If the matrix 2 f(x ) is positive definite [ 2 f(x ) > 0], then x is a local minimum If 2 f(x ) = 0, then we do not know what is happening What helps us here in some situations is that the function is nice for the given optimization problem: f is convex and we need to minimize f f is concave and we need to maximize f Operations Research Methods 24

Formal Characterization of Convex and Concave Multivariate Functions Lecture 25 Function f is concave over R n when: The Hessian matrix 2 f(x) is negative semidefinite for all x, 2 f(x) 0 for all x R n Operations Research Methods 25

Function f is convex over R n when its Hessian is positive semidefinite for all x: 2 f(x) 0 for all x R n Every function f : R n R is either Convex Concave, or Nether convex nor concave Example Characterize the following functions as convex, concave, or neither convex nor concave (a) f(x) = x 1 x 2 (b) f(x) = x 3 1 x 4 2 Operations Research Methods 26

(a) The Hessian of f(x 1, x 2 ) = x 1 x 2 is 2 f(x 1, x 2 ) = [ 0 1 1 0 ] The Hessian does not depend on x in this case. The eigenvalues of the Hessian are λ 1 = 1 and λ 2 = 1. The Hessian is undetermined in sign. This function is neither convex nor concave. Operations Research Methods 27

(b) The Hessian of f(x 1, x 2 ) = x 3 1 + x 4 2 is 2 f(x 1, x 2 ) = [ 6x1 0 0 12x 2 2 ] The Hessian depends on x. The eigenvalues are also function of x, and are given by λ 1 (x) = 6x 1, λ 2 (x) = 12x 2 2 The Hessian is positive semidefinite for x 1 0, and undetermined in sign if x 1 < 0. This function is neither convex nor concave over R n. Operations Research Methods 28