Excel Solver IE 469 Spring 2019.

Slides:



Advertisements
Similar presentations
Wyndor Example; Enter data Organize the data for the model on the spreadsheet. Type in the coefficients of the constraints and the objective function.
Advertisements

McGraw-Hill/Irwin ©2008 The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T4 PROBLEM SOLVING USING EXCEL Goal Seek, Solver & Pivot Tables.
Introduction to Management Science
Microsoft Office 2007 Excel Chapter 8 Formula Auditing, Data Validation, and Complex Problem Solving.
SOLVING LINEAR PROGRAMS USING EXCEL Dr. Ron Lembke.
Operations Management Linear Programming Module B - Part 2
Example 6.1 Capital Budgeting Models | 6.3 | 6.4 | 6.5 | 6.6 | Background Information n The Tatham Company is considering seven.
Lecture 7: Linear Programming in Excel AGEC 352 Spring 2011 – February 9, 2011 R. Keeney.
1 Chapter 6 Sensitivity Analysis and Duality PART 3 Mahmut Ali GÖKÇE.
Linear Programming Excel Solver. MAX8X 1 + 5X 2 s.t.2X 1 + 1X 2 ≤ 1000 (Plastic) 3X 1 + 4X 2 ≤ 2400 (Prod. Time) X 1 + X 2 ≤ 700 (Total Prod.) X 1 - X.
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.
Goals and aims To introduce Linear Programming To find a knowledge on graphical solution for LP problems To solve linear programming problems using excel.
 Explore the principles of cost-volume-profit relationships  Perform a basic what-if analysis  Use Goal Seek to calculate a solution  Create a one-variable.
Example 14.1 Introduction to LP Modeling. 14.1a14.1a | 14.2 | Linear Programming n Linear programming (LP) is a method of spreadsheet optimization.
COMPREHENSIVE Excel Tutorial 10 Performing What-If Analyses.
456/556 Introduction to Operations Research Optimization with the Excel 2007 Solver.
Chapter 4 - Linear Programming: Computer Solution Excel Solver
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.
Spreadsheet Modeling of Linear Programming (LP). Spreadsheet Modeling There is no exact one way to develop an LP spreadsheet model. We will work through.
Integer Programming Models
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 3 Introduction to Optimization Modeling.
Example 15.1 Daily Scheduling of Postal Employees Workforce Scheduling Models.
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,
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Excel Project 8 Formula Auditing, Data Validation, and Complex Problem Solving.
Appendix B A BRIEF TOUR OF SOLVER Prescriptive Analytics
Transportation and Assignment Problems
Linear Programming with Excel Solver.  Use Excel’s Solver as a tool to assist the decision maker in identifying the optimal solution for a business decision.
An-Najah N. University Faculty of Engineering and Information Technology Department of Management Information systems Operations Research and Applications.
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.
 Review the principles of cost-volume-profit relationships  Discuss Excel what-if analysis tools 2.
1 Analyzing Data Using Goal Seek & Solver Applications of Spreadsheets.
Lab 3 Solver Add-In In Excel ► Lab 2 Review ► Solver Add-in Introduction ► Practice Solver following Instructor » Saferly Inc.
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.
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.
Chapter 3 Introduction to Linear Programming to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c)
Solving Linear Optimization Problems Using the Solver Add-in.
OpenSolver Introduction. Table of Contents About OpenSolver – Slide 3 Installing OpenSolver – Slide 4: For Windows OS – Slide 13: For Mac OS Using OpenSolver.
Excel Solver Tutorial BI&A 674.
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.
Formula Auditing, Data Validation, and Complex Problem Solving
Introduction to Optimization
Solver Feature Excel’s KY San Jose State University Engineering 10.
Solver Feature Excel’s KY San Jose State University Engineering 10.
Solver & Optimization Problems
Excel Solver IE 469 Spring 2017.
Excel Solver.
Excel Solver IE 469 Spring 2018.
Wyndor Example; Enter data
Introduction to linear programming (LP): Minimization
Solver via VBA IE 469 Fall 2017.
Navya Thum February 13, 2013 Day 7: MICROSOFT EXCEL Navya Thum February 13, 2013.
Solver via VBA IE 469 Spring 2018.
Excel Solver IE 469 Fall 2018.
Solver via VBA IE 469 Spring 2018.
Modeling and Solving LP Problems in a Spreadsheet
Linear Programming Excel Solver.
Solving Linear Optimization Problems Using the Solver Add-in
DUALITY THEORY Reference: Chapter 6 in Bazaraa, Jarvis and Sherali.
BUS-221 Quantitative Methods
Solver via VBA IE 469 Spring 2019.
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:

Excel Solver IE 469 Spring 2019

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 are often subject to constraints or business rules to solve business problems. Solver can be used for decisions, such as, maximizing profit or reducing costs.

An Example Problem Consider the problem of diet optimization. There are four different types of food: Brownies, Ice Cream, Cola, and Cheese Cake. The nutrition values and cost per unit are as follows: The objective is to find a minimum-cost diet that contains at least 500 calories, at least 6 grams of chocolate, at least 10 grams of sugar, and at least 8 grams of fat.

Setting up Excel’s Solver STEP 1 – Changing Cells: Determine the changing cells (decision variables). These are the variables that Excel will use to determine the optimal result. To begin we enter heading for each type of food in B2:E2. In the range B3:E3, we input trial values for the amount of each food eaten. (Any values will work, but at least one should be positive.) For example, here we indicate that we are considering eating three brownies, no scoops of chocolate ice cream, one bottle of cola, and seven pieces of pineapple cheesecake.

Setting up Excel’s Solver STEP 2 – Objective Function: To see if the diet is optimal, we must determine its cost as well as the calories, chocolate, sugar, and fat it provides. In the range B7:E7,we reference the number of units and in B8:E8 we input the per unit cost for each available food. Then we compute the cost of the diet in cell B10 with the formula = B7*B8 + C7*C8 +D7*D8+ E7*E8 But it is usually easier to enter the formula = SUMPRODUCT (B7:E7, B8:E8)

Setting up Excel’s Solver

Setting up Excel’s Solver STEP 3 – Constraints: The final step required to set up our LP in Excel is to set up our constraints for calories, chocolate, sugar, and fat. To begin, we recreate the table in Excel that defines how many calories and units of chocolate, sugar, and fat are in each type of dessert. We can use this information to calculate the total amount based on the number of items from our decision variables. As an example, we can take the =SUMPRODUCT of the number of items and the number of calories in each to calculate all the calories in our dessert selection. = SUMPRODUCT (B7:E7, B14:E14) Finally, we want to indicate the limitations highlighted in the problem. We add a >= or <= to identify if it is a maximum or minimum constraint in Column G, and use Column H to indicate those limits.

Setting up Excel’s Solver

Setting up Excel’s Solver

The Solver Parameters Dialog Box STEP 1: The SOLVER Parameters Dialog Box is used to describe the optimization problem to Excel. Clicking on Data > Solver, the following will open:

The Solver Parameters Dialog Box STEP 2: The way we set up the problem in Excel will make it easy for us to fill in each of the components of this Parameters Dialog Box so SOLVER can identify the optimal solution. First, we fill in the Set Objective box by clicking on the cell in our spreadsheet that calculates our objective function. In this case, Cell B10. Next, we use the radio buttons below to identify the type of problem we are solving, a MAX or MIN. Here we want to minimize total cost and select Min.

The Solver Parameters Dialog Box STEP 3: Next, we need to identify the decision variables. SOLVER terms these as variable cells. After clicking into the By Changing Variable Cells box, we can select the decision variable cells in our LP, B3:E3. This tells SOLVER that it can change the number of brownies, scoops of ice cream, sodas, and pieces of cheese cake to reach an optimal solution.

The Solver Parameters Dialog Box STEP 4: We need to add our constraints to SOLVER to ensure our solution does not violate any of them. On the right-hand side of the window, there is a button to Add a constraint. After clicking on this, a box will appear that allows us to add our constraints. We can use the Cell Reference box to input the totals for each constraint that we calculated. Using Calories as an example, we would click on Cell F14, which computed the total calories from all our desserts. There are several options for constraint type: <=, >=, =, int (integer), bin (binary), or dif (all different, e.g., assignment, TSP). After adjusting the constraint type to be greater than or equal to (>=) we can click on the cell referencing the minimum quantity permitted, Cell H14. Instead of a reference, we can also enter a specific number. The complete constraint looks as follows:

The Solver Parameters Dialog Box STEP 4 (cont.): The Add button will allow us to include all the other constraints to SOLVER. When you have constraints structured in the same way (like these are), there is a faster way to add them all to SOLVER. Instead of entering each constraint individually, you can instead add them in one step. In the Cell Reference box and Constraint box, you can also specify an array of cell references. If both the Cell Reference and Constraint are specified using an array of cell references, the length of the arrays must match and Solver treats this constraint as n individual constraints, where n is the length of each array.

The Solver Parameters Dialog Box STEP 4 (cont.): We have now created four Constraints. SOLVER will ensure that the changing cells are chosen so F14>=H14, F15>=H15, F16>=H16, and F17>=H17. In short, the diet will be chosen to ensure that enough calories, chocolate, sugar, and fat are eaten. The Change button allows you to modify a constraint already entered and Delete allows you to delete a previously entered constraint. If you need to add more constraints, choose Add.

The Solver Parameters Dialog Box STEP 5: After adding all our constraints, here is the SOLVER Parameters Dialog Box: Note the checked box titled Make Unconstrained Variables Non-Negative. This allows us to capture non-negativity constraints. Additionally, you should change the Select a Solving Method to SIMPLEX LP when you are solving a linear program. The other options allow for solutions for nonlinear programs. Finally, click Solve for your solution.

After Running The Solver SOLUTION: After you Solve, the Parameters Dialog Box will close and the decision variables will change to the optimal solution. Because we referenced these cells in all our calculations, the objective function and constraints will also change.

Solver Options The Parameters Dialog Box also has a number of options on how to calculate solutions. Constraint Precision is the degree of accuracy of the Solver algorithm (for example, how close does the value of the LHS of a constraint have to be before it is considered equal to the RHS). Max Time allows you to set the number of seconds before Solver will stop. Iterations, similar to Max Time, allows you to specify the maximum number of iterations (steps of the Solver algorithm) before stopping.

Limits of the Solver You may have at most 200 decision variables and 100 constraints!  For any decision variables or constraints above these limits will disable solver! You can download and use OpenSolver (opensolver.org) for large models. It has a very similar structure but more capabilities.

Example Go to the Excel Sheet...