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



Similar documents
Tutorial: Using Excel for Linear Optimization Problems

Solving Linear Programs in Excel

Microsoft Excel Introduction to Microsoft Excel 2007

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

The Center for Teaching, Learning, & Technology

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

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

To launch the Microsoft Excel program, locate the Microsoft Excel icon, and double click.

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

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

Microsoft Excel 2013: Using a Data Entry Form

How To Analyze Data In Excel 2003 With A Powerpoint 3.5

Advanced Excel 10/20/2011 1

EXCEL FINANCIAL USES

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.

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

Excel 2007 Basic knowledge

This activity will guide you to create formulas and use some of the built-in math functions in EXCEL.

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

Graphing Parabolas With Microsoft Excel

Solving Linear Programs using Microsoft EXCEL Solver

Excel Math Project for 8th Grade Identifying Patterns

How to Excel with CUFS Part 2 Excel 2010

Using EXCEL Solver October, 2000

Microsoft Excel Tutorial

Table of Contents TASK 1: DATA ANALYSIS TOOLPAK... 2 TASK 2: HISTOGRAMS... 5 TASK 3: ENTER MIDPOINT FORMULAS... 11

Microsoft Excel 2010 Part 3: Advanced Excel

In this example, Mrs. Smith is looking to create graphs that represent the ethnic diversity of the 24 students in her 4 th grade class.

Company Setup 401k Tab

Excel 2007 A Beginners Guide

Using Excel to find Perimeter, Area & Volume

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

What is Microsoft Excel?

Using Microsoft Excel to Plot and Analyze Kinetic Data

Scientific Graphing in Excel 2010

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

Computer Training Centre University College Cork. Excel 2013 Pivot Tables

Microsoft Excel Understanding the Basics

How to make a line graph using Excel 2007

Instructions for Creating an Outlook Distribution List from an Excel File

Chapter 9 Creating Reports in Excel

Creating a Distribution List from an Excel Spreadsheet

Microsoft Excel Tips & Tricks

Microsoft Excel Basics

Microsoft Office Excel 2013

MAIL MERGE TUTORIAL. (For Microsoft Word on PC)

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

WHAT S NEW IN MS EXCEL 2013

Excel 2003 Tutorial I

EXCEL EXERCISE #8: Consolidating and Linking Spreadsheets

PERFORMING REGRESSION ANALYSIS USING MICROSOFT EXCEL

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

Microsoft Excel 2007 Level 2

Linear Programming Refining Transportation

Introduction to Microsoft Excel 2010

EXCEL SOLVER TUTORIAL

MICROSOFT EXCEL Formulas, Functions, & Macros. Documented by Vincent J. Yanusauskas Computer Training Coordinator

Microsoft Office. Mail Merge in Microsoft Word

Creating and Formatting Charts in Microsoft Excel

Sensitivity Report in Excel

Drawing a histogram using Excel

GUIDE FOR SORTING RX HISTORY REPORTS IN MICROSOFT EXCEL

SPREADSHEETS. TIP! Whenever you get some new data, save it under a new name! Then if you mess things up, you can always go back to the original.

Excel 2003 A Beginners Guide

In-Depth Guide Advanced Spreadsheet Techniques

Excel Spreadsheet Activity Redo #1

Monthly Payroll to Finance Reconciliation Report: Access and Instructions

Advanced Excel Charts : Tables : Pivots : Macros

RA MODEL VISUALIZATION WITH MICROSOFT EXCEL 2013 AND GEPHI

Sage Intelligence Report Designer Add-In

Merging Labels, Letters, and Envelopes Word 2013

Produced by Flinders University Centre for Educational ICT. PivotTables Excel 2010

Q&As: Microsoft Excel 2013: Chapter 2

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

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

Mail Merge Creating Mailing Labels 3/23/2011

MICROSOFT WORD: MAIL MERGE

E x c e l : Data Analysis Tools Student Manual

Microsoft Excel 2010 Linking Worksheets and Workbooks

MICROSOFT EXCEL 2010 ANALYZE DATA

Excel 2007: Basics Learning Guide

Using Excel for Analyzing Survey Questionnaires Jennifer Leahy

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

PA Payroll Exercise for Intermediate Excel

Excel -- Creating Charts

Construction Administrators Work Smart with Excel Programming and Functions. OTEC 2014 Session 78 Robert Henry

Basic Excel Handbook

Using an Access Database

BASIC TECHNIQUES IN USING EXCEL TO ANALYZE ASSESSMENT DATA

Excel 2010: Create your first spreadsheet

MICROSOFT OUTLOOK 2011 ORGANIZE MESSAGES

Years after US Student to Teacher Ratio

Graphing in excel on the Mac

Bill Burton Albert Einstein College of Medicine April 28, 2014 EERS: Managing the Tension Between Rigor and Resources 1

Navigating Microsoft Word 2007

ACADEMIC TECHNOLOGY SUPPORT

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

In This Issue: Excel Sorting with Text and Numbers

INTERMEDIATE Excel 2013

Calculating Cash Flow Using Excel Data Lists

Transcription:

ONE-TIME ONLY SET UP INSTRUCTIONS Begin by verifying that the computer you are using has the Solver Add-In enabled. Click on Data in the menu across the top of the window. On the far right side, you should see Solver. If you do not see this, you must install it. Installing the Solver Add-In Click on File in the top left corner of the window. Select Options. In the next window, select Add- Ins from the list on the left side. At the bottom, click on Go. 1

In the Add-Ins window, select "Solver Add-in". Click OK. To check your work, click on Data in the top menu line. You should now see Solver on the right side. Working a Maximization or Minimization Problem Problem: Maximize z = 4x1 5x2 Subject to x 1 4x x 1 4x 1 x 2 2 0, x 9 6 2 0 Microsoft Excel makes it easy to solve a Maximization Problem or Minimization Problem. The following steps are used to solve the above maximization problem. Minimization problems are also done the same way except for some slight differences. Column A is only used for displaying the parts of the problem and labeling the objective function, variables, and constraints. Column B is used to solve the problem, so formulas will only be typed in Column B. 2

1. Open a new Excel Worksheet by clicking the Start button on the task bar, clicking on All Programs, clicking on Microsoft Office, and selecting Microsoft Excel 2010. 2. Click on cell A1 and type the label: Maximization Problem or Minimization Problem depending on the problem you are solving for. (You do not type the quotation marks. The quotation marks indicate exactly what is to be typed.) Press Enter after each entry. Stretch Columns A and B to be wider by putting the curser in between the column headers until the curser changes to + and then dragging the curser to the desired width. 3. Use the down arrow key to move to cell A3 and type the label: Objective Function. 4. Click on cell A4 and type the objective function: z=4x1+5x2 5. Click on cell A6 and type the label: Variables 6. Using the down arrow key, click on cell A7 and type the first variable, x1 7. Using the down arrow key, click on cell A8 and type the second variable, x2. If there are more variables, type each variable on the following rows. 8. Skip a row using the down arrow key and type the label: Constraints 9. Type each constraint inequality in a separate row of Column A. Leave out the basic restrictions of and because these constraints can be set automatically in the Solver process. 3

10. Now you are ready to type the equations in Column B using cell names in the formulas instead of variable names. Click on cell B4 and type the objective function. The objective function z = 4 x1 5x2 should be typed as "= 4 * B7 + 5 * B8" Notice variable x1was replaced with its cell location of B7. Variable x 2 was replaced with its cell location of B8. It does not matter whether you use capital letters or lower case letters in these entries. Repeat for all the variables. After you enter each formula, you will see a zero on your Excel worksheet. For the solver to work, you must use the cell names in Column B instead of the variables. 11. In Column B, use the down arrow to get to the variable rows and type zeros in cells B7 and B8. If you have more variables, continue entering zeros. Below is a screen print with formulas shown. Note: To show formulas, depress ~ and `Ctrl buttons at the same time; to change back, depress ~ and Ctrl buttons again. 12. In Column B use the down arrow to get to the constraints rows. Type the following formulas, replacing the variables with the cell names: In cell B11, constraint x1 + 4 x2 should be typed as " = B7 + 4 * B8" In cell B12, constraint 4 x1 + x2 should be typed as "= 4* B7 + B8" 4

Notice that the values will show as zeros on the worksheet. 13. In Column C, type the augments (constants on the right side of the constraint inequalities) for each of the constraints. In cell C10, type "Augments". In cell C11, type "9". In cell C12, type "6". 5

14. Click in cell B4 (the objective function) before going to the Data menu and selecting Solver. The Data menu should be located on the far right side of the ribbon. The Solver Parameters window will open. Make sure the Set Objective box is set to $B$4 (If not, close the window, click in cell B4, and open the Data Solver option again.) Note: "Objective" refers to the cell location of the objective function formula. On the To: line select Max to find the maximum value or select Min to find the minimum value. Click in the By Changing Variable Cells: box and type variables B7, B8 separated by commas. Note: Do not type the absolute signs (dollar signs) because Excel will add them in for you. If you have more than two variables, make sure you include them in the list. 6

Click in the Subject to the Constraints box and then click the Add button. The Add Constraint window will pop up. Type the first constraint cell location. For example, enter "B11" in the Cell Reference box. Select the appropriate sign from <=, =, or >= as it appears in the linear programming problem by clicking on the down arrow in the middle box. In the Constraint box, enter the first augment cell location of "C11". Click the Add button. Enter the rest of the constraints and augments in the same manner. When completed, click OK. See below. 7

15. In the Solver Parameters window, click on "Make Unconstrained Variables Non-Negative" In the box for Select a Solving Method:, choose "Simplex LP". (In older versions of Excel, you set these selections by choosing Assume Linear Model and Assume Non-Negative in the Options window.) 16. In the Solver Parameters window click the Solve button. 17. A Solver Results window will appear telling you that the solver found a solution. Click beside "Keep Solver Solution". Select Answer and Sensitivity from the Reports box and then click OK. Finally, the Excel worksheet should look like the screen print on the next page. 8

18. A sheet tab labeled Answer Report 1 should now be at the bottom of the screen. Click on it to see the results. 19. If you need to re-run the Solver, type zeros in the cells for the variables. Also, right-click on the tabs displaying the results (Answer Report, Sensitivity Report), and delete each of them. 20. Interpret the results. In this sample problem, the maximum is listed on row 16 under Final Value. It equals 14. The maximum occurs when x1 = 1 and x2 = 2. These answers are shown on row 21 and row 22 under Final Value. 9

10

Sensitivity Analysis Write a summary of the findings from the Sensitivity Report that will answer these questions. 1. What is the range of values that the coefficient of the first variable can have? 2. What is the range of values that the coefficient of the next variable can have? Continue for each variable in the objective function. 3. What is the range of values that constant in each constraint can have? 4. What is the shadow price? Explain what this means in terms of the problem. 5. Is the shadow price binding or non-binding? 11