Professional Documents
Culture Documents
Critical Path Method in A Project Network Using Ant Colony Optimization
Critical Path Method in A Project Network Using Ant Colony Optimization
Critical Path Method in A Project Network Using Ant Colony Optimization
Abstract
Critical Path Method (CPM) is useful for planning, analyzing, controlling the
progress and the completion of large and complex projects. The ant colony
optimization (ACO) algorithms are applied to solve many complex
combinatorial optimization problems, such as the traveling salesman problem,
the vehicle routing problem, the problem of graph coloring, the quadratic
assignment problem, the problem of network traffic optimization, the job-shop
scheduling problem, etc. In this paper, we present a study of enhanced ant
colony optimization algorithm for tackling project management problem using
critical path method. In particular, we propose an empirical estimation
approach to evaluate the time duration of the network constructed by the ants.
The proposed method is investigated for a selected project network. The
results demonstrate that compared to conventional methods, the method
proposed in this paper is more effective in determining the critical path and
subcritical paths.
Keywords: CPM, ACO, critical path, project network.
Introduction
Ant algorithms were inspired by observations of real ant colonies. An important and
interesting behavior of ants in colonies is their foraging behavior and in particular
how they can find the shortest paths between food sources and their nest. While
walking from food sources to the nest and vice versa, ants deposit on the ground a
substance called a pheromone, forming in this way a pheromone trail. Ants can smell
a pheromone, and when choosing their way they tend to choose paths marked by
strong pheromone concentrations. When several paths are available from the nest to a
food source, a colony of ants may be able to exploit the pheromone trails left by the
individual ants to discover the shortest path from the nest to the food source and back.
N. Ravi Shankar et al
ACO will have some major differences with a real (natural) one :
(i) artificial ants will have some memory
(ii) they will not be completely blind
(iii)they will live in an environment where time is discrete
Networks have proved very useful for performance evaluation of some types of
projects. This evaluation includes determining certain aspects about the project, e.g.,
what is the least amount of time in which the project may be completed, and which
individual activities should be speeded to reduce overall project length, etc. [1]. Since
the activities in the network can be carried out in parallel, the minimum time to
complete the project is the length of the longest path from the start of project to its
finish. The longest path is the critical path. The purpose of the CPM is to identify
critical activities on the critical path so that resources may be concentrated on these
activities in order to reduce project length time. Besides, CPM has proved very
valuable in evaluating project performance and identifying bottlenecks. Thus CPM is
a vital tool for the planning and control of complex project. By using CPM, managers
are able to obtain [2,3] a graphical display of project activities, an estimate of how
long the project will take and an indication of which activities are the most critical for
timely project completion. A modified Dijkstras algorithm for critical path method
[5] is developed to find earliest event time, latest event time and slack time for each of
its activities in a project network.
The first application of an ACO was done using the traveling salesman problem as
a test problem. Dorigo et al. [6] proposed an ACO algorithm called an ant system for
traveling salesman problem. Dorigo et al. [7] have suggested an ACO approach in
which an ant colony system for traveling salesman problem and the results were
compared and shown to be better than other heuristic approaches like genetic
algorithm, evolutionary programming, simulated annealing, and the annealing genetic
algorithm, which is a combination of genetic algorithm and simulated annealing.
Dorigo et al. [8] have presented the basic biological findings on real ants and their
artificial counterparts and proposed an ACO approach to a number of applications for
combinatorial optimization and routing in communications. Dorigo and Stutzle [9]
suggested various ACO approaches to quadratic assignement problems and compared
the results. Compared with the other heuristics, the ACO approach has proved to be
superior. Den Besten et al. [10] suggested an ACO applicaton for the single machine
total weight tardiness problem. Jayaraman et al. [11] suggested an ACO approach to
the optimal design and scheduling of batch plants. McMullen [12] has suggested an
ACO approach to address a JIT sequencing problem with multiple objectives. The
ACO approach has shown better results than other heuristic approaches in many
scientific and engineering applications and has thus attracted many researchers to
implement the ACO in many unexplored areas. This work is an attempt to implement
the ACO approach in project management problem for critical path method.
acyclic graph. The set V = {1,2, ,n} is labeled in such a way that (i,j) E i <j .
By means of function t, t : E R+ {0}, the activity times in the network are
determined, t [(i,j)] = tij is a duration of activity (i,j) E.
Let us denote by Pi = { k V | (k,i) E } the set of predecessors and Si = { k V
| (i,k) E } the set of successors of event i V. The earliest times, Ti e , of occurrence
of the events i V are determined by recurrence formula :
0 for i = 1
Ti e =
for i > 1.
(Tke + t ki )
max
kPi
(1)
l
Ti =
for i < n.
min (Tkl t ik )
kSi i
(2)
The times obtained by the use of (1) and (2) are applied to the calculation of slack
times,
(3)
Zi = Ti l Ti e ,
for events i V and slack times,
Z(i,j) = T jl Ti e t ij ,
(4)
Dij
10
N. Ravi Shankar et al
towns i and j and is visibility parameter. The trail of virtual pheromones on the edge
(i-j) is the desire based on the experience of the colony to move to the town j from i.
The number of virtual pheromones on the edge (i-j) at an iteration t is denoted by
ij(t).
The probability that an ant k moves at iteration t from a town i to a town j is
calculated by the following probability distribution :
( ij (t )) ( ij )
, if
(
(
t
))
(
)
il
il
Pij , k (t ) =
lik
0, if j ik ,
j ik ,
(5)
,
(6)
ij ,k (t ) = Lk (t )
0,
if (i, j ) Tk (t )
where Tk(t) is the route of the ant k at iteration t, Lk(t) is length of the route Tk(t),
and Q > 0 is an adjustable parameter.
To study the whole space of solutions, the pheromones should evaporate. If the
coefficient of evaporation is denoted by p [0,1] , the update rule for the pheromones
takes the form
m
ij (t + 1) = (1 p) ij (t ) + ij ,k (t ) ,
(7)
k =1
11
Step 4 :using Eq.(6), compute the length of the path traveled by each ant k , and
allocate a quantity amount of pheromone and visibility to the path, according to the
length of its path.
Step 5 : perform a local update using Eq. (7).
Step 6 : compute whether a better solution is obtained in this time step than the last; if
so, then perform a global update on the solution and empty the Tabu value.
Step 7 : repeat steps 2 to 6
12
N. Ravi Shankar et al
node to final node are calculated using DFS algorithm. To investigate the applicability
of the proposed ACO technique, it has been applied to study the case study network,
the influence of number of ants (n) , the decay rate (p) , visibility parameter ( ) and
numerical parameter (Q) are investigated.
5
1
2
Table II: The influence of number of ants on the paths in project network found by
ACO.
Number
of Ants
10
30
Paths
1-2-3-4-5
1-2-3-5
1-2-4-5
1-3-4-5
1-3-5
1-2-3-4-5
1-2-3-5
1-2-4-5
1-3-4-5
Percentage
36
10
22
18
65
34
22
20
16
100
500
1000
1-3-5
1-2-3-4-5
1-2-3-5
1-2-4-5
1-3-4-5
1-3-5
1-2-3-4-5
1-2-3-5
1-2-4-5
1-3-4-5
1-3-5
1-2-3-4-5
1-2-3-5
1-2-4-5
1-3-4-5
1-3-5
13
67
31
45
18
15
68
28
76
16
14
58
25
98
15
13
48
The influence of number of ants on all possible paths in project network found by
ACO for 100 tests is described in table II. During these tests the decay rate ( p) ,
visibility parameter ( ) and numerical parameter (Q) are kept constants. The initial
pheromone level is assumed randomly on all paths. In the initialization phase, the ants
walk randomly according to the randomly existing pheromone level from the initial
step. While they are moving they leave their own pheromones. Then, they follow the
usual pheromone and visibility level. It is clear that using starting from 300 ants leads
to a satisfying results and converge to the optimal solution. These results show that
the ability of ACO to produce a good solution in a short time.
The influence of decay rates on all possible paths in project network solution is
described in table III. In this case, the number of ants(n), intensity parameter(), and
numerical parameter (Q) are kept constants. Using high decay rate leads the ants to
make all paths randomly and the ant does not influence the successor ones. Low
decay rate leads to fast convergence to the preceding path and may lead to immature
convergence due to the lack of exploration of other paths.
The influence of visibility rate on all possible paths in project network is
described in table IV, the number of ants (n), tests the decay rate ( p) and numerical
parameter (Q) are kept constants. Using the high influence of visibility encourages the
ants to choose the path having the largest trail time.
By considering number of ants, decay rate, constants and increasing numerical
parameter. The influence of numerical parameter Q upon the results is described in
table V.
14
N. Ravi Shankar et al
Table III: The influence of decay rate on the paths in project network found by ACO.
Decay
rate
0.05
0.1
0.2
0.5
0.9
Paths
Percentage
1-2-3-4-5
1-2-3-5
1-2-4-5
1-3-4-5
1-3-5
1-2-3-4-5
1-2-3-5
1-2-4-5
1-3-4-5
1-3-5
1-2-3-4-5
1-2-3-5
1-2-4-5
1-3-4-5
1-3-5
1-2-3-4-5
1-2-3-5
1-2-4-5
1-3-4-5
1-3-5
1-2-3-4-5
1-2-3-5
1-2-4-5
1-3-4-5
1-3-5
14
30
12
20
67
32
35
14
22
61
36
38
16
25
53
38
40
14
26
44
40
42
18
24
61
Table IV: The influence of visibility rate on the paths in project network found by ACO.
Visibility
Paths
1-2-3-4-5
1-2-3-5
1-2-4-5
1-3-4-5
1-3-5
1-2-3-4-5
1-2-3-5
1-2-4-5
1-3-4-5
1-3-5
Percentage
42
6
28
38
51
38
15
26
36
49
25
50
100
1-2-3-4-5
1-2-3-5
1-2-4-5
1-3-4-5
1-3-5
1-2-3-4-5
1-2-3-5
1-2-4-5
1-3-4-5
1-3-5
1-2-3-4-5
1-2-3-5
1-2-4-5
1-3-4-5
1-3-5
15
35
30
23
42
46
32
48
26
40
35
31
56
25
41
33
Table V: The influence of parameter Q on the paths in project network found by ACO.
Q
0.5
0.3
0.1
0.06
0.02
Paths
1-2-3-4-5
1-2-3-5
1-2-4-5
1-3-4-5
1-3-5
1-2-3-4-5
1-2-3-5
1-2-4-5
1-3-4-5
1-3-5
1-2-3-4-5
1-2-3-5
1-2-4-5
1-3-4-5
1-3-5
1-2-3-4-5
1-2-3-5
1-2-4-5
1-3-4-5
1-3-5
1-2-3-4-5
1-2-3-5
1-2-4-5
1-3-4-5
1-3-5
Percentage
25
8
28
32
56
23
19
27
31
45
22
28
32
24
40
31
33
25
36
35
45
30
26
38
26
16
N. Ravi Shankar et al
Conclusions
Several researchers have investigated the critical path analysis in the project network
with discrete times. This paper discusses an approach to use Ant Colony optimization
for solving CPM networks. The applicability of the proposed algorithm is
demonstrated for a project network with deterministic times. Investigation of results
reveals that the main advantage of the proposed ACO over traditional CPM is the
ability of the Ant system to produce good critical path and subcritical paths.
References
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10]
[11]
[12]