Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. 8-1 Nonlinear Programming & Evolutionary Optimization.

Slides:



Advertisements
Similar presentations
Solving LP Problems in a Spreadsheet
Advertisements

BU Decision Models Integer_LP1 Integer Optimization Summer 2013.
Linear Programming Problem
Introduction to Management Science
Linear Programming Using the Excel Solver
Managerial Decision Modeling with Spreadsheets
© 2007 Pearson Education Chapter 14: Solving and Analyzing Optimization Models.
1 Spreadsheet Modeling & Decision Analysis: A Practical Introduction to Management Science 3d edition by Cliff Ragsdale.
Spreadsheet Modeling & Decision Analysis A Practical Introduction to Management Science 6 th edition Cliff T. Ragsdale © 2011 Cengage Learning. All Rights.
Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. 8-1 Nonlinear Programming & Evolutionary Optimization.
Math443/543 Mathematical Modeling and Optimization
Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. 8-1 Introduction to Nonlinear Programming (NLP)
Computational Methods for Management and Economics Carla Gomes
Spreadsheet Modeling & Decision Analysis:
Solver & Optimization Problems n An optimization problem is a problem in which we wish to determine the best values for decision variables that will maximize.
3 Components for a Spreadsheet Linear Programming Problem There is one cell which can be identified as the Target or Set Cell, the single objective of.
Graphical Solutions Plot all constraints including nonnegativity ones
Max-flow/min-cut theorem Theorem: For each network with one source and one sink, the maximum flow from the source to the destination is equal to the minimal.
Introduction to Mathematical Programming OR/MA 504 Chapter 5 Integer Linear Programming.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Chapter 3 Introduction to Optimization Modeling
456/556 Introduction to Operations Research Optimization with the Excel 2007 Solver.
Linear programming Lecture (4) and lecture (5). Recall An optimization problem is a decision problem in which we are choosing among several decisions.
Introduction to Mathematical Programming OR/MA 504 Chapter 3.
START EXCEL BUILD OR RETRIEVE YOUR OPTIMIZATION MODEL SAVE YOUR WORKBOOK!! CHOOSE “Solver…” IN THE “Tools” MENU SPECIFY IN SOLVER DIALOG BOX: 1.CELL TO.
Solver & Optimization Problems n An optimization problem is a problem in which we wish to determine the best values for decision variables that will maximize.
Chapter 19 Linear Programming McGraw-Hill/Irwin
Introduction to Mathematical Programming
Special Conditions in LP Models (sambungan BAB 1)
Spreadsheet Modeling & Decision Analysis:
Nonlinear Programming (NLP) Operation Research December 29, 2014 RS and GISc, IST, Karachi.
Business Analytics with Nonlinear Programming
Spreadsheet Modeling & Decision Analysis:
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.
Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. 6-1 Integer Linear Programming Chapter 6.
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Appendix B A BRIEF TOUR OF SOLVER Prescriptive Analytics
1 Spreadsheet Modeling & Decision Analysis: A Practical Introduction to Management Science, 3e by Cliff Ragsdale.
Spreadsheet Modeling & Decision Analysis
QMB 4701 MANAGERIAL OPERATIONS ANALYSIS
Route Planning Texas Transfer Corp (TTC) Case 1. Linear programming Example: Woodcarving, Inc. Manufactures two types of wooden toys  Soldiers sell for.
DISTRIBUTION AND NETWORK MODELS (1/2)
Chapter 2 Introduction to Linear Programming n Linear Programming Problem n Problem Formulation n A Maximization Problem n Graphical Solution Procedure.
Thursday, May 9 Heuristic Search: methods for solving difficult optimization problems Handouts: Lecture Notes See the introduction to the paper.
Location decisions are strategic decisions. The reasons for location decisions Growth –Expand existing facilities –Add new facilities Production Cost.
3 Characteristics of an Optimization Problem General descriptionKPiller Illustration Decisions that must be made; represented by decision variables How.
Spreadsheet Modeling & Decision Analysis A Practical Introduction to Management Science 5 th edition Cliff T. Ragsdale.
OR Chapter 8. General LP Problems Converting other forms to general LP problem : min c’x  - max (-c)’x   = by adding a nonnegative slack variable.
Spreadsheet Modeling & Decision Analysis A Practical Introduction to Management Science 5 th edition Cliff T. Ragsdale.
8/14/04J. Bard and J. W. Barnes Operations Research Models and Methods Copyright All rights reserved Lecture 5 – Integration of Network Flow Programming.
IT Applications for Decision Making. Operations Research Initiated in England during the world war II Make scientifically based decisions regarding the.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Supplement 6 Linear Programming.
3 Components for a Spreadsheet Optimization Problem  There is one cell which can be identified as the Target or Set Cell, the single objective of the.
Kerimcan OzcanMNGT 379 Operations Research1 Linear Programming Chapter 2.
Management Science 461 Lecture 3 – Covering Models September 23, 2008.
IE 312 Review 1. The Process 2 Problem Model Conclusions Problem Formulation Analysis.
-114- HMP654/EXECMAS Linear Programming Linear programming is a mathematical technique that allows the decision maker to allocate scarce resources in such.
EMGT 5412 Operations Management Science Nonlinear Programming: Introduction Dincer Konur Engineering Management and Systems Engineering 1.
Linear programming Lecture (4) and lecture (5). Recall An optimization problem is a decision problem in which we are choosing among several decisions.
Optimization Modeling: Applications Integer Programming Chapter 15.
Appendix A with Woodruff Edits Linear Programming Using the Excel Solver Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
Supplementary Chapter B Optimization Models with Uncertainty
Solver & Optimization Problems
Lecture 5 – Integration of Network Flow Programming Models
Lecture 5 – Integration of Network Flow Programming Models
Spreadsheet Modeling & Decision Analysis
Chapter 5 Transportation, Assignment, and Transshipment Problems
Spreadsheet Modeling & Decision Analysis:
Integer Linear Programming
Presentation transcript:

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. 8-1 Nonlinear Programming & Evolutionary Optimization Chapter 8

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. 8-2 Introduction to Nonlinear Programming (NLP) u An NLP problem has a nonlinear objective function and/or one or more nonlinear constraints. u NLP problems are formulated and implemented in virtually the same way as linear problems. u The mathematics involved in solving NLPs is quite different than for LPs. u Solver tends to mask this difference but it is important to understand the difficulties that may be encountered when solving NLPs.

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. 8-3 Possible Optimal Solutions to NLPs (not occurring at corner points) objective function level curve optimal solution Feasible Region linear objective, nonlinear constraints objective function level curve optimal solution Feasible Region nonlinear objective, nonlinear constraints objective function level curve optimal solution Feasible Region nonlinear objective, linear constraints objective function level curves optimal solution Feasible Region nonlinear objective, linear constraints

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. 8-4 The GRG Algorithm u Solver uses the Generalized Reduced Gradient (GRG) algorithm to solve NLPs. u GRG can also be used on LPs but is slower than the Simplex method. u The following discussion gives a general (but somewhat imprecise) idea of how GRG works.

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. 8-5 An NLP Solution Strategy Feasible Region A (the starting point) B C D E objective function level curves X1X1 X2X2

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. 8-6 Local vs. Global Optimal Solutions A C B Local optimal solution Feasible Region D E F G Local and global optimal solution X1X1 X2X2

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. 8-7 Comments About NLP Algorithms u It is not always best to move in the direction producing the fastest rate of improvement in the objective. u NLP algorithms can terminate a local optimal solutions. u The starting point influences the local optimal solution obtained.

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. 8-8 Comments About Starting Points u The null starting point should be avoided. u When possible, it is best to use starting values of approximately the same magnitude as the expected optimal values.

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. 8-9 A Note About “Optimal” Solutions u When solving a NLP problem, Solver normally stops when the first of three numerical tests is satisfied, causing one of the following three completion messages to appear: 1) “Solver found a solution. All constraints and optimality conditions are satisfied.” This means Solver found a local optimal solution, but does not guarantee that the solution is the global optimal solution. Unless you know that a problem has only one local optimal solution (which must also be the global optimal), you should run Solver from several different starting points to increase the chances that you find the global optimal solution to your problem. 2) “Solver has converged to the current solution. All constraints are satisfied.” This means the objective function value changed very slowly for the last few iterations. If you suspect the solution is not a local optimal, your problem may be poorly scaled. In Excel 8.0, the convergence option in the Solver Options dialog box can be reduced to avoid convergence at suboptimal solutions. 3) “Solver cannot improve the current solution. All constraints are satisfied.” This rare message means the your model is degenerate and the Solver is cycling. Degeneracy can often be eliminated by removing redundant constraints in a model.

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. 5 Steps In Formulating MP Models: 1. Understand the problem. 2. Identify the decision variables. X 1 = number of … X 2 = number of … 3.State the objective function as a combination of the decision variables. MAX: …

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. 5 Steps In Formulating MP Models (continued) 4. State the constraints as combinations of the decision variables. … 5. Identify any upper or lower bounds on the decision variables. …

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. The Steps in Implementing a MP Model in a Spreadsheet 1.Organize the data for the model on the spreadsheet. 2.Reserve separate cells in the spreadsheet to represent each decision variable in the model. 3.Create a formula in a cell in the spreadsheet that corresponds to the objective function. 4.For each constraint, create a formula in a separate cell in the spreadsheet that corresponds to the left- hand side (LHS) of the constraint.

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. How Solver Views the Model u Target cell - the cell in the spreadsheet that represents the objective function u Changing cells - the cells in the spreadsheet representing the decision variables u Constraint cells - the cells in the spreadsheet representing the LHS formulas on the constraints

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning The Economic Order Quantity (EOQ) Problem u Involves determining the optimal quantity to purchase when orders are placed. u Small orders result in: –low inventory levels & carrying costs –frequent orders & higher ordering costs u Large orders result in: –higher inventory levels & carrying costs –infrequent orders & lower ordering costs

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Sample Inventory Profiles

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning The EOQ Model Assumes: –Demand (or use) is constant over the year –New orders are received in full when the inventory level drops to zero. where: D = annual demand for the item C = unit purchase cost for the item S = fixed cost of placing an order i = cost of holding inventory for a year (expressed as a % of C) Q = order quantity

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning EOQ Cost Relationships $ Order Quantity Total Cost Carrying Cost Ordering Cost EOQ

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning An EOQ Example: Ordering Paper For MetroBank u Alan Wang purchases paper for copy machines and laser printers at MetroBank. –Annual demand (D) is for 24,000 boxes –Each box costs $35 (C) –Each order costs $50 (S) –Inventory carrying costs are 18% ( i ) u What is the optimal order quantity (Q)?

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning The Model (Note the nonlinear objective!)

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Implementing the Model See file Fig8-6.xls

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Comments on the EOQ Model u Using calculus, it can be shown that the optimal value of Q is: u Numerous variations on the basic EOQ model exist accounting for: –quantity discounts –storage restrictions –backlogging –etc

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Location Problems u Many decision problems involve determining optimal locations for facilities or service centers. For example, –Manufacturing plants –Warehouse –Fire stations –Ambulance centers u These problems usually involve distance measures in the objective and/or constraints.  The straight line (Euclidean) distance between two points ( X 1, Y 1 ) and (X 2, Y 2 ) is:

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning A Location Problem: Rappaport Communications u Rappaport Communications provides cellular phone service in several mid-western states. u The want to expand to provide inter-city service between four cities in northern Ohio. u A new communications tower must be built to handle these inter-city calls. u The tower will have a 40 mile transmission radius.

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Graph of the Tower Location Problem Cleveland Akron Youngstown Canton x=5, y=45 x=12, y=21 x=17, y=5 x=52, y= X Y 0 10

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Defining the Decision Variables X 1 = location of the new tower with respect to the X-axis Y 1 = location of the new tower with respect to the Y-axis

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Defining the Objective Function u Minimize the total distance from the new tower to the existing towers MIN:

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Defining the Constraints u Cleveland u Akron u Canton u Youngstown

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Implementing the Model See file Fig8-10.xls

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Analyzing the Solution u The optimal location of the “new tower” is in virtually the same location as the existing Akron tower. u Maybe they should just upgrade the Akron tower. u The maximum distance is 39.8 miles to Youngstown. u This is pressing the 40 mile transmission radius. u Where should we locate the new tower if we want the maximum distance to the existing towers to be minimized?

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Implementing the Model See file Fig8-13.xls

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Comments on Location Problems u The optimal solution to a location problem may not work: –The land may not be for sale. –The land may not be zoned properly. –The “land” may be a lake. u In such cases, the optimal solution is a good starting point in the search for suitable property. u Constraints may be added to location problems to eliminate infeasible areas from consideration.

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning A Nonlinear Network Flow Problem: The SafetyTrans Company u SafetyTrans specialized in trucking extremely valuable and extremely hazardous materials. u It is imperative for the company to avoid accidents: –It protects their reputation. –It keeps insurance premiums down. –The potential environmental consequences of an accident are disastrous. u The company maintains a database of highway accident data which it uses to determine safest routes. u They currently need to determine the safest route between Los Angeles, CA and Amarillo, TX.

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Network for the SafetyTrans Problem Las Vegas 2 Los Angeles 1 San Diego 3 Phoenix 4 Flagstaff 6 Tucson 5 Albu- querque 8 Las Cruces 7 Lubbock 9 Amarillo Numbers on arcs represent the probability of an accident occurring +1

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Defining the Decision Variables

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Defining the Objective Select the safest route by maximizing the probability of not having an accident, MAX: (1-P 12 Y 12 )(1-P 13 Y 13 )(1-P 14 Y 14 )(1-P 24 Y 24 )…(1-P 9,10 Y 9,10 ) where: P ij = probability of having an accident while traveling between node i and node j

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Defining the Constraints u Flow Constraints -Y 12 -Y 13 -Y 14 = -1 } node 1 +Y 12 -Y 24 -Y 26 = 0 } node 2 +Y 13 -Y 34 -Y 35 = 0 } node 3 +Y 14 +Y 24 +Y 34 -Y 45 -Y 46 -Y 48 = 0} node 4 +Y 35 +Y 45 -Y 57 = 0 } node 5 +Y 26 +Y 46 -Y 67 -Y 68 = 0 } node 6 +Y 57 +Y 67 -Y 78 -Y 79 -Y 7,10 = 0 } node 7 +Y 48 +Y 68 +Y 78 -Y 8,10 = 0 } node 8 +Y 79 -Y 9,10 = 0 } node 9 +Y 7,10 +Y 8,10 +Y 9,10 = 1 } node 10

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Implementing the Model See file Fig8-15.xls

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Comments on Nonlinear Network Flow Problems u Small differences in probabilities can mean large differences in expected values: ( ) * $30,000,000 = $300,000 ( ) * $30,000,000 = $1,122,000 u This type of problem is also useful in reliability network problems (e.g., finding the weakest “link” (or path) in a production system or telecommunications network).

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning A Project Selection Problem: The TMC Corporation u TMC needs to allocate $1.7 million of R&D budget and up to 25 engineers among 6 projects.  The probability of success for each project depends on the number of engineers assigned ( X i ) and is defined as: P i = X i /(X i +  i ) Project Startup Costs$325$200$490$125$710$240 NPV if successful$750$120$900$400$1,110$800 Probability Parameter  i (all monetary values are in $1,000s)

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Selected Probability Functions Engineers Assigned Prob. of Success Project 2 -  = 2.5 Project 4 -  = 5.6 Project 6 -  = 8.5

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Defining the Decision Variables X i = the number of engineers assigned to project i, i = 1, 2, 3, …, 6

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Defining the Objective Maximize the expected total NPV of selected projects

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Defining the Constraints u Startup Funds 325Y Y Y Y Y Y 6 <=1700 u Engineers X 1 + X 2 + X 3 + X 4 + X 5 + X 6 <= 25 u Linking Constraints X i - 25Y i <= 0, i= 1, 2, 3, … 6 u Note: The following constraint could be used in place of the last two constraints... X 1 Y 1 + X 2 Y 2 + X 3 Y 3 + X 4 Y 4 + X 5 Y 5 + X 6 Y 6 <= 25 However, this constraint is nonlinear. It is generally better to keep things linear where possible.

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Implementing the Model See file Fig8-19.xls

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Optimizing Existing Financial Models u It is not necessary to always write out the algebraic formulation of an optimization problem, although doing so ensures a thorough understanding of the problem. u Solver can be used to optimize a host of pre- existing spreadsheet models which are inherently nonlinear.

Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning Finished with Chapter 8