1_network flow models
TRANSCRIPT
-
8/2/2019 1_network Flow Models
1/43
NETWORK FLOW MODELS
-
8/2/2019 1_network Flow Models
2/43
2
Chapter Topics
The Minimal Spanning Tree ProblemThe Shortest Route Problem
The Maximal Flow Problem
Critical Path
-
8/2/2019 1_network Flow Models
3/43
3
Overview
A network is an arrangement of paths connected at variouspoints through which one or more items move from one point toanother.
The network is drawn as a diagram providing a picture of thesystem thus enabling visual interpretation and enhanced
understanding.A large number of real-life systems can be modeled as networkswhich are relatively easy to conceive and construct.
Network diagrams consist of nodes and branches.
Nodes(circles), represent junction points, or locations.
Branches(lines), connect nodes and represent flow.
-
8/2/2019 1_network Flow Models
4/43
Characteristics of Network Models
A node is a specific location
An arc connects 2 nodes
Arcs can be 1-way or 2-way
-
8/2/2019 1_network Flow Models
5/43
Application
Nodes
(vertices)
Arcs (edges) Flow
Intersection
Airports
Switching points
Pumping Station
Work Centers
Roads
Air lanes
Wires, Channels
Pipes
Material-
handling routes
Vehicles
Aircraft
Messages,
Fluids
Jobs
-
8/2/2019 1_network Flow Models
6/43
6
Figure 1
Network of Railroad Routes
Four nodes, four branches in figure.
Atlanta, node 1, termed origin, any of others destination.
Branches identified by beginning and ending node numbers.
Value assigned to each branch (distance, time, cost, etc.).
Example
-
8/2/2019 1_network Flow Models
7/43
7
Minimum Spanning Trees
-
8/2/2019 1_network Flow Models
8/43
8
Minimum Spanning Tree (MST)
it is a tree (i.e., it is acyclic)
it covers all the vertices V
contains |V| - 1 edges
the total cost associated with tree edges is the
minimum among all possible spanning trees not necessarily unique
A minimum spanning tree is a subgraph of anundirected weighted graph G, such that
-
8/2/2019 1_network Flow Models
9/43
Minimum-Spanning Trees
Imagine: You wish to connect telephone system in a town orall the computers in an office building usingthe least amount of cable
a weighted graph problem !!
- Each vertex in a graph Grepresents a home (computer)
- Each edge represents the amount of cable needed toconnect all computers
Concrete example
-
8/2/2019 1_network Flow Models
10/43
11
Problem: Laying Telephone Wire
Central office
-
8/2/2019 1_network Flow Models
11/43
12
Wiring: Nave Approach
Central office
Expensive!
-
8/2/2019 1_network Flow Models
12/43
13
Wiring: Better Approach
Central office
Minimize the total length of wire connecting the customers
-
8/2/2019 1_network Flow Models
13/43
14
How Can We Generate a MST?
a
ce
d
b2
45
9
6
4
5
5
a
ce
d
b2
45
9
6
4
5
5
-
8/2/2019 1_network Flow Models
14/43
15
Network of Possible Cable TV Paths
The Minimal Spanning Tree ProblemDefinition and Example Problem Data
Problem: Connect all nodes in a network so that the total branch lengths areminimized.
-
8/2/2019 1_network Flow Models
15/43
16
The Minimal Spanning Tree ProblemSolution Approach (1 of 6)
Spanning Tree with Nodes 1 and 3
Start with any node in the network and select the closest node to join thespanning tree.
-
8/2/2019 1_network Flow Models
16/43
17
The Minimal Spanning Tree ProblemSolution Approach (2 of 6)
Spanning Tree with Nodes 1, 3, and 4
Select the closest node not presently in the spanning area.
-
8/2/2019 1_network Flow Models
17/43
18
The Minimal Spanning Tree ProblemSolution Approach (3 of 6)
Spanning Tree with Nodes 1, 2, 3, and 4
Continue
-
8/2/2019 1_network Flow Models
18/43
19
The Minimal Spanning Tree ProblemSolution Approach (4 of 6)
Spanning Tree with Nodes 1, 2, 3, 4, and 5
Continue
-
8/2/2019 1_network Flow Models
19/43
20
The Minimal Spanning Tree ProblemSolution Approach (5 of 6)
Spanning Tree with Nodes 1, 2, 3, 4, 5, and 7
Continue
-
8/2/2019 1_network Flow Models
20/43
21
The Minimal Spanning Tree ProblemSolution Approach (6 of 6)
Minimal Spanning Tree for Cable TV Network
Optimal Solution
-
8/2/2019 1_network Flow Models
21/43
22
The Minimal Spanning Tree ProblemSolution Method Summary
Select any starting node (conventionally, node 1).Select the node closest to the starting node to join thespanning tree.
Select the closest node not presently in the spanning tree
(if there is a tie, select one arbitrarily).
Repeat step 3 until all nodes have joined the spanning tree.
-
8/2/2019 1_network Flow Models
22/43
Lauderdale Construction Example
Building a network of water pipes to supply water to 8
houses (distance in hundreds of feet)
-
8/2/2019 1_network Flow Models
23/43
Steps 1 and 2
Starting arbitrarily with node (house) 1, the closest
node is node 3
-
8/2/2019 1_network Flow Models
24/43
Second and Third Iterations
-
8/2/2019 1_network Flow Models
25/43
Fourth and Fifth Iterations
-
8/2/2019 1_network Flow Models
26/43
Sixth and Seventh Iterations
After all nodes (homes) are connected the total distance
is 16 or 1,600 feet of water pipe
-
8/2/2019 1_network Flow Models
27/43
28
Problem: Determine the shortest routes from the origin to all destinations.
Shipping Routes from Los Angeles
The Shortest Route ProblemDefinition and Example Problem Data
-
8/2/2019 1_network Flow Models
28/43
29
The Shortest Route ProblemSolution Method
Select the node with the shortest direct route from theorigin.
Establish a permanent setwith the origin node and thenode that was selected in step 1.
Determine all nodes directly connected to the permanentset nodes.
Select the node with the shortest route (branch) from thegroup of nodes directly connected to the permanent set
nodes.Repeat steps 3 and 4 until all nodes have joined thepermanent set.
-
8/2/2019 1_network Flow Models
29/43
30
Network of Shipping Routes
The Shortest Route ProblemDefinition and Example Problem Data (2 of 2)
-
8/2/2019 1_network Flow Models
30/43
31
Network with Node 1 in the Permanent Set
The Shortest Route ProblemSolution Approach (1 of 8)
Determine the initial shortest route from the origin (node 1) to the closest node(3).
-
8/2/2019 1_network Flow Models
31/43
32
Network with Nodes 1 and 3 in the Permanent Set
The Shortest Route ProblemSolution Approach (2 of 8)
Determine all nodes directly connected to the permanent set.
-
8/2/2019 1_network Flow Models
32/43
33
Network with Nodes 1, 2, and 3 in the Permanent Set
Redefine the permanent set.
The Shortest Route ProblemSolution Approach (3 of 8)
-
8/2/2019 1_network Flow Models
33/43
34
Network with Nodes 1, 2, 3, and 4 in the Permanent Set
The Shortest Route ProblemSolution Approach (4 of 8)
Continue
-
8/2/2019 1_network Flow Models
34/43
35
The Shortest Route ProblemSolution Approach (5 of 8)
Network with Nodes 1, 2, 3, 4, and 6 in the Permanent Set
Continue
-
8/2/2019 1_network Flow Models
35/43
36
The Shortest Route ProblemSolution Approach (6 of 8)
Network with Nodes 1, 2, 3, 4, 5, and 6 in the Permanent Set
Continue
-
8/2/2019 1_network Flow Models
36/43
37
The Shortest Route ProblemSolution Approach (7 of 8)
Network with Optimal Routes from Los Angeles to All Destinations
Optimal Solution
-
8/2/2019 1_network Flow Models
37/43
38
Shortest Travel Time from Origin to Each Destination
The Shortest Route ProblemSolution Approach (8 of 8)
Solution Summary
-
8/2/2019 1_network Flow Models
38/43
Using LP for SPP
Want to find the shortest path from the factory to
the warehouse
Supply of 1 at factory
Demand of 1 at warehouse
-
8/2/2019 1_network Flow Models
39/43
Decision Variables
Xij = flow from node i to node j
Note: flow on arc ij will be 1 if arc ij is used,
and 0 if not used
Roads are bi-directional, so the 9 roads require
18 decision variables
Sh P h P bl
-
8/2/2019 1_network Flow Models
40/43
Shortest Path Problem
LP Formulation
)andallforbinary,is(
0
1
,10
11
1
i
1
2 2i
1 1
1 1
jix
x
njforxx
njiforxx
iforxx
xcZ
ij
ij
j
ai a
jiij
n
i
jiij
n
ij ij
ijji
m
i
n
j
ijij
Minimize
s.t.
Total Cost
-
8/2/2019 1_network Flow Models
41/43
Example
-
8/2/2019 1_network Flow Models
42/43
Objective Function (in distance)
Min 100X12 + 200X13 + 100X21 + 50X23 +
200X24 + 100X25 + 200X31 + 50X32 +
40X35 + 200X42 + 150X45 + 100X46 +
40X53 + 100X52 + 150X54 + 100X56 +
100X64 + 100X65
Subject to the constraints:
(see next slide)
-
8/2/2019 1_network Flow Models
43/43
Constraints: Flow Balance For Each Node
Node
(X21 + X31) (X12 + X13) = -1 1
(X12+X32+X42+X52)(X21+X23+X24+X25)=0 2
(X13 + X23 + X53) (X31 + X32 + X35) = 0 3
(X24 + X54 + X64) (X42 + X45 + X46) = 0 4
(X25+X35+X45+X65)(X52+X53+X54+X56)=0 5
(X46 + X56) (X64 + X65) = 1 6