A Production Problem

Similar documents
DIS 300. Quantitative Analysis in Operations Management. Instructions for DIS 300-Transportation

Getting Started with OptQuest

Excel Solver Tutorial: Wilmington Wood Products (Originally developed by Barry Wray)

Modeling Linear Programming Problem Using Microsoft Excel Solver

Use an Excel spreadsheet to solve optimization problems

TRANSPORTATION PROBLEM AND VARIANTS

MGSC 1205 Quantitative Methods I

ENGG1811: Data Analysis using Excel 1

The Basics and Sorting in Excel

Linear Programming and Applications

If you want to flag a question for later review, select the "Mark for review" button.

TRIAGE: PRIORITIZING SPECIES AND HABITATS

Wk# Linear Programming

Algebra II: Strand 2. Linear Functions; Topic 4. Applications of Linear Programming; Task 2.4.1

Introduction to Spreadsheet Models for Optimization

Using NPA Works. Prepared by Matthew Chance Applied Behavioral Learning Services Page 1! of 17!

Module 5 Timesheet. Step by Step Guide PSA Suite Basic for CRM Timesheet calendar view 5.2 Timer 5.3 Timesheet by line

Tutorial Segmentation and Classification

Purchase Order, Requisitions, Inventory Hands On. Workshop: Purchase Order, Requisitions, Inventory Hands On

Chapter 3 Formulation of LP Models

Table of Contents. Login Screen Introduction...2 Login Screen Navigation...2 Passwords Requirements...3 Logging Into People First...

George Washington University Workforce Timekeeper 6.0 Upgrade Training

ClubSelect Accounts Receivable Special Charges Overview

Roadway ExpressWORKS to WorldShip Commodity Transfer

TIM MANUAL FOR TIM MANAGERS AND TIM ADMINISTRATORS

Manager Dashboard User Manual

The Transportation and Assignment Problems. Chapter 9: Hillier and Lieberman Chapter 7: Decision Tools for Agribusiness Dr. Hurley s AGB 328 Course

Digital Production Control - Timekeeping

Excel Chapter 3 What-If Analysis, Charting and Large Worksheets

Getting Started Tutorial

have provided direction in the notes section to view specific items on the slide while reading through the speaker notes. We will reference specific

Ch.01 Introduction to Modeling. Management Science / Instructor: Bonghyun Ahn

TIM EMPLOYEE MANUAL SET TO MANUAL TIME ENTRY <SHR SHRA NON-EXEMPT EMPLOYEES A NON-EXEMPT EMPLOYEES SET TO MANUAL TIME ENTRY>

Creating walls with multiple materials in depth and height (stacked walls)

How do I Reconcile MCPS Invoices?

IT portfolio management template User guide

Daily Operations Guide

ESS - Payroll Direct Deposit/Bank Information

Or, from the View and Manage RFx(s) page, click the Create RFx button. Create New RFx - Use this button to create an RFQ from scratch.

AutoClerk User Guide. Tape Chart, Marketing, Yield Management

Price Setup Wizard: How to Make Global Updates to the Pricebook

Evolution Payroll. User Guide (Basic Version) 2017 Payroll Solutions, Inc &

INSTRUCTION GUIDE FOR RMTS CALENDARS AND WORK SCHEDULES for the Commonwealth of Massachusetts. School-Based Medicaid Program

Optimization Tool for Risk

The Transportation and Assignment Problems. Hillier &Lieberman Chapter 8

Creating Attendance Incident Detail Report

MANUAL MY.DHLPARCEL.NL

Automatic Trade Selection by Ed Downs

Lead Coach/Mentor 1 or 2 EVENT PREFERENCE SYSTEM USER GUIDE. Updated 9/25/17

There are several other pages on this site where simulation models are described. Simulation of Random Variables Simulation of Discrete Time Markov

MS Project 2007 Overview Table of Contents

Munis (v 10.5) Dashboard (v 6.1)

Alternative Methods for Business Process Planning

Operation and supply chain management Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology Madras

MED SUPPLY ONLINE WAREHOUSE SIX-YEAR FINANCIAL PROJECTION

ISE 204 OR II. Chapter 8 The Transportation and Assignment Problems. Asst. Prof. Dr. Deniz TÜRSEL ELİİYİ

Sage (UK) Limited Copyright Statement

RiskyProject Professional 7

Inventory Replenishment

Pivot Table Tutorial Using Ontario s Public Sector Salary Disclosure Data

Online Performance Reviews with PeopleAdmin

SBW For Windows TM. Version Advanced Quoter Guide Module 7.2: Pricing

OPERATIONS RESEARCH Code: MB0048. Section-A

Homework 1: Basic modeling, analysis and spreadsheet engineering

RECORDING TIME AND MANAGING ATTENDANCE

TECHNICAL REPORT STANDARD PAGE

The Efficient Allocation of Individuals to Positions

Short-Run Manufacturing Problems at DEC 2. In the fourth quarter of 1989, the corporate demand/supply group of Digital

Manager s Guide. Assigning courses and executing activity reports

Transportation Cost Optimization

Estimating the Elasticity of the Demand for Gasoline

USERS' GUIDE PROCUREMENT AND DELIVERY. Nosyko AS. Version Version 1.5

BEGINNING EXCEL PRACTICE ACTIVITIES WEEK 3. Week 3 Inventory

Getting started FAQs. Where can I find access to a Datastream terminal? Access from all computers at BI. Select Datastream from Start - All Programs.

Scheduler Book Mode User Guide Version 4.81

The OTC Emission Reduction Workbook 2.1: Description and User s Manual

Purchase Requisitions and Receiving

Services Delivery Reporting

Microsoft Office Project 2010 Basic Course 01: Getting Started

Importing Part Information in Sage BusinessWorks 2013

Product: ODTView. Subject: Basic Overview of Delivery and Orders Tab. Version: December 6, Distribution: Customer

Load Xpert - Load Planning

KRONOS EMPLOYEE TRAINING GUIDE

Computer Proficiency Exam

ADVANCED COMPUTER TECHNOLOGY Excel 2013 Unit Practice Production Test

3 Ways to Improve Your Targeted Marketing with Analytics

EMPCENTER 9.6 USER GUIDE

Techniques of Operations Research

ASTEROID. Media Analysis Module. ASTEROID Support: Telephone

Scheduling Interviews

Calculating a Consensus of Opinion

Chapter 5 Notes Page 1

University of North Carolina at Chapel Hill. University of North Carolina. Time Information Management (TIM) EPA Exempt Employees

INTRO TO WORK PLANNING IN MIRADI 4.4

Salary Planning Procedures User Guide

CHAPTER 8 T Tests. A number of t tests are available, including: The One-Sample T Test The Paired-Samples Test The Independent-Samples T Test

LifeCycle User Guide <Virtual Environment> 6.0

accessns Intermodal Customer Assistance Guide

STAFF TIMESHEET INSTRUCTIONS

Decision Support and Business Intelligence Systems

Transcription:

Session #2 Page 1 A Production Problem Weekly supply of raw materials: Large Bricks Small Bricks Products: Table Profit = $20/Table Chair Profit = $15/Chair

Session #2 Page 2 Linear Programming Linear programming uses a mathematical model to find the best allocation of scarce resources to various activities so as to maximize profit or minimize cost.

Session #2 Page 3 Developing a Spreadsheet Model (Data Cells and Changing Cells) Enter all of the data for the problem on the spreadsheet in a readable, easy to understand way. In this case, this consists of the profit data, the bill of materials, and the available raw materials. In a real-world problem, this data may already exist on a spreadsheet. It is a good idea to color-code all of these data cells (e.g., shade them blue), as these data are subject to change in a dynamic environment. Color-coding allows you to quickly see what data were used to find a solution, and change these later if necessary. 3 4 5 7 B C D E F G Tables Chairs Profit $20.00 $15.00 Bill of Materials Available Large Bricks 2 1 Small Bricks 2 2 Next, add a cell in the spreadsheet for every decision that needs to be made in this case, the production quantities. These decision variables are referred to as changing cells, since these are the cells that change when making a decision. Again, it is a good idea to color code these changing cells (e.g., shade them yellow). If you don t have any particular initial values you want to enter for the changing cells, you can start by just entering a value of 0 in each cell. 3 4 5 7 9 10 11 B C D E F G Tables Chairs Profit $20.00 $15.00 Bill of Materials Available Large Bricks 2 1 Small Bricks 2 2 Tables Chairs Production Quantity 0 0

Session #2 Page 4 Developing a Spreadsheet Model (Target Cell) Next, develop an equation which defines the objective of the model i.e., the quantity that you want to maximize or minimize. Typically this equation involves both the data cells and the changing cells, in order to determine the quantity of interest (e.g., total profit or total cost). This cell is called the target cell. Again it is a good idea to color code this cell (e.g., shade it orange). 3 4 5 7 9 10 11 B C D E F G Tables Chairs Profit $20.00 $15.00 Bill of Materials Available Large Bricks 2 1 Small Bricks 2 2 Tables Chairs Total Profit Production Quantity 0 0 $0.00 The equation in the target cell (G11) is as follows: 10 11 G Total Profit =SUMPRODUCT(C4:D4,C11:D11) SUMPRODUCT sums the products of individual cells in two ranges. For example, SUMPRODUCT(C4:D4, C11:D11) sums the products C4*C11 plus D4*D11. The two specified ranges must be the same shape (same number of rows and columns). For linear programming you should try to always use the SUMPRODUCT function (or SUM) for the objective function, as this helps guarantee that the equation will be linear.

Session #2 Page 5 Developing a Spreadsheet Model (Constraints) Finally, any constraints of the model need to be added to the spreadsheet. A constraint is of the form (Quantity A Quantity B). Also acceptable are = or type constraints. In this case, we must assure that the (total number of each type of brick used) (bricks available). Both sides of the constraint should be included on the spreadsheet. The number of available bricks is already included on the spreadsheet (G7 and G), but we must calculate the number of bricks used (a function of the changing cells and bill of materials). The resulting spreadsheet model is as follows. The changing cells (Production Quantity) were changed to 1 to check the equations. 3 4 5 7 9 10 11 B C D E F G Tables Chairs Profit $20.00 $15.00 Bill of Materials Total Used Available Large Bricks 2 1 3 <= Small Bricks 2 2 4 <= Tables Chairs Total Profit Production Quantity 1 1 $35.00 The equations used for column E are shown below. 7 E Total Used =SUMPRODUCT(C7:D7,$C$11:$D$11) =SUMPRODUCT(C:D,$C$11:$D$11) Absolute addressing (with a $ sign in front of the letter and number) is used for the production quantities. This way, the formula in cell E7 can be easily copied to cell E. The cell addresses referring to the bill of materials (C7:D7) use relative addressing (without dollar signs) and so will adjust for the new row (C:D) when copied to cell E, continuing to refer to the cells at the same relative position (the two cells immediately to the left). The cell addresses referring to the production quantities ($C$11:$D$11) continue to refer to the same row when copied to cell E. The <= entered in column F are entered to remind us that we want the cells in E7:E to be less than or equal to the cells in G7:G. Before calling on the Solver to find the optimal solution to the model, 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 (include both sides of each constraint)

Session #2 Page Defining the Target Cell Choose the Solver from the Tools menu. If it is not available, you may need to go back to the install CD and be sure that the Solver add-in is installed (it is not installed in the typical install option for Excel). To select the cell you wish to optimize, select the Set Target Cell window within the Solver dialogue box, and then either click on the cell you wish to optimize, or type the address of the cell you wish to optimize. Choose either Max or Min depending on whether the objective is to maximize or minimize the target cell. 3 4 5 7 9 10 11 B C D E F G Tables Chairs Profit $20.00 $15.00 Bill of Materials Total Used Available Large Bricks 2 1 3 <= Small Bricks 2 2 4 <= Tables Chairs Total Profit Production Quantity 1 1 $35.00 Note: The target cell must be a single cell (there can only be one objective) The target cell should contain an equation that defines the objective and depends on the decision variables

Session #2 Page 7 Identifying the Changing Cells You next tell Excel which cells are decision variables i.e., which cells Excel is allowed to change when trying to optimize. Move the cursor to the By Changing Cells window, and either drag the cursor across all cells you wish to treat as decision variables, or type the addresses of every cell you wish to treat as a decision variable, separating them by commas. 3 4 5 7 9 10 11 B C D E F G Tables Chairs Profit $20.00 $15.00 Bill of Materials Total Used Available Large Bricks 2 1 3 <= Small Bricks 2 2 4 <= Tables Chairs Total Profit Production Quantity 1 1 $35.00 If you wish to use the dragging method, but the decision variables do 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...

Session #2 Page Adding 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. click on the cell that contains the quantity you want to constrain, or type the cell address that contains the quantity you want to constrain. 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 or binary (i.e., either 0 or 1) using this window. We will use this feature later in the course. After setting the inequality, move the cursor to the Constraint window. click on the cell you want to use as the constraining value for that constraint, or type the number or the cell reference you want to use as the constraining value for that constraint, or type a number that you want to use as the constraining value. 3 4 5 7 9 10 11 B C D E F G Tables Chairs Profit $20.00 $15.00 Bill of Materials Total Used Available Large Bricks 2 1 3 <= Small Bricks 2 2 4 <= Tables Chairs Total Profit Production Quantity 1 1 $35.00 You may define a set of like constraints (e.g., all <= constraints, or all >= constraints) in one step if they are in adjacent rows (as was done here). Simply select the range of cells for the set of constraints in both the Cell Reference and Constraint window. After you are satisfied with the constraint(s), 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.

Session #2 Page 9 Some Important Options The Solver dialogue box now contains the optimization model, including the target cell (objective function), changing cells (decision variables), and constraints. Once you are satisfied with the optimization model you have input, there is one more very important step. Click on the Options button in the Solver dialogue box, and click in both the Assume Linear Model and the Assume Non-Negative box. The Assume Linear Model option tells the Excel Solver that it is a linear program that is being solved. This speeds the solution process, makes it more accurate, and enables the more informative sensitivity report. The Assume Non-Negative box adds non-negativity constraints to all of the decision variables.

Session #2 Page 10 The Solution After setting up the model, and selecting the appropriate options, it is time to click Solve. When it is done, you will receive one of four messages: Solver found a solution. All constraints and optimality conditions are satisfied. 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 (perhaps the non-negativity constraints) 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. There is also a small chance that Solver has made an error. (This bug shows up occasionally try immediately solving again and it will sometimes find a solution the second time. If it does not, chance are the model is not feasible.) Conditions for Assume Linear Model not satisfied. You may have included a formula in your model that is nonlinear. Be sure that your objective function and constraints only include SUM or SUMPRODUCT functions, and don t multiply or divide changing cells together. There is also a small chance that Solver has made an error. (This bug shows up occasionally try immediately solving again and it will sometimes now solve. If it does not, chance are the model is truly not linear.) 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. For our class, you will often 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. 3 4 5 7 9 10 11 B C D E F G Tables Chairs Profit $20.00 $15.00 Bill of Materials Total Used Available Large Bricks 2 1 <= Small Bricks 2 2 <= Tables Chairs Total Profit Production Quantity 2 2 $70.00

Session #2 Page 11 Four Assumptions of Linear Programming Linearity Divisibility Certainty Nonnegativity

Session #2 Page 12 Why Use Linear Programming? Linear programs are easy (efficient) to solve The best (optimal) solution is guaranteed to be found (if it exists) Useful sensitivity analysis information is generated Many problems are essentially linear

Session #2 Page 13 Graphical Solution of Linear Programs Maximize Z = ($15)C + ($20)T subject to Large Bricks: C + 2T Small Bricks: 2C + 2T and C 0, T 0.

Session #2 Page 14 Properties of Linear Programming Solutions 1. An optimal solution must lie on the boundary of the feasible region. 2. There are exactly four possible outcomes of linear programming: a. A unique optimal solution is found. b. An infinite number of optimal solutions exist. c. No feasible solutions exist. d. The objective function is unbounded (there is no optimal solution). 3. If an LP has one optimal solution, it must be at a corner point. 4. If an LP has many optimal solutions, at least two of these optimal solutions are at corner points.

Session #2 Page 15 Example with Multiple Optimal Solutions Maximize Z = ($15)C + ($30)T subject to Large Bricks: C + 2T Small Bricks: 2C + 2T and C 0, T 0.

Session #2 Page 1 Example with No Feasible Solution Maximize Z = ($15)C + ($30)T subject to Large Bricks: C + 2T Small Bricks: 2C + 2T Contract: T 4 and C 0, T 0.

Session #2 Page 17

Session #2 Page 1 Example with Unbounded Solution Maximize Z = 5x 1 + 12x 2 subject to (1) x 1! 5 (2) 2x 1 " x 2! 2 and x 1 # 0, x 2 # 0. x 2 (1) (2) 4 2 Z = 5x 1 + 12x 2 = 0 2 4 10 12 x 1

Session #2 Page 19 The Simplex Method The simplex method algorithm: Start at a feasible corner point (often the origin). Check if adjacent corner points improve the objective function: If so, move to adjacent corner and repeat step 2. If not, current corner point is optimal. Stop.