Spreadsheet Modeling & Decision Analysis:

Slides:



Advertisements
Similar presentations
Outline LP formulation of minimal cost flow problem
Advertisements

1 Lecture 2 Shortest-Path Problems Assignment Problems Transportation Problems.
Network Flows. 2 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Table of Contents Chapter 6 (Network Optimization Problems) Minimum-Cost.
1 1 Slides by John Loucks St. Edward’s University Modifications by A. Asef-Vaziri.
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Transportation, Assignment, and Transshipment Problems
Chapter 11 To accompany Quantitative Analysis for Management, Eleventh Edition, Global Edition by Render, Stair, and Hanna Power Point slides created by.
1 Network Models Chapter Introduction A network problem is one that can be represented by... Nodes Arcs Function on Arcs.
1Transportation ModelsLesson 4 LECTURE FOUR Transportation Models.
Spreadsheet Modeling & Decision Analysis A Practical Introduction to Management Science 5 th edition Cliff T. Ragsdale.
Chapter 5: Transportation, Assignment and Network Models © 2007 Pearson Education.
1 1 Slide © 2006 Thomson South-Western. All Rights Reserved. Slides prepared by JOHN LOUCKS St. Edward’s University.
1 Spreadsheet Modeling & Decision Analysis: A Practical Introduction to Management Science 3d edition by Cliff Ragsdale.
Transportation, Assignment, Network Models
Introduction to Management Science
BUS 304 OPERATIONS RESEARCH
Transportation Model (Powerco) Send electric power from power plants to cities where power is needed at minimum cost Transportation between supply and.
Max-flow/min-cut theorem Theorem: For each network with one source and one sink, the maximum flow from the source to the destination is equal to the minimal.
Computational Methods for Management and Economics Carla Gomes Module 9d Network Models Maximum Flow Problem (Slides adapted from J.Orlin’s and Hillier’s)
Table 1. Shipping costs, Supply, and Demand for Powerco Example
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Operations Research Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD4207 University of Palestine.
Network Optimization Models
Chapter 5 Network Models. Thomson/South-Western 2007 © South-Western/Cengage Learning © 2012 Practical Management Science, 4e Winston/Albright Introduction.
Network Models (2) Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology Tran Van Hoai.
Introduction to Operations Research
Network Models Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology Tran Van Hoai.
The Supply Chain Customer Supplier Manufacturer Distributor
Spreadsheet Modeling & Decision Analysis A Practical Introduction to Management Science 6 th edition Cliff T. Ragsdale © 2011 Cengage Learning. All Rights.
1 1 Slide Transportation, Assignment, and Transshipment Professor Ahmadi.
Spreadsheet Modeling & Decision Analysis:
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
1 Minimum Cost Flows Goal: Minimize costs to meet all demands in a network subject to capacities (combines elements of both shortest path and max flow.
Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. 6-1 Integer Linear Programming Chapter 6.
Minimum Cost Flows. 2 The Minimum Cost Flow Problem u ij = capacity of arc (i,j). c ij = unit cost of shipping flow from node i to node j on (i,j). x.
Chapter 7 Transportation, Assignment, and Transshipment Problems
. 1 Transportation and Assignment Problems. . 2 Applications Physical analog of nodes Physical analog of arcs Flow Communication systems phone exchanges,
Network Optimization Problems
Route Planning Texas Transfer Corp (TTC) Case 1. Linear programming Example: Woodcarving, Inc. Manufactures two types of wooden toys  Soldiers sell for.
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 Network Models Transportation Problem (TP) Distributing any commodity from any group of supply centers, called sources, to any group of receiving.
EMIS 8374 Network Flow Models updated 29 January 2008.
Lecture 5 – Integration of Network Flow Programming Models Topics Min-cost flow problem (general model) Mathematical formulation and problem characteristics.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
8/14/04J. Bard and J. W. Barnes Operations Research Models and Methods Copyright All rights reserved Lecture 5 – Integration of Network Flow Programming.
Chapter 8 Network Models to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004 Brooks/Cole,
Chapter 5: Transportation, Assignment and Network Models © 2007 Pearson Education.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or.
Managerial Decision Making Chapter 5 Network Modelling.
Network Models Chapter 12
St. Edward’s University
Network Models Please carefully study the following examples:
Lecture 5 – Integration of Network Flow Programming Models
Network Models Chapter 12
Chapter 12 Network Models 12-1
Lecture 5 – Integration of Network Flow Programming Models
Transportation, Assignment and Network Models
Introduction Basic formulations Applications
Network Models Robert Zimmer Room 6, 25 St James.
Spreadsheet Modeling & Decision Analysis
Chapter 5 Transportation, Assignment, and Transshipment Problems
Modeling and Solving LP Problems in a Spreadsheet
Chapter 5 Network Modeling.
Network Models Chapter 12
Chapter 6 Network Flow Models.
A network problem is one that can be represented by...
Lecture 12 Network Models.
Presentation transcript:

Spreadsheet Modeling & Decision Analysis: A Practical Introduction to Management Science, 3e by Cliff Ragsdale

Chapter 5 Network Modeling Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Introduction A number of business problems can be represented graphically as networks. This chapter focuses on several types of network flow problems: Transshipment Problems Shortest Path Problems Maximal Flow Problems Transportation/Assignment Problems Generalized Network Flow Problems We also consider a different type of network problem called the Minimum Spanning Tree Problem Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Characteristics of Network Flow Problems Network flow problems can be represented as a collection of nodes connected by arcs. There are three types of nodes: Supply Demand Transshipment We’ll use negative numbers to represent supplies and positive numbers to represent demand. Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

A Transshipment Problem: The Bavarian Motor Company +100 Boston $30 $50 2 Newark -200 1 Columbus +60 3 $40 $40 $35 $30 Richmond +80 Atlanta 4 +170 5 $25 $45 $50 $35 +70 Mobile J'ville 6 -300 $50 7 Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Defining the Decision Variables For each arc in a network flow model we define a decision variable as: Xij = the amount being shipped (or flowing) from node i to node j For example, X12 = the number of cars shipped from node 1 (Newark) to node 2 (Boston) X56 = the number of cars shipped from node 5 (Atlanta) to node 6 (Mobile) Note: The number of arcs determine the number of variables in a network flow problem! Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Defining the Objective Function Minimize total shipping costs. MIN: 30X12 + 40X14 + 50X23 + 35X35 +40X53 + 30X54 + 35X56 + 25X65 + 50X74 + 45X75 + 50X76 Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Constraints for Network Flow Problems: The Balance-of-Flow Rules For Minimum Cost Network Apply This Balance-of-Flow Flow Problems Where: Rule At Each Node: Total Supply > Total Demand Inflow-Outflow >= Supply or Demand Total Supply < Total Demand Inflow-Outflow <=Supply or Demand Total Supply = Total Demand Inflow-Outflow = Supply or Demand Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Defining the Constraints In the BMC problem: Total Supply = 500 cars Total Demand = 480 cars So for each node we need a constraint of the form: Inflow - Outflow >= Supply or Demand Constraint for node 1: –X12 – X14 >= -200 (there is no inflow for node 1!) This is equivalent to: +X12 + X14 <= 200 Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Defining the Constraints Flow constraints –X12 – X14 >= –200 } node 1 +X12 – X23 >= +100 } node 2 +X23 + X53 – X35 >= +60 } node 3 + X14 + X54 + X74 >= +80 } node 4 + X35 + X65 + X75 – X53 – X54 – X56 >= +170 } node 5 + X56 + X76 – X65 >= +70 } node 6 –X74 – X75 – X76 >= –300 } node 7 Nonnegativity conditions Xij >= 0 for all ij Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Implementing the Model See file Fig5-2.xls Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Optimal Solution to the BMC Problem +100 Boston $30 $50 2 Newark -200 120 20 1 Columbus +60 80 3 $40 $40 40 Richmond +80 Atlanta 4 +170 5 $45 210 70 +70 Mobile J'ville 6 -300 $50 7 Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

The Shortest Path Problem Many decision problems boil down to determining the shortest (or least costly) route or path through a network. Ex. Emergency Vehicle Routing This is a special case of a transshipment problem where: there is a supply node with a supply of -1 there is a demand node with a demand of +1 all other nodes have supply/demand of +0 Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

The American Car Association +0 3.3 hrs L'burg +1 5 pts 9 Va Bch 11 5.0 hrs 9 pts 2.0 hrs 4 pts 4.7 hrs +0 2.7 hrs 9 pts +0 4 pts 1.1 hrs K'ville 3 pts 5 G'boro Raliegh 2.0 hrs 3.0 hrs 8 9 pts 4 pts 10 +0 1.7 hrs 5 pts A'ville 1.5 hrs 6 +0 3 pts 2.3 hrs +0 3 pts Chatt. 2.8 hrs 3 7 pts Charl. 2.0 hrs 8 pts 7 +0 3.0 hrs 1.7 hrs 4 pts 4 pts 1.5 hrs G'ville 2 pts 4 Atlanta +0 B'ham 2 2.5 hrs 1 3 pts 2.5 hrs Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. 3 pts +0 -1

Solving the Problem There are two possible objectives for this problem Finding the quickest route (minimizing travel time) Finding the most scenic route (maximizing the scenic rating points) See file Fig5-7.xls Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

The Equipment Replacement Problem The problem of determining when to replace equipment is another common business problem. It can also be modeled as a shortest path problem. Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

The Compu-Train Company Compu-Train provides hands-on software training. Computers must be replaced at least every two years. Two lease contracts are being considered: Each required $62,000 initially Contract 1: Prices increase 6% per year 60% trade-in for 1 year old equipment 15% trade-in for 2 year old equipment Contract 2: Prices increase 2% per year 30% trade-in for 1 year old equipment 10% trade-in for 2 year old equipment Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Network for Contract 1 +0 +0 +1 -1 +0 2 4 5 1 3 $63,985 2 4 $30,231 $33,968 $28,520 $32,045 5 +1 -1 1 3 $60,363 $67,824 +0 Cost of trading after 1 year: 1.06*$62,000 - 0.6*$62,000 = $28,520 Cost of trading after 2 years: 1.062*$62,000 - 0.15*$62,000 = $60,363 etc, etc…. Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Solving the Problem See file Fig5-12.xls Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Transportation & Assignment Problems Some network flow problems don’t have trans-shipment nodes; only supply and demand nodes. Mt. Dora 1 Eustis 2 Clermont 3 Ocala 4 Orlando 5 Leesburg 6 Distances (in miles) Capacity Supply 275,000 400,000 300,000 225,000 600,000 200,000 Groves Processing Plants 21 50 40 35 30 22 55 25 20 These problems are implemented more effectively using the technique described in Chapter 3. Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Generalized Network Flow Problems In some problems, a gain or loss occurs in flows over arcs. Examples Oil or gas shipped through a leaky pipeline Imperfections in raw materials entering a production process Spoilage of food items during transit Theft during transit Interest or dividends on investments These problems require some modeling changes. Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Coal Bank Hollow Recycling Recycling Process 1 Recycling Process 2 Material Cost Yield Cost Yield Supply Newspaper $13 90% $12 85% 70 tons Mixed Paper $11 80% $13 85% 50 tons White Office Paper $9 95% $10 90% 30 tons Cardboard $13 75% $14 85% 40 tons Newsprint Packaging Paper Print Stock Pulp Source Cost Yield Cost Yield Cost Yield Recycling Process 1 $5 95% $6 90% $8 90% Recycling Process 2 $6 90% $8 95% $7 95% Demand 60 tons 40 tons 50 tons Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Network for Recycling Problem -70 Newspaper $13 1 $12 +0 95% Newsprint 90% +60 pulp 7 80% $5 $11 Mixed Recycling 90% -50 paper Process 1 95% $6 2 5 $13 $8 75% 90% Packing paper +40 pulp $9 8 White 85% 95% 85% -30 office $6 paper $10 3 Recycling $8 90% 90% Process 2 Print 6 $7 stock +50 85% $13 95% pulp +0 9 -40 Cardboard $14 4 Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Defining the Objective Function Minimize total cost. MIN: 13X15 + 12X16 + 11X25 + 13X26 + 9X35+ 10X36 + 13X45 + 14X46 + 5X57 + 6X58 + 8X59 + 6X67 + 8X68 + 7X69 Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Defining the Constraints Raw Materials -X15 -X16 >= -70 } node 1 -X25 -X26 >= -50 } node 2 -X35 -X36 >= -30 } node 3 -X45 -X46 >= -40 } node 4 Recycling Processes +0.9X15 +0.8X25 +0.95X35 +0.75X45 -X57 -X58 -X59 >= 0 } node 5 +0.85X16 +0.85X26 +0.9X36 +0.85X46 -X67 -X68 -X69 >= 0 } node 6 Paper Pulp +0.95X57 +0.90X67 >= 60 } node 7 +0.90X57 +0.95X67 >= 40 } node 8 +0.90X57 +0.95X67 >= 50 } node 9 Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Implementing the Model See file Fig5-17.xls Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

The Maximal Flow Problem In some network problems, the objective is to determine the maximum amount of flow that can occur through a network. The arcs in these problems have upper and lower flow limits. Examples How much water can flow through a network of pipes? How many cars can travel through a network of streets? Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

The Northwest Petroleum Company Pumping Pumping Station 1 Station 3 3 4 2 6 2 6 Oil Field 1 Refinery 6 2 4 4 3 5 5 Pumping Pumping Station 2 Station 4 Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

The Northwest Petroleum Company Pumping Pumping Station 1 Station 3 3 4 2 6 2 6 Oil Field 1 Refinery 6 2 4 4 3 5 5 Pumping Pumping Station 2 Station 4 Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Formulation of the Max Flow Problem MAX: X61 Subject to: +X61 - X12 - X13 = 0 +X12 - X24 - X25 = 0 +X13 - X34 - X35 = 0 +X24 + X34 - X46 = 0 +X25 + X35 - X56 = 0 +X46 + X56 - X61 = 0 with the following bounds on the decision variables: 0 <= X12 <= 6 0 <= X25 <= 2 0 <= X46 <= 6 0 <= X13 <= 4 0 <= X34 <= 2 0 <= X56 <= 4 0 <= X24 <= 3 0 <= X35 <= 5 0 <= X61 <= inf Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Implementing the Model See file Fig5-22.xls Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Optimal Solution 3 4 2 6 2 6 1 6 2 4 4 3 5 5 3 5 5 2 2 4 4 2 Pumping Station 1 Station 3 3 3 4 2 5 5 6 2 2 6 Oil Field 1 Refinery 6 2 4 2 4 4 4 3 5 5 2 Pumping Pumping Station 2 Station 4 Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Special Modeling Considerations +0 $3 $5 -100 1 3 5 +75 $3 $4 $5 $4 2 4 6 +50 -100 $5 $6 +0 Suppose the total flow into nodes 3 & 4 must be at least 50 and 60, respectively. One way to achieve this without side constraints is shown on the following slide. Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Special Modeling Considerations +0 +0 $3 $5 -100 1 30 3 5 +75 L.B.=50 $4 $3 $4 $5 2 40 4 6 +50 -100 $5 L.B.=60 $6 +0 +0 Nodes 30 & 40 accumulate the total flow into nodes 3 & 4, respectively. Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Special Modeling Considerations $8 -75 1 2 $6 +50 U.B. = 35 Two two (or more) arcs cannot share the same beginning and ending nodes. Instead, try... +0 10 $0 $8 $6 1 2 +50 -75 U.B. = 35 Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

The Minimal Spanning Tree Problem For a network with n nodes, a spanning tree is a set of n-1 arcs that connects all the nodes and contains no loops. The minimal spanning tree problem involves determining the set of arcs that connects all the nodes at minimum cost. Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Minimal Spanning Tree Example: Windstar Aerospace Company $150 2 4 $100 $85 $75 $40 1 $80 5 $85 $90 3 $50 6 $65 Nodes represent computers in a local area network. Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

The Minimal Spanning Tree Algorithm 1. Select any node. Call this the current subnetwork. 2. Add to the current subnetwork the cheapest arc that connects any node within the current subnetwork to any node not in the current subnetwork. (Ties for the cheapest arc can be broken arbitrarily.) Call this the current subnetwork. 3. If all the nodes are in the subnetwork, stop; this is the optimal solution. Otherwise, return to step 2. Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Solving the Example Problem - 1 2 4 $100 $85 1 $80 5 $85 $90 3 6 Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Solving the Example Problem - 2 4 $100 $85 $75 1 $80 5 $85 $90 3 $50 6 Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Solving the Example Problem - 3 2 4 $100 $85 $75 1 $80 5 $85 3 $50 6 $65 Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Solving the Example Problem - 4 2 4 $100 $85 $75 $40 1 $80 5 3 $50 6 $65 Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Solving the Example Problem - 5 $150 2 4 $85 $75 $40 1 $80 5 3 $50 6 $65 Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

Solving the Example Problem - 6 2 4 $75 $40 1 $80 5 3 $50 6 $65 Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.

End of Chapter 5 Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning.