456/556 Introduction to Operations Research Optimization with the Excel 2007 Solver.

Slides:



Advertisements
Similar presentations
456/556 Introduction to Operations Research Chapter 3: Introduction to Linear Programming.
Advertisements

Denise Sakai Troxell (2000) Handling Some of the Problems Encountered When Using Excel Solver for Microsoft Excel 2000.
How to Install Excel Solver to find optimal solutions to business problems Demonstrated using Excel 2003 and Excel 2007.
Solving LP Problems in a Spreadsheet
Optimization problems using excel solver
DAY 10: MICROSOFT EXCEL – CHAPTER 8 MICROSOFT EXCEL – CHAPTER 9 MICROSOFT EXCEL – CHAPTER 10 Akhila Kondai September 23, 2013.
259 Lecture 2 Spring 2013 Finance Applications with Excel – Simple and Compound Interest.
Linear Programming. Introduction: Linear Programming deals with the optimization (max. or min.) of a function of variables, known as ‘objective function’,
McGraw-Hill/Irwin ©2008 The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T4 PROBLEM SOLVING USING EXCEL Goal Seek, Solver & Pivot Tables.
Decision Analysis Tools in Excel
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T4 DECSION MAKING USING EXCEL.
SOLVING LINEAR PROGRAMS USING EXCEL Dr. Ron Lembke.
Operations Management Linear Programming Module B - Part 2
Project 7 Forecasting Values With What-If Analysis: Using Data Tables, Scenarios, Goal Seek, and Solver Jason C. H. Chen, Ph.D. Professor of Management.
Example 6.2 Fixed-Cost Models | 6.3 | 6.4 | 6.5 | 6.6 | Background Information n The Great Threads Company is capable of manufacturing.
QM B Linear Programming
Computational Methods for Management and Economics Carla Gomes Module 4 Displaying and Solving LP Models on a Spreadsheet.
Microsoft Office Excel 2003
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.
Spreadsheet Problem Solving
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.
Non-Linear Simultaneous Equations
COMPREHENSIVE Excel Tutorial 10 Performing What-If Analyses.
Chapter 3 Introduction to Optimization Modeling
 Part of Standard Excel Installation  Finds the root of a scalar function Recall that root-finding methods (e.g., bisection method, Newton’s method)
Lab 8 Solver In VBA ► Review – Solver Add-in In Excel ► Solver Add-in In VBA.
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
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith.
Spreadsheet Modeling of Linear Programming (LP). Spreadsheet Modeling There is no exact one way to develop an LP spreadsheet model. We will work through.
ENCI 303 Lecture PS-19 Optimization 2
Linear Programming: Basic Concepts
We can make Product1 and Product2. There are 3 resources; Resource1, Resource2, Resource3. Product1 needs one hour of Resource1, nothing of Resource2,
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.
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
Optimization with the Excel Solver
Linear Programming. Many mathematical models designed to solve problems in business, biology, and economics involve finding the optimum value (maximum.
การใช้ Solver ใน Excel. Solver Part of a suite of commands sometimes called what-if analysis tools what-if analysis Find an optimal value for a Formula.
Linear Programming Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill.
Chapter 19: The Solver Re-Visited Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
CTS130 Spreadsheet Lesson 19 Using What-If Analysis.
Goal Seek and Solver. Goal seeking helps you n Find a specific value for a target cell by adjusting the value of one other cell whose value is allowed.
1 Analyzing Data Using Goal Seek & Solver Applications of Spreadsheets.
Risk Analysis & Modelling
Copyright © 2008 Pearson Prentice Hall. All rights reserved Exploring Microsoft Office Excel 2007 Chapter 8 What-if Analysis Robert Grauer, Keith.
Decision Making Using Excel
DAY 9: MICROSOFT EXCEL – CHAPTER 6 Sravanthi Lakkimsetty Sept 16, 2015.
ENGM 631 Optimization Using Solver. Sec. 3.1Alt. Model Max Z = 3X 1 + 5X 2 s.t. X 1 < 8,000 X 2 < 6,000 3X 1 + 4X 2 < 36,000 X 1 > 0 X 2 > 0.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Supplement 6 Linear Programming.
Linear Programming II. George Dantzig 1947 Narendra Karmarkar Pioneers of LP.
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Solving Linear Optimization Problems Using the Solver Add-in.
Optimization with the Excel Solver
Excel’s Solver Use Excel’s Solver as a tool to assist the decision maker in identifying the optimal solution for a business decision. Business decisions.
Exploring Microsoft Office Exploring Excel Appendix C
Solver & Optimization Problems
Excel Solver IE 469 Spring 2017.
Microsoft Office Illustrated
Excel Solver.
Exploring Microsoft® Excel® 2016 Series Editor Mary Anne Poatsy
Excel Solver IE 469 Spring 2018.
Wyndor Example; Enter data
Introduction to linear programming (LP): Minimization
Navya Thum February 13, 2013 Day 7: MICROSOFT EXCEL Navya Thum February 13, 2013.
Excel Solver IE 469 Fall 2018.
Excel Solver IE 469 Spring 2019.
Presentation transcript:

456/556 Introduction to Operations Research Optimization with the Excel 2007 Solver

2 Excel’s Solver Add-In One of the tools in Excel that can be used for optimization problems is the Solver. Click the Microsoft Office Button, and then click Excel Options. Click the Add-Ins category. In the Manage box, click Excel Add-ins, and then click Go. Check the Solver Add-in box and choose OK. You may need to use you Microsoft Office installation disk for this step. Once loaded, the Solver can be accessed from the Data tab’s Analysis group.

3 The Solver Parameters Dialog Box Set Target Cell - Specifies the target cell that you want to set to a certain value or that you want to maximize or minimize. This cell must contain a formula. Equal to - Specifies whether you want the target cell to be maximized, minimized, or set to a specific value. If you want a specific value, type it in the box. By Changing Cells - Specifies the cells that can be adjusted until the constraints in the problem are satisfied and the cell in the Set Target Cell box reaches its target. The adjustable cells must be related directly or indirectly to the target cell. Guess - Guesses all nonformula cells referred to by the formula in the Set Target Cell box, and places their references in the By Changing Cells box.

4 The Solver Parameters Dialog Box (cont.) Subject to the Constraints - Lists the current restrictions on the problem. Add - Displays the Add Constraint dialog box. Change - Displays the Change Constraint dialog box. Delete - Removes the selected constraint. Solve - Starts the solution process for the defined problem. Close - Closes the dialog box without solving the problem. Retains any changes you made by using the Options, Add, Change, or Delete buttons. Options - Displays the Solver Options dialog box, where you can load and save problem models and control advanced features of the solution process. Reset All - Clears the current problem settings, and resets all settings to their original values.

5 The Solver Options Dialog Box You can control advanced features of the solution process, load or save problem definitions, and define parameters for both linear and nonlinear problems. Each option has a default setting that is appropriate for most problems.

The Solver Options Dialog Box Max time - Limits the time taken by the solution process. While you can enter a value as high as 32,767, the default value of 100 seconds is adequate for most small problems. Iterations - Limits the time taken by the solution process by limiting the number of interim calculations. While you can enter a value as high as 32,767, the default value of 100 is adequate for most small problems. Precision - Controls the precision of solutions by using the number you enter to determine whether the value of a constraint cell meets a target or satisfies a lower or upper bound. Precision must be indicated by a fractional number between 0 (zero) and 1. Higher precision is indicated when the number you enter has more decimal places — for example, is higher precision than

7 The Solver Options Dialog Box (cont.) Tolerance - The percentage by which the target cell of a solution satisfying the integer constraints can differ from the true optimal value and still be considered acceptable. This option applies only to problems with integer constraints. A higher tolerance tends to speed up the solution process. Convergence - When the relative change in the target cell value is less than the number in the Convergence box for the last five iterations, Solver stops. Convergence applies only to nonlinear problems and must be indicated by a fractional number between 0 (zero) and 1. A smaller convergence is indicated when the number you enter has more decimal places — for example, is less relative change than The smaller the convergence value, the more time Solver takes to reach a solution.

8 The Solver Options Dialog Box (cont.) Assume Linear Model - Select to speed the solution process when all relationships in the model are linear and you want to solve a linear optimization problem. Assume Non-Negative - Causes Solver to assume a lower limit of 0 (zero) for all adjustable cells for which you have not set a lower limit in the Constraint box in the Add Constraint dialog box. Use Automatic Scaling - Select to use automatic scaling when inputs and outputs have large differences in magnitude — for example, when maximizing the percentage of profit based on million-dollar investments. Show Iteration Results - Select to have Solver pause to show the results of each iteration.

9 The Solver Options Dialog Box (cont.) Estimates - Specifies the approach used to obtain initial estimates of the basic variables in each one- dimensional search. Tangent - Uses linear extrapolation from a tangent vector. Quadratic - Uses quadratic extrapolation, which can improve the results on highly nonlinear problems. Derivatives - Specifies the differencing used to estimate partial derivatives of the objective and constraint functions. Forward - Use for most problems, in which the constraint values change relatively slowly. Central - Use for problems in which the constraints change rapidly, especially near the limits. Although this option requires more calculations, it might help when Solver returns a message that it could not improve the solution.

10 The Solver Options Dialog Box (cont.) Search - Specifies the algorithm used at each iteration to determine the direction to search. Newton - Uses a quasi-Newton method that typically requires more memory but fewer iterations than the Conjugate gradient method. Conjugate - Requires less memory than the Newton method but typically needs more iterations to reach a particular level of accuracy. Use this option when you have a large problem and memory usage is a concern, or when stepping through iterations reveals slow progress. Load Model - Displays the Load Model dialog box, where you can specify the reference for the model you want to load. Save Model - Displays the Save Model dialog box, where you can specify where to save the model. Click only when you want to save more than one model with a worksheet — the first model is automatically saved.

11 Example 1 (File Cabinets) An office manager needs to purchase new filing cabinets. She knows that Ace cabinets cost $40 each, require 6 square feet of floor space, and hold 24 cubic feet of files. On the other hand, each Excello cabinet costs $80, requires 8 square feet of file space, and holds 36 cubic feet. Her budget permits her to spend no more than $560 on files, while the office has space for no more than 72 square feet of cabinets. The manager desires the greatest storage capacity within the limitations imposed by funds and space. How many of each cabinet should she buy?

12 Example 1 (cont.) As we saw in Lecture 2, we can formulate this situation as a linear programming problem. Let x 1 = the number of Ace cabinets to be bought. Let x 2 = the number of Excello cabinets to be bought. Let Z = the total storage capacity of cabinets purchased.

13 Example 1 (cont.) Our model for deciding how to allocate file cabinets is as follows: Maximize: Z = 24 x x 2 Subject to the restrictions: 40 x x 2 ≤ 560 (cost) 6 x x 2 ≤ 72 (space) and x 1 ≥ 0; x 2 ≥ 0.

14 Example 1 (cont.) From the Defined Names group of the Formulas tab, use Define Name or the Name Manager to assign names to cells we will use in formulas. This can also be done by right-clicking on a range of cells and choosing Name a Range.

15 Example 1 (cont.)

16 Example 3 (cont.)

17 Example 3 (cont.)

18 References Finite Mathematics and Calculus with Applications (4 th ed) by Margaret Lial, Charles Miller, and Raymond Greenwell Introduction to Operations Research (8 th ed) by Frederick Hillier and Gerald Leiberman