Solving Linear Programs in Excel



Similar documents
Solving Linear Programs using Microsoft EXCEL Solver

Tutorial: Using Excel for Linear Optimization Problems

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

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

Linear Programming Refining Transportation

Using EXCEL Solver October, 2000

Airport Planning and Design. Excel Solver

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

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

Call Centre Helper - Forecasting Excel Template

E x c e l : Data Analysis Tools Student Manual

15.053/8 February 26, 2013

SPSS INSTRUCTION CHAPTER 1

Preface of Excel Guide

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

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

Tutorial on Using Excel Solver to Analyze Spin-Lattice Relaxation Time Data

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

Pulling a Random Sample from a MAXQDA Dataset

How To Analyze Data In Excel 2003 With A Powerpoint 3.5

Using Excel s Solver

WHAT S NEW IN MS EXCEL 2013

University of Southern California Marshall Information Services

EXCEL SOLVER TUTORIAL

Excel 2010: Create your first spreadsheet

Linear Programming. Solving LP Models Using MS Excel, 18

Linear Programming Problems

To export data formatted for Avery labels -

Linear Programming Sensitivity Analysis

As in the example above, a Budget created on the computer typically has:

Excel Guide for Finite Mathematics and Applied Calculus

EXCEL FINANCIAL USES

How To Use Excel To Compute Compound Interest

Using the Solver add-in in MS Excel 2007

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

Summary of important mathematical operations and formulas (from first tutorial):

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

Monthly Payroll to Finance Reconciliation Report: Access and Instructions

Excel 2003: Ringtones Task

Assignment objectives:

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

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

Using Microsoft Excel to Analyze Data

Step Sheet: Creating a Data Table and Charts

Using Microsoft Excel to Analyze Data from the Disk Diffusion Assay

Linear Programming Notes VII Sensitivity Analysis

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

By: Peter K. Mulwa MSc (UoN), PGDE (KU), BSc (KU)

Simplex method summary

Tutorial Customer Lifetime Value

Census Data with Tableau Public

Using Formulas, Functions, and Data Analysis Tools Excel 2010 Tutorial

Calc Guide Chapter 9 Data Analysis

To create a histogram, you must organize the data in two columns on the worksheet. These columns must contain the following data:

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

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

Pivot Tables & Pivot Charts

Chapter 2 Solving Linear Programs

EXCEL XML SPREADSHEET TUTORIAL

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

Microsoft Excel - XP Intermediate

Working with Data in Microsoft Excel 2003

Excel Spreadsheet Activity Redo #1

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

Sensitivity Analysis with Excel

Linear Programming. March 14, 2014

Analysis of categorical data: Course quiz instructions for SPSS

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

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

Mail Merge Creating Mailing Labels 3/23/2011

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

Task Force on Technology / EXCEL

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

Getting Started with Access 2007

Microsoft Excel 2013: Using a Data Entry Form

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

Graphing Parabolas With Microsoft Excel

A Guide to Using Excel in Physics Lab

Overview What is a PivotTable? Benefits

GUIDE FOR SORTING RX HISTORY REPORTS IN MICROSOFT EXCEL

EXCEL PREREQUISITES SOLVING TIME VALUE OF MONEY PROBLEMS IN EXCEL

Introduction to Linear Programming (LP) Mathematical Programming (MP) Concept

Using Microsoft Excel to Plot and Analyze Kinetic Data

Special Situations in the Simplex Algorithm

Microsoft Excel 2013 Tutorial

What is Microsoft Excel?

Microsoft Excel Tutorial

Excel Tutorial. Bio 150B Excel Tutorial 1

How to Create a Data Table in Excel 2010

Microsoft Excel. Qi Wei

Zeros of Polynomial Functions

1.1. Simple Regression in Excel (Excel 2010).

Excel 2003 A Beginners Guide

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

Data Analysis. Using Excel. Jeffrey L. Rummel. BBA Seminar. Data in Excel. Excel Calculations of Descriptive Statistics. Single Variable Graphs

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

Step 3: Go to Column C. Use the function AVERAGE to calculate the mean values of n = 5. Column C is the column of the means.

Excel Programming Tutorial 1

To create a dynamic report that will show a history of IRA contributions organized by account -

Transcription:

Notes for AGEC 622 Bruce McCarl Regents Professor of Agricultural Economics Texas A&M University Thanks to Michael Lau for his efforts to prepare the earlier copies of this. 1

http://ageco.tamu.edu/faculty/mccarl/622class/ LP with excel example.xls Before beginning you must have a tableau of the linear programming model you wish to solve. Here we will solve a the model from overhead set 3 which is as follows Maximize Z = 2000 X fancy + 1700 X fine +1200 X new s.t. X fancy + X fine + X new < 12 25 X fancy + 20 X fine + 19 X new < 280 X fancy, X fine, X new > 0 2

Step by step instructions to put LP into Excel 1) Put the problem into Excel. Put the objective function coefficients into a row with at least 2 blank rows above it with the constraint coefficients below. Label the rows down the left hand side in column 1. Leave one blank column after the last variable and label it sum. Then put in the RHS. Put names for each variable above the variables in the row just above the objective function coefficients. Label that row Names of decision variables. The resultant spreadsheet is 3

2) Now label the row just above tableau (I am using rows 10 and on since I have the tableau above in the first few lines ) Variable values to manipulate. Enter 0 values above the variables. These are the cells that Excel will change to find the optimum solution to the problem. 4

3) Now construct Excel cell entries to add up each LP model equations. Place these in the column named Sum. These will involve adding the numbers in each equation times the numbers from the Variable values to manipulate row. Namely with Variable values in row 17 and the objective function in row 19 enter the equation +B19*B$17+C19*C$17 +D19*D$17. This equation adds each term in equation times each variable value. Thus if you have 20 variables you would have 20 terms. Note use of $ against elements from the variables to manipulate row allow this equation to be copied for each constraint. Then copy this formula for each constraint equation. 5

4) Activate the solver. To do this go to Tools in the toolbar and click on Solver. Note If Solver is not there, got to Add-Ins and click on Solver Add-In to install Solver. The following dialogue then appears: 6

5) Define where the objective function is by defining the variable dialogue box called Set Target Cell as the cell number where you added the objective function up. Note in this case I use D$19 which is in the row for the Objective to manipulate and the Sum column. That entry gives the the formula involving the decision variables values in row 17 times the objective function coefficients in row 19 accumulated across all decision variables. 7

6) Choose whether to maximize or minimize using the buttons just below the Set Target Cell box. 7) Identify the decision variables by entering the range in which they fall in the By Changing Cells box 8

8) Enter consideration of the constraint equations into the model by clicking the Add button to the right of the Subject to the Constraints box. You then get the dialogue below Now recognize our first constraint says the sum in cell E20 is less than or equal to the constant in cell F20. Enter this in the dialogue box as follows and click OK Repeat for the other constraint. 9

9) Enter the nonnegativity conditions specifying the range of decision variables are >= 0 as above. 10) Review the problem and when all looks right Solve by clicking the solve button 10

11) Excel will solve LP problem based on the formulas you inputted. When Excel finds an optimal solution, the following appears. 12) Choose desired output reports. Highlight both (hold down the control key) the Answer Report and Sensitivity Report. Click on Keep Solver Solution and OK then the Reports will be generated. You will see that Excel has entered optimal Decision Levels and Total Resource Use in proper cells. And added two new sheets one with the answer and the other for sensitivity. 11

13) Look at the Answer sheet. It contains optimal decision variables ( in the adjustable cells portion under final value) and the optimal objective function( in the target cells portion under final value) 12

14) Look at the sensitivity sheet. It has reduced costs and shadow prices. Reduced cost called reduced gradient Shadow price called Lagrange multiplier Reduced cost is another important LP concept and is an estimate of how much the objective function will change when forcing in one unit of a variable that is non basic (zero) in the optimal solution. 13