ENGR 3157-Operations Research-Lecture 08-NetworkProblems
ENGR 3157-Operations Research-Lecture 08-NetworkProblems
ENGR 3157-Operations Research-Lecture 08-NetworkProblems
ENGR 3157
Lecture 08 – Network Problems
Office: F220
Tel: 705-675-1151 ext. 2195
Email: [email protected]
2
Networks
1
3
Networks (2)
4
Networks (3)
2
5
Uses of Graph Theory
6
Uses of Graph Theory (2)
3
7
Uses of Graph Theory (3)
8
Shortest Path Problem
3 3
B E H
3
2
7 2
A 4 C G
1 5
2 3
D F
4
4
9
Shortest Path Problem (2)
10
Dijkstra’s Algorithm
5
11
Dijkstra’s Algorithm (2)
3, A
3 3
B E H
3
2
4, A 2
Origin 4 7
A C G
1 5
2 3
lowest-cost label D F
4
2, A
12
Dijkstra’s Algorithm (3)
6
13
Dijkstra’s Algorithm (4)
14
Dijkstra’s Algorithm (5)
3, A 6,
5, B
C
3 3
B E H
3
2
3, D 2
Origin 4 7
A C G
1
10, C
2 5 3
D F label not updated
4 6, D
2, A
7
15
Dijkstra’s Algorithm (6)
3, A 5, C 8, E
3 3
B E H
3
2
3, D 2
Origin 4 7
A C G
1
10, C
2 5 3
D F lowest-cost label
4 6, D
2, A
16
Dijkstra’s Algorithm (7)
8
17
Dijkstra’s Algorithm (8)
3, A 5, C 8, E
3 3
B E H
3
2
3, D 2
Origin 4 7
A C G
1
9, F
2 5 3
D F
4 6, D
2, A
18
In-Class Problem – Dijkstra’s Algorithm #1
2 1 4
B E H K
3 3 2 5
3 3
4 2 3
A C G J L
2
1 4
1 7
5
D F I
2 2
9
19
In-Class Problem – Dijkstra’s Algorithm #2
20
Maximum Flow Problems
4 D 1
2 3 2
A B C E
10
21
Maximum Flow Problems (2)
• LP formulation:
22
Ford-Fulkerson Method
11
23
Ford-Fulkerson Method (2)
Start:
0/4 D 0/1
0/3
0/3
24
Ford-Fulkerson Method (3)
0/3
1/3
1/3
12
25
Min-Cut Max-Flow
26
Min-Cut Max-Flow (2)
3 3
B E H
3
2
7 2
A 4 C G
1 cap. = 5
2 5 3
D F
4
cap. = 13
cap. = 21
cap. = 12
cap. = 9
minimum-capacity cut
= maximum flow
13
27
Minimum-Cost Network Flow Problems
Min: ∑c
∀i , j
ij ⋅ xij
28
Example – MCNFP
14
Example 2
Write the linear program for this transshipment problem to
minimize travel cost.
15