Let s start by examining an Excel worksheet for the linear programming. Maximize P 70x 120y. subject to

Similar documents
Microsoft Excel Chapter 2. Formulas, Functions, and Formatting

Starting Excel application

MICROSOFT EXCEL TUTORIAL HANDOUT

PHLI Instruction (734) Introduction. Lists.

Microsoft Excel Chapter 1. Creating a Worksheet and an Embedded Chart

Microsoft Excel Basics Ben Johnson

Excel Basics Tips & Techniques

Cell to Cell mouse arrow Type Tab Enter Scroll Bars Page Up Page Down Crtl + Home Crtl + End Value Label Formula Note:

Microsoft Excel Microsoft Excel

WEEK NO. 12 MICROSOFT EXCEL 2007

Introduction to Excel Workshop

2. This is a cell; this cell is designated as A1.

Getting Started with Microsoft Excel 2013

Introduction to Excel Workshop

EXCEL 2007 TIP SHEET. Dialog Box Launcher these allow you to access additional features associated with a specific Group of buttons within a Ribbon.

Introduction to Microsoft Excel

The Ribbon The Ribbon contains multiple tabs, each with several groups of commands. You can add your own tabs that contain your favorite commands.

Pivot Tables, Lookup Tables and Scenarios

Cell Basics. Introduction

4) Study the section of a worksheet in the image below. What is the cell address of the cell containing the word "Qtr3"?

Put the Graphs for Each Health Plan on the Same Graph

Microsoft Excel Chapter 1. Creating a Worksheet and a Chart

Solving linear programming

Beginner s Guide to Microsoft Excel 2002

A cell is highlighted when a thick black border appears around it. Use TAB to move to the next cell to the LEFT. Use SHIFT-TAB to move to the RIGHT.

Excel. Spreadsheet functions

Chapter 4. Microsoft Excel

Technology Assignment: Scatter Plots

Microsoft Excel 2010

To move cells, the pointer should be a north-south-eastwest facing arrow

Select the Points You ll Use. Tech Assignment: Find a Quadratic Function for College Costs

Using Excel for a Gradebook: Advanced Gradebook Formulas

Tips for working efficiently with Excel's fill handle

Microsoft Excel 2007 Level 1

Contents. Group 2 Excel Handouts 2010

Candy is Dandy Project (Project #12)

Making and Editing a Table in Microsoft Word 2007

1) Merge the cells that contain the title and center the title

Functions in Excel. Structure of a function: Basic Mathematical Functions. Arithmetic operators: Comparison Operators:

Excel Main Screen. Fundamental Concepts. General Keyboard Shortcuts Open a workbook Create New Save Preview and Print Close a Workbook

Excel Format cells Number Percentage (.20 not 20) Special (Zip, Phone) Font

3/31/2016. Spreadsheets. Spreadsheets. Spreadsheets and Data Management. Unit 3. Can be used to automatically

SPREADSHEET (Excel 2007)

Status Bar: Right click on the Status Bar to add or remove features.

Step 3: Type the data in to the cell

Introduction to Microsoft Excel 2010

Introduction to Microsoft Excel 2010

Open Excel by following the directions listed below: Click on Start, select Programs, and the click on Microsoft Excel.

The toolbars at the top are the standard toolbar and the formatting toolbar.

Introduction to Microsoft Excel

4. In the Change Chart Type dialog box, click the type of chart to which you want to change. 5. Click the chart style. 6. Click OK.

Unit 12. Electronic Spreadsheets - Microsoft Excel. Desired Outcomes

Section 5: Editing Cells

Math 1525 Excel Lab 1 Introduction to Excel Spring, 2001

MICROSOFT EXCEL BIS 202. Lesson 1. Prepared By: Amna Alshurooqi Hajar Alshurooqi

Dale s Freight Fuel Report Assignment. Objectives By the end of this lesson, you will be able to:

PA Payroll Exercise for Intermediate Excel

SBCUSD IT Training Program. MS Excel ll. Fill Downs, Sorting, Functions, and More

Moving and copying data

Excel Basic: Create Formulas

addition + =5+C2 adds 5 to the value in cell C2 multiplication * =F6*0.12 multiplies the value in cell F6 by 0.12

Intermediate Excel 2016

Working with Census Data Excel 2013

Make a Mad-Libs activity using an Excel Workbook

INTRODUCTION... 1 UNDERSTANDING CELLS... 2 CELL CONTENT... 4

for secondary school teachers & administrators

Microsoft Excel 2007 Beginning The information below is devoted to Microsoft Excel and the basics of the program.

Office 2016 Excel Basics 01 Video/Class Project #13 Excel Basics 1: Excel Grid, Formatting, Formulas, Cell References, Page Setup (O16-13)

ADD AND NAME WORKSHEETS

Excel 2010-Part. Two

A B C D E F G H I J K L M 1 Student Test 1 Test 2 Test 3 Test 4 Total AVG. Joe Smith

GCSE CCEA GCSE EXCEL 2010 USER GUIDE. Business and Communication Systems

download instant at

2. Key the titles in cells A1 to D1, adjust to size 12, click on the bold button, and format with an underline.

SUM - This says to add together cells F28 through F35. Notice that it will show your result is

Budget Exercise for Intermediate Excel

Microsoft Excel 2013: Excel Basics June 2014

Microsoft Excel Level 1

The HOME Tab: Cut Copy Vertical Alignments

Microsoft Excel 2007 Lesson 7: Charts and Comments

Create formulas in Excel

Using Formulas and Functions

THE AMERICAN LAW INSTITUTE Continuing Legal Education

Entering Data in the Spreadsheet

The Basics of PowerPoint

Information System Services

Lab 5 Excel Spreadsheet Introduction

EXCEL 2010 TIPS & TRICKS

Intermediate Microsoft Excel 2008

Creating a Histogram Creating a Histogram

Excel Formulas & Functions I CS101

1. Right-click the worksheet tab you want to rename. The worksheet menu appears. 2. Select Rename.

Excel & Business Math Video/Class Project #39 Create Invoices in Excel with Data Validation Drop-down, VLOOKUP & IF Functions

Kenora Public Library. Computer Training. Introduction to Excel

Creating Automated Dashboard Excel 2013 Contents

Formulas Learn how to use Excel to do the math for you by typing formulas into cells.

Watch the video below to learn more about the basics of working with cells. *Video removed from printing pages. Understanding cells

Launch old style dialogue boxes from the dialogue box launchers at the bottom of the ribbon.

EXCEL SPREADSHEET TUTORIAL

EXCEL TUTORIAL.

Transcription:

Excel is a useful tool for solving linear programming problems. In this question we ll solve and analyze our manufacturing problem with Excel. Although this problem can easily be solved graphically or with the Simplex Method, we demonstrate how to use Excel so that you are able to tackle problems where the graphical method or Simplex Method are impossible or not practical. Let s start by examining an Excel worksheet for the linear programming Maximize P 70x 120y subject to x y 35 x 3y 75 2x y 60 x 0, y 0 This worksheet is what we wish to produce for the linear programming problem from Example 1. The worksheet utilizes Excel s Solver Add-In to find the solution to the linear programming problem. Before we can create this worksheet, the Solver Add-In must be installed within Excel. Once that is done, we can construct the worksheet shown above. The instructions shown below demonstrate how to load the Solver Add-In for Excel 2007. Other versions of Excel may have a different sequence of steps. For help with

loading the Solver Add-In in those versions, try searching in Excel s Help Utility with the term solver. 1. To load the Solver Add-In, click on the Office button in the upper left corner of Excel. Select Excel Options at the bottom of the menu that appears. This will open the Excel options box. 2. From the left side select Add-Ins. 2 3 4 3. If you see the Solver Add-In listed, click on OK at the bottom of the box and skip to step 6. In this case the Solver Add-In is already loaded. 4. To add the Solver Add-In, click in the Manage area and select Excel Add-ins. Press Go. 5. In the Add-Ins box that appears, click in the box next to Solver Add-in to put a check in the box. Click OK. The Solver Add In is now ready to use.

5 6. Now we can begin to make the worksheet that we ll use to solve the linear programming problem. Enter the text show below in the individual cells. 6 You will need to resize some of the columns. To do this, move the cursor to the top of the column you want to resize. Position the cursor over the border between the columns.

The cursor will change to a double headed arrow. If you hold down the left mouse button, you can move the cursor to resize the column like the columns above. 7. Enter the coefficients of the objective function on the line labeled Profit. 8. Enter the coefficients of the constraints in the lines labeled Capacity Constraint, Cutting Constraint, and Assembly and Finishing Constraint. 9. Enter the right hand sides for each constraint in the appropriate row in the column labeled RHS. 7 8 9 10. In the row labeled Solution Values, enter an initial guess for the solution. These values can be just about any non-negative number. In this worksheet we use the values xy, 0,0 for simplicity. The cells you place the guesses in, B9 and C9, are called the changing cells. These values are used to evaluate the objective function and left hand side of the constraints. 11. Place the appropriate inequalities in each constraint s row.

10 11 12. In cell D4 we want to calculate the value of the objective at the solution values in cells B9 and C9. This cell is called the target cell. Click your mouse in the target cell. 12 In the formula area, type =SUMPRODUCT($B$9:$C$9,B4:C4). Press Enter on the keyboard. The SUMPRODUCT function multiplies corresponding cells and adds the results. In this case, the solution values in B9 and C9 are multiplied times the objective function coefficients in B4 and C4. The sum of these products is placed in the target cell. 13. The dollars signs used in step 13 are called absolute references. Absolute references are useful when fills are used to create entries in cells. Click on cell D4 again. Notice the darker box in the lower right hand corner of the cell. This

box is called the fill handle. Move your cursor over this box and you ll see that it changes to a black cross (see a below). Left mouse click and hold the mouse button down while dragging the cursor to cell D7 (see b below). Release the mouse button (see c below). a b c This fills the cells D5 through D7 with entries based on the formula in D4. If we click on cells D4 through D7 and examine the formula bar, we see a pattern. Cell D4: Cell D5: Cell D6: Cell D7: In each of the cells, one factor in the product always comes from the solution values in cells B9 and C9. The other factor in the product comes from the cells in the B and C column on the same line. Cells that are fixed in a certain location are called absolute references and utilize the dollar sign. Cells that are located with respect to another cell are called relative references. When cells are entered using a fill, relative references are filled with values according to their location. For this worksheet, the second part of each product

comes from the cells immediately to the left and on the same row. The other part of the product is fixed by absolute references in B9 and C9. 14. Now we ll utilize a fill to put the entries under the Slack label. The slack is the difference between the right hand side and the left hand side of a constraint. Left mouse click on cell G5. In the formula bar, type =F5-D5. 14 15. Press Enter to calculate the slack for the capacity constraint. This value is the difference between the left hand side and the right hand side of the capacity constraint. 16. Left mouse click in cell G5 again. Use the fill handle to fill the cells in G6 and G7. 16

17. To test whether the cell entries are correct, let s try some different values in the changing cells B9 and C9. Change both of these values to 1 and observe the values in the target cell D4, the left hand side values of the constraints in cells D5 through D7, and slack in G5 through G7. The values in those cells should match those shown below. 17 If any of the cells do not show the correct values, examine the contents of that cell and make changes to correct the entry or formula in the cell. Once the worksheet is calculating the proper values when the changing cells are varied, we can use the Solver Add-In to solve the linear programming problem. 18. Click on the Data tab along the top of the Excel window. 19. In the Analysis panel, click in the Solver button. 18 19 The Solver Tool will open.

20. Before we can enter any values into the Solver Parameters box, we need to set some options. Click on the Options button. 20 Use the cursor to check the boxes, Assume Linear Model and Assume Non- Negative. Click OK to return to the Solver Parameters box. 21. Make sure the cursor is positioned in the box next to the Set Target Cell:. Now click your mouse in cell D4. The absolute reference $D$4 will be placed in the box. This cell contains the value of the objective function evaluated at the

solution values. Make sure Max is checked since we are maximizing the objective function. 21 22. Position the cursor in the box below By Changing Cells:. Click and hold the left mouse button in cell B9. Drag the cursor to cell C9. This selects the two cells containing the guess for the solution values. The absolute references for the cells are placed into the Changing Cells box.

22 23. To enter the constraints into the Solver, click on the Add button under the Subject to the Constraints heading. The Add Constraint box will open and allow you to enter the left hand side, inequality, and right hand of the first constraint. 24. Position the cursor in the box under Cell Reference. Click on the cell containing the left hand side of the capacity constraint, D5. Next position the cursor in the box under Constraints. Click on the cell containing the right hand side of the capacity constraint, F5.

Click the Add button. 25. Repeat step 24 for the other two constraints and the corresponding cells for the left and right hand sides. It is not necessary to enter the nonnegativity constraints. Once the constraints have been entered, click on the OK button in the Add Constraints box. You ll return to the Solve Parameters box seen below. At this point the linear programming problem has been entered into the Solver, and we are ready for Excel to solve it.

26. Click on the Solve button. The values in the cell are changed to correspond to the solution of the linear programming problem. According to Excel, the solution is xy, 15,20. Notice that in the first two constraints, the left and right hand sides appear to be equal. But the slack is not equal to zero as it should. This is a rounding issue due to the nature of the algorithm used to solve the problem and is nothing to be concerned about. If we were to start with a different initial guess like 0,0, the slack for each of the first two constraints would be 0. 27. Highlight the Answer and Sensitivity Reports, and click on the OK button. Two new sheets will be created in your Excel workspace, Answer Report, and Sensitivity Report. You can click on the tab for either of these reports at the bottom of the Excel window to view them.