McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 10.1 Table of Contents Chapter 10 (Nonlinear Programming) The Challenges of Nonlinear Programming.

Slides:



Advertisements
Similar presentations
Introduction to LP Modeling
Advertisements

Chapter 12 PowerPoint Non-smooth Models.
Optimization problems using excel solver
BU Decision Models Integer_LP1 Integer Optimization Summer 2013.
10-1 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Nonlinear Programming Chapter 10.
Linear Programming Problem
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Table of Contents Chapter 2 (Linear Programming: Basic Concepts) Three Classic Applications.
Session II – Introduction to Linear Programming
Introduction to Management Science
BA 452 Lesson A.2 Solving Linear Programs 1 1ReadingsReadings Chapter 2 An Introduction to Linear Programming.
1 BIS APPLICATION MANAGEMENT INFORMATION SYSTEM Aggregate Planning and learning Curves Chapter outline: 1.The Nature of Aggregate Planning 2.Tradeoffs.
Linear Programming Using the Excel Solver
Managerial Decision Modeling with Spreadsheets
Introduction to Management Science
2-1 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Chapter Topics Model Formulation A Maximization Model Example Graphical Solutions.
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Integer Programming.
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Three Classic Applications of LP Product Mix at Ponderosa Industrial –Considered limited.
Non-Linear Problems General approach. Non-linear Optimization Many objective functions, tend to be non-linear. Design problems for which the objective.
To accompany Quantitative Analysis for Management, 8e by Render/Stair/Hanna 7-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 7 Linear.
ENGR 351 Numerical Methods Instructor: Dr. L.R. Chevalier
Example 7.1 Pricing Models | 7.3 | 7.4 | 7.5 | 7.6 | 7.7 | 7.8 | 7.9 | 7.10 | Background Information n The Madison.
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Table of Contents Chapter 2 (Linear Programming: Basic Concepts) The Wyndor Glass Company.
Computational Methods for Management and Economics Carla Gomes Module 4 Displaying and Solving LP Models on a Spreadsheet.
Graphical Solutions Plot all constraints including nonnegativity ones
1© 2003 by Prentice Hall, Inc. Upper Saddle River, NJ The Wyndor Glass Company Problem (Hillier and Liberman) The Wyndor Glass Company is planning.
Introduction to Linear Programming
Linear Programming Models
Table of Contents Chapter 2 (Linear Programming: Basic Concepts)
Chapter 19 Linear Programming McGraw-Hill/Irwin
Roman Keeney AGEC  In many situations, economic equations are not linear  We are usually relying on the fact that a linear equation.
Product Mix Problem Monet company makes four types of frames.
Spreadsheets in Finance and Forecasting Presentation 8: Problem Solving.
Spreadsheet Modeling of Linear Programming (LP). Spreadsheet Modeling There is no exact one way to develop an LP spreadsheet model. We will work through.
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Table of Contents Chapter 1 (Introduction) Special Products Break-Even Analysis (Section.
Chapter 6 Production. ©2005 Pearson Education, Inc. Chapter 62 Topics to be Discussed The Technology of Production Production with One Variable Input.
Example 5.8 Non-logistics Network Models | 5.2 | 5.3 | 5.4 | 5.5 | 5.6 | 5.7 | 5.9 | 5.10 | 5.10a a Background Information.
Linear Programming: Basic Concepts
Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin 12 Financial and Cost- Volume-Profit Models.
Some Key Facts About Optimal Solutions (Section 14.1) 14.2–14.16
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Table of Contents Chapter 5 (What-If Analysis for Linear Programming) Continuing the Wyndor.
Business Analytics with Nonlinear Programming
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Table of Contents Chapter 8 (Nonlinear Programming) The Challenges of Nonlinear Programming.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
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.
Appendix B A BRIEF TOUR OF SOLVER Prescriptive Analytics
The McGraw-Hill Companies, Inc. 2006McGraw-Hill/Irwin 12 Financial and Cost- Volume-Profit Models.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Blank & Tarquin: 5 th edition. Ch.13 Authored by Dr. Don Smith,
To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 11-1 © 2006 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 11.
Optimization I. © The McGraw-Hill Companies, Inc., 2004 Operations Management -- Prof. Juran2 Outline Basic Optimization: Linear programming –Graphical.
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Table of Contents CD Chapter 14 (Solution Concepts for Linear Programming) Some Key Facts.
Arben Asllani University of Tennessee at Chattanooga Chapter 5 Business Analytics with Goal Programming Business Analytics with Management Science Models.
Chapter 4 Linear Programming Models. Example 4.1 – Advertising Model General Flakes Company advertises a low-fat breakfast cereal in a variety of 30 second.
IT Applications for Decision Making. Operations Research Initiated in England during the world war II Make scientifically based decisions regarding the.
OSCM 230 Fall 2013 Management Science Lecture 4 Linear Programming II 9/11/2013, 9/16/ Lecture 4 Linear Programming II Professor Dong Washington.
D Nagesh Kumar, IIScOptimization Methods: M8L5 1 Advanced Topics in Optimization Evolutionary Algorithms for Optimization and Search.
1 Optimization Techniques Constrained Optimization by Linear Programming updated NTU SY-521-N SMU EMIS 5300/7300 Systems Analysis Methods Dr.
To accompany Quantitative Analysis for Management, 8e by Render/Stair/Hanna 7-1 1© 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 7 Linear.
EMGT 5412 Operations Management Science Nonlinear Programming: Introduction Dincer Konur Engineering Management and Systems Engineering 1.
Chapter 6 Integer, Goal, and Nonlinear Programming Models © 2007 Pearson Education.
Linear Programming Applications
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.
Linear Programming Many problems take the form of maximizing or minimizing an objective, given limited resources and competing constraints. specify the.
Nonlinear Programming Prepared by Lee Revere and John Large
Table of Contents Chapter 5 (What-If Analysis for Linear Programming)
Solver & Optimization Problems
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Linear Programming.
Integer Linear Programming
Table of Contents Chapter 2 (Linear Programming: Basic Concepts) The Wyndor Glass Company Product Mix Problem (Section 2.1)2.2 Formulating the Wyndor Problem.
Presentation transcript:

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Table of Contents Chapter 10 (Nonlinear Programming) The Challenges of Nonlinear Programming (Section 10.1)10.2–10.16 NLP with Decreasing Marginal Returns: Wyndor (Section 10.2)10.17–10.21 NLP with Decreasing Marginal Returns: Portfolio Selection (Section 10.2)10.22–10.26 Separable Programming (Section 10.3)10.27–10.39 Difficult Nonlinear Programming Problems (Section 10.4)10.40–10.41 Evolutionary Solver and Genetic Algorithms (Section 10.5)10.42–10.50 Nonlinear and Separable Programming (UW Lecture)10.51–10.66 These slides are based upon a lecture from the MBA elective course “Modeling with Spreadsheets” at the University of Washington (as taught by one of the authors). Evolutionary Solver (UW Lecture)10.67–10.78 These slides are based upon a lecture from the MBA elective course “Modeling with Spreadsheets” at the University of Washington (as taught by one of the authors).

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Examples of Linear and Nonlinear Formulas Linear FormulasNonlinear Formulas SUMPRODUCT(D4:D6, C4:C6) [(D1 + D2) / D3] * C4 IF(D2 >= 2, 2*C3, 3*C4) SUMIF(D1:D6, 4, C1:C6) SUM(D4:D6) 2*C1 + 3*C4 + C6 C1 + C2 + C3 SUMPRODUCT(C4:C6, C1:C3) [(C1 + C2) / C3] * D4 IF(C2 >= 2, 2*C3, 3*C4) SUMIF(C1:C6, 4, D1:D6) ROUND(C1) MAX(C1, 0) MIN(C1, C2) ABS(C1) SQRT(C1) C1 * C2 C1 / C2 C1 ^2 Data cells are located in D1:D6 and changing cells are in C1:C6.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Challenges of Nonlinear Programming Nonlinear programming is used to model nonproportional relationships between activity levels and the overall measure of performance, whereas linear programming assumes a proportional relationship. Constructing the nonlinear formula(s) needed for a nonlinear programming model is considerably more difficult than developing the linear formulas used in linear programming. Solving a nonlinear programming model is often much more difficult (if it is possible at all) than solving a linear programming model.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Challenge of Nonproportional Relationships Proportionality Assumption of Linear Programming: The contribution of each activity to the value of the objective function is proportional to the level of the activity. In other words, the term in the objective function involving this activity consists of a coefficient times the decision variable. Nonlinear programming problems arise when any activity has a nonproportional relationship where the contribution of the activity to the measure of performance is not proportional to the level of the activity.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Profit Graphs for Wyndor Glass Co. (Proportional Relationship)

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Profit Graphs with Nonproportional Relationships Decreasing Marginal Returns Piecewise Linear with Decreasing Marginal Returns

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Profit Graphs with Nonproportional Relationships Decreasing Marginal Returns Except for Discontinuities Increasing Marginal Returns

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Constructing a Nonlinear Formula

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Add Trendline Dialogue Box

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Add Trendline Options

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Trendline (Quadratic Equation)

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Solving Nonlinear Programming Models Consider the following model in algebraic form: Maximize Profit = 0.5x 5 – 6x x 3 – 39x x subject to x ≤ 5 x ≥ 0

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Solver Solution Starting with x = 0

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Solver Solution Starting with x = 3

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Solver Solution Starting with x = 4.7

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Profit Graph

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Original Wyndor Glass Co. Spreadsheet

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Wyndor Glass with Marketing Costs Market research indicates that Wyndor could sell small numbers of doors and windows with no advertising. However, extensive advertising would be required to sell all that could be produced. A curve-fitting procedure was used to estimate the weekly marketing costs required to sustain a production rate of D doors and W windows: –Marketing cost for doors = $25D 2 –Marketing costs for windows = ($66 2 / 3 )W 2 The gross profit per door sold is about $375, and the gross profit per window is about $700. Therefore, the net profits are as follows: –Net profit for doors = $375D – $25D 2 Net profit for windows = $700W – ($66 2 / 3 )W 2 Thus, the revised objective function is Maximize Profit = $375D – 25D 2 + $700W –($66 2 / 3 )W 2 Question: Considering the nonlinear marketing costs, how many doors and windows should Wyndor produce?

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Profit Graphs for Doors and Windows

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Spreadsheet Formulation

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Graphical Display of Nonlinear Formulation

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Portfolio Selection It is now common practice for professional managers of large stock portfolios to use computer models based on nonlinear programming to guide them. Investors are concerned about both the expected return and the risk. One way of formulating their approach is as a nonlinear version of a cost- benefit trade-off problem: –Minimize Risk subject to Expected return ≥ Minimum acceptable level Consider a portfolio with 3 stocks. Question: What is the portfolio that will minimize the risk subject to achieving at least an 18% expected return?

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Data for Stocks Stock Expected Return Risk (Standard Deviation) Pair of Stocks Joint Risk per Stock (Covariance) 121%25%1 and and 3– and 3–0.010

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Algebraic Formulation Minimize Risk = (0.25S 1 ) 2 +(0.45S 2 ) 2 +(0.05S 3 ) 2 +2(0.04)S 1 S 2 +2(–0.005)S 1 S 3 +2(–0.01)S 2 S 3 subject to (21%)S 1 + (30%)S 2 + (8%)S 3 ≥ 18% S 1 + S 2 + S 3 = 100% and S 1 ≥ 0, S 2 ≥ 0, S 3 ≥ 0.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Spreadsheet Model

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Using Solver Table to Examine Trade-Offs Between Expected Return and Risk

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Wyndor Glass When Overtime is Needed Wyndor Glass has accepted a special order for hand-crafted goods to be made in plants 1 and 2 throughout the next four months. Filling this order will require borrowing certain employees from the work crews of regular products. The remaining workers will need to work overtime to utilize the full production capacity of each plant’s machinery for the regular products. The original constraints of Hours Used ≤ Hours Available are still valid. However, the objective function will need to be modified because of the additional cost of using overtime work. In particular, because of the additional cost, the profit per unit will be reduced for those units that require overtime. Question: Considering overtime costs, how many doors and windows should Wyndor produce?

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Data for Wyndor When Overtime is Needed Maximum Weekly Production Profit per Unit Produced Product Regular TimeOvertimeTotal Regular TimeOvertime Doors314$300$200 Windows (and 3D + 2W ≤ 18)

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Profit Graphs for Doors and Windows

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Separable Programming Technique For each activity that violates the proportionality assumption, separate its profit graph into parts, with a line segment in each part. Then, instead of using a single decision variable to represent the level of each such activity, introduce a separate new decision variable for each line segment on that activity’s profit graph. Since the proportionality assumption holds for these new decision variables, formulate a linear programming model in terms of these variables. For the Wyndor problem, these new decision variables are –D R = Number of doors produced per week on regular time –D O = Number of doors produced per week on overtime –W R = Number of windows produced per week on regular time W O = Number of windows produced per week on overtime

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Separable Programming Spreadsheet Model

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Separable Programming with Smooth Profit Graphs

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Advantages of Separable Programming The Excel Solver can readily solve nonlinear problems that have decreasing marginal returns, with the advantage that no approximation is needed. However, the separable programming approach also has certain advantages: –Converting the problem into a linear programming problem tends to make it quicker to solve, which can be very helpful for large problems. –A linear programming formulation makes available Solver’s Sensitivity Report. –Separable programming only requires estimating the profit from each activity at a few points. Therefore, it is not necessary to use a curve fitting method to estimate the formula for the profit graph.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Wyndor Problem with Both Overtime Costs and Nonlinear Marketing Costs The previous spreadsheet model does not include nonlinear marketing costs. Recall that the curve-fitting procedure was used to estimate the weekly marketing costs required to sustain a production rate of D doors and W windows: –Marketing cost for doors = $25D 2 –Marketing costs for windows = ($66 2 / 3 )W 2 Question: Considering both overtime costs and nonlinear marketing costs, how many doors and windows should Wyndor produce?

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Data for Wyndor with Overtime Costs and Nonlinear Marketing Costs Maximum Weekly Production Gross Unit Profit Product Regular TimeOvertimeTotal Regular TimeOvertime Marketing Costs Doors314$375$275$25D 2 Windows / 3 W 2

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Weekly Profit from Producing Doors D Gross Profit Marketing CostsProfit Incremental Profit 0$0 — , , ,000100

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Weekly Profit from Producing Windows W Gross Profit Marketing CostsProfit Incremental Profit 0$0 — / / 3 21, / 3 1,133 1 / , , / 3 42,4001,066 2 / 3 1,333 1 / 3 –166 2 / 3 52,7001,666 2 / 3 1,033 1 / 3 –300 63,0002,400600–433 1 / 3

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Separable Programming Spreadsheet Model

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Nonlinear Programming Spreadsheet Model

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Difficult Nonlinear Programming Problems Even if a model has a nonlinear objective function, so long as the model has certain properties (e.g., linear constraints, decreasing marginal returns), the Solver can easily find an optimal solution. In some cases separable programming can be used to model a nonlinear problem in such a way that linear programming can be used. However, if a problem has increasing marginal returns, or nonlinear functions in the constraints, or disconnected profit graphs, finding a solution is often much more difficult. –such problems may have many local optima –Solver can get stuck at local optima, rather than finding the global optimum One approach with such problems is to solve the problem many times, each time starting with a different initial solution. –Solver Table can be used to do this process more systematically when there are only one or two variables.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Using Solver Table to Try Different Starting Points

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Evolutionary Solver and Genetic Algorithms Evolutionary Solver uses an entirely different approach than the standard Solver to search for an optimal solution for a model. The philosophy of Evolutionary Solver is based on genetics, evolution and the survival of the fittest. Hence, this type of algorithm is sometimes called a genetic algorithm. The standard Solver starts with a single solution, and then moves in directions that will improve this solution. Evolutionary Solver begins by randomly generating a whole population of solutions. After generating the population, Evolutionary Solver creates a new generation by pairing off solutions in the population to create “offspring”, combining some elements from each parent.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Evolutionary Solver and Genetic Algorithms Among solutions in the population, some will be good (or “fit”) and some will be bad (or “unfit”), as measured by evaluating the objective function. Borrowing from the principles of evolution and survival of the fittest, the “fit” members are allowed to reproduce more frequently than the unfit members. Another key feature is mutation. Like gene mutation in biology, Evolutionary Solver will occasionally make a random change in a member of the population. This helps the algorithm get unstuck if it is getting trapped near a local optimum. Evolutionary Solver keeps creating new generations of solutions until there have been no improvements for several consecutive generations.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Selecting a Portfolio to Beat the Market A common goal of portfolio managers is to beat the market. If we assume that past performance is somewhat of an indicator of the future, then picking a portfolio that beat the market most often in the past might yield a portfolio that will more than likely beat the market in the future. Consider a portfolio of five large stocks traded on the New York Stock Exchange (NYSE): –America Online (AOL) –Boeing (BA) –Ford (F) –Procter & Gamble (PG) –McDonald’s (MCD) Question: What mix of these five stocks will yield a portfolio that is likely to beat the market in the future?

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Spreadsheet Model

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Premium Solver Dialogue Box

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Solver Options Dialogue Box

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Limit Options Dialogue Box

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Evolutionary Solver Spreadsheet Solution

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Advantages and Disadvantages of Evolutionary Solver Evolutionary Solver has two significant advantages over the standard Solver for solving difficult nonlinear programming problems: –The complexity of the objective function does not matter. As long as the function can be evaluated for a given candidate solution (to determine the level of fitness), it does not matter if the function has kinks, discontinuities, or many local optima. –By evaluating whole populations of candidate solutions, Evolutionary Solver keeps from getting trapped at a local optimum. Even if the whole population evolves toward a locally optimal solution, mutation allows the possibility of getting unstuck. However, Evolutionary Solver is not a panacea. –It can take much longer that standard Solver to find a final solution. –Evolutionary Solver does not perform well on models that have many constraints. –Evolutionary Solver is a random process. Running it again on the same model usually will yield a different solution. –The best solution found is typically not optimal (although it may be very close).

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Nonlinear Programming Consider the following model for a nonlinear programming problem: Maximize Profit = 0.5x 5 – 6x x 3 – 39x x subject to 0 ≤ x ≤ 5

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Solver Solution Starting with x = 0

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Solver Solution Starting with x = 3

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Solver Solution Starting with x = 4.7

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Profit Graph

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Problems That Solver will Solver Correctly A maximization problem with linear constraints and a concave objective function. A Concave Function

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Problems That Solver will Solver Correctly A minimization problem with linear constraints and a convex objective function. A Convex Function

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Quality Furniture Corporation The Quality Furniture Corporation manufactures two products: benches and tables. They employ three carpenters. During the next week, 120 hours of labor are available at regular wages ($8 per hour). Up to 30 hours of overtime can be used at a wage rate of $12 per hour. Up to 30 hours of weekend time can be utilized at a wage rate of $16 per hour. 540 pounds of wood is available at a cost of $2 per pound. Each bench requires 3 labor hours and 12 pounds of wood. Each table requires 6 labor hours and 38 pounds of wood. Completed benches sell for $80 each, and tables sell for $200 each. Question: How many benches and how many tables should be produced?

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Outdoor Furniture Labor Costs

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Nonlinear Programming Spreadsheet

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Outdoor Furniture Labor Costs

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Separable Programming Spreadsheet

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Advertising Example

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Sales Function

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Approximating a Nonlinear Function

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Advertising Example Using Separable Programming

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Evolutionary Solver The standard Solver has difficulty with problems that are –highly nonlinear –are not smooth (have “kinks” in the objective) –have discontinuities (the objective jumps in value) –have many local optima (many hills and valleys) Excel functions like IF, MAX, ABS, ROUND, etc., tend to cause one or more of these problems.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Premium Solver Included on the textbook CD is the “Premium Solver”. After installing, a new button (“Premium”) is added to Solver.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Premium Solver Clicking on the “Premium” button switches to Premium Solver, which gives the option of three different solvers. –Standard GRG Nonlinear is equivalent to the regular Solver without choosing “Assume Linear Model”. –Standard Simplex LP is equivalent to the regular Solver with choosing “Assume Linear Model”. –Standard Evolutionary uses a genetic evolutionary algorithm that is only available with Premium Solver.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., How Genetic Algorithms (Evolutionary Solver) Work Genetic algorithms (such as Evolutionary Solver) use principles from the theory of evolution. The Population: a large set of random solutions is generated. Level of fitness: each member of the population (solution) is evaluated to determine its level of “fitness” (value of objective). Evolution: a new generation (set of solutions) is created as follows: –Reproduction: pairs reproduce and create new solutions that share some properties of each. –Survival of the Fittest: more “fit” solutions reproduce more frequently, less “fit” solutions are allowed to die out. –Mutation: occasionaly random “mutations” are introduced.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Inventory Ordering Policy with Quantity Discounts Consider a manufacturer that orders a given part from a supplier. They require 10,000 parts per year. There is a cost associated with each order (due to processing, receiving costs, fixed shipping costs, etc.) of $20. The cost of holding a part in inventory is estimated at $4 per year. The supplier of this part offers quantity discounts on the purchasing cost of this part according to the following schedule. Order QuantityPurchase Price (per unit) 1–99$ – – ,000–9, ,

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Total Annual Cost Recall from Operations Management class that the total annual cost (including puchasing, ordering, and holding costs) is Total Annual Cost = Dp + (Q / 2)H + (D / Q)S where D = Annual demand p = purchase cost Q = order size H = annual holding cost per unit S = ordering cost

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Spreadsheet Model

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Attempts with Standard Solver Various “solutions” provided by the standard Solver, depending on the starting point: Starting Point (Q)Solution (Q*)Cost 11,000$194, , , ,800 1,2001,000194,400 11,00010,000210,040 12,0001,000194,400

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Cost Function with Quantity Discounts

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Solving with the Evolutionary Solver

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Tips on Using Evolutionary Solver Bounding all of the variables greatly aids the Evolutionary Solver by decreasing the search space. The limit options should be increased (Max Time, Max Subproblems, and Max Feasible Sols) for challenging problems. Setting Tolerance to and Max Time Without Improvements to 30 will ensure the algorithm will stop if the Target Cell value has improved less than 0.05% in the last 30 seconds. Experiment with different populations sizes and mutation rates to see what works well. I have found that higher than default mutation rates can be helpful in problems with lots of local optima. The Evolutionary Solver can take a very long time, but it will usually find a good solution.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Tips on Using Evolutionary Solver There is no guarantee that Evolutionary Solver will find the best solution. The Evolutionary Solver performs well even with nasty objective functions, but is not very efficient at handling constraints. Much of the solution process is driven by random numbers that direct the search. Thus, two people running Evolutionary Solver on the same model may get different results. Once Evolutionary Solver has found a good solution, you can use GRG Nonlinear Solver (the nonlinear algorithm that is included with the Premium Solver software) to try to find a slightly better solution.