Solving Linear Programs using Microsoft EXCEL Solver



Similar documents
Solving Linear Programs in Excel

Using EXCEL Solver October, 2000

Tutorial: Using Excel for Linear Optimization Problems

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

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

Linear Programming Refining Transportation

Airport Planning and Design. Excel Solver

Linear Programming. Solving LP Models Using MS Excel, 18

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

Linear Programming Notes VII Sensitivity Analysis

Using the Solver add-in in MS Excel 2007

Excel 2010: Create your first spreadsheet

Sensitivity Analysis with Excel

Optimal Scheduling for Dependent Details Processing Using MS Excel Solver

Using Excel s Solver

Spreadsheets have become the principal software application for teaching decision models in most business

University of Southern California Marshall Information Services

EXCEL SOLVER TUTORIAL

CHAPTER 11: BASIC LINEAR PROGRAMMING CONCEPTS

Linear Programming II: Minimization 2006 Samuel L. Baker Assignment 11 is on page 16.

E x c e l : Data Analysis Tools Student Manual

How To Analyze Data In Excel 2003 With A Powerpoint 3.5

Chapter 6. Linear Programming: The Simplex Method. Introduction to the Big M Method. Section 4 Maximization and Minimization with Problem Constraints

Search help. More on Office.com: images templates. Here are some basic tasks that you can do in Microsoft Excel 2010.

Spreadsheet. Parts of a Spreadsheet. Entry Bar

Excel Modeling Practice. The Svelte Glove Problem Step-by-Step With Instructions

Linear Programming Sensitivity Analysis

Issues in Information Systems Volume 14, Issue 2, pp , 2013

Microsoft Excel - XP Intermediate

Sensitivity Report in Excel

Linear Programming Supplement E

Chapter 6: Sensitivity Analysis

Break-Even and Leverage Analysis

Spreadsheets Hop-around Cards

LINEAR PROGRAMMING WITH THE EXCEL SOLVER

Graphing Parabolas With Microsoft Excel

LECTURE 5: DUALITY AND SENSITIVITY ANALYSIS. 1. Dual linear program 2. Duality theory 3. Sensitivity analysis 4. Dual simplex method

Linear Programming Notes V Problem Transformations

EXCEL 2010: PAGE LAYOUT

15.053/8 February 26, 2013

STC: Descriptive Statistics in Excel Running Descriptive and Correlational Analysis in Excel 2013

To reuse a template that you ve recently used, click Recent Templates, click the template that you want, and then click Create.

Working with Spreadsheets

The University of Wisconsin Milwaukee Business Administration 478-Supply Chain Analytics Midterm 01 Oct. 8 at 9 PM

Excel Templates for Budgets (Man Power) User Guide

Tools for Excel Modeling. Introduction to Excel2007 Data Tables and Data Table Exercises

SPSS INSTRUCTION CHAPTER 1

Using Excel. 4. The Scenario Manager function is used to create and evaluate a collection of what-if scenarios containing multiple input values.

Question 2: How do you solve a matrix equation using the matrix inverse?

Explore commands on the ribbon Each ribbon tab has groups, and each group has a set of related commands.

Preface of Excel Guide

OpenSolver: Open Source Optimisation for Excel

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

Using CPLEX. =5 has objective value 150.

TIPS FOR DOING STATISTICS IN EXCEL

Tips and Tricks for Printing an Excel Spreadsheet

EXCEL Tutorial: How to use EXCEL for Graphs and Calculations.

Microsoft Excel. Charts Charts pictorially represent data. Excel can draw a variety of two-dimensional and three-dimensional charts. Open Excel 2000.

Excel Spreadsheet Activity Redo #1

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

Measuring Evaluation Results with Microsoft Excel

Creating a Gradebook in Excel

MODULE 7: FINANCIAL REPORTING AND ANALYSIS

Calc Guide Chapter 9 Data Analysis

Creating a Participants Mailing and/or Contact List:

Implementing the BG/NBD Model for Customer Base Analysis in Excel

Contract Management Submittal Log Import Importing the Submittal Items From MS Excel

EXCEL EXERCISE #8: Consolidating and Linking Spreadsheets

Using Delphi Data with Excel and Access

Call Centre Helper - Forecasting Excel Template

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

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

ODBC Reference Guide

Getting Started with Access 2007

Using Analysis Tools: Goal Seek, Solver, and Data Tables

Tutorial Bass Forecasting

information available. There is a tremendous amount of sensitivity information, or information

Form 155. Form 162. Form 194. Form 239

Introduction to Data Tables. Data Table Exercises

Situation Analysis. Example! See your Industry Conditions Report for exact information. 1 Perceptual Map

Microsoft Excel Introduction to Microsoft Excel 2007

In-Depth Guide Advanced Spreadsheet Techniques

Creating a Distribution List from an Excel Spreadsheet

Microsoft Excel Tutorial

General User/Technical Guide for Microsoft Access

sensitivity analysis. Using Excel 2.1 MANUAL WHAT-IF ANALYSIS 2.2 THRESHOLD VALUES

Below is a very brief tutorial on the basic capabilities of Excel. Refer to the Excel help files for more information.

Chapter 3 INTEGER PROGRAMMING 3.1 INTRODUCTION. Robert Bosch. Michael Trick

Chapter 9 Creating Reports in Excel

ENGG1811 Computing for Engineers. Data Analysis using Excel (weeks 2 and 3)

PERFORMING REGRESSION ANALYSIS USING MICROSOFT EXCEL

Creating an Excel Database for a Mail Merge on a PC. Excel Spreadsheet Mail Merge. 0 of 8 Mail merge (PC)

Creating Bill of Materials with Winshuttle Transaction

Excel Guide for Finite Mathematics and Applied Calculus

SENDING S WITH MAIL MERGE

Excel Reports and Macros

Spreadsheets and Laboratory Data Analysis: Excel 2003 Version (Excel 2007 is only slightly different)

LBi HR HelpDesk: IMPORTING EMPLOYEE DATA

Transcription:

Solving Linear Programs using Microsoft EXCEL Solver By Andrew J. Mason, University of Auckland To illustrate how we can use Microsoft EXCEL to solve linear programming problems, consider the following production planning problem. Production Planning at Case Chemicals Case Chemicals Company produces two solvents, CS-01 and CS-02, at its Cleveland plant. The plant operates 40 hours per week and employs five full-time and two-part-time workers working 15 hours per week to run their seven blending machines that mix certain chemicals to produce each solvent. This work force provides up to 230 hours of available labor in the Blending Department. The products, once blended, are refined in the Purification Department, which currently has seven purifiers and employs six full-time workers and one part-time worker who puts in 10 hours per week. This work force provides up to 250 hours of available labor in the Purification Department. The hours required in the Blending and Purification Departments to produce one thousand gallons of each of the solvents are listed in the table below: CS-01 CS-02 Blending 2 1 Purification 1 2 Blending and Purification Requirements (hr/1000 gallons) Case Chemicals has a nearly unlimited supply of raw materials to produce the two solvents. It can sell any amount of CS-01, but demand for the more-specialized product CS-02 is limited to at most 120 thousand gallons per week. The accounting Department estimates a profit margin of $0.30 per gallon of CS-01 and $0.50 per gallon of CS-02. Because all employees are salaried and thus paid the same amount regardless of how many hours they work, these salaries and the costs of machines are considered fixed and are not included in the computation of the profit margin. As a Production- Planning Manager, you want to determine the optimal weekly manufacturing plan for Case Chemicals. Let: x 1 be the number of thousands of gallons of CS-01 to produce, and x 2 be the number of thousands of gallons of CS-02 to produce. maximize 300x 1 + 500x 2 subject to 2x 1 + x 2 230, (blending) (1) x 1 + 2x 2 250, (purification) (2) x 2 120, (CS-02 limit) (3) x 1, x 2 0 Using EXCEL Solver page 1

The Case Chemicals problem is entered into an EXCEL spreadsheet in the following format. The Case Chemicals spreadsheet We use cells B2 and C2 to contain the values for the decision variables, x 1 and x 2 respectively. (If you have not used spreadsheets before, cell B2 means the cell in column B, row 2.) The actual formulae used in the cells are shown below. Note that there is a formula in cell D4 which calculates the objective function (in this case, =B4*B2+C4*C2, where * means multiply in EXCEL), and formulae in cells D6 to D8 which calculate the value of each constraint in terms of the decision variables. Observe that the coefficients for the decision variables used in the constraints are located in the cells identified by the formulae in cells D6 to D8 (A-matrix information). You can leave out the $ symbol in these formulae; it is just a shortcut. However, using this shortcut, we can enter =SUMPRODUCT($B$2:$C$2,B6:C6) into cell D6, and then copy and paste this formula into D7 and D8, and the appropriate changes will be made automatically by EXCEL. This can be useful in larger problems. The <=, Max, subject to, and other labels are not necessary and are simply for us... we will tell the Solver most of this information in subsequent windows. Assume that they are only comments in the spreadsheet which help us keep track of the model. 1 2 3 4 5 6 7 8 A B C D E F CS-01 CS-02 0 0 VALUE RHS Max 300 500 =B4*B2+C4*C2 subject to BLENDHRS 2 1 =B6*$B$2+C6*$C$2 ="<=" 230 PURIHRS 1 2 =B7*$B$2+C7*$C$2 ="<=" 250 CS02LIM 0 1 =B8*$B$2+C8*$C$2 ="<=" 120 The Case Chemicals spreadsheet - Formulae view The $ s in the formulae are optional. Once the problem is setup, the Solver... option is chosen from the Tools menu. (Note that this option may need to be installed as an Add-In using the Tools menu, if it was not installed in your original set-up. See your user s manual for instructions on how to do this, or come and see me). The Solver add-in comes up, and we have to tell it about our problem as follows. Using EXCEL Solver page 2

The Solver entry for the Case Chemicals problem In this case, cell D4 is chosen as the target cell for EXCEL to maximize; this is the cell we entered our objective function into. EXCEL will maximize this by adjusting the values in cells B2 and C2, our decision variables. (The : in the $B$2:$C$2 formula actually means the cells going from B2 to C2. In this case, just cells B2 and C2. For a larger problem you could enter $B$2:$F$2 to tell EXCEL that cells B2, C2, D2, E2, and F2 are all decision variables.) The constraints are entered using the Add... button which brings up the Change Constraint window below. The first constraint above (and shown again in the Change Constraint window below) is our non-negativity constraint, in this case saying that the cells B2 and C2 must be positive (i.e., CS-01 0, and CS-02 0). After entering a constraint, you can use the Add button to add another constraint. Note that while both these windows are up you can still click directly onto cells in the spreadsheet as a shortcut to typing in their names. Entering the first constraint for the Case Chemicals problem (Note that if the, =, and constraints are grouped together in the constraint set, then all of the constraints of one type can be input at the same time, as shown in the figure to the right.) A faster way of entering all 3 constraints at one time. Using EXCEL Solver page 3

To ensure EXCEL produces all the output we expect from the LP Solver, you need to turn on the Assume Linear Model under the Options button. (If this is left off, EXCEL uses a more general solution technique that can handle a wide range of problems, but produces less detailed output.) Turn on the Assume Linear Option to get the full LP output Once we click Solve, the Solver finds a solution (if one exists), and shows the window below. From this window we are able to generate different types of reports. We normally want to produce the Answer Report (shown on the next page) and the Sensitivity Report. The Solver solution window. The final solution found by EXCEL is listed on the next page, followed by EXCEL s Answer Report and Sensitivity Report. Note that the Answer Report tells us which constraints are binding and the Sensitivity Report includes the values of the dual variables (shadow prices). Using EXCEL Solver page 4

EXCEL s final optimal solution Microsoft Excel 5.0 Answer Report Target Cell (Max) Cell Name Original Value Final Value $D$4 Max VALUE 66000 66000 Adjustable Cells Cell Name Original Value Final Value $B$2 CS-01 70 70 $C$2 CS-02 90 90 Constraints Cell Name Cell Value Formula Status Slack $D$6 BlendHrs VALUE 230 $D$6<=$F$6 Binding 0 $D$7 PuriHrs VALUE 250 $D$7<=$F$7 Binding 0 $D$8 CS02LIM VALUE 90 $D$8<=$F$8 Not Binding 30 $B$2 CS-01 70 $B$2>=0 Not Binding 70 $C$2 CS-02 90 $C$2>=0 Not Binding 90 Microsoft Excel 5.0 Sensitivity Report Changing Cells Final Reduced Objective Allowable Allowable Cell Name Value Cost Coefficient Increase Decrease $B$2 CS-01 70 0 300 700 50 $C$2 CS-02 90 0 500 100 350 Constraints Final Shadow Constraint Allowable Allowable Cell Name Value Price R.H. Side Increase Decrease $D$6 BlendHrs VALUE 230 33.33333333 230 270 90 $D$7 PuriHrs VALUE 250 233.3333333 250 45 135 $D$8 CS02LIM VALUE 90 0 120 1E+30 30 Using EXCEL Solver page 5

Solving Integer Linear Programs using Microsoft EXCEL Solver In EXCEL, integer programming problems are entered as in the Case Chemicals example for linear programs. The only difference being that an integer constraint must be added for each integer variable. To reduce the time required to solve integer problems, a tolerance can be entered, e.g., 5% within optimal using the Solver options button. Once the problem has been set up, EXCEL proceeds to solve it, producing output similar to that shown earlier for the non-integer examples. (Note: EXCEL uses a branch-and-bound procedure to solve Integer Programs.) Using EXCEL Solver page 6