Professional Documents
Culture Documents
R Klasinc1 Application of Genetic Algorithms in Water Supply System Life Cycle Analysis
R Klasinc1 Application of Genetic Algorithms in Water Supply System Life Cycle Analysis
Abstract
The present-day water supply services have started to use decision-support tools in order to meet their customers'
supply requirements on one hand and to achieve economic efficiency on the other hand. These tools help the
network management to find the best strategy, which will comprise the majority of influential parameters and
determine the possible outcomes for each future event and intervention. Due to numerous optimising parameters,
which influence the possible outcomes, an optimisation tool called genetic algorithms – GA was developed.
The paper presents the work performed on a small, but complex water supply system, which included building of
a model, model calibration, and an analysis of development perspectives to ensure long term coverage of
customer needs while taking into account the limited resources available. This enabled an advanced analysis of
the existing performance of the water supply system as well as an analysis of different development options.
The work, based on the EPANET and GA library, focused on the problem of multi-objective functions and
interactions. The analysis results can provide a better understanding of the existing system behaviour, more
efficient management, as well as a clearer view of the development needs.
1 Introduction
Harmonisation of interests is of key importance in the area of water supply and management of water supply
systems (Figure 1). On the one hand, there are customers who want sufficient quantity of quality water along
with suitable standards of supply. On the other, there are managers who wish to (and must) run a financially
sustainable business, municipalities, which according to the law have to provide a suitable public service, etc.
[9]. Therefore, the analyses and development of water supply systems in search for an optimal solution integrate
different approaches using computer modelling, which allows better awareness of technical as well as economic
and legal terms (Figure 2).
Figure 1: The relations between actors, issues and areas Figure 2: Searching for an optimal solution
as part of the scope. considering three issues.
From a hydraulic point of view, a water supply system represents a complex system, which should meet the
required standards of supply practically continuously. That is why a thorough estimation is required prior to the
∗
Coresponding author's e-mail: ROMAN.KLASINC@ TUGRAZ.AT
1
Genetic Algorithms in Water Supply
implementation of certain works, since a modification of a single parameter (e.g. diameter of pipe) can have an
impact on the situation in the entire system (pressures, flows) or may even aggravate the conditions in some
other parts of the system.
Figure 3 presents a life cycle of a certain system. Prior to the realisation of works, an analysis and optimisation
of determined decision variables have to be made. The starting point is a calibrated hydraulic model of the
system [9]. Upon the completion of the construction process, new conditions must be monitored to find out any
new possible problems and interests. To support and manage life cycle processes, an engineer's working
environment and tools were installed [1] according to the scheme illustrated as follows on Figure 4.
Users Environment
Problem/interests CAD
AutoCAD
Analisys and
optimization Monitoring
Realization
GIS
ArcView
Figure 3: Life cycle of a certain system. Figure 4: An engineer's working environment and tools
A lot of work has already been done in the area of water engineering optimisation [8], but the number of decision
variables can be enormous, therefore, the harmonisation of interests and requests may turn into a long-lasting
process. Recently, such problems are tried to be solved with the application of Genetic Algorithms (GA), the
basic idea of which is to imitate the natural evolution processes.
Over the last 10 years, the number of studies related to the use of GA optimisation in water supply and
distribution problems has considerably increased. One such use of genetic algorithms involves the integration of
the GA approach and the hydraulics solver. This model has proved to be a very effective tool for planning the
optimal strengthening, rehabilitation, calibration, rezoning and operation of distribution networks [8], [6].
For a better understanding of GA as an optimisation tool, Figure 5 presents a case with a simple water supply
system. Decision variables are diameters of the pipes and characteristics of the tank (diameter and water level
elevation). In this case, variables are encoded in integer-number genomes. Further, random initialisation of
population is established in the predefined range of possible solutions.
After the initialisation, the optimisation starts with an evaluation of each genome/individual of the population.
The decision variables are exported into a hydraulic model to calculate hydraulics behaviour of the system. Each
genome is evaluated with regard to the supply requirements (inappropriate pressures are penalised), costs (higher
costs are penalised, too), and some particular requirements (ecology, other plans and interests, etc.).
2
Genetic Algorithms in Water Supply
Upon the completion of the evaluation of the entire population, the genomes are ranged with regard to the total
score (sum of all scores – requirements, costs, etc.). The worst genomes are eliminated, while the others are put
into the process for the creation of a new (child) generation:
- crossover. The function of crossover is to ensure that the child chromosomes differ from their parents.
Once two parent genomes have been selected (better evaluated chromosomes have more possibilities for
multiplication), crossover involves the exchange of parts of their genetic material to form two new child
genomes;
- mutation. Mutation is final operator in the genetic process and it operates on single chromosomes where
each gene is altered with small probability. If the probability of mutation is too high, the GA degenerates
into random search process [8].
Cycle
for each
genome
Optimisation
Valuation of genome:
- supply requirements Generation
Generacija
- costs
- special requirements
The whole process of optimisation is repeated until there are no more changes in the best score. Figure 6 presents
how the best score slowly converges through generations to the optimum solution considering the stated terms
and fitness function.
3
Genetic Algorithms in Water Supply
25
GA optimisation
15
Score
10
0
0 1000 2000 3000 4000 5000 6000 7000 8000
Generation
Figure 6: Process of GA optimisation is followed with presentation of the score of the best genome in each generation.
Today, the water supply system of Logatec operates to its limits. During the deficiency of water in the time of
peak consumption, the requirements of supply are continuously disturbed (low pressures). To ensure undisturbed
water supply, the interventions have been planned in the lower-pressure part (Figure 8). The plan includes two
well-pump stations (wells CG-4 and CG-5) with a storage facility (tank Sekirica) and suitable pipeline
connections. The planning must take into account the pressure requirements and water demands as well efficient
management.
15
4
Sekirica
4
Genetic Algorithms in Water Supply
In accordance with the proposed interventions from different projects, further decision variables and their
possible values (with widening of the range) have been defined:
- changes of pipe diameters: (genes from 1 to 11) [mm] : 100, 150, 200, 250, 300, 350, 400, 450, or a pipe
is not necessary,
- change of reduction valve diameter (gene 12) [mm] : 100, 150, 200, 250, 300, 350, 400, 450, or a valve is
not necessary,
- changes of pump power: estimated pump curve is multiplied by factors (genes 13 and 14): 0.7, 0.8, 0.9,
1.0, 1.1, 1.2, 1.3,
- tank Sekirica elevation (gene 15) [m] : from 520 to 550 (step 1m)
- additional local (Tabor) increase of energy (pressure) by means of a pump (gene 16) [bar] : from 0.1 to 3
bar (step 0.1 bar), with a possibility of no pump added.
How to incorporate proposed improvements, given with above documented variables, into particular
chromosome (genome), consisted of genes, needed for GA calculations, is shown on the Figure 9.
As starting-point values (pump power, elevation of tank), the proposals from technical documentation (previous
projects and studies) were chosen. With pipe diameters, only the standardised pipe diameters were taken into
account. The pump curves (flow/head) for pumps CG-4 in CG-5 were also taken from previous projects.
Multipliers lower than 1.0 reduce the curve and multipliers higher than 1.0 increase the curve [10].
A multiobjective function needs special settings since it combines many objective functions (requirements,
economy, special terms, etc.) We used weighting of a particular objective function with regard to its significance
(Figure 10). The supply requirements are thus defined as the primary criterion since they have to be fulfilled
although that is not financially sustainable. In case of a cutout of a part of the network, fire, etc., the
requirements do not have to be completely fulfilled, so they can be weighted with lower factors.
- pressure requirements for normal supply measured in 6 representative controlling nodes (Figure 11 – black
circles) under two conditions of the system operation (at peak consumption of water). In the first case,
pumps were shut down, so the whole system was supplied from the Sekirica tank, whereas in the second
case the pumps were open;
- restrictions on the pumped amount of water from wells (CG-4 – 20 l/s, CG-5 – 30 l/s [9]). The genomes,
whose decision variable values showed higher amount of pumped water, got extra penalty;
- construction costs of the pipe network, pump stations and the buster;
- pressure requirements in case of a force majeure. Firstly, a fire situation in the area of Naklo with extra
consumption of water (10 l/s) with duration of one hour (supply only from the Sekirica tank). Secondly, a
cutout of the network in the area of the Tržaška road and in the area of a transportation pipeline (Figure 8),
- requirements for flow velocities,
- oscillation of pressure during a day.
The optimum value (Figure 10) varies due to decision variable (picture generalization). Therefore, in case of
normal supply requirements, the optimum value is at 3.5 bars, and in case of construction costs, it is at zero
value. With weighting a particular objective function with regard to its significance, and total score of an
individual, several scenarios, different boundary (technical, economic, legal) conditions etc. could be calculated.
5
Genetic Algorithms in Water Supply
Normal supply
Score
Construction costs
Flow velocities
Pressure of oscillation
Decision variables
Optimum value
Weighting can be changed also during optimization to get different solutions throughout several evaluations if
different influence of individual objective functions is going to be considered. For given technical, economic and
legal boundary conditions the possible optimal solution achieved by GA are presented on Figure 11.
Measured pressures[bar]:
Z ... supply from reservoir
Best genome score: O ... pump supply
I ... faliure
P ... fire fighting
Figure 11: For different scenarios final result of GA optimisation above parameters of 10 pipes is given.
4 Final remarks
The paper presents the applicability of genetic algorithms, which have proved to be effective in many cases
around the world (planning of renovations of systems, leakage detections, calibrations, etc.). A computer
program named GA-net has been developed to carry out the calibration and optimisation of water supply
systems. GA-net is based on the EPANET program for hydraulic simulations and on the GAlib tool [4] for
performing the GA evaluations.
The range of a calibration problem can be very comprehensive, therefore a simplification skeletonization of the
hydraulic model must be carried out. Besides this, the optimal set of monitoring points must be identified to
reduce their number. The GA provide results which are within reasonable limits of deviation from the real
situation.
6
Genetic Algorithms in Water Supply
The optimisation with GA can be an exacting piece of work, which requires expert knowledge of the conditions
in the water distribution system and takes into account all the factors which influence the optimal solution
(multiobjective function). GA-net can also help us with an explicit identification of the goals, which are not
always clearly determined. Thus, it directly supports the decision making in the area of water distribution. One
of the keys to the achieved results was a good cooperation and support of the managerial staff of the Logatec
water supply company.
The connection of different tools (like GA-net) has proved to be very useful. There are many new research areas,
which can also be integrated (cost-benefits, risk analysis, definition of importance of areas of system, etc.).
5 References
[1] BANOVEC, P. et al, On integration of water management systems with the system of harmonised
nomenclatures. Proceedings, SEMISOFT, ICID, Bratislava, 1999.
[2] Kleiner, Y. et al, Water distribution network renewal planning, Journ. of comp. in civil engineering, 2000.
[3] EUROPEAN STANDARD, Final Draft prEN 805, 1996.
[4] GAlib, A C++ Library of Genetic Algorithms Components, 1996.
[5] Kompare, B. et al, Using machine learning techniques in the construction of models. Ecol. model. [Print
ed.], 1994, vol. 75/76, str. 617-628.
[6] Savic, D. and Walters, G., Genetic algorithm techniques for calibrating network models, Research report
95/12, University of Exeter, UK, 1995.
[7] Savic D. A. et al., Water Supply and Distribution Systems Modelling and Optimisation (WASYMO),
Research Training Network, 2001.
[8] Schaetzen, W., Optimal Calibration and Sampling Design for Hydraulics Network Models, The thesis for
the degree of Doctor of Philosophy in Engineering, University of Exeter, 2000.
[9] Steinman, F. et al, Genetic Algorithms Supported Planning of Water Supply Systems, Journal of
mechanical engineering, 2001.
[10] Rossman, L. A., EPANET 2 – USERS MANUAL, United States Environmental Protection Agency (EPA),
2000, (http://www.epa.gov/ordntrnt/ORD/NRMRL/wswrd/epanet.html).