Spreadsheet Modeling & Decision Analysis A Practical Introduction to Management Science 5 th edition Cliff T. Ragsdale.

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.
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.
Management Science 461 Lecture 6 – Network Flow Problems October 21, 2008.
Operations Management Linear Programming Module B - Part 2
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.
Transportation, Assignment, Network Models
Introduction to Management Science
NetworkModel-1 Network Optimization Models. NetworkModel-2 Network Terminology A network consists of a set of nodes and arcs. The arcs may have some flow.
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)
Introduction to Mathematical Programming OR/MA 504 Chapter 5 Integer Linear Programming.
Two Discrete Optimization Problems Problem: The Transportation Problem.
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:
Spreadsheet Modeling & Decision Analysis A Practical Introduction to Management Science 6 th edition Cliff T. Ragsdale © 2011 Cengage Learning. All Rights.
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.
Chapter 7 Transportation, Assignment & Transshipment Problems
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.
. 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.
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.
IT Applications for Decision Making. Operations Research Initiated in England during the world war II Make scientifically based decisions regarding the.
Network Flow Problems Example of Network Flow problems:
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.
Tuesday, March 19 The Network Simplex Method for Solving the Minimum Cost Flow Problem Handouts: Lecture Notes Warning: there is a lot to the network.
Managerial Decision Making Chapter 5 Network Modelling.
St. Edward’s University
Network Models Please carefully study the following examples:
Lecture 5 – Integration of Network Flow Programming Models
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.
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 5 th edition Cliff T. Ragsdale

Network Modeling Chapter 5

Introduction  A number of business problems can be represented graphically as networks.  This chapter focuses on several such problems: –Transshipment Problems –Shortest Path Problems –Maximal Flow Problems –Transportation/Assignment Problems –Generalized Network Flow Problems –The Minimum Spanning Tree Problem

Network Flow Problem Characteristics  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.

A Transshipment Problem: The Bavarian Motor Company Newark 1 Boston 2 Columbus 3 Atlanta 5 Richmond 4 J'ville 7 Mobile 6 $30 $40 $50 $35 $40 $30 $35 $25 $50 $45 $

Defining the Decision Variables For each arc in a network flow model we define a decision variable as: X ij = the amount being shipped (or flowing) from node i to node j For example… X 12 = the # of cars shipped from node 1 (Newark) to node 2 (Boston) X 56 = the # of cars shipped from node 5 (Atlanta) to node 6 (Mobile) Note: The number of arcs determines the number of variables!

Defining the Objective Function Minimize total shipping costs. MIN : 30X X X X X X X X X X X 76

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 DemandInflow-Outflow >= Supply or Demand Total Supply < Total DemandInflow-Outflow <=Supply or Demand Total Supply = Total DemandInflow-Outflow = Supply or Demand

Defining the Constraints  In the BMC problem: Total Supply = 500 cars Total Demand = 480 cars  For each node we need a constraint like this: Inflow - Outflow >= Supply or Demand  Constraint for node 1: –X 12 – X 14 >= – 200 (Note: there is no inflow for node 1!)  This is equivalent to: +X 12 + X 14 <= 200 (Supply >= Demand)

Defining the Constraints  Flow constraints –X 12 – X 14 >= –200} node 1 +X 12 – X 23 >= +100} node 2 +X 23 + X 53 – X 35 >= +60} node 3 + X 14 + X 54 + X 74 >= +80} node 4 + X 35 + X 65 + X 75 – X 53 – X 54 – X 56 >= +170} node 5 + X 56 + X 76 – X 65 >= +70} node 6 –X 74 – X 75 – X 76 >= –300} node 7  Nonnegativity conditions X ij >= 0 for all ij

Implementing the Model See file Fig5-2.xlsFig5-2.xls

Optimal Solution to the BMC Problem Newark 1 Boston 2 Columbus 3 Atlanta 5 Richmond 4 J'ville 7 Mobile 6 $30 $40 $50 $40 $50 $

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 one supply node with a supply of -1 –There is one demand node with a demand of +1 –All other nodes have supply/demand of +0

The American Car Association B'ham Atlanta G'ville Va Bch Charl. L'burg K'ville A'ville G'boro Raliegh Chatt hrs 3 pts 3.0 hrs 4 pts 1.7 hrs 4 pts 2.5 hrs 3 pts 1.7 hrs 5 pts 2.8 hrs 7 pts 2.0 hrs 8 pts 1.5 hrs 2 pts 2.0 hrs 9 pts 5.0 hrs 9 pts 3.0 hrs 4 pts 4.7 hrs 9 pts 1.5 hrs 3 pts 2.3 hrs 3 pts 1.1 hrs 3 pts 2.0 hrs 4 pts 2.7 hrs 4 pts 3.3 hrs 5 pts +1 +0

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.xlsFig5-7.xls

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…

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 requires $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

Network for Contract $28,520 $60,363 $30,231 $63,985 $32,045 $67,824 $33,968 Cost of trading after 1 year: 1.06*$62, *$62,000 = $28,520 Cost of trading after 2 years: *$62, *$62,000 = $60,363 etc, etc….

Solving the Problem See file Fig5-12.xlsFig5-12.xls

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 Groves Processing Plants These problems are implemented more effectively using the technique described in Chapter 3.

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.

Coal Bank Hollow Recycling MaterialCost YieldCost YieldSupply Newspaper$1390%$1285%70 tons Mixed Paper$1180%$1385%50 tons White Office Paper$995%$1090%30 tons Cardboard$1375%$1485%40 tons Process 1Process 2 Pulp SourceCostYieldCostYieldCostYield Recycling Process 1$595%$690%$890% Recycling Process 2$690%$895%$795% Newsprint Packaging Paper Print Stock Demand60 tons40 tons50 tons

Network for Recycling Problem Newspaper 1 Mixed paper 2 3 Cardboard 4 Recycling Process Newsprint pulp 7 Packing paper pulp 8 Print stock pulp White office paper Recycling Process 2 $13 $12 $11 $13 $9 $10 $14 $13 90% 80% 95% 75% 85% 90% 85% $5 $6 $8 $6 $7 $8 95% 90% 95% +0

Defining the Objective Function Minimize total cost. MIN : 13X X X X X X X X X X X X X X 69

Defining the Constraints-I  Raw Materials -X 15 -X 16 >= -70 } node 1 -X 25 -X 26 >= -50 } node 2 -X 35 -X 36 >= -30 } node 3 -X 45 -X 46 >= -40 } node 4

Defining the Constraints-II  Recycling Processes +0.9X X X X 45 - X 57 - X 58 -X 59 >= 0 } node X X X X 46 -X 67 -X 68 -X 69 >= 0 } node 6

Defining the Constraints-III  Paper Pulp +0.95X X 67 >= 60 } node X X 67 >= 40 } node X X 67 >= 50 } node 9

Implementing the Model See file Fig5-17.xlsFig5-17.xls

Important Modeling Point  In generalized network flow problems, gains and/or losses associated with flows across each arc effectively increase and/or decrease the available supply.  This can make it difficult to tell if the total supply is adequate to meet the total demand.  When in doubt, it is best to assume the total supply is capable of satisfying the total demand and use Solver to prove (or refute) this assumption.

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?

The Northwest Petroleum Company Oil Field Pumping Station 1 Pumping Station 2 Pumping Station 3 Pumping Station 4 Refinery

The Northwest Petroleum Company Oil Field Pumping Station 1 Pumping Station 2 Pumping Station 3 Pumping Station 4 Refinery

Formulation of the Max Flow Problem MAX: X 61 Subject to:+X 61 - X 12 - X 13 = 0 +X 12 - X 24 - X 25 = 0 +X 13 - X 34 - X 35 = 0 +X 24 + X 34 - X 46 = 0 +X 25 + X 35 - X 56 = 0 +X 46 + X 56 - X 61 = 0 with the following bounds on the decision variables: 0 <= X 12 <= 60 <= X 25 <= 20 <= X 46 <= 6 0 <= X 13 <= 40 <= X 34 <= 20 <= X 56 <= 4 0 <= X 24 <= 30 <= X 35 <= 50 <= X 61 <= inf

Implementing the Model See file Fig5-24.xlsFig5-24.xls

Optimal Solution Oil Field Pumping Station 1 Pumping Station 2 Pumping Station 3 Pumping Station 4 Refinery

Special Modeling Considerations: Flow Aggregation $3 $4 $5 $3 $6 Suppose the total flow into nodes 3 & 4 must be at least 50 and 60, respectively. How would you model this?

$3 $4 $5 $3 $ L.B.=50 L.B.=60 Nodes 30 & 40 aggregate the total flow into nodes 3 & 4, respectively. Special Modeling Considerations: Flow Aggregation

Special Modeling Considerations: Multiple Arcs Between Nodes $8 $0 $ Two two (or more) arcs cannot share the same beginning and ending nodes. Instead, try... $6 U.B. = 35 $8 U.B. = 35

Special Modeling Considerations: Capacity Restrictions on Total Supply $5, UB=40 $3, UB=35 $6, UB=35 $4, UB=30 Supply exceeds demand, but the upper bounds prevent the demand from being met.

Special Modeling Considerations: Capacity Restrictions on Total Supply $5, UB=40 $3, UB=35 $6, UB=35 $4, UB= $999, UB=100 Now demand exceeds supply. As much “real” demand as possible will be met in the least costly way.

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.

Minimal Spanning Tree Example: Windstar Aerospace Company $150 $100 $40 $85 $65 $50 $90 $80 $75 $85 Nodes represent computers in a local area network.

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.

Solving the Example Problem $100 $85 $90 $80 $85

Solving the Example Problem $100 $85 $90 $80 $85 $75 $50

Solving the Example Problem $100 $85 $80 $85 $75 $50 $65

Solving the Example Problem $100 $80 $85 $75 $50 $65 $40

Solving the Example Problem $80 $85 $75 $50 $65 $40 $150

Solving the Example Problem $80 $75 $50 $65 $40

End of Chapter 5