Abstract
The main objective of pressure management in a water distribution system (WDS) is to minimize leakages, bursts and maintain the required pressure at every node. One of the methods for pressure management is using pressure-reducing valves (PRV). This paper outlines an optimization-simulation approach to determine the optimum location and settings of the PRVs to control the pressure and minimize the leakage in WDSs. To solve the problem, the particle swarm optimization (PSO) tool was coupled with EPANET hydraulic simulation software in MATLAB environment. The results revealed that by observing all the regulations of the problem, through utilizing the proposed method for finding optimal location and regulating the PRVs, the network average leakage rate in a 24-h utilization period dropped by 23%. The performance of the PSO-based model in pressure management was compared with models based on three specific types of powerful algorithms including a genetic algorithm (GA) from the evolutionary algorithms (EA), artificial bee colony (ABC) from the swarm intelligence, and cultural algorithm (CA) from human behavior. The PSO-based model with the lowest objective function call compared to the other three algorithms, was able to reduce leakage compared to GA, ABC, and CA by 1.63, 3.45, and 8.53%, respectively. That shows the presented method is successful in regulating the pressure level to minimize network leakage.
Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.Avoid common mistakes on your manuscript.
Introduction
Water loss is an inevitable problem in almost every WDS, even in those which have been recently installed and the only difference is the amount and the type of loss (Ulanicki et al. 2008). However, these types of losses can be controlled to make economic savings. Managers’ minds have been obsessed with finding leakage management models to attain maximum leakage reduction with the minimum investment that has led to many studies (Mahdavi 2010). After laying the network pipes, the only thing which could affect the leakage amount is the pressure of the pipe that is controllable. From this point of view, reducing the pressure solely or in combination with other methods is a viable, effective, and economical solution for controlling leakage. This pressure reduction has to be conducted to align with supplying the required pressure to meet the consumption requirements throughout the day and night. There are several methods to reduce extra pressure in the network, which one of them is to use PRVs in the WDS. PRVs installation in a WDS could be regarded as an optimization problem. Determination of the optimum number, location, and settings of the valves through optimization methods could be implemented to minimize the leakage (Tabesh and Humehr 2006).
Sterling and Bargiela (1984) proposed a method to minimize leakage through extra pressure reduction in the network by observing the amount of nodes pressure as the goal function using linear programming. To face the non-linear nature of the system, consecutive linearization based on the Newton–Raphson method was utilized. Later, Jowitt and Xu (1990) conducted consecutive linearization of the equations which were dominant on the network. In this method, a decrease of 20% was observed in leakage. Nicolini (2011) formulated the optimal number of locations and settings of the PRVs by taking the minimum required pressure of the nodes for minimizing the number of the valves and considered minimizing the system leakage as the problem objective. He formulated them as the dual-objective optimization problem and utilized the NSGA-II algorithm to solve it. Abdol Magoid (2011) conducted studies on the development and application of several pressure-optimization methods and algorithms at the network level and found out that 60% of leakage could be reduced through proper management. Mutikanga (2012), by effective investigation of the pressure management strategies, revealed that 254–302 L of water loss could be saved daily through reduction of average pressure of the region as 7 m. Nicolini (2011) conducted studies utilizing pressure controlling valves and pumps as turbine (PAT) on the water system of East Napoli, Italy in two separate phases. In the first phase, the PRVs were utilized and in the second phase, some controlling valves were replaced with pumps as a turbine. The results showed that using this method, a large amount of energy is recycled while water losses are greatly reduced. According to the research conducted by Babić et al. (2014) on Kotež, Serbia water network, it was revealed that by reducing the input pressure from 29.5 to 17.5 m using pressure controlling valves, 927 L of water could be saved daily. Saldarriaga and Salcedo (2015), Jafari-Asl (2016) and Jafari-Asl et al. (2018) conducted the studies to ascertain the optimal location and daily settings of the PRVs in WDS to minimize leakage through meta-heuristic methods. The results revealed the proper functioning of the mentioned methods. Latifi et al. (2017) developed a simulation–optimization model based on the Non-Dominated Sorting Genetic Algorithm, version II, (NSGA-II) and EPANET simulation model to find the optimal location of PRVs to maximize the fuzzy reliability index and minimize the excessive pressure in a high-pressure case study WDS.
Creaco and Pezzinga (2018) conducted a comparison between GA and SA algorithms and Linear Programming for the optimal location of control valves for leakage reduction in WDSs. Dini and Asghari (2019) proposed a new efficient method based on PSO to minimize leakage and maximize reliability by finding optimal location and PRVs status in a real large-scale WDS.
The reduction of costs is an important factor to be considered in WDS rule decisions. The use of hydraulic simulations coupled with optimization algorithms has shown to be powerful enough to determine optimal operations (Brentan et al. 2017).
From recent studies which have used artificial intelligence and evolutionary algorithms based methods in the management of water networks, can mention the group method of data handling (GMDH) performance evaluation in predicting the longitudinal distribution coefficient in water networks (Najafzadeh and Sattar 2015), a model based on evolutionary algorithms for conjugate depths of a hydraulic jump in circular pipes (Najafzadeh 2019), and GEP evaluation to describe choke performance in pipeline flow regimes (Kaydany et al. 2014).
Therefore, the main purpose of this study was to investigate the computational efficiency of meta-heuristic methods for optimal locating and optimal daily settings of the PRVs using PSO algorithm to reduce leakage in WDSs. Hence, the organization of manuscript is as: "Introduction", the materials and methods include the explanation of simulation and optimization models; "Application in a case study" represents the application of the proposed model in a case study; "Results and discussion" expresses and discusses the results of the developed model; finally, "Conclusion" concludes the work and discusses possible future researches.
Materials and methods
The proposed methodology consists of a simulation–optimization process that aims to select the most appropriate locating and setting of PRV in WDSs. In this research, the EPANET model is employed as a WDS hydraulic simulation model and PSO is utilized as an optimization tool. In this approach, the optimization model (PSO) is coupled with the hydraulic simulation model (EPANET) in an interactive loop.
Optimization model
The PSO algorithm was first introduced by Kennedy and Eberhart (1995). This algorithm is a population-based evolutionary algorithm that was inspired by the simultaneous flight of birds, swarming fish school and their social lives. The PSO algorithm has been a powerful optimization tool and applied in different fields of water engineering such as the optimal operation of reservoir (Kumar and Reddy 2007), optimizing irrigation water allocation (Noory et al. 2012), optimal design of water supply systems (Montalvo et al. 2010), and automatic calibration of water quality model (Afshar et al. 2011).
In the PSO algorithm, every solution could be considered as a bird swarm, which is called a particle. In such structures, the birds have a type of group behavior leads them towards the aims (Shi and Eberhart 1998). Each particle has “s” dimensions, which shows the number of decision variables of the optimization problem. Each particle (i) located by 3 vectors, merely, the current position of the particle (\(x_{i} = (x_{i,1} , x_{i,2} , \ldots ,x_{i,j } , \ldots , x_{i,s} )\)), the best position of the particle (\(b_{i} = (b_{i,1} , b_{i,2} , \ldots ,b_{i,j } , \ldots , b_{i,s} )\)), and the velocity of the particle \((v_{i} = (v_{i,1} , v_{i,2} , \ldots ,v_{i,j } , \ldots , v_{i,s} )).\) In the PSO algorithm, the group particles must be related to each other in a way that the best position of the particle is also determined and illustrated using the\(g_{i} = (g_{1} , g_{2} , \ldots ,g_{j } , \ldots , g_{s} )\). After determining g in each iteration, the location and velocity of every particle of the group will change and it can be implemented according to the Eqs. (1) and (2):
where \(\omega\) is the weight inertia, \(C_{1}\) and \(C_{2}\) are the cognitive and social parameters respectively, \(R_{1}\) and \(R_{2}\) are randomly selected from a uniform distribution in [0, 1], and t is the number of iterations. The initial procedures of PSO go as follows:
-
1.
Randomly initialize population position and velocities.
-
2.
The fitness of each particle is evaluated based on the objective function.
-
3.
If the calculated fitness for each particle (i) is the best value, the position of the particle (i) is stored as (bi).
-
4.
In every iteration among all the particles, the one that owns the best fitness is chosen and the position of the particle is stored as \(g\).
-
5.
The velocities are reformed according to the Eq. (2).
-
6.
The new position of the particles is established according to Eq. (1).
-
7.
If the stopping conditions such as maximum iteration or minimum error occur, the procedures will finish. Otherwise, the procedures will continue again from step 2.
Simulation model
EPANET 2.0 model was developed by Rossman (2000) for an extended period simulation of hydraulic and quality in WDSs. Basic equations governing hydraulic simulation, driven from the mass (Eq. 3) and energy conservation laws (Eq. 6), respectively, are developed in the network nodes and loops:
where, Qij,k is the flow rate between nodes i and j, \(\alpha_{k}\) is the demand multiplier coefficient, Qreq,i is the average demand at node i, N is the total number of nodes in the system, NL is the total number of load conditions and \(I_{i,k}\) is the leakage at node i that can be defined as follows:
where CL (constant) is coefficient relating the leakage per unit length of pipe to service pressure at node i, Pi,k is the pressure at node i for load condition k, γ is leakage exponent coefficient, and \(L_{{{\text{t}},i}}\) is the total length of pipes tributary to node i. Herein, \(L_{{{\text{t}},i}}\) is considered as:
where the sum is again extended to all links connected to node i.
Head loss in every link (conservation of energy), expressed as:
where \(H_{i,k}\) and \(H_{j,k}\) are head at nodes i and j, respectively, and \(h_{ij,k}\) is the head loss between nodes i, j, and k representing the load condition. Equations (7) and (8), both based on Hazen–Williams formula in SI units, are adopted for calculation of head losses in network pipes and PRVs, respectively, as follows:
where Cij is the Hazen–Williams coefficient, di,j pipe is diameter, Lij is length, uij,k is diameter multiplier (in the range 0,…,1), which simulates the presence of a valve in the link connecting nodes i and j, and depends on load condition k.
Equation (9) is adopted to convert the term uij,k into the setting Vij,k (or valve opening), which is defined by previous authors (Jowitt and Xu 1990; Reis et al. 1997; Vairavamoorthy and Lumbers 1998; Nicolini and Zovatto 2009):
The pressure-driven approach is applied to simulate the hydraulic situation that the available demand is computed as Tabesh et al. (2014):
where \(H_{i}\) is equal to pressure head at node i, \(H_{i}^{\min }\) and \(H_{i}^{\max }\) are the minimum and maximum pressure head at node i, and \(H_{i}^{{{\text{des}}}}\) is desired to head in which the entire demand discharge (\(Q_{{{\text{req}},i}}\)) at node i. \(Q_{a}\) and \(Q_{b}\) are the volumetric and head-dependent portions of the available discharge, respectively. These parameters are calculated as:
Equal values of 50% have been proposed for a and b by Tabesh et al. (2014).
Optimization problem
The problem of pressure management in WDSs is presented here as a single objective optimization problem with the objective function of the system total leakage. For three different hydraulic conditions, to each PRV, a vector of random numbers between 0 and 1 is introduced so that, each bit represents valve opening status during a hydraulic condition. It worth to mention that all the links have the potential to use PRV, however, only five links have been selected randomly to use the valves in the optimization process. In what follows, the mathematical formulation of the objective function is presented:
where \(N\) represents the number of nodes in the system in which leakages are present and \(W_{k}\) is a weight associated with load condition k.
In general, two types of constraints are imposed on this optimization problem. The first type includes the equations of conservation of mass (Eq. 3) and conservation of energy (Eq. 6). Both mass and energy constraints are automatically considered into the EPANET hydraulic simulation model. The constraint of the minimum required pressure in reference nodes (defined in Eq. 16) is considered in the optimization model by introducing a proper penalty function shown in Eq. (17):
In the equations above, \(H_{\min ,i}\) is the minimum required pressure head at node i and \(\alpha\) is the penalty parameter which is chosen by the terial and error. The \(\alpha\) considered here 100,000.
Figure 1 illustrates the described PSO coupled with the EPANET.
Application in a case study
A test WDS from literature (Jowitt and Xu 1990; Nicolini and Zovatto 2009) is considered as a case study. The network includes 25 nodes, 3 reservoirs, and 37 links. The average water consumption of the network is 155 L/s (Fig. 2). Water levels in the reservoirs are constant according to Table 1. The minimum acceptable pressure for reference nodes 19, 22, 21, and 13 have been determined to be30 m. It should be noted that in not-reference nodes or pressure nodes, no minimum pressure constraint is considered. More details about the nodes of the studied network are tabulated in Tables 2 and 3.
Results and discussion
Optimal location of the pressure control valves
The PSO parameters were determined according to trial and error. In the trial and error process, to determine the best values of C1 and C2, the objective function was minimized with different values of these parameters and finally, the values of C1 and C2 were selected as 3 and 2 respectively. In addition, ω was calculated as follows:
where “t” is the number of iterations. To investigate the abilities of the developed model by regulating the parameters corresponding to the above-mentioned values, the model was examined 3 times. All runs converged to the same value of objective function but with different iterations. The iteration of the PSO algorithm loops in each experiment was considered 1000 and the number of the components (group population) was considered 60. Figure 3 represents a schematic diagram of the movement of the best member in each generation toward an optimal solution in trial 2, which has resulted in the best solution. Optimal location and settings of the PRVs for the water requirement conditions of Load 1, Load 2, and Load 3 in problem-solving by optimization model have been presented in Table 4.
The details of the optimal response obtained from the location and the amount of leakage from the network with optimal placement of the PRVs for water requirement conditions of Load 1, Load 2, and Load 3 in each solution have been given in Table 5. According to these results, it could be observed that the algorithm in trial 2 (optimal run) has chosen links 1, 11, 20, 26, and 27 that were identified as the best links for the existence of five PRVs. It is clear that the average leakage for the first, second, and third load conditions are 29.19, 27.58, and 25.51 without PRVs and It reduced for the tree load conditions, 22.71, 22.09, and 22.92, respectively, for the case study WDS with optimized location and setting PRVs.
In the second step, by considering the optimal location found in step one (1, 11, 20, 26, and 27) for optimization, the valve utilization program in a 24-h period was implemented. Codifying the optimization problem was also considered as it has been presented in the methodology section. PSO algorithm parameters were considered similar to the first step. Group population was considered 40 and maximum iteration was considered 500. The details of the obtained responses have been presented in Fig. 4.
Figure 5 shows the leakage diagram during a 24-h utilization period in an uncontrolled and under controlled conditions based on an optimal program by the PSO algorithm. As could be seen, the control program prepared based on the PSO algorithm has caused a significant reduction in leakage level in the network during utilization period in a way that on average, there was 23% leakage reduction in comparison with uncontrolled conditions.
The diagram of pressure variation in the system during a 24-h utilization period under controlled and uncontrolled circumstances based on optimal program prepared by PSO algorithm is presented in Fig. 6 which shows that the proposed method is successful in regulating pressure level in the network.
Comparative results based on meta-heuristic algorithms
The best setting parameters of the three types of efficient algorithms determined based on trial and error are represented in Table 6. Also, the comparison between the results of the current study and these algorithms are shown in Table 7. In terms of optimality solutions, the current simulation-optimization model based on PSO has a better performance than the previous works, such as results obtained using the optimization approaches of GA (Nicolini and Zovatto 2009), ABC (Jafari-Asl 2016), and CA (Jafari-Asl et al. 2018). The objective function (the total leakage rate) was 68.85 L/s after solving for 10 times in the best answer by the GA. The ABC and the CA determined the best solution to be 70.15 L/s after 5 trials and 74.05 L/s after 4 trials, respectively. In this study, the best answer was determined after 3 trials using the PSO algorithm which was 67.73 L/s. The number of objective function calculations to obtain the answers is as follows: 100,000 times in GA algorithm, 100,000 times in ABC algorithm, and 60,000 times in PSO algorithm. A comparison of these four methods indicates that the obtained design for the location of pressure-reducing valves using the PSO algorithm led to the maximum reduction of leakage rate in the shortest time has reduced the rate of leakage, which indicates the applicability of this algorithm. In fact, using the PSO algorithm produces the best response with the least amount of objective function calling that in this problem, requires approximately 40,000 times fewer calls than the ABC, GA, and CA algorithms.
Conclusion
The control of leakage in water distribution systems (WDSs) is one of the major concerns of water industries for saving water. Leakages from WDSs depend on the nodal pressure, hence reducing the excessive pressure of nodes by installing PRVs is a cheap and effective method for decreasing leakages. Finding the location of valves and their optimal setting are the faced challenges. In this study, an optimization- simulation model was developed to find the optimal location and settings of the PRVs to minimize the leakage rate in WDSs for a 24-h operation period (during a night and day cycle). For this purpose, the PSO algorithm was coupled with the EPANET hydraulic simulation model. The results showed that the total leakage was reduced by 23% in a benchmark WDS during a 24-h operation period after using the proposed model. Generally, the proposed model based on the PSO algorithm was successful in regulating pressure levels to minimize leakage in the WDSs. Future research should focus on how to incorporate the optimization of location and setting of PRVs under demand pattern uncertainty. This is a challenging problem because the uncertainty of demand patterns can change the pressure and demand of the nodes. Other work in this area can be developing a multi-objective optimization model to find the relation between the number of PRVs and total leakage in WDS under uncertainty of demand factor and roughness coefficient.
Abbreviations
- WDS:
-
Water distribution system
- PRV:
-
Pressure reducing valve
- C ij :
-
Hazen–Williams coefficient of pipe connecting nodes i and j
- C L :
-
Coefficient relating the leakage per unit length of pipe to service pressure
- d ij :
-
Diameter of pipe connecting nodes i and j
- f(x):
-
Vector of objective functions
- fi, fi(x):
-
iTh objective function
- H i , k :
-
Head at node i for load condition k
- h ij , k :
-
Head loss between nodes i and j for load condition k
- L ij :
-
Length of pipe connecting nodes i and j
- L S :
-
Total number of decision variables (string length)
- L t , i :
-
Total length of pipes tributary to node i
- l i , k :
-
Leakage at node i for load condition k
- N :
-
Total number of nodes in the system
- N L :
-
Number of load (demand) conditions
- N P :
-
Number of nodes for which pi,k \(\ge\)preq,i
- N S :
-
Number of nodes with leakage
- N V :
-
Maximum number of valves allowed
- n V :
-
Number of valves
- p i , k :
-
Pressure at node i for load condition k
- p req , i :
-
Required pressure at node i
- Q ij , k :
-
Flow rate along pipe connecting nodes i and j for load condition k
- Q req , i :
-
Average demand at node i
- V ij , k :
-
Setting of valve ij for load condition k
- v ij , k :
-
Diameter multiplier simulating the presence of a valve in link connecting nodes i and j for load condition k
- w k :
-
Weight associated with load condition k
- x :
-
Vector of decision variables
- α k :
-
Demand multiplier for load condition k
- γ :
-
Leakage exponent coefficient
References
Abdel Meguid H (2011) Pressure, leakage and energy management in water distribution systems. Ph.D. Thesis, Faculty of Technology, De Montfort University, Leicester, UK
Afshar A, Kazemi H, Saadatpour M (2011) Particle swarm optimization for automatic calibration of large-scale water quality model (CE-QUAL-W2): application to Karkheh Reservoir. Iran Water Res Manag 25(10):2613–2632
Babić B, Dukić A, Stanić M (2014) Managing water pressure for water savings in developing countries. Water SA 40(2):221–232
Brentan BM, Luvizotto E Jr, Montalvo I, Izquierdo J, Pérez-García R (2017) Near real time pump optimization and pressure management. Procedia Eng 186:666–675
Creaco E, Pezzinga G (2018) Comparison of algorithms for the optimal location of control valves for leakage reduction in WDNs. Water 10(4):466
Dini M, Asadi A (2019) Pressure management of large-scale water distribution network using optimal location and valve setting. Water Resour Manag 33(14):4701–4713
Jafari-Asl J (2016) Optimal pressure control for leakage minimization in water distribution systems management using meta heuristic techniques. M.Sc. Thesis, Department of Civil Engineering, Faculty of Engineering, Yasouj University, Yasouj, Iran
Jafari-Asl J, Sami Kashkooli B, Bahrami M (2018) Optimal pressure control for leakage minimization in water distribution networks. J Water Sustain Dev 2(4):49–56
Jowitt PW, Xu C (1990) Optimal valve control in water distribution networks. J Water Resour Plan Manag 116(4):455–472
Kaydani H, Najafzadeh M, Mohebbi A (2014) Wellhead choke performance in oil well pipeline systems based on genetic programming. J Pipeline Syst Eng Pract 5(3):06014001
Kenedy J, Eberhart R (1995) Particle swarm optimization. In: Proceedings of the international conference on neural networks, Perth, Australia, 1995 IEEE, Piscataway, pp 1942–1948
Kumar ND, Reddy JM (2007) Multipurpose reservoir operation using particle swarm optimization. J Water Resour Plan Manag 133(3):192–201
Latifi M, Naeeni ST, Gheibi MA (2017) Upgrading the reliability of water distribution networks through optimal use of pressure-reducing valves. J Water Resour Plan Manag 144(2):04017086
Mahdavi MM (2010) Leakage control in water distribution networks using pressure management. Semnan University, Semnan
Montalvo I, Izquierdo J, PerezTung RMM (2008) Particle swarm optimization applied to the design of water supply systems. Comput Math Appl. https://doi.org/10.1016/j.camwa.2008.02.006
Montalvo I, Izquierdo J, Pérez-García R, Herrera M (2010) Improved performance of PSO with self-adaptive parameters for computing the optimal design of water supply systems. Eng Appl Artif Intell 23(5):727–735
Mutikanga HE (2012) Water loss management: tools and methods for developing countries. Ph.D. thesis, TU Delft, Delft University of Technology
Najafzadeh M (2019) Evaluation of conjugate depths of hydraulic jump in circular pipes using evolutionary computing. Soft Comput 23(24):13375–13391
Najafzadeh M, Sattar AM (2015) Neuro-fuzzy GMDH approach to predict longitudinal dispersion in water networks. Water Resour Manag 29(7):2205–2219
Nicolini M (2011) Optimal pressure management in water networks: increased efficiency and reduced energy costs. In: Defense science research conference and expo (DSR), IEEE, Singapore, pp 1–4
Nicolini M, Zovatto L (2009) Optimal location and control of pressure reducing valves in water networks. J Water Resour Plan Manag 135(3):178–187
Noory H, Liaghat AM, Parsinejad M, Haddad OB (2012) Optimizing irrigation water allocation and multicrop planning using discrete PSO algorithm. J Irrig Drain Eng 138(5):437–444
Reis LFR, Porto RM, Chaudhry FH (1997) Optimal location of control valves in pipe networks by Genetic Algorithm. J Water Resour Plann Manage 123(6):317–326
Rossman LA (2000) EPANET 2: user’s manual
Saldarriaga J, Salcedo CA (2015) Determination of optimal location and settings of pressure reducing valves in water distribution networks for minimizing water losses. Procedia Eng 119:973–983
Shi Y, Eberhart RC (1998) Parameter selection in particle swarm optimization. In: International conference on evolutionary programming. Springer, Berlin, pp 591–600
Sterling MJH, Bargiela A (2016) Leakage reduction by optimised control of valves in water networks. Trans Inst Meas Control 6(6):293–298
Tabesh M, Homehr S (2006) Leakage management in water networks using regulation optimization of PRV faucets genetic algorithm. In: Water resource management conference of Isfahan Industrial University, Society of Iran Water Resource Science and Engineering
Tabesh M, Shirzad A, Arefkhani V, Mani A (2014) A comparative study between the modified and available demand driven based models for head driven analysis of water distribution networks. Urban Water J 11(3):221–230
Ulanicki B, AbdelMeguid H, Bounds P, Patel R (2008) Pressure control in district metering areas with boundary and internal pressure reducing valves. In: 10th international water distribution system analysis conference, WDSA2008, The Kruger National Park, South Africa
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The authors declare that they have no conflict of interest.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
Jafari-Asl, J., Sami Kashkooli, B. & Bahrami, M. Using particle swarm optimization algorithm to optimally locating and controlling of pressure reducing valves for leakage minimization in water distribution systems. Sustain. Water Resour. Manag. 6, 64 (2020). https://doi.org/10.1007/s40899-020-00426-3
Received:
Accepted:
Published:
DOI: https://doi.org/10.1007/s40899-020-00426-3