1 REAL-TIME MULTIOBJECTIVE OPTIMIZATION OF 2 OPERATION OF WATER SUPPLY SYSTEMS 3 4 5 6 7 8 9 10 11 12 Frederico Keizo Odan¹, Luisa Fernanda Ribeiro Reis²and Zoran Kapelan³ 1 Assistant Professor, Department of Science and Environmental Technology, Federal Center for Technological Education of Minas Gerais, Av. Amazonas, 5253. CEP 30.4121-169, Belo Horizonte, Minas Gerais, Brazil. E-mail: frederico_keizo@yahoo.com.br. 2 Professor, Department of Hydraulics and Sanitary Engineering, University of São Paulo, Av. Trabalhador Sãocarlense, 400. CEP 13566-590, São Carlos, São Paulo, Brazil. E-mail: fernanda@sc.usp.br. 3 Professor, College of Engineering, Mathematics and Physical Sciences, University of Exeter, Harrison Building, North Park Road, Exeter EX4 4QF, United Kingdom. E-mail: z.kapelan@exeter.ac.uk. 13 14 Abstract: The need for more efficient use of energy in water distribution systems is increasing 15 constantly due to increasing energy prices. A new methodology for optimized real-time operation of a water 16 distribution system is developed and presented here. The methodology is based on the integration of three 17 models: (1) real-time demand forecasting model, (2) hydraulic simulation model of the system and (3) 18 optimization model. The optimization process is driven by the cost minimization of the energy used for 19 pumping and the maximization of operational reliability. The latter is quantified using alternative measures 20 into the optimization process in order to mimic the conservative attitude to pump scheduling often adopted 21 by control room operators in real-life systems. Optimal pump schedules were generated by using A Multi 22 ALgorithm Genetically Adaptive Method (AMALGAM), hydraulic simulations are performed by using the 23 EPANET2 model and demand forecasting was performed by using the recently developed DAN2-H model. 24 A number of other methodological developments are used to enable pump scheduling in real-time. The new 25 methodology is tested, verified and demonstrated on the water distribution system of Araraquara, in the State 26 of São Paulo, Brazil. The results obtained demonstrate that it is possible to achieve substantial energy cost 27 savings (up to 13% relative to historical system operation) whilst simultaneously maintaining the level of 28 supply reliability obtained by manually operating the water system. 29 CE Database subject headings: Pumps, Scheduling, Optimization Model, Reliability, Water Supply. 30 Author keywords: Pump scheduling, Optimization, Real-time operation, Reliability, Water Supply. 31 1 32 Introduction 33 Water and waste water utilities consume about 30-60% of city’s energy bill, representing one of the 34 main expenditure of these companies (EPA, 2008), with pumping being responsible for up to 80% of the 35 overall energy consumption (EPRI, 2002). 36 The main objective of water companies is to deliver water to its customers in required quantity and 37 quality, in a reliable and safe manner, at a reasonable price and in often changing demand and other 38 conditions in the system and the surrounding environment. When operating their systems, water companies 39 typically rely only on the experience of their operators. However, the resulting pump (and valve/source) 40 schedules and the associated energy costs tend to be suboptimal as the primary goal of operators is to ensure 41 reliability of supply (should something happen in the system, e.g. a pipe burst) which is often achieved by 42 keeping the system tanks full of water most of the time. 43 A better way of operating the system is by using some pump scheduling methodology to support 44 operators in the control room. A number of such methods have been developed in the past but typically 45 focused on different optimization methods used in the offline context. Initially, local search method were 46 used, i.e. linear programming (Jowitt and Germanopoulos, 1992; Pasha and Lansey, 2009), nonlinear 47 programming (Yu et al., 1994; Sakarya and Mays, 2000), dynamic programming (Zessler and Shamir, 1989; 48 Lansey and Awumah, 1994; Nitivattananon et al., 1996; McCormick and Powell, 2003) and discrete search 49 methods (Pezeshk and Helweg, 1996). Later on, global search methods became more popular, e.g. Genetic 50 Algorithms (GA) (Mackle et al., 1995; Savic et al., 1997; Boulos et al., 2000; López-Ibáñez et al., 2009; 51 Kang, 2013), Simulated Annealing (Goldman and Mays, 2000) and Ant Colony Optimization (López-Ibáñez 52 et al., 2008). Finally, hybrid optimization methods were introduced (van Zyl et al 2004; Loganathan et al., 53 1995; Krapivka and Ostfeld, 2009; Giacomello et al. 2012) to overcome issues with local search (often 54 trapped in local optima) and global search (typically computationally inefficient). In order to further increase 55 the computational efficiency, alternative approaches based on black box models used to substitute the 56 hydraulic model were developed (Jamieson et al., 2007; Broad et al., 2010). Besides the choice for an 57 optimization method, some authors also explored the use of variable speed pumps in order to control 58 pressure/flow to meet the system requirements and save energy (Lingireddy and Wood, 1998; McCormick 59 and Powell, 2003; Ulanicki et al., 2007; Price and Ostfeld, 2013). 2 60 Having said this, the quest to both effective and computationally efficient pump scheduling method 61 continues. This paper explores the application of an alternative optimization method, AMALGAM (Vrugt 62 and Robinson, 2007), which is unique in a sense that it uses simultaneously several other search methods 63 with the aim to identify optimal solutions in a computationally efficient manner - exactly what is needed in 64 pump scheduling. In addition, the above pump scheduling approaches are driven by the single objective, the 65 minimization of pumping energy costs thus not giving any (explicit) considerations to the 66 reliability/resilience of water supply which is of obvious concern to the system operators in real-life 67 conditions. 68 Most of the existing pump scheduling approaches cited above formulate and solve the pump 69 scheduling as an offline problem. Once optimized offline, the resulting pump schedules are used to develop 70 simple control rules which are then used by the operators. However, in real-life conditions, the system is 71 often subjected to irregular demands changes, which cannot be adequately addressed by offline optimization. 72 This can be overcome by introducing real-time (i.e. online) pump scheduling ( (e.g. Coulbeck et al.,1988, 73 Jowitt and Germanopoulos, 1992, Rao and Salomons, 2007; Martinez et al., 2007; Shamir and Salomons, 74 2008). These approaches typically combine specific hydraulic, demand forecasting and optimization models 75 into a single real-time scheduling system. However, none of the very few real-time approaches developed so 76 far seems to offer a way of dealing with the number of pump switches which needs to be minimized in real- 77 time, in order to limit/minimize the maintenance costs associated with the wear and tear of pumps. 78 This paper presents a new real-time pump scheduling methodology based on the integration of two 79 unique models, a specific water demand forecasting model and a specific optimization model (neither used 80 before in the real-time pump scheduling context) with the conventional hydraulic simulation model into a 81 single framework. The framework also makes use of the new algorithm for handling the number of pump 82 switches in real-time and the generation of pump schedules is driven by the novel, two objective 83 optimization approach where the maximization of reliability/resilience of water supply is considered 84 explicitly in addition to the minimization of pumping energy costs. This way the complex tradeoff between 85 these two objectives is explored thus supporting the operators in making relevant, more realistic choices. 86 Finally, unlike in many past approaches, the methodology proposed here is tested and verified on a large 87 system case study. 3 88 89 Real-time Pump Scheduling Framework 90 The real-time pump scheduling framework is shown in Figure 1. As it can be seen from this figure, 91 real-time pump schedules are generated by using the pump scheduling system (i.e., software tool based on 92 the methodology described in this paper) which is run every hour. The real-time pump scheduling procedure 93 is as follows: 94 1. Receive latest data from the Data Acquisition part of the SCADA (Supervisory Control and 95 Data Acquisition) system. These data comprise tanks levels, pump and valve statuses and 96 flows in/out of the system that are used to estimate the current water consumption in the 97 system. 98 99 100 101 2. Forecast water demands for the next 24 hours by using current and past water consumption data; 3. Update the Hydraulic Simulation Model (or Simulator) of the analyzed WDS by using data obtained in steps 1 and 2; 102 4. Run the Optimization Model to identify the optimized system operation, i.e., best pump 103 schedule for the next 24 hours. During the optimization process use the Hydraulic Simulator 104 to evaluate alternative pump schedules generated by the optimizer in terms of optimization 105 objectives and to check the feasibility of the generated pump schedule (with respect to 106 constraints); 107 108 109 5. Implement the optimal pump schedule identified in the previous step for the next hour only. This is done via the Supervisory Control part of the SCADA system (see Figure 1). 6. Repeat steps 1 to 5 continuously, i.e., until scheduling is completed. 110 111 The demand forecasting was implanted here by using the Hybrid Dynamic Neural Network (DAN2- 112 H) developed by Odan and Reis (2012). It is a self-constructing neural network based methodology which 113 models the previous water consumption and the forecasted demand produced by a Fourier Series. The 114 demand forecasting model estimates demands 24 hours ahead at each scheduling time step (i.e. every hour 4 115 here). These values are then used to optimize the operation of a water network for the next 24 hours. More 116 details about the demand forecasting model can be found in the aforementioned reference. 117 The hydraulic model used here is the well known EPANET2 simulation model (Rossman, 2000), 118 which implements the Gradient Method proposed by Todini and Pilati (1987). This model performs 119 extended period simulation of the pressurized water distribution system and is used here to estimate the 120 energy (and hence cost) consumed by the system pumps for given forecasted demands and assumed pump 121 operations over the 24 hour scheduling horizon. 122 123 The following section present the optimization model in more detail. Optimization Model 124 Optimization model is used to determine optimal pump schedules for the next 24 hours given 125 forecasted demands for the same period. The pump scheduling problem is formulated and solved as an 126 optimization problem with specific objectives, constraints and decision variables. 127 The two objectives used in the approach adopted here are the minimization of pumping cost and the 128 maximization of operational reliability. The pumping cost is defined as the cost of energy consumed by the 129 motor pump set, without considering the demand cost of the electricity. The operational reliability is 130 estimated by using four alternative measures: (1) entropy measure, (2) modified resilience index, (3) the 131 minimum reservoir level and (4) the surplus head available, as described below. 132 The entropy reliability proposed by Tanyimboh and Templeman (1993) interprets the flows from the 133 probabilistic point of view. The probability of the water to be conducted by a certain path depends on the 134 pipes of that path. For a network with known flow and its directions, the entropy is defined as follows: 135 Nn S S 0 FQi S i (1) i 1 136 where S is the entropy of the water supply system; S0 is the entropy of the water sources; Si is the entropy of 137 the node i; FQi=FTi/Tot is the fraction of the total flow of the network that reaches node i; FTi is the total 138 flow that reach the node i and Tot is the sum of the demand at the Nn nodes of the system. The source 139 entropy is given as follows: 140 5 S 0 iI Q0i Q0i ln Tot Tot (2) 141 142 where Q0i is the inflow at the source i; I represent the water source set. In an analogous manner, the node 143 entropy is expressed as follows: 144 Si Q Q Qi Qi ij ln ij i 1,..., N n ln FTi FTi ijNDi FTi FTi (3) 145 where Qi is the demand at node i;Qij is the flow at the pipe connecting nodes i and j; and NDi is the pipe set 146 connected to node i. For any water supply system, the entropy depends only on the pipe flow, as the node 147 demand is predefined, which is specific for a certain demand pattern. In other words, the entropy measures 148 the flow uniformity of the water network. 149 150 The modified resilience index is based on Todini (2000) and modified by Jayaram and Srinivasan (2008) to consider multiple water sources: 151 Q H Nn MI r j 1 i j H min, j 100 Nn Q H j 1 i (4) min, j 152 153 where Qj is the demand at node j; Hj is the head at node j; Hmin,j is the minimum necessary pressure to supply 154 node j. 155 The minimum reservoir level is the minimum sum of all reservoir level at a given time, to guarantee 156 existence of minimum water volume at the reservoirs to be used in emergency situations. It is expressed as 157 follows: 158 Nr L min min Lr r 1 159 (5) where Lr is the level of reservoir r and Nr is the number of reservoirs of the considered system. 160 6 161 162 The surplus head is similar to the Modified Resilience index. This measure is only weighted by the node demand, as shown by Equation (6): 163 Q H Nn Pexc j 1 i j Nn Q j 1 164 165 166 167 168 H min, j 100 (6) i The pump scheduling optimization is subject to the following constraints: Pressure at any network node must not be below a pre-specified minimum threshold. A threshold of 10 m is used here, based on Brazilian standards; Final water tank levels must not be lower than the level at the beginning of the simulation, to ensure sustainable long-term system operation; 169 Number of pump switches must be lower than a pre-specified threshold. Excessive pump 170 switching ON and OFF causes premature wear and tear and leads to increased maintenance 171 costs. A threshold of 4 pump switches is used here, based on Lansey and Awumah (1994). 172 Occurrence of errors during hydraulic simulation, caused by pipes been disconnected or 173 occurrence of negative pressures is not allowed and the corresponding infeasible pump 174 schedules are discarded. 175 Each pump schedule is represented using the binary form where 0 represents pump OFF and 1 176 represents pump ON status. Therefore, for a period of 24 hours, the search space size for each pump being 177 scheduled is 224 possible combinations. In order to reduce the search space, the representation proposed by 178 López-Ibañez (2009) and used by López-Ibáñez et al. (2011), called the relative time-controlled trigger, is 179 used here. This representation schedules the pumping by combining the duration of the operating and idle 180 intervals and explicitly limit the number of pump switches. The control is represented by successive pairs of 181 decision variable ti and t'i, representing the period the pump should be OFF and ON, respectively. In this 182 paper three (3) pairs were used, which means the pump switch was limited to three (3), considering the 183 production of the decisions of the next 24 hours. 184 The AMALGAM optimization method (Vrugt and Robinson, 2007) is used here to solve the above 185 optimal pump scheduling problem. AMALGAM simultaneously uses four different metaheuristics which 7 186 learn from each other by sharing data from a common population of points. The search process starts by 187 creating a random initial population P0 of possible solutions (of dimension N) by using the Latin Hypercube 188 Sampling method (Iman and Conover 1982) with uniform distribution. The elements of P0 are then sorted by 189 using the Fast non-dominated sorting algorithm (Deb et al., 2002). The next population Q0 (of the same size 190 N) is created by using the multi-method search, combining k individual metaheuristics, to generate the 191 population Q0 Q01 ,..., Q0k . Each algorithm creates a specific number of solutions, N N t1 ,..., N tk , from 192 P0. The solutions are combined to produce R0 P0 Q0 of size 2N, which are sorted using the fast non- 193 dominated sorting algorithm. The elitism is guaranteed by including the non-dominated solutions in R0. 194 Finally the next solutions are chosen to compose population P1, based on their rank and on their diversity 195 (see crowded comparison operator from Deb et al, 2002). Then a new population is generated from 196 population P1, repeating the previous steps until convergence is achieved. Each algorithm generates 197 offspring solutions N tk proportional to their success in the previous generations of solutions. The main idea 198 of the method is to combine the strengths of different metaheuristics to have a more efficient and effective 199 optimization process. The four metaheuristics used here are the same as in Vrugt and Robinson (2007): (1) 200 the NSGA-II (Non-dominated Sorting Genetic Algorithm II), (2) the PSO (Particle Swarm Optimization), 201 (3) the Adaptive Metropolis Search (AMS) and (4) the Differential Evolution (DE). 202 The AMALGAM metaheuristics produce real value solutions hence the use of relative time- 203 controlled trigger representation makes necessary to convert these solutions into integer values, in order to 204 reduce the available search space, otherwise, the search space would be unlimited. Each time a new 205 population of solutions is generated, a routine is used to fix the solutions. First, the decisions variables are 206 rounded. If the sum of the decision variables of a solution exceeds the period T (e.g., 24 hours), the fixing 207 operator keeps reducing their values proportionally to their initial values, until the sum is equal to the period 208 T. 209 The optimization constraints were handled by using an alternative method proposed by Deb and 210 Agrawal (1999) and modified by Prasad and Park (2004). At each generation, one solution is replaced at 211 random by a schedule that turns ON the pump for the next 24h. In addition, a random solution is replaced at 212 each generation by a solution so that all pumps are switched ON. The above random replacements are done 213 to ensure the existence of at least one feasible solution in the population during the optimization run. 8 214 Post-processing of optimized pump schedules 215 The pump scheduling optimization is performed every hour for the forthcoming 24 hours. However, 216 only the optimized schedule for the first hour is actually implemented in a real-life system, as shown by 217 shaded squares in Figure 2. Having said this, Implementing the first hour schedule may lead to exceeding the 218 maximum number of pump switches allowed for 24 hours. The reason for this is that the currently 219 implemented pump schedule does not consider the schedules already implemented in the past hours of the 220 day. 221 To overcome this issue, the previously implemented pump schedule is evaluated here jointly with the 222 currently optimized pump schedule, as shown in Figure 3. This combined pump schedule is denoted as the 223 Combined Optimized Schedule (COS). In the example shown in Figure 3, the COS consists of two 224 implemented decisions (i.e. actual pump schedules for the past two hours) and the first 22 decisions of the 225 next 24 hours optimized pump schedule. 226 To check if the COS containing the latest optimized pump schedule is feasible, three techniques are 227 used and applied sequentially for each COS. These techniques are: (1) selection of the combined optimized 228 schedule to evaluate, (2) minimization of pump switches in the COS and (3) minimization of pumping 229 during peak energy cost hours (6-9 pm in the case study analyzed here). When these techniques are applied, 230 the binary pump schedule representation is used instead of the relative time-controlled trigger representation 231 (López-Ibañez, 2009) used during the optimization process. This was done as using the binary representation 232 makes combining pump schedules easier. 233 The selection of a single COS evaluates the Pareto front, i.e., the non-dominated points (i.e., pump 234 schedules) until a feasible solution is found. Instead of using any specific method to select a single solution, 235 the selection follows the order of solution produced by AMALGAM heuristc in order to save computational 236 processing. If there are no feasible COS solutions on the non-dominated Pareto front, then solutions from the 237 first next dominated front are considered as potential candidates (and so on, until a feasible solutions in the 238 population is found). If no feasible solution exists in the population then the first evaluated solution (of this 239 selection process) from the non-dominated Pareto set is selected. This technique is used to save 240 computational time by avoiding the evaluation of all solutions. In addition, it is simple to handle and 241 implement (e.g. there are no additional parameters to tune etc.). 9 242 The selected COS is further processed with the aim to minimize the number of pump switches. The 243 following procedure is used for each pump and only for the decisions prior to the peak hours (high energy 244 cost hours, 6-9 pm in the case study analyzed here): 245 1. Store selected COS in schedule1; 246 2. If decision nh (Figure 4), in rounded square (in the case, OFF – 0) is different from decision 247 nh+1, in the shaded square (on the case, ON – 1), then the decision nh+1 is stored in 248 variable status. Afterwards, the decision nh+1 is modified to the same value of decision nh, 249 i.e., it turns 1 to 0, or 0 to 1 if decision nh is ON (1). The new COS is stored in schedule2; 250 3. Evaluate schedule2. If it is not feasible, proceed to next step, otherwise, proceed to step 5; 251 4. Search the next decision of schedule2 equal to the value stored in variable status. In example 252 from Figure 5, it is in position nh+3. The decision immediately preceding it and different of 253 the value stored in status (decision nh+2) is modified to the value stored in status (0->1). 254 The new solution is stored in schedule2; 255 5. Compare schedule e1 and schedule2 using the fast non-dominated sorting and crowding 256 distance algorithms (Deb et al. 2002) and select the best, i.e. non-dominating schedule If both 257 schedules are non-dominated then select schedule2. 258 The COS resulting from the above processing is further modified here by using the procedure that 259 minimizes the pumping during peak hours. This technique is applied if pumps are being used during peak 260 hours, i.e., if the next 24 hours part of the COS uses pump during peak hours, and only for the optimized 261 schedules of the next 24 hours, because the already implemented decisions cannot be changed. The 262 procedure is as follow: 263 264 265 266 267 268 1. Store original COS in schedule1. Obtain number of decisions of schedule1 with status ON during peak hours. This number will be denoted as npeak; 2. Repeat below sub-steps npeak times, for each decision with the status ON during peak hours: 2.1. Turn OFF the decision nh+i (1 ->0) and store modified schedule in vector schedule2, where i represents the difference between nh and the peak hour considered (Figure 6); 2.2. Evaluate schedule2. If it is infeasible, proceed to step 3.3, otherwise proceed to step 4; 10 269 2.3. a) If the decision to be implemented is prior to the peak hours, turn ON the decisions prior to 270 the peak hours, until the schedule becomes feasible (Figure 7); 271 b) If the decision to be implemented is during peak hours, turn ON the decision posterior to 272 the peak hour until it becomes feasible, initiating from the last decision (Figure 8); 273 3. If the decision was successfully modified, classify schedule1 and schedule2 using fast non- 274 dominated sorting and crowding distance algorithms and then select the non-dominating 275 schedule between the two. If both are non-dominated then select schedule2. 276 Case Study 277 The water supply network studied here is operated by the Autonomous Department of Water and 278 Sewage (DAAE), from the city of Araraquara, state of São Paulo, Brazil. The studied DMA has two zones: 279 High Zone and Low Zone, with average water consumptions 144 and 122 m³/h, respectively. The water is 280 largely consumed by residential user but also industrial facilities. The DMA has 125 km of pipes, with 281 diameters varying from 50 to 400 mm. The pipes are made of cast iron, PVC and asbestos cement. 282 The hydraulic model (see network layout in Figure 9) has 1236 nodes and 1491 pipes. The boundary 283 between the two zones is represented by thick dashed line. The Water Supply Facility (WSF) is comprised 284 by the reservoir, the pumping station and the well, located in the thick ellipse (southwest). The Aldo Lupo 285 Well pumps water to the reservoir R25 and is located southeast, highlighted by a thick ellipse (southeast). 286 The WSF, highlighted by another blue ellipse is detailed in Figure 10. The Iguatemi Well usually pumps 287 water to R25, but if necessary can supply water to the reservoir Upper R11 as well. The Upper R11 is 288 usually supplied by the pump located between it and the reservoir Lower R11, which is linked to the R25. 289 The Low Zone is supplied by the R25, while the Upper R11 supplies the High Zone. The detailed 290 information of the reservoirs is in Table 1. The pumps of the wells have 142 kW and supplies 235 and 180 291 m³/h, while the pump that supplies the Upper R11 has 46 hp and provides 240 m³/h. 292 The electricity has two different prices for the peak and off-peak hours, R$ 5.41 and R$ 0.76, 293 respectively. The peak hour refers to the three consecutive hours between 18:00 to 21:00 pm. In order to 294 allow comparison between optimized operation and the operation currently practiced by the water company, 295 it was necessary to identify a period of time without faulty data which was done on a monthly basis. At the 296 end, one month of data was chosen for each District Metering Area (DMA) to optimize its operation, from 11 297 August 12 to September 12 of 2010. Cost was calculated in Real (R$), where US$1.00 was equivalent to 298 R$2.28, according to the currency exchange on 9th September of 2013. 299 300 The DMA hydraulic model was previously calibrated. The water is supplied from the underground wells. Although their level varies with time, an average value was used for the selected month of analysis. 301 The studied problem has 3 pumps, each one can have two possible status (ON/OFF) for each hour 302 during the period of 24 hours, resulting in a search space of 224x3 = 272 = 4.7 1021 possible combinations. The 303 latter certainly justifies the need for applying an optimization method. Each optimization run was limited to 304 2,500 objective function evaluations with a population size of 100, meaning that each optimization run was 305 run for 25 generations. The aforementioned parameter values where chosen after a limited number of initial 306 optimization trials. 307 308 Results and Discussion 309 The multi-objective optimization framework shown here was applied to the analyzed DMA. The 310 pump scheduling optimization is performed for Tuesday, August 17, a typical day of the week. The 311 optimization run took 16.5 minutes, on a Desktop Intel Core i7-3770 3.40 GHz, 8 GB RAM, Windows 64 312 bits, to generate optimal pump schedules for the next 24 hours. 313 Table 2 shows the results obtained by performing five multiobjective optimization runs, using a 314 different combination of objective function(s). The optimized system operation is shown in the second 315 column and the actual (historical) operation by the DAAE is shown in last row. Once the optimization has 316 finished, a solution from the Pareto front, i.e., the first nondominated solution from the list produced by the 317 AMALGAM heuristic was selected in each run. The values of cost, entropy, resilience, minimum level and 318 surplus head were evaluated performing another simulation run. This additional run also evaluated the 319 energy use during the period of 24 hours and during the peak hours (i.e., high energy price) of the evaluated 320 day (see columns 3-7). All these values were evaluated for the historical operation as well. 321 As it can be seen from Table 2, by using real-time pump scheduling it is possible to reduce the cost of 322 energy used by as much as 13.2% (see schedule 4) when compared to the historical DAEE operation, yet 323 maintaining a reasonable minimum reservoir level. As it can be seen from Table 2, pump schedules 1, 2 and 324 4, which have the lowest cost, used pumps for shorter periods during the peak hours, as it was done 12 325 historically by the DAEE operation. The optimization of cost along with reliability measures resulted in 326 higher minimum reservoir levels than the ones obtained when optimizing for cost only as can be observed in 327 schedules 2, 3, 4 and 5. As expected, DAAE operation maintained high minimum reservoir level due to the 328 conservative operation, resulting in the second highest level. 329 The optimized pumping schedules are shown in Figure 11, where Pumps 1, 2 and 3 correspond to 330 pumps of the Aldo Lupo Well, Iguatemi Well and the pump between Lower and Upper R11 reservoirs, 331 respectively. . The schedule 2, that was generated by optimizing the Cost and Entropy based operational 332 reliability, achieved the highest entropy value, which is probably due to highest quantity of energy used. Due 333 to the small variation of the Resilience and Surplus Head function values, it was not possible to draw a 334 conclusion about their benefits, except that they resulted in the highest energy cost (see schedules 3 and 5). 335 Analyzing further the results in Table 2 and Figure 11, it is possible to notice that: 1) The 13.2% 336 reduction on cost of energy (see cost of schedule 4) when compared to the historical DAEE operation was 337 possible because DAEE operation is done in a rather conservative manner with reservoirs kept full most of 338 the time, as demonstrated in Figure 11 and by the fact that the second highest minimum reservoir level is in 339 the case of historical DAEE operation; 2) Optimizing for cost and some measure of operational reliability 340 simultaneously typically results in higher energy costs (see schedules 2, 3 and 5) than when optimizing for 341 costs only (schedule 1). This is the price to pay for increased operational reliability, as demonstrated by the 342 higher entropy based reliability values, higher resilience values, higher minimum reservoir level values and 343 typically higher surplus head values obtained when optimizing for both cost and reliability (relative to cost 344 optimization only); 3) Optimizing for cost and some measure of operational reliability simultaneously may 345 result in lower costs (see schedules 2 and 4) but, at the same time, not that dissimilar operational reliability 346 values when compared to the historical DAEE operation. This further demonstrates the benefits of using 347 optimization. Having said this, based on Figure 11 results, it seems that the price to pay for the reduced cost 348 in optimized solutions (schedules 1-5) when compared to the historical DAEE operation is that the former 349 seems to have slightly larger number of pump switches than the latter (in most cases). 350 The variation of level at reservoirs Upper R11 and R25 can be examined in Figures 12 and 13, 351 respectively. During the peak hours (marked by a red shade in these two figures), a drop in the reservoir 352 levels is usually observed as pumps are typically turned off, to save energy during the peak hours, as shown 13 353 by the optimized strategies and the historical DAAE operation (see Figure 11). This is most obvious from 354 schedule 1 that was obtained by minimizing costs only which resulted in utilizing the full reservoir capacity 355 (see Figure 12 and 13), but at the price of reduced reliability (as demonstrated in Table 2). Note that, 356 opposite of schedule 1, schedules 2 and 4 (see Table 2) are simultaneously addressing the pumping cost and 357 supply reliability costs and are, as a consequence, able to raise reliability whilst still keeping the costs cost 358 low. 359 Figure 14 presents the final Pareto front obtained from a two objective optimization run (cost and 360 minimum reservoir level). As it can be seen, this front has 6 non-dominated points of which the lowest cost 361 schedule leads to savings of 13% when compared to the historical system operation. The graph shows the 362 tradeoff between the two objective functions, where solution A has the slowest cost and minimum level (R$ 363 678,47 and 4,29 m), while solution B has the highest minimum level cost (R$ 1011,43 and 14,76 m). 364 365 366 Of the operational supply reliability measures proposed and analyzed in this paper, the measures 367 based on minimum reservoir level and surplus head seem most suitable for real-time pump scheduling 368 because their measurement units can be easily understood by the operator and the minimum reservoir level 369 showed higher sensitivity to the different pump schedules. Opposite of this, the two measures based on the 14 370 entropy and the modified resilience do not seem suitable as they showed low sensitivity to different pumping 371 strategies. The reason for this is that these measures come from the field of WDS design and the system 372 configuration does not change during the operational optimization. Having said this, these reliability 373 measures could possibly be of use in more complex distribution systems. 374 375 Conclusion 376 This work developed new methodology for real-time pump scheduling by combining two promising 377 techniques for real-time demand forecasting (DAN2-H method) and optimization (the AMALGAM 378 optimization method). Unlike in the existing approaches, the pump scheduling is driven by two optimization 379 objectives, the maximization of operational water supply reliability (several different measures explored) in 380 addition to the more traditionally used minimization of pumping costs. The methodology proposed here also 381 benefitted from the new algorithm for handing the number of pump switches constraint in real-time. Finally, 382 the methodology developed was tested and demonstrated on a real-life water distribution system of 383 Araraquara city in State of São Paulo, Brazil. 384 Based on the case study results obtained, the following observations can be made: 385 1. The proposed real-time pump scheduling methodology can deliver substantial cost savings for the similar 386 level of supply reliability obtained by manually operating the water system. This is achieved by 387 constantly adapting, in an optimized way, pump schedules to the changing demand conditions in a 388 distribution system. In the real-life case study shown here, the pumping energy costs savings obtained 389 were approximately 13% when compared to the historical system operation (for the similar level of 390 operational reliability). 391 2. Using the two objective optimization approach suggested here it is possible to produce an optimized 392 pump schedule that follows more the natural intuition of the water company system operator to 'play 393 safe' by keeping the water level in the reservoir above the minimum allowed for most of the time which, 394 in turn, provides the ability to respond to unplanned events such as e.g. pipe bursts and hence prevent the 395 resulting supply interruptions. Even more, the explicit optimization of operational supply reliability in 396 addition to pumping costs enables identification of the whole tradeoff between the two, which, in turn, 397 enables the system operators to make an informed decision about pump schedules based on their attitude 15 398 toward risk. Note that although the operational reliability can be potentially imposed indirectly (by e.g. 399 tightening the constraints on reservoir levels in optimization driven by cost minimization only), this 400 would prevent directly evaluating the actual operational reliability and defining the corresponding targets 401 hence is not desirable from the practical point of view. 402 3. The AMALGAM optimization method seems to be a reliable and potentially useful method for real-time 403 pump scheduling, at least based on the case study analysis conducted here and the corresponding results 404 obtained. 405 The work presented in this paper is by no means fully conclusive on the topic of optimized real-time 406 pump scheduling. Further work is required to test, validate and demonstrate the methodology shown here on 407 more complex case studies with larger and more complex water distribution networks with additional tanks, 408 booster pumps, variable speed pumps, etc. The developed methodology could be used to cope with the real- 409 time upscaling/implementation issues in more complex water distribution when combined with suitable 410 metamodels (as in e.g. Rao and Salomons 2007, Martinez et al., 2007) and parallelized computing. 411 Further investigation into the tradeoff between pumping costs and operational reliability is required 412 too, perhaps by considering additional reliability measures. Other means of selecting the Combined 413 Optimized Strategy (COS) can be considered too. Finally, additional work is also required to develop new 414 optimization methods that are perhaps better suited to real-time pump scheduling. 415 Acknowledgements 416 The authors acknowledge the support from the São Paulo Research Foundation (FAPESP), from the 417 Coordination for the Improvement of Higher Education (CAPES) and from the Brazilian Scientific and 418 Technological Development Council (CNPq) for providing the PhD's scholarship and Grant to the second 419 author, and also from the Araraquara’s Autonomous Department of Water and Sewage (DAAE-Araraquara, 420 SP, Brazil) for providing data and assistance through the agreement between the company and the University 421 of São Paulo. 422 References 423 424 Alvisi, S; Franchini, M.; Marinelli, A. (2007). A short-term, pattern-based model for water-demand forecasting. J. Hydroinform., 9 (1) (2007), pp. 39–50. 16 425 426 Bakker, M.; Vreeburg, J.H.G.; van Schagen, K.M.; Rietveld, L.C.. (2013). A fully adaptive forecasting model for short-term drinking water demand. Environ. Model. Softw., 48 (2013), pp. 141–151 427 428 Boulos, P.F.; Wu Z.; Orr C.H.; Moore M.; Hsiung P.; Thomas D. (2000).Optimal pump operation of water distribution systems using genetic algorithm, H2ONET - Users Guide.MW Software INC. 429 430 Broad, D.R.; Maier, H.R.; and Dandy, G.C. (2010). Optimal operation of complex water distribution systems using metamodels. J. WaterResour. Plann. Manage., 136(4), 433–443. 431 Cunha, A.A.R. (2009). Otimização Energética da Operação de Sistemas de Abastecimento de Água 432 em Tempo Real. 181 p. Dissertação Mestrado – Escola de Engenharia, Universidade de São Paulo, São 433 Carlos. 434 435 Cutore, P.; Campisano, A.; Kapelan, Z.; Modica, C.; Savic, D. (2008). Probabilistic prediction of urban water consumption using the SCEM-UA algorithm. Urban Water J., 5 (2) (2008), pp. 125–132 436 437 Deb, K.; Agrawal, S. (1999). A niched-penalty approach for constraint handling in genetic algorithms. Proc., ICANNGA-99, Portoroz, Slovenia, pp. 123–135. 438 Deb, K.; Pratap, A.; Agarwal, S.; Meyarivan, T. (2002). A fast and elitist multiobjective genetic 439 algorithm: NSGA-II Evolutionary Computation, IEEE Transactions on In Evolutionary Computation, IEEE 440 Transactions on, Vol. 6, No. 2, pp. 182-197. 441 EPA (Environmental Protection Agency). (2008). Ensuring a Sustainable Future: An Energy 442 Management Guidebook for Wastewater and Water Utilities. 113 p. Available: 443 http://www.epa.gov/waterinfrastructure/pdfs/guidebook_si_energymanagement.pdf [Accessed 24 October 444 2013] 445 EPRI (Electric Power Research Institute). 2002. Water and Sustainability (Volume 4): U.S. 446 Electricity Consumption for Water Supply and Treatment—The Next Half Century. Technical Report 447 1006787. Palo Alto, Calif.: EPRI 448 Giacomello, C.; Kapelan, Z. and Nicolini, M. (2012). Fast Hybrid Optimisation Method for Effective 449 Pump Scheduling, ASCE Journal 450 10.1061/(ASCE)WR.1943-5452.0000239. of Water Resources Planning and Management, doi: 451 Giustolisi, O; Laucelli, D; Colombo, A.F. (2009). Deterministic versus Stochastic Design of Water 452 Distribution Networks. Journal of Water Resources Planning and Management. Vol. 135, no. 2, pp. 117-127. 17 453 Goldman, F. E.; and Mays, L. W. (2000). The application of simulated annealing to the optimal 454 operation of water systems. In Proceedings of 26th Annual Water Resources Planning and Management 455 Conference, Tempe, USA, June 2000. ASCE. 456 457 Iman, R. L.; Conover, W. J. (1982). A distribution-free approach to inducing rank correlation among input variables, Commun. Stat., 11, pp. 311 –334. 458 459 Jamieson, D. G.; Shamir, U.; Martinez, F.; Franchini, M. (2007). Conceptual design of a generic, real-time, near-optimal control system for water distribution networks. J. Hydroinformatics 9 (1), pp. 3–14. 460 Jayaram, N.; and Srinivasan, K. (2008). Performance-based optimal design and rehabilitation of 461 water 462 doi:10.1029/2006WR005316. 463 464 465 466 467 468 469 470 471 472 473 474 distribution networks sing life cycle costing, Water Resour. Res., 44, W01417, Jowitt, P.W.; and Germanopoulos, G. (1992). Optimal pump scheduling in water supply networks. J. Water Resour. Plann. Manage., 118(4), 406–422 Kang, D. (2013). Real-time optimal control of water distribution systems. Proc. 12th International Conference on Computing and Control for the Water Industry (CCWI) 2013, Perugia, Italy. Krapivka, A.; Ostfeld, A. (2009). Coupled genetic algorithm-linear programming for least cost pipe sizing of water-distribution systems. J. Water Resour. Plann. Manage., 135(4), 198–202. Lansey, K. E.; Awumah, K. (1994). Optimal Pump Operations Considering Pump Switches. Journal of Water Resources Planning and Management, Vol. 120, N01, pp. 17-35. Loganathan, G.V.; Greene, J.J.; and Ahn, T.J. (1995). Design heuristic for globally minimum cost water-distribution systems. J. Water Resour. Plann. Manage., 121(2), 182–192. López-Ibáñez, M. (2009). Operational Optimisation of Water Distribution Networks. PhD thesis, School of Engineering and the Built Environment, Edinburgh Napier University, UK, 2009. 475 López-Ibáñez, M.; Prasad, T. D.; and B. Paechter. (2011). Representations and evolutionary 476 operators for the scheduling of pump operations in water distribution networks. Evolutionary Computation, 477 19(3):429-467, 2011. 478 López-Ibáñez, M.; Prasad, T. D.; and B. Peachter. (2008). Ant colony optimisation for the optimal 479 control of pumps in water distribution networks. Journal of Water Resources Planning and Management, 480 ASCE, 134(4):337-346, 2008. 18 481 Mackle, G.; Savic, D.A.; and Walters, G.A. (1995). Application of genetic algorithms to pumps 482 scheduling for water supply. Conf. Publ. No. 414, Genetic Algorithms in Engineering Systems: Innovations 483 and Applications, 1995, Institute of Electrical Engineers (IEE), Sheffield, UK, 400–405. 484 McCormick, G. & Powell, R.S. (2003). Optimal pump scheduling in water supply systems with 485 maximum demand charges. Journal of Water Resources Planning and Management, ASCE, 129 (5) pp. 372- 486 379. 487 Nitivattananon, V.; Sadowski, E.C.; Quimpo, R.G. (1996). Optimization of Water Supply System 488 Operation. Journal of Water Resources Planning and Management, v.122, n.5, September/October, pp. 374- 489 384. 490 491 492 493 Odan, F.K.; Reis, L.F.R. (2012). Hybrid Water Demand Forecasting Model Associating Artificial Neural Network with Fourier Series. J. Water Resour. Plann. Manage. 138 (3), pp. 245-256. Pasha, M. F. K.; Lansey. K. (2009).Optimal Pump Scheduling by Linear Programming. ASCE Conf. Proc. 342, 38. 494 Pezeshk, S.; Helweg, O.J. (1996). Adaptive Search Optimization in Reducing Pump Operating Costs. 495 Journal of Water Resources Planning and Management, v. 122, n. 1, pp. 57-63. doi: 10.1061/(ASCE)0733- 496 9496(1996)122:1(57). 497 Prasad, T.D.; Park, N.S. (2004). Multiobjective genetic algorithms for design of water distribution 498 networks, J. Water 499 9496(2004)130:1(73). Resour. Plann. Manage., 130(1), pp. 73–82, doi:10.1061/(ASCE)0733- 500 Price, E.; Ostfdeld, A. (2013) An iterative linearization scheme for convex non-linear equations: 501 application to optimal operation of water distribution systems, Journal of Water Resources Planning and 502 Management, 2013, doi:10.1061/(ASCE)WR. 1943-5452. 0000275. 503 504 Rao, Z.; and Salomons, E. (2007). Development of a real-time, near-optimal control process for water-distribution networks. Journal of Hydroinformatics, 9(1):25-37, 2007. 505 Romano, M.; Kapelan, Z. (2014). Adaptive water demand forecasting for near real-time management 506 of smart water distribution systems. Environ. Model. Softw. 60 (October 2014), 265-276. 507 DOI=10.1016/j.envsoft.2014.06.016 http://dx.doi.org/10.1016/j.envsoft.2014.06.016 19 508 509 510 511 Rossman, L.A. (2000). EPANET 2 user’s manual. U.S. Environmental Protection Agency, Cincinnati, Ohio. Sakarya, A.B.A.; and Mays, L.W. (2000). Optimal operation of water distribution pumps considering water quality. J. Water Resour. Plann. Manage., 126(4), 210–220. 512 Shamir and Salomons (2008) "Optimal Real-Time Operation of Urban Water Distribution Systems 513 Using Reduced Models", Journal of Water Resources Planning and Management Division, ASCE, Vol. 134, 514 No. 2, pp. 181-185. 515 516 517 518 Tanyimboh, T.T.; Templeman, A.B. (1993). Optimum design of flexible water distribution networks. Civil Eng Syst;10(1), pp. 243-58. Todini, E. (2000). Looped Water Distribution Networks Design Using a Resilience Index BasedHeuristic Approach. Urban Water, Vol. 2, n.3, pp. 115-122. 519 Todini, E.; Pilati, S. (1987). A gradient method for the analysis of pipe networks.International 520 Conference on Computer Applications for Water Supply andDistribution, Leicester Polytechnic, UK, 521 September 8-10. 522 523 Ulanicki, B. , Kahler, J. , and See, H. (2007). “Dynamic optimization approach for solving an optimal scheduling problem in water distribution systems.” J. Water Resour. Plann. Manage. , 133 (1 ), 23–32 524 van Zyl, J. E.; Savic, D. A.; and Walters, G. A. (2004). Operational optimization of water distribution 525 systems using a hybrid genetic algorithm. Journal of Water Resources Planning and Management, ASCE, 526 130(2):160-170. 527 528 529 530 531 532 Vrugt, J. A.; and Robinson, B. A. (2007). Improved evolutionary optimization from genetically adaptive multimethod search. Proc. Natl. Acad. Sci. U.S.A., 104(3), pp. 708–711. Yu, G.; Powell, R.S.; and Sterling, M.J.H. (1994). Optimized pump scheduling in water distribution systems. J. Optim. Theory Appl., 83(3), 463–488. Zessler, U.; Shamir, U. (1989). Optimal Operation of Water Distribution Systems. Journal of Water Resources Planning and Management, v. 115, n. 6, pp. 735-752. 533 Nikhil Padhye and Kalyanmoy Deb. Multi-objective Optimisation and Multicriteria Decision 534 Making for FDM Using Evolutionary Approaches. In Lihui Wang, Amos H. C. Ng, and Kalyanmoy Deb, 20 535 editors, Multi-objective Evolutionary Optimisation for Product Design and Manufacturing, chapter 7, pages 536 219–247. Springer, London, UK, 2011. ISBN 978-0-85729-617-7. 21