Chap 5 - Network Analysis - CPM
Chap 5 - Network Analysis - CPM
By
Dr. Richard Tuyiragize
1
.
Networks are Everywhere
• Physical Networks
• Telephone networks
• Road Networks
• Railway Networks
• Airline traffic Networks
• Electrical networks, e.g., the power grid
• Abstract networks
• organizational charts
• precedence relationships in projects
• Others?
2
.
Overview:
• Networks and graphs are powerful modeling tools.
• Most OR models have networks or graphs as a
major aspect
• Typically all projects can be broken down into:
• separate activities (tasks/jobs) with associated duration
• precedence relationships -
• Each representation has its advantages
• efficiency in algorithms
• ease of use
3
.
Techniques for network analysis
1. CPM (Critical Path Method)
4
.
Network Representation
5
.
Basic Definitions
A graph or network is defined by two sets of symbols:
• Nodes: A set of points or vertices(call it V) are called
nodes of a graph or network.
Nodes
1 2
1 2
6
.
Network representation rules
7
.
House-Building Example
8
.
F
1 3 4
6
A G
5 E 3
4
0 B C 5
Start 8 10 End
D
5
2
9
.
Drawing a network
A small project with 10 activities A-J was recently identified by one of the
third year students at SSP. The third year class then helped the student to
logically set the precedence relationships among the activities of the
project as below.
Activities A & B do not have immediate predecessors, activity A is the
immediate predecessor for activity C while activity B is the immediate
predecessor for activities D & E.
Activity F is an immediate successor for both activities C & D, activity G is
an immediate successor for both activities E & F, while both activities C &
D must end before activity H can start. Additionally, it has been identified
that activities G & H are immediate predecessors to activity I while activity
J can only start after activities C & D have ended.
A consultant within the class has advised that activities I & J are both final
activities of the project.
10
.
C(3) 3
A(4) 3
J(7)
1 D(7) F(7) H(6)
B(2)
E(3) G(4) I(2)
3 5 6 7
11
.
Shortest Route algorithm
• The shortest route problem is usually common in
transportation networks.
• Assume the following simple directed network diagram.
2
Destination D
4
Source S 1
12
.
Shortest Route algorithm
The nodes S & D are the source and destination
respectively.
13
.
Shortest Route algorithm
Illustration example: (Read Hamdy Taha on page 222)
Consider an acyclic graph with dij as distance between
adjacent nodes i and j.
14
.
Shortest Route algorithm
Example: Consider the following network diagram.
5
2 5
2 11 8 6
4
1 10 7
4 3 7
9
3 1
6
15
.
Shortest Route algorithm
u=
2u+d= 0 + 2 = 2
1 12
u=
3u+d= 0 + 4 = 4
1 13
u=
4
u
Min+d ,u 1
+d u
, +
d=
14
2 24
3 34 Min
0+10+
,211+
,43
=7
i = 1,2,3
=
u
u+
Min
5 du
, +
d 2 254 45
2+5,7+8= 7
= Min
i = 2,4
=
u
u+
Min
6 du
, +
d 3 364 46
4+1,7+7= 5
= Min
i = 3,4
=
u
u+
Min
7 du
, +
d 5 576 67
7+6,5+9= 13
= Min
i = 5,6
16
.
Shortest Route algorithm
Revision Question:
A construction company has been contracted to construct a
road between towns A and G. The project engineer has
designed a network diagram joining the two towns, showing all
the other towns between A and G, with their distances as
below.
5
B E
2 11 8 6 Use the shortest route
10 algorithm to advise the
A D G
4 3 7 9 engineer on how to
17
.
CPM and PERT
Network models can be used as an aid in the scheduling of large
complex projects that consist of many activities.
18
.
The CPM algorithm
The following information about activities is obtained.
• expected project duration
19
.
Critical Path Definitions
Determination of the critical path requires the following
information:
• Earliest Start Time (ES) is the earliest time a task can feasibly
start
• Earliest Finish Time (EF) is the earliest time a task can feasibly
end
• Latest Start Time (LS) is the latest time a task can feasibly
start, without delaying the project at all.
• Latest Finish Time (LF) is the latest time a task can feasibly
end, without delaying the project all
20
.
Critical Path Method
• Forward Pass
• Go through the jobs in order
• Start each job at the earliest time while
satisfying the precedence constraints
• It finds the earliest start and finish times
• EFi = ESi + ti
• Earliest start time for an activity leaving a
particular node is equal to the largest of the
earliest finish times for all activities entering
the node.
21
.
CPM: The Backward Pass
• Look for tasks whose earliest start time and latest start time are the
same.
• These tasks are critical, and are on a critical path.
23
.
CPM and Critical Path
24
.
An example for CPM
Widgetco is about to introduce a new product. A list of
activities and the precedence relationships are given in
the table below. Draw a project diagram for this
project.
Activity Predecessors Duration(days)
A:train workers - 6
B:purchase raw materials - 9
C:produce product 1 A, B 8
D:produce product 2 A, B 7
E:test product 2 D 10
F:assemble products 1&2 C, E 12
25
.
Project Diagram for Widgetco
C8 F 12
3 5 6
A6
D7
1 Dummy
E 10
B9 2 4
26
.
Project Diagram for Widgetco Forward Pass (ES,EF)
(9,17) (26,38)
C8 F 12
(0,6) 3 5 6
A6
D7
1 Dummy
E 10
(16,26)
B9 (9,16)
2 4
(0,9)
Node 1 = starting node
Node 6 = finish node
27
.
Project Diagram for Widgetco Backward Pass (LS,LF)
(18,26) (26,38)
C8 F 12
(3,9) 3 5 6
A6
D7
1 Dummy
E 10
(16,26)
B9 (9,16)
2 4
(0,9)
Node 1 = starting node
Node 6 = finish node
28
.
For Widgetco example ES(i)’s and LS(i)’s are as follows:
Activity B: 0
Activity A: 3
Activity D: 0
Activity C: 9
Activity E: 0
Activity F: 0
30
.
Critical path
31
.
Exercise
Activity Preceding Duration
Activity
J: negotiating distribution - 6
K: arrange publicity J 5
L: write screen play - 3
M: Hire Cast and Crew L 5
N: Shoot and edit M, K 4
P: Design Sets L 2
Q: Build Sets P 1