Professional Documents
Culture Documents
1 | 2010
ABSTRACT
Water distribution networks are considered as the most important entity in the urban C. R. Suribabu
School of Civil Engineering,
infrastructure system and need huge investment for construction. The inherent problem SASTRA University,
Thanjavur 613402,
associated with cost optimisation in the design of water distribution networks is due to the India
nonlinear relationship between flow and head loss and availability of the discrete nature of pipe E-mail: suribabu@civil.sastra.edu
sizes. In the last few decades, many researchers focused on several stochastic methods of
optimisation algorithms. The present paper is focused on the Differential Evolution algorithm
(henceforth referred to as DE) and utilises a similar concept as the genetic algorithm to achieve
a goal of optimisation of the specified objective function. A simulation– optimisation model is
developed in which the optimization is done by DE. Four well-known benchmark networks were
taken for application of the DE algorithm to optimise pipe size and rehabilitation of the water
distribution network. The findings of the present study reveal that DE is a good alternative to the
genetic algorithm and other heuristic approaches for optimal sizing of water distribution pipes.
Key words | differential evolution, rehabilitation, water distribution networks
INTRODUCTION
(Eusuff & Lansey 2003), ant colony optimization (Maier and rehabilitation of water distribution networks. Use of
et al. 2003; Zecchin et al. 2007; Ostfeld & Tubaltzev 2008), addition, subtraction and component swapping are the
novel cellular automata (Keedwell & Khu 2006) and the distinguishing features of DE that successively update
particle swarm algorithm (Suribabu & Neelakantan the population of solution vectors, until the population
2006a,b) for optimal design of water distribution systems hopefully converges to an optimal solution. In the recent
are some of them. The present paper is focused on past, DEA was used to optimise the water pumping system
implementation of the DE algorithm for optimal design (Babu & Angira 2003), multi-objective reservoir system
Hn $ Hmin ð4Þ
OPTIMISATION MODEL
Table 1 | Pipe cost data for example 1 (two-loop network)
The problem of optimal design of the water distribution
network usually has an objective of minimising the total Diameter (in) Diameter (mm) Cost (units)
capital cost. For a given layout, details like demand and 1 25.4 2
elevation of the node, tank size and its bottom level are 2 50.8 5
assumed as known variables. The objective is to find a 3 76.2 8
combination of different sizes of pipe that gives the 4 101.6 11
minimum cost subjected to the following constraints. 6 152.4 16
Continuity of flow in each node must be maintained in 8 203.2 23
the network. The continuity principle states that the 10 254.0 32
quantity of flow into the node must be equal to the quantity 12 304.8 50
of flow leaving that node. The quantity of flow leaving the 14 355.6 60
node includes the external demand and flow passes out 16 406.4 90
through other pipes emerging from the node. Mathemat- 18 457.2 130
ically it is expressed as 20 508.0 170
X X 22 558.8 300
Qi ¼ Qj þ NDn ;n [ NN ð1Þ
i[in;n j[out;n 24 609.6 550
70 C. R. Suribabu | Differential evolution algorithm for optimal design of water distribution networks Journal of Hydroinformatics | 12.1 | 2010
where Hn ¼ pressure head at node n and Hmin candidate solutions from standard evolutionary algorithms.
¼ minimum required pressure head. Randomly selected candidate solutions (solution vectors)
The diameter of the pipes should be available from a from the population are allowed to undergo the subtraction,
set of commercial sizes: addition and component swapping before reaching the next
generation. DE performs mutation before crossover and
Di ¼ ½D; ;i [ NP ð5Þ
mutation is treated as a constant, which acts as a weighting
factor for the differential vector. The differential vector is
obtained by finding the numerical difference between any
DIFFERENTIAL EVOLUTION (DE) ALGORITHM
two randomly selected solution vectors from the population
Storn & Price (1995) introduced the DEA, which basically or by taking the average of a number of differential vectors
resembles the structure of an evolutionary algorithm created from various randomly selected pairs from the
and differs in terms of the way in which mutation population. This weighted difference vector is added with a
and crossover operators are applied to generate new third randomly chosen solution vector, which in turn creates
Average number of
Sl. no. Authors Technique used function evaluations
2 3
1;1 ; x2;1 ; x3;1 ; …… … ; xn pop;1
xG G G G
6 7
6 7
1;2 ; x2;2 ; x3;2 ; …… … ; xn pop;2
xG
6 G G G 7
6 7
6 7
6 7
1;3 ; x2;3 ; x3;3 ; …… … ; xn pop;3
xG G G G
6 7
6 7
G6 7
PðGÞ ¼ Xi 6 · 7 ð6Þ
6 7
6 7
6 · 7
6 7
6 7
6 · 7
6 7
4 5
1;n var ; x2;n var ; x3;n var ; …… … ; xn pop;n var
xG G G G
that the randomly selected vectors should be distinctive where ‘randij’ denotes a uniformly distributed random value
from each other. It is interesting to note that DE does not within the range [0.0 to 1.0]. xjðUÞ and xðLÞ
j are upper and
use any selection mechanism as in GA; instead the lowest lower limits of variable j.
cost solution vector (in the case of the minimization From the first generation onwards, the population (new
problem) either from the trial vector or its parent target vectors) of the subsequent generation P (Gþ1) is generated
vector is allowed to advance to the next generation. by the combination of vectors randomly chosen from the
(G)
DE operates on a population P of generation G current population by mutation. The noisy vector is then
that contains npop candidate solutions (individuals). mixed with the predetermined target vector.
The position matrix of the population of generation G can The population of ‘trial’ vectors P (Gþ1) is generated as
be represented as follows (mutation and recombination):
8 ðGÞ
ðGÞ ðGÞ
>
< xC;j þ F £ xA;j 2 xB;j if randi;j # C r ; ;j ¼ Di
xGþ1 ¼
i;j >
: xðGÞ other wise
i;j
ð8Þ
where
D ¼ 1; …… … ; nparam ;
A [ ½1; …… … ; npop ; B [ ½1; …… … ; npop ;
C [ ½1; …… … ; npop ; A – B – C – i;
C r [ ½0 to 1; F [ ½0 to 1; rand [ ½0 to 1:
Table 4 | Node and link data for Hanoi network Table 5 | Cost data for pipes for Hanoi network
Node no. Demand (m3/h) Link index Arc Length (m) Diameter (in) Diameter (mm) Cost (units)
diameter when it undergoes the mutation process. From nodes and a reservoir. All the links of the network has a
the initial population, two solution vectors are randomly length of 1,000 m each and the Hazen– Williams coefficient
selected and the difference between each of the parameters is considered as 130 for all the links. The minimum pressure
is determined. The weighted vector is obtained by head requirement for all the nodes is 30 m. Table 1 shows
multiplying by the mutation constant and it is added to the commercially available pipes and their cost per metre
the third randomly selected vector from the initial length. Thirty trial runs are performed with different initial
population to get a noisy vector. Furthermore, a new random seeds, for each set of selected operator constants by
solution vector is obtained by performing crossover, which setting a population size as 20. The mutation constant is
basically selects the pipe diameter either from the noisy varied from 0.6– 0.9 in 0.1 increments and similarly the
vector or target vector, according to the selection
crossover constant is varied from 0.3– 0.5 in increments of
probability. The selection probability is randomly gener-
0.1. Ten different combinations of constants are considered
ated in order to compare with the crossover constant. If
from the above range. The termination criterion for the
it is less than or equal to the crossover constant, the
optimisation is arbitrarily set to 500 generations. As the
pipe diameter is selected from the noisy vector, otherwise
population size is set to twenty, each generation consists of
from the target vector. The overall cost of the new
20 function evaluations. Table 2 provides the results of an
solution (called a trial vector) is calculated after converting
average of 30 trial runs for each combination of constants.
the pipe diameters selected from the noisy vector to
From the trials, the least cost of 419,000 units is found out
the nearest commercial size. As this conversion of
with an average probability of success of 40%, i.e. out of 300
continuous diameter to discrete diameter occurs within
trials, 120 times a least cost of 419,000 is obtained. The
the optimisation (i.e. before the selection of the vector
same is reported in the literature too (Savic & Walters 1997;
for the next generation), this does not affect the goal
Cunha & Sousa 1999; Eusuff & Lansey 2003; Liong &
of optimisation.
Atiquzzaman 2004; Suribabu & Neelakantan 2006a,b).
The average number of function evaluations corresponding
to the least cost is determined as 4,750. In the evaluation
Example 1 (two-loop network)
process, one of the trials having a weighting factor of 0.6
The pipe network in this example (Figure 3) is a and crossover constant of 0.5 has provided an optimal
hypothetical problem drawn from Alperovits & Shamir solution of 419,000 units at the expense of 1,320 function
(1977). The network consists of eight links, six demand evaluations. The optimal diameters for links 1 – 8 are found
74 C. R. Suribabu | Differential evolution algorithm for optimal design of water distribution networks Journal of Hydroinformatics | 12.1 | 2010
Table 8 | Pipe diameter (mm) and nodal pressure heads (m) for solutions of Hanoi network obtained using EPANET version 2
Network cost
Pipe/node no. Dia. (mm) Pres. (m) Dia. (mm) Pres. (m) Dia. (mm) Pres. (m) Dia. (mm) Pres. (m)
300 trials. Further, by increasing the population size to 100 solution is obtained within the first five trial runs for each
and restricting the maximum generation to 1,000, 50 trial runs combination of constants. It is to be noted from Table 6
are performed for ten different combinations of constants that, out of 50 trials, 41 times a least cost of $6,081,087
and it is observed that most of the time, the least cost is obtained. The computational times taken for the
76 C. R. Suribabu | Differential evolution algorithm for optimal design of water distribution networks Journal of Hydroinformatics | 12.1 | 2010
Table 9 | Available pipe diameters and their associated unit length costs
maximum of 10,000 and 100,000 function evaluations are
6 and 52 s, respectively. The average number of function Diameter (in) Pipe cost ($/ft)
in the trial runs. The results obtained using DE and those 132 469.0
Table 10 | Results of the trial runs for New York City network
Table 11 | Optimal diameter (in inches) for parallel pipelines for New York City tunnel expansion problem
Present
Pipe Savic & Walters (1997) Lippai et al. (1999) Montesinos et al. (1999) Wu et al. (2001) Maier et al. (2003) Eusuff & Lansey (2003) work
1 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0
4 0 0 0 0 0 0 0
5 0 0 0 0 0 0 0
6 0 0 0 0 0 0 0
7 108 132 0 108 144 132 144
8 0 0 0 0 0 0 0
9 0 0 0 0 0 0 0
10 0 0 0 0 0 0 0
11 0 0 0 0 0 0 0
12 0 0 0 0 0 0 0
13 0 0 0 0 0 0 0
14 0 0 0 0 0 0 0
15 0 0 120 0 0 0 0
16 96 96 84 96 96 96 96
17 96 96 96 96 96 96 96
18 84 84 84 84 84 84 84
19 72 72 72 72 72 72 72
20 0 0 0 0 0 0 0
21 72 72 72 72 72 72 72
Costp 37.13† 38.13† 38.80 37.13† 38.64 38.13† 38.64
Avg. Eval. 46,016 18,450 37,186 13,928 13,928 5,494
Table 12 | Nodal pressure heads (ft) for solutions of New York City water supply pressure heads for the solutions having costs of $6.056,
network obtained using EPANET version 2
$6.073, $6.081 and $6.220 million while analysing using
Network cost EPANET version 2. It can be seen from Table 8 that the
Pipe/Node no. $37.13 million $38.13 million $38.64 million $38.80 million minimum required pressure head (30 m) is not satisfied at a
1 300.00 300.00 300.00 300.00 few nodes for the solutions having costs of $6.056 and
Table 13 | Available pipe sizes and associated costs for the 14-pipe network average function evaluation of 13,928. Table 11 provides
a comparison of optimal diameter for parallel pipes with
Cost for a new Cost for cleaning
Pipe diameter (mm) pipe ($/m) a pipe ($/m) those reported in the literature. The nodal pressure head for
the solutions having costs $37.13, $38.13, $38.64 and
152 49.54 47.57
$38.80 million are summarised in Table 12 for comparison.
203 63.32 51.51
It is found that the pressure head for solutions having costs
254 94.82 55.12
of $38.64 and $38.80 million are above the minimum
305 132.87 58.07
required values, while analysing using EPANET version 2.
356 170.93 60.70
407 194.88 63.00
458 232.94 –
509 264.10 – Example 4 (14-pipe network)
Table 14 | Demand patterns and associated minimum allowable pressures for the 14-pipe network
Pipe Simpson et al. (1994) Wu & Simpson (1996) Maier et al. (2003) Present work
Table 17 | Allowable and actual pressure heads (m) for optimal solution
Node Hallow Hact ($1.75 million) Hallow Hact ($1.75 million) Hallow Hact ($1.75 million)
Keedwell, E. & Khu, S.-T. 2006 Novel cellular automata approach Design. Report 116, Hydrodynamics Laboratory, Department
to optimal water distribution network design. J. Comput. Civil of Civil Engineering, MIT, Cambridge, MA.
Eng. 20 (1), 49 –56. Simpson, A. R., Dandy, G. C. & Murphy, L. J. 1994 Genetic
Kessler, A. & Shamir, U. 1989 Analysis of linear programming algorithm compared to other techniques for pipe
gradient method for optimal design of water supply networks. optimization. J. Water Resour. Plann. Manage. 120 (4),
Water Resour. Res. 25 (7), 1469 –1480. 423 –443.
Liong, S. Y. & Atiquzzaman, M. 2004 Optimal design of water Storn, R. & Price, K. 1995 Differential Evolution—A Simple and
distribution network using shuffled complex evolution. J. Inst. Efficient Adaptive Scheme for Global Optimization over
Eng., Singapore 44 (1), 93 –107. Continuous Spaces. Technical report, International Computer
Lippai, I., Heany, J. P. & Laguna, M. 1999 Robust water system Science Institute, Berkeley, CA.
design with commercial intelligent search optimizers. Suribabu, C. R. & Neelakantan, T. R. 2006a Design of water
J. Comput. Civil Eng. 13 (3), 135– 143. distribution networks using particle swarm optimization.
Maier, H. R., Simpson, A. R., Zecchin, A. C., Foong, W. K., Phang, J. Urban Water 3 (2), 111 –120.
K. Y., Seah, H. Y. & Tan, C. L. 2003 Ant colony optimization Suribabu, C. R. & Neelakantan, T. R. 2006b Particle swarm
for design of water distribution systems. J. Water Resour. optimization compared to other heuristic search
Plann. Manage. 129 (3), 200 –209. techniques for pipe sizing. J. Environ. Informatics
Montesinos, P., Guzman, A. G. & Ayuso, J. L. 1999 Water
8 (1), 1–9.
distribution network optimization using a modified genetic
Vairavamoorthy, K. & Ali, M. 2000 Optimal design of water
algorithm. Water Resour. Res. 35 (11), 3467 – 3473.
distribution systems using genetic algorithms. Comput. Aided
Neelakantan, T. R. & Suribabu, C. R. 2005 Optimal design of water
Civil Infrastruc. Eng. 15 (2), 374 –382.
distribution networks by a modified genetic algorithm. J. Civil
Vairavamoorthy, K. & Ali, M. 2005 Pipe index vector: a method to
Environ. Eng. 1 (1), 20 – 34.
improve genetic-algorithm-based pipe optimization. J. Hydraul.
Ostfeld, A. & Tubaltzev, A. 2008 Ant colony optimization for least
Eng. 131 (12), 1117 –1125.
cost design and operation of pumping and operation of
Varma, K. V., Narasimhan, S. & Bhallamudi, S. M. 1997 Optimal
pumping water distribution systems. J. Water Resour. Plann.
design of water distribution systems using an NLP method.
Manage. 134 (2), 107 –118.
J. Environ. Eng. 123 (4), 381 –388.
Pitchai, R. 1966 A Model for Designing Water Distribution
Vasan, A. & Raju, K. 2007 Application of differential evolution for
Pipe Networks. PhD Thesis, Harvard University,
irrigation planning: an Indian case study. Water Res. Manage.
Cambridge, MA.
21 (8), 1393 –1407.
Quindry, G., Brill, E. D. & Lienman, J. 1979 Water Distribution
System Design Criteria. Department of Civil Engineering, Wu, Z. Y. & Simpson, A. R. 1996 Messy genetic algorithms for
University of Illinois at Urbana-Champaign, Urbana, IL. optimization of water distribution systems. Research report no.
Rossman, L. A. 2000 EPANET 2- User Manual. National Risk R140. The University of Adelaide, Adelaide.
Management Research Laboratory, Office of Research and Wu, Z. Y., Boulos, P. F., Orr, C. H. & Ro, J. J. 2001 Using genetic
Development, US Environmental Protection Agency, algorithms to rehabilitate distribution systems. J. AWWA 93
Cincinnati, OH. (11), 74 – 85.
Savic, D. A. & Walters, G. A. 1997 Genetic algorithms for least cost Zecchin, A. C., Maier, H. C., Simpson, A. R., Leonard, M. &
design of water distribution networks. J. Water Resour. Plann. Nixon, J. B. 2007 Ant colony optimization applied to
Manage. 123 (2), 67 –77. water distribution system design: comparative study of
Schaake, J. C. & Lai, D. 1969 Linear Programming and Dynamic five algorithms. J. Water Resour. Plann. Manage. 133 (1),
Programming Applications to Water Distribution Network 87 – 92.
First received 27 February 2008; accepted in revised form 3 November 2008. Available online September 2009