Linear Programming: Using the Excel Solver

Similar documents
Solving Linear Programs using Microsoft EXCEL Solver

USING EXCEL 2010 TO SOLVE LINEAR PROGRAMMING PROBLEMS MTH 125 Chapter 4

Basic Pivot Tables. To begin your pivot table, choose Data, Pivot Table and Pivot Chart Report. 1 of 18

Using EXCEL Solver October, 2000

Solving Linear Programs in Excel

Images of Microsoft Excel dialog boxes Microsoft. All rights reserved. This content is excluded from our Creative Commons license.

MS Excel. Handout: Level 2. elearning Department. Copyright 2016 CMS e-learning Department. All Rights Reserved. Page 1 of 11

Tutorial: Using Excel for Linear Optimization Problems

Instructions for applying data validation(s) to data fields in Microsoft Excel

Linear Programming. Solving LP Models Using MS Excel, 18

Statgraphics Getting started

Calc Guide Chapter 9 Data Analysis

User Guide. Opening secure from the State of Oregon Viewing birth certificate edits reports in MS Excel

Linear Programming Notes VII Sensitivity Analysis

Using Excel to find Perimeter, Area & Volume

Creating a Gradebook in Excel

Excel Spreadsheet Activity Redo #1

Lab 14A: Using Task Manager and Event Viewer

How To Analyze Data In Excel 2003 With A Powerpoint 3.5

Creating a Distribution List from an Excel Spreadsheet

Advanced Excel Charts : Tables : Pivots : Macros

Monthly Payroll to Finance Reconciliation Report: Access and Instructions

Introduction to Microsoft Excel 2010

EXCEL SOLVER TUTORIAL

Airport Planning and Design. Excel Solver

1. Go to your programs menu and click on Microsoft Excel.

Mac Outlook Calendar/Scheduler and Tasks

EXCEL FINANCIAL USES

PA Payroll Exercise for Intermediate Excel

Advanced Excel 10/20/2011 1

CREATING A TABLE IN WORD 2003

Pivot Tables & Pivot Charts

Introduction to Microsoft Project 2010

Excel basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:

Microsoft Excel Introduction to Microsoft Excel 2007

How to Create a Data Table in Excel 2010

Microsoft Access Rollup Procedure for Microsoft Office Click on Blank Database and name it something appropriate.

Preface of Excel Guide

Using Microsoft Excel to Plot and Analyze Kinetic Data

MicroStrategy Desktop

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

Migrating to Excel 2010 from Excel Excel - Microsoft Office 1 of 1

Intro to Excel spreadsheets

Graphing Parabolas With Microsoft Excel

Excel Tutorial. Bio 150B Excel Tutorial 1

DIRECTIONS FOR SETTING UP LABELS FOR MARCO S INSERT STOCK IN WORD PERFECT, MS WORD AND ACCESS

Excel 2007: Basics Learning Guide

Notes on Excel Forecasting Tools. Data Table, Scenario Manager, Goal Seek, & Solver

APPLYING BENFORD'S LAW This PDF contains step-by-step instructions on how to apply Benford's law using Microsoft Excel, which is commonly used by

How Do I Upload Multiple Trucks?

PortfolioCenter Export Wizard in Practice: Evaluating IRA Account Holder Ages and Calculating Required Minimum Distribution (RMD) Amounts

Excel 2007 Basic knowledge

Microsoft Excel Tutorial

Instructions for Using Excel as a Grade Book

Adobe Acrobat X Pro Creating & Working with PDF Documents

Sensitivity Report in Excel

Excel 2003 A Beginners Guide

Step Sheet: Creating a Data Table and Charts

Excel Level Two. Introduction. Contents. Exploring Formulas. Entering Formulas

15.053/8 February 26, 2013

Microsoft Project 2007 Level 1: Creating Project Tasks

Excel 2007 A Beginners Guide

Creating Custom Crystal Reports Tutorial

Activities/ Resources for Outcome #7

Steps to Create a Database

Tutorial: Get Running with Amos Graphics

Tips and Tricks for Printing an Excel Spreadsheet

RIT Installation Instructions

In-Depth Guide Advanced Spreadsheet Techniques

Why Use OneNote? Creating a New Notebook

Microsoft Excel v5.0 Database Functions

EXCEL 2010: PAGE LAYOUT

Using VLOOKUP to Combine Data in Microsoft Excel

Create a New Database in Access 2010

SPSS Workbook 1 Data Entry : Questionnaire Data

Create a Poster Using Publisher

Microsoft Excel 2013 Splitting Windows and Fixing Panes (Level 3)

Using the Advanced Tier Data Collection Tool. A Troubleshooting Guide

Dealing with Data in Excel 2010

Basic Excel Handbook

GeoGebra Statistics and Probability

National RTAP Marketing Transit Toolkit Customizing Templates in Microsoft Publisher

IBM ILOG CPLEX for Microsoft Excel User's Manual

Tutorial: Get Running with Amos Graphics

Calibration and Linear Regression Analysis: A Self-Guided Tutorial

How to make a line graph using Excel 2007

How to Create a Spreadsheet With Updating Stock Prices Version 3, February 2015

In This Issue: Excel Sorting with Text and Numbers

MICROSOFT ACCESS 2007 BOOK 2

Analyzing Data Using Excel

Microsoft Access XP Session 1 Week 8

Sensitivity Analysis with Excel

Creating a Web Site with Publisher 2010

Tracking Changes in Microsoft Word

Excel Reports and Macros

Excel 2003 Tutorial I

Concession FTP User Guide May 2011 Version 1.2

To Begin Customize Office

Revealing the Secrets of Microsoft Project

Word 2007: Basics Learning Guide

Transcription:

Outline: Linear Programming: Using the Excel Solver We will use Microsoft Excel Solver to solve the four LP examples discussed in last class. 1. The Product Mix Example The Outdoor Furniture Corporation manufactures two products: benches and picnic tables for use in yards and parks. The firm has two main resources: its carpenters (labor) and a supply of redwood for use in the furniture. During the next production period, 1200 hours of manpower are available under a union agreement. The firm also has a stock of 5000 pounds of quality redwood. Each bench that Outdoor Furniture produces requires 4 labor hours and 10 pounds of redwood; each picnic table takes 7 labor hours and 35 pounds of redwood. Completed benches yield a profit of $9 each, and tables a profit of $20 each. We formulated the following linear program to solve this problem: Decision Variables: Objective Function: Constraints: We will now solve this LP using the Excel Solver.

1.1 Getting Started To begin using Excel, double-click on the Excel icon. Once Excel has loaded, enter the input data and construct relationships among data elements in a readable, easy to understand way. When building this foundation for your model, think ahead about the optimization model you will be developing. Make sure there is a cell in your spreadsheet for each of the following: the quantity you wish to maximize or minimize every decision variable every quantity that you might want to constrain If you don t have any particular initial values you want to enter for your decision variables, you can start by just entering a value of 0 in each decision variable cell. The cell below Total and the cells below LHS in the spreadsheet are defined by using the SUMPRODUCT function in the manner seen below. If you are not familiar with sumproduct, you can use = B3*B5+C3*C5 instead of sumproduct(b3:c3,b5:c5), and so on. See example below. Both serve the same purpose.

1.2 Constructing an Optimization Model Using Solver Once you are satisfied with the basic spreadsheet model you have built, you are ready to build an optimization model using Solver. To begin using Solver, click on Tools and select Solver. A gray dialogue box will appear. You will build the constrained optimization model using this dialogue box.

1.3 Selecting the Cell to Optimize To select the cell you wish to optimize, look at the Set Cell window within the dialogue box. Erase (or simply drag the cursor over) everything that is in that window. Then, either type the address of the cell you wish to optimize, or click on the cell you wish to optimize. Choose either Max or Min depending on whether the objective is to maximize or minimize the target cell. If you wish to click on the optimization cell but the dialogue box is in the way, you can move the dialogue box by positioning the arrow on the title bar at the top of the box and dragging it out of the way.

1.4 Identifying Decision Variable Cells Move the cursor to the By Changing Cells window within the dialogue box. Again, erase anything that may be there (unless you put it there before and want to keep it). You now must tell Excel which cells are decision variables i.e., which cells Excel is allowed to change when trying to optimize. To do this: type the addresses of every cell you wish to treat as a decision variable, separating them by commas, or drag the cursor across all cells you wish to treat as decision variables. If you wish to use the dragging method, but the decision variables to not all lie in a connected rectangle in the spreadsheet you can drag them in one group at a time: drag the cursor across one group of decision variables, put a comma after that group in the By Changing Cells window, drag the cursor across the next group of decision variables, etc...

1.5 Defining Constraints To begin entering constraints, click on the Add button to the right of the constraints window. A new dialogue box will appear. The cursor will be in the Cell Reference window within this dialogue box. Type the cell address that contains the quantity you want to constrain, or click on the cell that contains the quantity you want to constrain. Again, if the dialogue box is in the way, you can move it by dragging the bar at the top of the box. The default inequality that first appears for a constraint is <=. To change this, click on the arrow beside the <= sign. Select the inequality (or equality) you wish from the list provided. (Notice that you may also force a decision variable to be an integer using this window. I do not recommend that you use this integer feature for this course.) After setting the inequality, move the cursor to the Constraint window. Type the number or the cell reference you want to use as the constraining value for that constraint, or click on the cell you want to use as the constraining value for that constraint. After you are satisfied with that constraint, click the Add button if you want to add another constraint, or click the OK button if you want to go back to the original dialogue box.

1.6 Some Important Tips Do not forget to put in non-negativity constraints for all decision variables!! Solver does not automatically include them. To do this, Click on the Options button in the Solver dialogue box. Check on the Assume Non-Negative box - make sure a check appears in this box. Click the OK button to return to the original dialogue box. If you want to constrain a column (or row) of cells by using another column (or row) of cells as the constraining values, you can input this whole collection of constraints at the same time. When in the Cell Reference window, drag across the column (or row) of cells you want to constrain. Then, in the Constraint window, drag across the column (or row) of cells that you want to use as the constraining values. If, in the process of building you optimization model, you discover that your spreadsheet is missing some pieces (e.g., you want to constrain some quantity, but you did not include a cell for that quantity in your spreadsheet), click on the Close button in the Solver dialogue box. Make the necessary changes in your spreadsheet. Select Solver from the Tools menu to return to Solver. You will not lose any part of your optimization model.

1.7 Solving the Optimization Model Once you are satisfied with the optimization model you have input, click on the Options button in the Solver dialogue box. If you are solving a linear program, Click on the Assume Linear Model box - make sure a check appears in this box. Click on the OK button to return to the original dialogue box. Now, to solve the problem, click on the Solve button. Solver now solves the optimization model.

1.8 What to Do with the Optimal Solution When it is done, you will receive one of four messages: Optimal solution found. This means that Solver has found the optimal solution. Cell values did not converge. This means that the objective function can be improved to infinity. You may have forgotten a constraint or made a mistake in a formula. Solver could not find a feasible solution. This means that Solver could not find a feasible solution to the constraints you entered. You may have made a mistake in typing the constraints or in entering a formula in your spreadsheet. Conditions for Assume Linear Model not satisfied. You may have forgotten to include some non-negativity constraints, or you may have included a formula in your model that is nonlinear. There is also a slim chance that Solver has made an error. (This bug shows up occasionally.) If Solver finds an optimal solution, you have some options. First, you must choose whether you want Solver to keep the optimal values in the spreadsheet (you usually want this one) or go back to the original numbers you typed in. Click the appropriate box to make you selection. You also get to choose what kind of reports you want. Sometimes you want to select Sensitivity Report. Once you have made your selections, click on OK. To view the sensitivity report, click on the Sensitivity Report tab in the lower-left-hand corner of the window.

1.9 Saving and Printing Files To save a file, simply click on File, and select Save As if this is the first time you saved the file, or Save if you have saved it before and you want to save the new version under the same name. Be sure to save your file on the correct disk and the correct directory. For assistance with this, see a consultant. If you created any sensitivity analysis reports, Excel will automatically bundle your spreadsheet with these reports. To print your spreadsheet, simply make sure the spreadsheet is on the screen, then click on File, and select Print. If you want to make changes in the way the file will print (e.g., print is sideways on the page (landscape), etc.), select Page Setup instead. Make the appropriate changes, then select Print. Again, see a consultant if you need additional help. To print your sensitivity report, simply make sure the report is on the screen and repeat the above steps.

2. The Diet Example Solver Solution: Formulas:

3. The Scheduling Example Solver Solution: Formulas:

4. The Transportation Example Solver Solution:

Formulas:

LP Supplement: Sensitivity Analysis What if? Solve the Lego problem using the Solver: Then, choose Sensitivity Analysis Report :

Questions Answered by Excel What is the optimal solution? What is the profit for the optimal solution? If the net profit per table changes, will the solution change? If the net profit per chair changes, will the solution change? If more (or less) large bricks are available, how will this affect profit? If more (or less) small bricks are available, how will this affect profit?

Summary of Output from Excel Solver Adjustable Cells: Final Value Reduced Cost Allowable Increase/ Decrease The value of the variable in the optimal solution. Increase in the objective function value per unit increase in the value of a zero-valued variable (for small increases). Defines the range of the cost coefficients in the objective function for which the current solution (value of the variables in the optimal solution) will not change. Constraints: Final Value Shadow price Constraint R.H. Side Allowable Increase/ Decrease The usage of the resource in the optimal solution. The change in the value of the objective function per unit increase in the right hand side of the constraint: Z = (Shadow Price)( RHS) (Note: only valid if change is within the allowable range for RHS values see below.) The current value of the right hand side of the constraint (the amount of the resource available). Defines the range of values of the RHS for which the shadow price is valid and hence for which the new objective function value can be calculated. (NOT the range for which the current solution will not change.)