EMIS 8374 Network Flow Models updated 29 January 2008.

Slides:



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

1 Material to Cover  relationship between different types of models  incorrect to round real to integer variables  logical relationship: site selection.
1 Lecture 2 Shortest-Path Problems Assignment Problems Transportation Problems.
BU BU Decision Models Networks 1 Networks Models Summer 2013.
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
1 1 Slide © 2006 Thomson South-Western. All Rights Reserved. Slides prepared by JOHN LOUCKS St. Edward’s University.
Math443/543 Mathematical Modeling and Optimization
Network Optimization Models: Maximum Flow Problems In this handout: The problem statement Solving by linear programming Augmenting path algorithm.
Linear Programming OPIM 310-Lecture 2 Instructor: Jose Cruz.
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.
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.
1 Lecture 4 Maximal Flow Problems Set Covering Problems.
15.082J, 6.855J, and ESD.78J September 21, 2010 Eulerian Walks Flow Decomposition and Transformations.
Table 1. Shipping costs, Supply, and Demand for Powerco Example
Lecture 4 – Network Flow Programming
Lecture 3 Transshipment Problems Minimum Cost Flow Problems
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.
and 6.855J The Capacity Scaling Algorithm.
Networks and the Shortest Path Problem.  Physical Networks  Road Networks  Railway Networks  Airline traffic Networks  Electrical networks, e.g.,
Network Optimization Models
Introduction to Operations Research
ENGM 732 Network Flow Programming Network Flow Models.
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.
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 1 Introduction Introduction  Networks: mathematical models of real systems like electrical and power/ telecom/ logistics/ highway/ rail/
EMIS 8373: Integer Programming “Easy” Integer Programming Problems: Network Flow Problems updated 11 February 2007.
Network Optimization Problems
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
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.
Kramer’s (a.k.a Cramer’s) Rule Component j of x = A -1 b is Form B j by replacing column j of A with b.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Network Optimization Network optimization models: Special cases of linear programming models Important to identify problems that can be modeled as networks.
The Minimum Cost Network Flow (MCNF) Problem Extremely useful model in IEOR Important Special Cases of the MCNF Problem –Transportation and Assignment.
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.
Transportation, Assignment, and Transshipment Problems Pertemuan 7 Matakuliah: K0442-Metode Kuantitatif Tahun: 2009.
8/14/04J. Bard and J. W. Barnes Operations Research Models and Methods Copyright All rights reserved Lecture 5 – Integration of Network Flow Programming.
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.
Problems in Combinatorial Optimization. Linear Programming.
Lecture 4 – Network Flow Programming Topics Terminology and Notation Network diagrams Generic problems (TP, AP, SPP, STP, MF) LP formulations Finding solutions.
Network Problems A D O B T E C
St. Edward’s University
ENGM 535 Optimization Networks
Lecture 5 – Integration of Network Flow Programming Models
Lecture 5 – Integration of Network Flow Programming Models
EMIS 8374 Node Splitting updated 27 January 2004
Transportation, Assignment and Network Models
Introduction Basic formulations Applications
Network Models Robert Zimmer Room 6, 25 St James.
and 6.855J Flow Decomposition
Chapter 5 Transportation, Assignment, and Transshipment Problems
Successive Shortest Path Algorithm
Flow Feasibility Problems
Minimum Cost Network Flow Problems
EMIS 8374 Maximum Concurrent Flow Updated 3 April 2008
Kramer’s (a.k.a Cramer’s) Rule
Network Flow Problems – Maximal Flow Problems
EMIS The Maximum Flow Problem: Flows and Cuts Updated 6 March 2008
Lecture 12 Network Models.
Presentation transcript:

EMIS 8374 Network Flow Models updated 29 January 2008

The Minimum Cost Network Flow Problem (MCNFP) Extremely useful model in OR & EM Important Special Cases of the MCNFP –Transportation and Assignment Problems –Maximum Flow Problem –Minimum Cut Problem –Shortest Path Problem Network Structure –BFS’s for MCNFP LP’s have integer values !!! –Problems can be formulated graphically slide 1

Elements of the MCNFP Defined on a network G = (N,A) N is a set of n nodes: {1, 2, …, n} –Each node i has an associated value b(i) b(i) node i is a demand node with a demand for –b(i) units of some commodity b(i) = 0 => node i is a transshipment node b(i) > 0 => node i is a supply node with a supply of b(i) units slide 2

Elements of the MNCFP A is a set of arcs that carry flow –Decision variable x ij determines the units of flow on arc (i,j) –The arc (i,j) from node i to node j has cost c ij per unit of flow on arc (i,j) upper bound on flow of u ij (capacity) lower bound on flow of l ij (usually 0) slide 3

Example MCNFP N = {1, 2, 3, 4} b(1) =5, b(2) = -2, b(3) = 0, b(4) = -3 A ={(1,2), (1,3), (2,3), (2,4), (3,4)} c 12 = 3, c 13 = 2, c 23 =1, c 24 = 4, c 34 = 4 l 12 = 2, l 13 = 0, l 23 = 0, l 24 = 1, l 34 = 0 u 12 = 5, u 13 = 2, u 23 = 2, u 24 = 3, u 34 = 3 slide 4

Graphical Network Flow Formulation b(j)b(j) b(i)b(i) i j (c ij, l ij, u ij ) arc (i,j) slide 5

Example MCNFP 5 14 (1, 0, 2) (2, 0,2) (4, 1,3) (4, 0, 3) (3, 2, 5) slide 6

Requirements for a Feasible Flow Flow on all arcs is within the allowable bounds: l ij  x ij  u ij for all arcs (i,j) Flow is balanced at all nodes: flow out of node i - flow into node i = b(i) MCNFP: find a minimum-cost feasible flow slide 7

LP Formulation of MCNFP slide 8

LP for Example MCNFP Min 3X X 13 + X X X 34 s.t. X 12 + X 13 = 5{Node 1} X 23 + X 24 - X 12 = -2{Node 2} X 34 - X 13 - X 23 = 0 {Node 3} - X 24 - X 34 = -3 {Node 4} 2  X 12  5, 0  X 13  2, 0  X 23  2,1  X 24  3, 0  X 34  3 slide 9

Example Feasible Solution 5 14 (1, 0,2) (2, 0,2) (4, 1,3) (4, 0,3) (3, 2,5) Cost = = 27 Arc flows shown in blue. slide 10

Optimal Solution for Example MCNFP 5 14 (1, 0,2) (2, 0,2) (4, 1,3) (4, 0,3) (3, 2,5) Cost = 25 Arc flows shown in blue. slide 11

Balanced Transportation Problems

Graphical Network Flow Formulation b(j)b(j) b(i)b(i) i j (c ij, u ij ) arc (i,j) l ij = 0 for all arcs. slide 13

D Dummy Node -3 CW Supply Nodes I S G Demand Nodes A F slide 14

CW Supply Nodes I S G Demand Nodes A F (13, 1) (35, 1) (9, 1) (42, 1) Dummy Node -3 (0,4) (0,2) (0,1) D slide 15

Shortest Path Problems Defined on a network with two special nodes: s and t A path from s to t is an alternating sequence of nodes and arcs starting at s and ending at t: s,(s,v 1 ),v 1,(v 1,v 2 ),…,(v i,v j ),v j,(v j,t),t Find a minimum-cost path from s to t slide 16

Shortest Path Example st 1,(1,2),2,(2,3),3Length = 15 1,(1,2),2,(2,4),4,(4,3)Length = 13 1,(1,4),4,(4,3),3Length = 14 slide 17

MCNFP Formulation of Shortest Path Problems Source node s has a supply of 1 Sink node t has a demand of 1 All other nodes are transshipment nodes Each arc has capacity 1 Tracing the unit of flow from s to t gives a path from s to t slide 18

Shortest Path as MCNFP: Graphical Formulation (5,0,1)(10,0,1) 0 0 (7,0,1) (1,0,1) slide 19

Shortest Path as MCNFP: Graphical Solution (5,0,1)(10,0,1) 0 0 (7,0,1) Arc flows shown in blue (1,0,1) slide 20

Shortest Path Example 2 In a rural area of Texas, there are six farms connected my small roads. The distances in miles between the farms are given in the following table. What is the minimum distance to get from Farm 1 to Farm 6? slide 21

Graphical Network Flow Formulation b(j)b(j) b(i)b(i) i j l ij = 0, u ij =1 arc (i,j) (c ij ) slide 22

Formulation as Shortest Path s t slide 23

LP Formulation of Shortest Path Problem slide 24

“Greedy” Solution s t x 13 = x 23 = x 35 = x 35 = 1, x ij = 0 for all other arcs. Objective function value = 19. slide 25

Shortest Path: Optimal Solution s t x 13 = x 35 = x 56 = 1, x ij = 0 for all other arcs. Objective function value = 17. slide 26

Maximum Flow Problems Defined on a network –Source node s –Sink node t –All other nodes are transshipment Nodes –Arcs have capacities, but no costs Maximize the total flow from s to t slide 27

Example: Rerouting Airline Passengers Due to a mechanical problem, Fly-By-Night Airlines had to cancel flight 162 which is its only non-stop flight from San Francisco to New York. Formulate a maximum flow problem to reroute as many passengers as possible from San Francisco to New York. slide 28

Data for Fly-by-Night Example slide 29

Graphical Network Flow Formulation b(j)b(j) b(i)b(i) i j l ij = 0 arc (i,j) (u ij ) slide 30

Network Representation s t SF DC H 2 6 A 5 NY slide 31

LP Formulation slide 32

Max Flow: Optimal Solution slide 33

MCNF Formulation of Maximum Flow Problems 1.Let arc cost = 0 for all arcs 2.Add an arc from t to s –Give this arc a cost of –1 and infinite capacity 3.All nodes are transshipment nodes 4.Circulation Problem slide 34

Max Flow Formulation as MCNFP SF DC H (0,0,2) (0,0,6) A (0,0,5) NY (0,0,5) (0,0,4) (0,0,7) (-1,0,  ) slide 35

LP Formulation of MCNFP Representation slide 36

MCNFP Solution SF DC H (0,0,2) (0,0,6) A (0,0,5) NY (0,0,5) (0,0,4) (0,0,7) (-1,0,  ) slide 37

LP Formulation of MCNFP Representation: Optimal Solution slide 38

NSC Example Max production per month = 4,000 tons Inventory holding cost = $120/ton/month Initial inventory = 1,000 tons Final inventory = 1,500 tons slide 39

Network Flow Formulation D1D1 D2D2 D3D3 D4D4 P1P1 P2P2 P3P3 P4P I4I I0I D0D I1I1 I2I2 I3I3 slide 40

Network Flow Formulation: Arc Costs D1D1 D2D2 D3D3 D4D4 P1P1 P2P2 P3P3 P4P4 I4I4 I0I0 D0D0 I1I1 I2I2 I3I3 slide All other arc costs are 0

Network Flow Solution D1D1 D2D2 D3D3 D4D4 P1P1 P2P2 P3P3 P4P I4I I0I0 100 d I1I1 I2I2 I3I slide 42 l ij = 0 and u ij =  for all arcs 2700