0% found this document useful (0 votes)
0 views

week 7 Network

Uploaded by

batihanb1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

week 7 Network

Uploaded by

batihanb1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

Introduction to Modeling and Optimization

Week 7: Network Models

1
Network Terminology

• A network consists of a set of nodes and arcs.


• The arcs may have some flow through them.
• If flow is allowed in only one direction, the arc is
a directed arc.
• If flow is allowed in both directions, the arc is an
undirected arc.
Network Terminology (Cont’d)

• A path between two nodes is a sequence of


distinct arcs connecting these two nodes.
• A directed path consists of directed arcs in the
same direction.
• An undirected path allows arc of any direction.

A B
Network Terminology (Cont’d)

• A path that begins and ends at the same node is


a cycle.
• In a directed network, a cycle is either a
directed cycle or an undirected cycle
depending on the directions of the arcs in the
path.
Network Terminology (Cont’d)

• Two nodes are connected if there is a path


between them.
• A connected network is a network where every
pair of nodes is connected.
Network Terminology (Cont’d)

• A tree is a connected network that contains no


cycles.
• A spanning tree is a tree that connects all
nodes in the network.
• If a connected network has n nodes, every
spanning tree has exactly n-1 arcs .
Network Terminology (Cont’d)
• In a directed network with flow, the arc capacity is the maximum
flow allowed on an arc.
• A supply node (or source node) has net flow out of the node.
• A demand node (or sink node) has net flow into the node.
• A transshipment node (or intermediate node) satisfies
conservation of flow; flow in equals flow out.

A 3
1 9
Sink
5
(Demand)
Source 7 4 D
B
(Supply)
6
4 2 5 1

4
C E
Shortest Route Problem
• Find the shortest route between Source and
Sink.
• Idea is to start with the source, or origin, and find
the shortest route to each of the nodes in the
network sequentially until the destination is
reached.
A 7
2 5
2 Sink
D
4
5
Source B
7
4 1 3 1

4
C E
Algorithm for The Shortest Route
Problem
• Start with the source, or origin. Label it with zero
distance from origin. It is now called a solved node.
• Find the next nearest node: do this by
– Consider all unsolved (unlabelled) nodes that are directly
connected to a solved (labelled) node – these are the candidate
nodes
– For each candidate, calculate the distance to origin by adding
the branch distance to the labelled distance
– Find the minimum distance, and label that node with the distance
and the preceding node. This node is now called a solved node.
(if there is a tie, label both nodes.)
• Repeat until the destination becomes a solved node.
The shortest route can then be traced backwards.
Algorithm for The Shortest Route
Problem
Algorithm for The Shortest Route
Problem
Minimal Spanning Tree Problem
Minimal Spanning Tree Problem
Minimal Spanning Tree Problem
• Find the spanning tree of the shortest length

A
7
2 2
5
D Sink
4
5
Source B

7
4 1 3 1

4
C E
Minimal Spanning Tree Problem
Minimal Spanning Tree Problem
Minimal Spanning Tree Problem
Minimal Spanning Tree Problem

• All nodes are now connected, so this solution to the problem is the desired
(optimal) one.
• The total length of the links is 14 miles
Algorithm for Minimal Spanning Tree
Problem
• Start with any node (source node is OK). Label it with 0.
This is now a labelled node.
• Find the closest unlabelled node to any labelled node.
Label it with the preceding node.
• Repeat until all nodes have been labelled.
The minimal spanning tree can then be traced.
Ties may be broken arbitrarily, but multiple optimal
solutions can be identified by pursuing al ties.
Maximum Flow Problem
• Find the max flow from Source to Sink.

A 7

2 2 5 Sink
D
4
5
Source B
7
4 1 3 1

4
C E
The Augmenting Path Algorithm for the
Maximum Flow Problem
1. Identify a flow augmenting path in the residual network
(initially the original network), by checking all nodes
connected to the source node with residual capacity
along the arcs.
If no augmenting path exists, the current flow is optimal.
2. Identify the residual capacity c* of this augmenting path
by finding the minimum residual capacities along all
arcs in the path. Increase the flow in this path by c*.
3. Decrease the residual capacities on each arc in the
path by c* (if arc is in the opposite direction, increase its
residual capacity by c*). Go to step 1.
Minimum Cost Flow Problem

Supply nodes Demand nodes

Transshipment nodes
Let xij be flow though arc i→j.
n n
minimize Z=  c x
i =1 j =1
ij ij (cost of flow)

n n
subject to x −x
j =1
ij
j =1
ji = bi for each node i (flow conservation)

0  xij  uij for each arc i → j (capacity and non-negativity constraints)


Lecture Resources

• Lecture Notes from Prof. Zelda Zabinsky,


University of Washington
• Frederik S. Hillier, Gerald J. Lieberman,
Introduction to Operations Research, McGraw
Hill.

You might also like