Network Flows. 2 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Table of Contents Chapter 6 (Network Optimization Problems) Minimum-Cost.

Slides:



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

Transportation Problem and Related Topics. 2 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics There are 3 plants, 3 warehouses.
BU BU Decision Models Networks 1 Networks Models Summer 2013.
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.
Chapter 11 To accompany Quantitative Analysis for Management, Eleventh Edition, Global Edition by Render, Stair, and Hanna Power Point slides created by.
1Transportation ModelsLesson 4 LECTURE FOUR Transportation Models.
Management Science 461 Lecture 6 – Network Flow Problems October 21, 2008.
Chapter 5: Transportation, Assignment and Network Models © 2007 Pearson Education.
Linear Programming Example 5 Transportation Problem.
1 1 Slide © 2006 Thomson South-Western. All Rights Reserved. Slides prepared by JOHN LOUCKS St. Edward’s University.
Table of Contents Chapter 6 (Network Optimization Problems)
Chapter 7 Network Flow Models.
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., NETWORKS.
Network Flow Models Chapter 7.
Transportation, Assignment, Network Models
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
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.
Transportation Model (Powerco) Send electric power from power plants to cities where power is needed at minimum cost Transportation between supply and.
Example 15.4 Distributing Tomato Products at the RedBrand Company
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.
Network Flows Based on the book: Introduction to Management Science. Hillier & Hillier. McGraw-Hill.
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
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Network Models Chapters 6 and 7.
7-1 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Network Flow Models Chapter 7.
7-1 Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Network Flow Models Chapter 7.
Shortest Route, Minimal Spanning Tree and Maximal Flow Models
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 Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology Tran Van Hoai.
The Supply Chain Customer Supplier Manufacturer Distributor
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Table of Contents Chapter 6 (Network Optimization Problems) Minimum-Cost Flow Problems (Section.
Table of Contents Chapter 7 (Network Optimization Problems)
Network Optimization Problem
Section 2.9 Maximum Flow Problems Minimum Cost Network Flows Shortest Path Problems.
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.
EMIS 8373: Integer Programming “Easy” Integer Programming Problems: Network Flow Problems updated 11 February 2007.
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.
EMIS 8374 Network Flow Models updated 29 January 2008.
Network Optimization Network optimization models: Special cases of linear programming models Important to identify problems that can be modeled as networks.
Lecture 5 – Integration of Network Flow Programming Models Topics Min-cost flow problem (general model) Mathematical formulation and problem characteristics.
8/14/04J. Bard and J. W. Barnes Operations Research Models and Methods Copyright All rights reserved Lecture 5 – Integration of Network Flow Programming.
1 An Arc-Path Model for OSPF Weight Setting Problem Dr.Jeffery Kennington Anusha Madhavan.
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,
Computationally speaking, we can partition problems into two categories. Easy Problems and Hard Problems We can say that easy problem ( or in some languages.
Integer Programming. 2 Ardavan Asef-Vaziri June-2013Integer Programming Computationally speaking, we can partition problems into two categories. Easy.
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.
7-1 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Network Flow Models Chapter 7.
EMGT 5412 Operations Management Science Network Optimization Dincer Konur Engineering Management and Systems Engineering 1.
Network Flows Based on the book: Introduction to Management Science. Hillier & Hillier. McGraw-Hill.
St. Edward’s University
Lecture 5 – Integration of Network Flow Programming Models
Chapter 12 Network Models 12-1
The Transportation Model
Lecture 5 – Integration of Network Flow Programming Models
Transportation, Assignment and Network Models
Introduction Basic formulations Applications
Spreadsheet Modeling & Decision Analysis
Chapter 5 Transportation, Assignment, and Transshipment Problems
Chapter 5 Network Modeling.
Chapter 6 Network Flow Models.
Lecture 12 Network Models.
Presentation transcript:

Network Flows

2 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Table of Contents Chapter 6 (Network Optimization Problems) Minimum-Cost Flow Problems (Section 6.1)6.2–6.12 A Case Study: The BMZ Maximum Flow Problem (Section 6.2) 6.13–6.16 Maximum Flow Problems (Section 6.3)6.17–6.21 Shortest Path Problems: Littletown Fire Department (Section 6.4) 6.22–6.25 Shortest Path Problems: General Characteristics (Section 6.4)6.26– 6.27 Shortest Path Problems: Minimizing Sarah’s Total Cost (Section 6.4)6.28–6.31 Shortest Path Problems: Minimizing Quick’s Total Time (Section 6.4)6.32–6.36

3 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Distribution Unlimited Co. Problem  The Distribution Unlimited Co. has two factories producing a product that needs to be shipped to two warehouses Factory 1 produces 80 units. Factory 2 produces 70 units. Warehouse 1 needs 60 units. Warehouse 2 needs 90 units.  There are rail links directly from Factory 1 to Warehouse 1 and Factory 2 to Warehouse 2.  Independent truckers are available to ship up to 50 units from each factory to the distribution center, and then 50 units from the distribution center to each warehouse. Question: How many units (truckloads) should be shipped along each shipping lane?

4 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics There are 2 plants, 2 demand centers and 1 transshipment point. Production of Plants 1 and 2 are 80 and 70 units respectively. Demand of Demand centers 1 and 2 ( we call them points 4 and 5) are 60 and 90 units respectively. Transshipment point ( point 3) is does not have any supply or demand. Given the information on the next page, formulate this problem as an LP to satisfy supply and demand with minimal transportation costs. Minimum Cost Flow Problem: Narrative representation

5 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Transportation costs for each unit of product and max capacity of each road is given below FromTocost/ unitMax capacity 14700No limit No limit There is no other link between any pair of points Minimum Cost Flow Problem: Narrative representation

6 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Minimum Cost Problem: Pictorial Representation x 14 x 13 x 34 x 23 x 35 x 25

7 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Conventions Minimum Cost Flow is the same as Transportation and Transshipment problem. We reformulate the same problem in the context of Minimum Cost flow just as an introduction to the domain of the Network Optimization Problems. For each node i, we define the net flow as the difference between total outflow minus total inflow. f i : Net flow of node i If i is a supply point then f i = + supply of node i If i is a demand point then f i = - demand of node i If i is a transshipment point then f i = 0

8 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Notations and Formulation Notation t ij : Outflow from node i to node j with i > j t ji : Inflow from node j to node i with i < j T ij : Maximum capacity of arc ij t ij  T ij  ij  A ( A is the set of directed arcs) f i : Net flow of node i  t ij -  t ji = f i  i  N ( N is the set of nodes) c ij : Cost of moving one unit on arc ij

9 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Minimum Cost Flow Problem: decision variables x 14 = Volume of product sent from point 1 to 4 x 13 = Volume of product sent from point 1 to 3 x 23 = Volume of product sent from point 2 to 3 x 25 = Volume of product sent from point 2 to 5 x 34 = Volume of product sent from point 3 to 4 x 35 = Volume of product sent from point 3 to 5 We want to minimize Z = 700 x x x x x x 35

10 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Minimum Cost Flow Problem: constraints Supply x 14 + x 13 = 80 x 23 + x 25 = 70 Demand x 14 + x 34 = 60 x 25 + x 35 = 90 Transshipment x 13 + x 23 = x 34 + x 35 ( Move all variables to LHS ) x 13 + x 23 - x 34 - x 35 =0

11 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Minimum Cost Flow Problem: constraints Capacity x 13  50 x 23  50 x 34  50 x 35  50 Nonnegativity x 14, x 13, x 23, x 25, x 34, x 35  0

12 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Example Node 1 : t 13 + t 14 = 80 ( the same for node 2) Node 4 : - t 14 - t 34 = -60 (the same for node 5) Node 3 : t 34 + t 35 - t 13 - t 23 = 0 Capacity Constraints on arc 13 : t 13  50 ( the same for arcs 2-3, 3-4, and 3-5) Min Z = t t t t t t 35

13 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Excel

14 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Excel

15 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Excel

16 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Solver

17 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Solution

18 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Minimum Cost Flow Problem: constraints

19 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Minimum Cost Problem: Pictorial Representation

20 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Transportation problem II : Formulation

21 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Transportation problem II : Solution

22 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Transportation problem II : Solution

23 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Transportation problem III : Pictorial representation x 14 x 13 x 23 x 35 x 12 x 45 x 54

24 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Transportation problem III : Formulation Material Flow Balance. At each node we have Supply + Inflow = Demand + Outflow 50 = x 12 + x 13 + x x 12 = x 23 x 13 + x 23 = x 35 x 14 + x 54 = 30 + x 45 x 35 + x 45 = 60 + x 54 Capacity x 12  50 x 35  80 Min Z = 200x x x x x x x 54

25 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Transportation problem III : Excel Solution

26 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics The Maximum Flow Problem O D There is no inflow associated with origin There is no outflow associated with destination We want to Maximize total outflow of the origin or total inflow of the destination

27 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Notations and Formulation t ij : Outflow from node i to node j with i > j t ji : Inflow from node j to node i with i < j T ij : Maximum capacity of arc ij t ij  T ij  ij  A f i : is zero for all nodes except Origin(s) and Destination(s)  t ij -  t ji = 0  i  N \ O and D

28 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Example O D t 25 - t O2 = 0 t 35 + t 36 - t O3 = 0 t 46 - t O4 = 0 t 5D - t 25 - t 35 = 0 t 6D - t 36 - t 46 = 0 t O2  50 t O3  70 t O4  40 t 25  60 t 35  40 t 36  50 and so on t 6D  70 Max Z = t O2 + t O3 + t O4

29 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Excel and Solver O D

30 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Solution O D 40 (30) (50) 40 (30) 50(40)

31 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics More Than One Origin D O1 O2 7 8 D  t ij -  t ji = 0  i  N \ Os and Ds t ij  T ij  ij  A

32 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Example D O1 O2 7 8 D  t ij -  t ji = 0  i  N \ Os and Ds Example: Node 7 + t 78 + t 75 - t O27 = 0 Example: Node 5 + t 5D1 + t 5D2 - t 25 - t 35 - t 75 = 0 t ij  T ij  ij  A Example: Arc 46 t 46  30 Example: Arc O12 t O12  50 Objective Function Max Z = + t O12 + t O13 + t O14 + t O22 + t O27

33 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics The Shortest Route Problem The shortest route between two points l ij : The length of the directed arc ij. l ij is a parameter, not a decision variable. It could be the length in term of distance or in terms of time or cost ( the same as c ij ) For those nodes which we are sure that we go from i to j we only have one directed arc from i to j. For those node which we are not sure that we go from i to j or from j to i, we have two directed arcs, one from i to j, the other from j to i. We may have symmetric or asymmetric network. In a symmetric network l ij = l ji  ij In a asymmetric network this condition does not hold

34 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Example

35 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Decision Variables and Formulation x ij : The decision variable for the directed arc from node i to nod j. x ij = 1 if arc ij is on the shortest route x ij = 0 if arc ij is not on the shortest route  x ij -  x ji = 0  i  N \ O and D  x oj =1  x iD = 1 Min Z =  l ij x ij

36 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Example

37 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Example x 13 + x 14 + x 12 = 1 - x 57 - x 67 = -1 + x 34 + x 35 - x 43 - x 13 = 0 + x 42 + x 43 + x 45 + x 46 - x 14 - x 24 - x 34 = 0 …. ….. Min Z = + 5x x x x x x x x x x x x x x x 67

38 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Excel

39 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Excel

40 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Solver Solution

41 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics After class practice; Find the shortest route O D

42 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Two important observations in the LP-relaxation Formulate on the problem on the black board Did I say x ij <= 1 ? Why all the variables came out less than 1 Did I say x ij 0 or 1 Why all variables came out 0 or 1

43 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics The Minimum Spanning Tree Find a tree such that we can access each and every node at the minimum cost. The total length ( or cost) of the tree is minimized. In other words, we want to minimize the construction cost of the tree. Edges on the MST are bi-directional l ij : The length or cost of the bi-directional edge ij. We u sually use the term “EDGE” as nondirected, and term “ARC” as directed. All distances in MSE network are symmetric.

44 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics The Minimum Spanning Tree

45 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Minimum Spanning Tree

46 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Minimum Spanning Tree

47 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Minimum Spanning Tree : Connectivity

48 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Minimum Spanning Tree : Connectivity

49 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Minimum Spanning Tree : Connectivity

50 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Minimum Spanning Tree : Integrality

51 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Minimum Spanning Tree : Connectivity

52 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Minimum Spanning Tree : Connectivity

53 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Minimum Spanning Tree : Connectivity

54 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Minimum Spanning Tree : Optimal Solution

55 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Minimum Spanning Tree : Optimal Solution