Non Linear Programming 1

Slides:



Advertisements
Similar presentations
Asset Pricing. Pricing Determining a fair value (price) for an investment is an important task. At the beginning of the semester, we dealt with the pricing.
Advertisements

LECTURE 8 : FACTOR MODELS
10-1 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Nonlinear Programming Chapter 10.
BA 452 Lesson B.6 Nonlinear Programming ReadingsReadings Chapter 8 Nonlinear Optimization Models.
Mean-variance portfolio theory
MS&E 211 Quadratic Programming Ashish Goel. A simple quadratic program Minimize (x 1 ) 2 Subject to: -x 1 + x 2 ≥ 3 -x 1 – x 2 ≥ -2.
Issues in Capital Budgeting II
Efficient Diversification I Covariance and Portfolio Risk Mean-variance Frontier Efficient Portfolio Frontier.
Introduction to Management Science
Investment Science D.G. Luenberger
Nonlinear Programming
Basic Feasible Solutions: Recap MS&E 211. WILL FOLLOW A CELEBRATED INTELLECTUAL TEACHING TRADITION.
Chapter 5 The Mathematics of Diversification
MIT and James Orlin © Nonlinear Programming Theory.
LECTURE 7 : THE CAPM (Asset Pricing and Portfolio Theory)
Diversification and Portfolio Management (Ch. 8)
Simple Linear Regression
Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. 8-1 Introduction to Nonlinear Programming (NLP)
FINANCE 10. Risk and expected returns Professor André Farber Solvay Business School Université Libre de Bruxelles Fall 2006.
Return, Risk, and the Security Market Line
Session 5a Decision Models -- Prof. Juran.
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
Lecture 9 – Nonlinear Programming Models
Optimization I Operations -- Prof. Juran. Outline Basic Optimization: Linear programming –Graphical method –Spreadsheet Method Extension: Nonlinear programming.
FIN638 Vicentiu Covrig 1 Portfolio management. FIN638 Vicentiu Covrig 2 How Finance is organized Corporate finance Investments International Finance Financial.
1 OR II GSLM Outline  course outline course outline  general OR approach  general forms of NLP  a list of NLP examples.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Presented by: Lauren Rudd
Roman Keeney AGEC  In many situations, economic equations are not linear  We are usually relying on the fact that a linear equation.
Classifying optimization problems By the independent variables: –Integer optimization --- integer variables –Continuous optimization – real variables By.
Diversification and Portfolio Risk Asset Allocation With Two Risky Assets 6-1.
Empirical Financial Economics Asset pricing and Mean Variance Efficiency.
Lecture #9. Review Homework Set #7 Continue Production Economic Theory: product-product case.
0 Portfolio Managment Albert Lee Chun Construction of Portfolios: Introduction to Modern Portfolio Theory Lecture 3 16 Sept 2008.
Lecture 10 The Capital Asset Pricing Model Expectation, variance, standard error (deviation), covariance, and correlation of returns may be based on.
Nonlinear Programming (NLP) Operation Research December 29, 2014 RS and GISc, IST, Karachi.
Types of IP Models All-integer linear programs Mixed integer linear programs (MILP) Binary integer linear programs, mixed or all integer: some or all of.
Chapter 7 – Risk, Return and the Security Market Line  Learning Objectives  Calculate Profit and Returns  Convert Holding Period Returns (HPR) to APR.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Portfolio risk and return measurement Module 5.2.
MIT and James Orlin © Chapter 5. Sensitivity Analysis presented as FAQs –Points illustrated on a running example of glass manufacturing. –Also the.
Risk and Return Professor Thomas Chemmanur Risk Aversion ASSET – A: EXPECTED PAYOFF = 0.5(100) + 0.5(1) = $50.50 ASSET – B:PAYS $50.50 FOR SURE.
1 Risk Learning Module. 2 Measures of Risk Risk reflects the chance that the actual return on an investment may be different than the expected return.
Computational Finance 1/34 Panos Parpas Asset Pricing Models 381 Computational Finance Imperial College London.
Thursday, April 18 Nonlinear Programming (NLP)
Derivation of the Beta Risk Factor
Nonlinear Programming Models
Finance 300 Financial Markets Lecture 3 Fall, 2001© Professor J. Petry
Optimization I. © The McGraw-Hill Companies, Inc., 2004 Operations Management -- Prof. Juran2 Outline Basic Optimization: Linear programming –Graphical.
Risk Analysis & Modelling
1 Multi-Objective Portfolio Optimization Jeremy Eckhause AMSC 698S Professor S. Gabriel 6 December 2004.
Nonlinear Programming I Li Xiaolei. Introductory concepts A general nonlinear programming problem (NLP) can be expressed as follows: objective function.
Optimal portfolios and index model.  Suppose your portfolio has only 1 stock, how many sources of risk can affect your portfolio? ◦ Uncertainty at the.
Review of fundamental 1 Data mining in 1D: curve fitting by LLS Approximation-generalization tradeoff First homework assignment.
IT Applications for Decision Making. Operations Research Initiated in England during the world war II Make scientifically based decisions regarding the.
Travis Wainman partner1 partner2
1 Optimization Techniques Constrained Optimization by Linear Programming updated NTU SY-521-N SMU EMIS 5300/7300 Systems Analysis Methods Dr.
Chapter 7 An Introduction to Portfolio Management.
1 CHAPTER 6 Risk, Return, and the Capital Asset Pricing Model (CAPM)
Introduction to Integer Programming Integer programming models Thursday, April 4 Handouts: Lecture Notes.
FIN437 Vicentiu Covrig 1 Portfolio management Optimum asset allocation Optimum asset allocation (see chapter 8 RN)
Key Concepts and Skills
Chapter 12: Kay and Edwards
Principles of Investing FIN 330
Lecture 6 General Overview of Non-Linear Programming
Lecture 9 – Nonlinear Programming Models
Corporate Finance Ross  Westerfield  Jaffe
FIN 360: Corporate Finance
Optimization I.
Chapter 7 Functions of Several Variables
Presentation transcript:

Non Linear Programming 1 Nonlinear Programming (NLP) Modeling Examples MIT and James Orlin © 2003

Linear Programming Model ASSUMPTIONS: Proportionality Assumption Objective function Constraints Additivity Assumption MIT and James Orlin © 2003

What is a non-linear program? maximize 3 sin x + xy + y3 - 3z + log z Subject to x2 + y2 = 1 x + 4z  2 z  0 A non-linear program is permitted to have non-linear constraints or objectives. A linear program is a special case of non-linear programming! MIT and James Orlin © 2003

Nonlinear Programs (NLP) Nonlinear objective function f(x) and/or Nonlinear constraints gi(x). Today: we will present several types of non-linear programs. MIT and James Orlin © 2003

Unconstrained Facility Location This is the warehouse location problem with a single warehouse that can be located anywhere in the plane. Distances are “Euclidean.” 2 4 6 8 10 12 14 16 y C (2) (7) B A (19) P ? D (5) x Loc. Dem. A: (8,2) 19 B: (3,10) 7 C: (8,15) 2 D: (14,13) 5 P: ? MIT and James Orlin © 2003

An NLP Costs proportional to distance; known daily demands d(P,A) = … d(P,D) = minimize 19 d(P,A) + … + 5 d(P,D) subject to: P is unconstrained MIT and James Orlin © 2003

Here are the objective values for 55 different locations. MIT and James Orlin © 2003

Facility Location. What happens if P must be within a specified region? 2 4 6 8 10 12 14 16 y C (2) (7) B A (19) P ? D (5) x MIT and James Orlin © 2003

The model Minimize + …+ Subject to x  7 5  y  11 x + y  24 MIT and James Orlin © 2003

0-1 integer programs as NLPs minimize Sj cj xj subject to Sj aij xj = bi for all i xj is 0 or 1 for all j is “nearly” equivalent to minimize Sj cj xj + 106 Sj xj (1- xj). subject to Sj aij xj = bi for all i 0  xj  1 for all j MIT and James Orlin © 2003

Some comments on non-linear models The fact that non-linear models can model so much is perhaps a bad sign How can we solve non-linear programs if we have trouble with integer programs? Recall, in solving integer programs we use techniques that rely on the integrality. Fact: some non-linear models can be solved, and some are WAY too difficult to solve. More on this later. MIT and James Orlin © 2003

Variant of exercise from Bertsimas and Freund Buy a machine and keep it for t years, and then sell it. (0  t  10) all values are measured in $ million Cost of machine = 1.5 Revenue = 4(1 - .75t) Salvage value = 1/(1 + t) MIT and James Orlin © 2003

MIT and James Orlin © 2003

How long should we keep the machine? Work with your partner on how long we should keep the machine, and why? MIT and James Orlin © 2003

Non-linearities Because of Time Discount rates decreasing value of equipment over time wear and tear, improvements in technology Tax implications (Depreciation) Salvage value Secondary focus of the previous model(s): Finding the right model can be subtle MIT and James Orlin © 2003

Non-linearities in Pricing The price of an item may depend on the number sold quantity discounts for a small seller price elasticity for monopolist Complex interactions because of substitutions: Lowering the price of GM automobiles will decrease the demand for the competitors MIT and James Orlin © 2003

Non-linearities because of congestion The time it takes to go from MIT to Harvard by car depends non-linearly on the congestion. As congestion increases just to its limit, the traffic sometimes comes to a near halt. MIT and James Orlin © 2003

Non-linearities because of “penalties” Consider any linear equality constraint: e.g., 3x1 + 5x2 + 4x3 = 17 Suppose it is a “soft” constraint and we permit solutions violating it. We can then write: 3x1 + 5x2 + 4x3 - y = 17 And we may include a term of –10y2 in the objective function. This adds flexibility to the solution by discourages violation of our “goals” MIT and James Orlin © 2003

Portfolio Optimization In the following slides, we will show how to model portfolio optimization as NLPs The key concept is that risk can be modeled using non-linear equations Since this is one of the most famous applications of non-linear programming, we cover it in much more detail MIT and James Orlin © 2003

Risk vs. Return In finance, one trades of risk and return. For a given rate of return, one wants to minimize risk. For a given rate of risk, one wants to maximize return. Return is modeled as expected value. Risk is modeled as variance (or standard deviation.) MIT and James Orlin © 2003

Expectations Add Suppose that X and Y are random variables E(X + Y) = E(X) + E(Y) Interpretation: Suppose that the expected return in one year for Stock 1 is 9%. Suppose that the expected return in one year for Stock 2 is 10% If you put $100 in Stock 1, and $200 in Stock 2, your expected return is $9 + $20 = $29. MIT and James Orlin © 2003

Variances do not add (at least not simply) Suppose that X and Y are random variables Var(aX + bY) = a2 Var(X) + b2 Var(Y) + 2ab Cov(X, Y) Example. The risk of investing in “umbrellas” and “sunglasses” is less than the risk of either investment by itself. In general: Var(X1 + X2 + …+ Xn) = MIT and James Orlin © 2003

Reducing risk Diversification is a method of reducing risk, even when investments are positively correlated (which they often are). If only two investments are made, then the risk reduction depends on the covariance. MIT and James Orlin © 2003

Portfolio Selection (cont’d) Two Methods are commonly used: Min Risk s.t. Expected Return ³ Bound Max Expected Return - q (Risk) where q reflects the tradeoff between return and risk. MIT and James Orlin © 2003

Portfolio Selection Example There are 3 candidate assets for out portfolio, X, Y and Z. The expected returns are 30%, 20% and 8% respectively (if possible we would like at least a 12% return). Suppose the covariance matrix is: What are the variables? Let X,Y,Z be percentage of portfolio of each asset. MIT and James Orlin © 2003

Portfolio Selection Example Min st Max MIT and James Orlin © 2003

More on Portfolio Selection There can be institutional constraints as well, especially for mutual funds. No more than 15% in the energy sector Between 20% to 25% high growth At most 3% in any one firm etc. We end up with a large non-linear program. The unconstrained version becomes the “CapM model” in finance. Portfolio Example MIT and James Orlin © 2003

Regression Find the best linear fit for estimating the midterm grade from the homework grades MIT and James Orlin © 2003

Writing regression as an NLP Minimize Sj (rj)2 subject to r1 = (91x + y) – 89 r2 = (80x + y) – 97.5 r3 = (61x + y) – 58.5 … r9 = (50x + y) – 67 Minimize Sj (rj)2 subject to rj = Hj x + y – Mj for each j In an optimization framework, one can constrain coefficients. MIT and James Orlin © 2003

r2 =.082 MIT and James Orlin © 2003

r2 =.29 MIT and James Orlin © 2003

An application of regression to finance A famous application in Finance of determining the best linear fit is determining the b of a stock. CAPM assumes that the return of a stock s in a given time period is rs = a + b rm + e, rs = return on stock s in the time period rm = return on market in the time period b = a 1% increase in stock market will lead to a b% increase in the return on s (on average) MIT and James Orlin © 2003

Regression, and estimating b Return on Stock A vs. Market Return 80.00% 60.00% 40.00% 20.00% Stock 0.00% -40.00% -20.00% 0.00% 20.00% 40.00% 60.00% 80.00% -20.00% What is the best linear fit for this data? What does one mean by best? -40.00% -60.00% Market MIT and James Orlin © 2003

Regression, and estimating b Return on Stock A vs. Market Return 80.00% 60.00% 40.00% 20.00% Stock 0.00% -40.00% -20.00% 0.00% 20.00% 40.00% 60.00% 80.00% -20.00% Market The value b is the slope of the regression line. Here it is around .6 (lower expected gain than the market, and lower risk.) -40.00% -60.00% MIT and James Orlin © 2003

Solving NLP’s by Excel Solver MIT and James Orlin © 2003

Summary Applications of NLP to location problems, portfolio management, regression Non-linear programming is very general and very hard to solve Special case of convex minimization NLP is easier, because a local minimum is a global minimum MIT and James Orlin © 2003