Beruflich Dokumente
Kultur Dokumente
Abstract
This paper deals with the use of optimal control techniques in water distribution networks. An optimal control tool, developed in
the context of a European research project is described and the application to the city of Sintra (Portugal) is presented. 2000
Elsevier Science Ltd. All rights reserved.
Keywords: Optimal control; Water networks; Telecontrol; Nonlinear optimization; Modelling; Simulation
0967-0661/00/$ - see front matter 2000 Elsevier Science Ltd. All rights reserved.
PII: S 0 9 6 7 - 0 6 6 1 ( 0 0 ) 0 0 0 5 8 - 7
1178 G. Cembrano et al. / Control Engineering Practice 8 (2000) 1177}1188
containing the values of #ow at n speci"c passive ele- 3.3. Performance index
O
ments, which cannot be directly measured through the
SCADA and a vector The control actions are generated by optimizing a per-
formance index, i.e. a mathematical expression of the
p3RLN desired exploitation goals.
In general, a performance index may contain one or
containing the values of pressures at n speci"c nodes,
N more of the following terms:
not monitored through the SCADA.
Vectors p and q may be obtained from r and u through E The cost of water supply, treatment and elevation C ,
S
explicit or implicit, generally nonlinear, equations ex- which is a function of the #ows in the m active elements
pressing the hydraulic relationships which couple head contained in vector u.
and #ow. Well-known approximations of these hydraulic E Arti"cial costs related to pressure regulation, ex-
relationships exist for di!erent types of hydraulic ele- pressed in functions C of the pressures in n speci"c
N N
ments. For pipes, for example, the Colebrook}White, the key nodes of the network, contained in vector p.
Darcy}Weisbach or the Hazen}Williams equations (see E Arti"cial costs related to #ow regulation and/or water
e.g. Isaacs & Mills, 1981; Jeppson, 1983; Quevedo, Cem- quality, C , expressed as function of the #ows in
O
brano, Casanova & Ros, 1987) have been widely used in n speci"c pipes of the network, contained in vector q.
O
network #ow and pressure calculations. Similarly, a good
Then, a general performance index may be expressed as
approximation of the head-#ow relationship for pumps
follows: For an instantaneous evaluation,
may be found in Anderson and Powell (1999) as well as in
appropriate manufacturer's speci"cations. For valves, K LN LO
PI" cI (u )# cI (p )# cI (q ), (5)
head-#ow equations, according to their characteristics S G N H O J
and their functionality are usually supplied by the manu- G H J
facturers. Some of the most relevant examples of these where P is the instantaneous value of the performance
equations may be found in Greco (1997). Hence, index and k refers to the values of the instantaneous
values at the kth time period.
p"h(r, u, d), (1) For an evaluation over the entire optimization hor-
izon, the performance index is
q"g(r, u, d), (2)
,\
J" PI, (6)
where d3RLB is a vector of stochastic disturbance con-
I
taining the values of the demands at the n consumer
B where N is the optimization horizon (in a number of
nodes in the network.
sampling periods).
Since the model is used for predictive (optimal)
control, d will generally be a vector of demand forecasts,
3.4. Constraints
obtained through appropriate prediction models (see
Section 2.1).
The performance optimization must take into account
An augmented state vector is de"ned as
that a number of important constraints exists:
x3RL, E On the control variables, such as the #ows across the
(3) active hydraulic elements. Pumps and valves have spe-
n"n #n #n , ci"c ranges of #ow for correct operation.
P O N
where x contains the n values of reservoir volume vector u3;, ;LRK
P
r, the n values of the #ow vector q and the n values of E On other variables, such as the levels in the reservoirs.
O N
the pressure vector p. These include capacity and operational limits on water
minimum and maximum allowed levels. Similar con-
3.2. Dynamic model straints may be in order in the selected nq pipes and the
np pressure measurement nodes. Note that the optim-
The dynamic model of the network may then be ization can only be performed in the space of controls
written, in discrete time, as while these constraints are expressed in terms of other
variables, which cannot be actuated directly.
xI>"f (xI, uI, dI), (4)
r3S, SLRLP ,
where f represents the mass and energy balance in the
q3Q, QLRLO ,
water network and k denotes the instantaneous values at
sampling time k. p3H, HLRLN .
1180 G. Cembrano et al. / Control Engineering Practice 8 (2000) 1177}1188
The optimization process consists of searching the space the type of variables to be used to express #ows and
of admissible control actions to obtain the minimum (or pressures. This is important since very e$cient methods
maximum) value of the performance index, while produ- exist for optimizing vast classes of problems involving
cing only admissible states of the network. continuous variables and continuously di!erentiable
It is important to remark that the performance index functions, especially because it is possible to use gradi-
can only be minimized with respect to the control vari- ent-based searchs. Conversely, the methods of integer
ables (#ows across active hydraulic elements), since these programming required to optimize problems with integer
are the only variables which may be acted upon. However, or binary variables are mainly of combinatorial nature
the value of the index also depends on variables that are and they cannot make use of the gradient concepts. They
not directly controlled, but must be evaluated for each are, therefore, usually slow and not necessarily guaran-
control action. Similarly, the contraints apply both on teed to converge. For this reason, it is often preferred to
directly controlled variables and on other variables related work with continuous approximations of the values of
to passive elements, which cannot be operated directly. the discrete variables involved in the optimization, as
In many practical cases a distinction can be made follows:
between `harda and `softa constraints, the former being
E Valves: They allow any value of the #ow in its opera-
those which must be ful"lled strictly and the latter, those
tional range. Therefore, continuous variables can be
which may be violated to some moderate extent. In
used to represent the value of the #ow through a valve.
particular, the operational levels of reservoirs, the min-
E Fixed-speed pumps: For a speci"ed value of the down-
imum-pressure and the #ow-range constraints may usu-
stream pressure or the head increase, only one value of
ally be de"ned so that only soft bounds are imposed. In
the #ow is possible according to the characteristic
this case, the optimization may proceed by augmenting
equation of the pump. Therefore, the instantaneous
the performance index with penalty terms which impose
value of the #ow through a pump cannot be realisti-
the approximate ful"lment of the soft constraints, using
cally modelled using continuous variables. However,
Lagrange multipliers (see e.g. Minoux, 1986).
the volume of water through a pump in a speci"ed
period (e.g. hourly periods, as required for the dynamic
optimization) may attain any desired (feasible) value
4. Complexity of the optimal control problem in
through pulse-width modulation, i.e., by operating the
water networks
pump only a portion of the period.
E Batteries of xxed-speed pumps: Utilizing a number
The computational complexity of the optimal control
of "xed-speed pumps usually allows for a modulation
problem in water networks is determined by a number of
in the #ows, which makes it easier to model the #ow
important factors in the real network and in the model-
as a continuous variable. Additionally, continuous-
ling assumptions. The main factors and their in#uence on
variable optimization methods may be modi"ed to
the optimization complexity are outlined below.
produce sub-optimal solutions which are close to inte-
ger numbers. An example of one such approach is
4.1. Size
given in Section 6.2.4.
The size of the optimization problem depends on the
4.3. Type of network description
number of active hydraulic elements to be optimized, on
the number of passive elements which re#ect the state of
The e!ect on the network of each candidate control
the network, such as reservoirs and pressure- or #ow-
strategy tested by the optimization must be evaluated
evaluation nodes, but also, most importantly, on the
using the network description and hydraulic couplings
optimization horizon. Instantaneous optimization prob-
stated in Eqs. (1)}(3). The complexity of these equations
lems pose few computational di$culties, but dynamic
will obviously in#uence the time required by the opti-
optimization problems over 24 or more hourly intervals,
mizer to evaluate each candidate control action.
which are common in many water utilities in Europe,
impose a very high computational burden in non-trivial E Flow-only models and, in particular, those models
networks. This is so because of the combinatorial nature where only the control variables are required to com-
of the problem of searching the space of controls for pute the change in the state of the network produced
a number of interacting active elements in a 24-step- by a control action allow a very fast evaluation of
ahead horizon. control actions.
E Flow and pressure models, where a number of pres-
4.2. Type of hydraulic elements involved sures and/or #ows in passive elements are required to
compute the change in the state of the network pro-
The type of hydraulic elements a!ects the design of duced by a control action, impose longer execution
strategy optimization programs insofar as it determines times for each test. The problem is easier when explicit
G. Cembrano et al. / Control Engineering Practice 8 (2000) 1177}1188 1181
equations exist to compute the pressures and/or #ows which water is supplied to a number of local small distri-
in passive elements, in terms of the control variables. If bution areas, each of which may contain at most one
this is not the case, an iterative simulation procedure reservoir, as shown in Fig. 2.
must be run for each evaluation of a control action. The special characteristics of this network allow the
This condition imposes considerably longer execution use of spatial decomposition techniques for optimization,
times. which make it possible to compute a solution to a large
complex problem through the iterative solution of
a number of simple problems, see e.g. Coulbeck (1977).
4.4. Type of optimization equations
Note, in particular, that the sense of the #ows is "xed,
from the central source to the demands.
The availability and computational complexity of op-
Tree-structure water networks generally have one
timization methods varies according to the form of the
large source (and usually, an associated reservoir) from
equations involved. In particular, for continuous-vari-
which water is supplied to a small number of intermedi-
able problems:
ate locations, where it is stored and/or pumped to the
demand nodes, as shown in Fig. 3.
E Problems with linear performance indexes and linear
Note that here too, the sense of the #ows is de"ned,
constraints have fast and e$cient solution methods
from the source to the demands.
based on the SIMPLEX method.
A cascade water network is a special case of a tree-
E Problems with quadratic performance indexes and lin-
structure network where there is only one branch, as
ear constraints have fast and e$cient methods based
shown in Fig. 4.
on gradient techniques, which are guaranteed to con-
A mesh-structure network usually contains
verge in a number of iterations equal to the dimension
several sources (e.g. with associated reservoirs) and
of the optimization space.
is highly interconnected so that the demands can be
E Problems with other nonlinear convex performance
supplied from more than one source and, in general,
indexes and linear constraints may be solved using the
with di!erent operation patterns, so that the sense of
same methods as above, without the guarantee of the
the #ows is not "xed in some of the valves and pipes (see
number of iterations for convergence.
Fig. 5).
E More general problems with convex performance in-
dexes and nonlinear constraints de"ning a convex
space may be solved with gradient-based techniques
e$ciently.
E Nonconvex problems pose serious di$culties, as there
is no guarantee that only one extremum (minimum or
maximum) exists. In these cases, random- and heuris-
tic-search methods may be used.
E For integer or binary-variable systems, the optimiza-
tion problems are of a combinatorial nature. Search
and pruning methods are available, such as the
branch-and-bound algorithms, which are e$cient in
some speci"c cases with a moderate dimensionality.
Fig. 2. Star-structure water network.
4.5. Topology
computational complexity. This is the case of networks 5.2.3. The result presentation and analysis interface
with hydraulic models involving #ows and pressures for This interface shows the results of the optimization
the optimization and the interaction with the state es- process (Figs. 8 and 9), in terms of strategies for the
timation and alarm management procedures to validate control elements and evolution of the reservoir volumes.
and correct optimization results. Additionally, it is possible to visualize details of the
optimization execution log.
5.2. The WATERNET optimal control module
5.2.4. Integration with other water management tools
5.2.1. Structure The WATERNET optimal control module is executed
The WATERNET optimization solver relies on in cooperation with other water management tools,
a powerful commercial optimization tool (CONOPT), corresponding to other modules in the WATERNET
which can e$ciently deal with linear or nonlinear cost project. In particular, it interacts with the Supervision
functions and constraints. It incorporates several optim- system, and with the Simulation, Learning and Quality
ization procedures and it can provide information on the Control subsystems.
optimization process, as required by the user, with di!er- At a "xed time everyday the optimization is started
ent degrees of detail. The WATERNET optimization mod- according to the scheme shown in Fig. 10. First of all, it
ule also incorporates a commercial interface to the retrieves the current status of the network * reservoir
CONOPT program (GAMS, 1997) which makes it simpler volumes, pump status, valve ratios * from the Super-
for a user who is knowledgeable in optimization to input vision Subsystem. From the Learning Subsystem, it gets
the de"nition of the problem to the CONOPT program. the demand-forecast results. Once the optimization
In addition, a higher-level user interface has been de- procedure is run, it also interacts with the simulation
veloped and added, so that it is simple for a water facility module for the validation of a provisional set of control
user to introduce a water optimization problem, with no
previous knowledge in optimization and then to run the
optimization and analyze the results very easily. This
combination constitutes a powerful tool for the optimiza-
tion of a very broad class of water systems.
Fig. 6. The network window. Fig. 8. The optimization results window showing a reservoir evolution.
1184 G. Cembrano et al. / Control Engineering Practice 8 (2000) 1177}1188
6.2.2. Constraints
The constraints are related to the mass balance in the
whole network, the head-#ow relationship in pipes and
valves, the operational limits on the reservoir volumes,
and a pressure limitation at one junction node.
6.2.4. Obtaining discrete values for pump setpoints Strategy Manual Optimal
At each pumping station i of the network, there are
a number of identical pumps in parallel, with equal Water source 1 1425 1573
Water source 2 2068 1188
nominal #ow, q . Let s be an m-dimensional vector that
G Pumping Carenque 618 608
contains, in each component i, the number of pumps Pumping Monte Abraao 39 19
switched on at pumping station i. Then, at each sampling Total 4150 3388
interval k, the value of the total #ow through this station
(corresponding to the ith component of vector u), may be
expressed as
where w is a penalty weight. This function takes min-
u(i)I"s(i)Iq , (10) imum (zero) value when the values of s are close to
G
so that optimizing s is equivalent to optimizing u. Integer integers, so that the set-points (expressed in number of
values of s correspond to setpoints indicating a certain pumps on) can be approximated to the nearest integer for
number of pumps switched on during the corresponding the simulation and real implementation.
time interval. Non-integer values may be translated into
setpoints corresponding to switching on a number of 6.2.5. Optimization method
pumps for a fraction of the sampling interval. The optimization method is a generalized reduced
Since it is important to avoid too frequent switching gradient method, "rst suggested by Abadie and Carpen-
operations for the pumps, it is preferable to obtain values tier (1969), implemented as a part of the CONOPT li-
which are close to integer numbers for the components of brary, which can cater for the nonlinear performance
vector s. In order to achieve this, a penalty function J is index and constraints. It starts by "nding a feasible
?PR
added to the performance index. It penalises the #ow solution; then, an iterative procedure follows, which
values that do not correspond to an integer number of consists of:
pumps on:
E "nding a search direction, through the use of the Jac-
K obian of the constraints, the selection of a set of basic
JI " w(1!cos 2ps(i)I), (11)
?PR variables and the computation of the reduced gradient,
G
1186 G. Cembrano et al. / Control Engineering Practice 8 (2000) 1177}1188
compared with the optimal one, computed through the control procedures to compute the strategies for pump-
optimization procedure. ing and water transfer operation, as compared to the
Fig. 11 shows the optimal control strategy for two actual strategies computed intuitively by an operator.
pumping stations. As can be seen, the pumps are ON This is the case in a variety of water distribution systems,
mostly (dotted line) when the electrical tari! is low (solid where the structure, the size or the complexity of the
line). However, since some of the demands are very hard hydraulic interactions make it hard for a person to pro-
to meet, the pumps must occasionally work with an duce optimal control strategies.
expensive tari!. Future research issues on this subject include the calib-
Fig. 12 shows the evolution of the reservoirs, according ration of water network models, the improvement of the
to the simpli"ed and the detailed models. In both cases, it methods to cater for other water management needs,
may be observed that the evolution is satisfactory, since such as the minimization of switching operations in
no extreme (over#owing or empty) conditions are pumps and valves and the improvement of the techniques
reached while satisfying all the demands. for obtaining integer strategies for the pumping opera-
For illustration, the results of the optimal control tions.
procedure are compared to the actual manual strategy
which was used on one day (speci"cally December 15,
1997). Acknowledgements
In Table 1 the costs in ECU of the manual, and
optimized strategy are compared. This work has been partly funded by the Commission
It is important to remark that the numeric values of of the European Communities (ESPRIT-IV No. 22186)
this comparison must only be considered orientative, and by the Research Committee of the Generalitat de
because the optimal control results are based on models Catalunya (group SAC, ref. 1997AGR00098). The
that are de"nitely a representative of the actual hydraulic authors are members of CERCA (Association for the
system, but their parameters have not yet been thorough- Study and Research in Automatic control) and of LEA-
ly calibrated, whereas the results of the manual strategy SICA (Associated European Laboratory on Intelligent
are retrieved from the historical data of the real network. Systems and Advanced Control). The contribution of
In any event, it may be appreciated that, by implemen- Messrs. Carlos Martins Nunes and Jorge Vilala of SMAS
ting the optimal strategy, a considerable saving might (Servicios Municipalisados de Agua de Sintra, Portugal)
have been achieved. This includes, most importantly, in supplying data and validating the experiments is
a water cost reduction and an additional energetic cost gratefully acknowledged.
minimization, due to a good pump scheduling.
References
7. Conclusions
Abadie, J., & Carpentier, J. (1969). Generalization of the Wolfe reduced
Optimal control in water networks is an e$cient gradient method to the case of nonlinear constraints. In R. Fletcher,
means of scheduling water transfer operations to achieve Optimization (pp. 37}47). New York: Academic Press.
management goals, such as cost minimization, quality Andersen, J. H., & Powell, R. S. (1999). The use of continuous decision
variables in an optimising "xed speed pump scheduling algorithm.
improvement, pressure regulation, etc. So far, only very In R. Powell, & K. S. Hindi, Computing and control for the water
few water utilities have incorporated optimal control industry. UK: Research Studies Press.
procedures in their supervision systems. Brdys, M. A. (1992). An algorithm for optimal scheduling of a class of
The optimal control module described in this paper is cascade water supply systems. Optimal Control Applications and
applicable to a broad class of water networks and incor- Methods, 13, 265}287.
Brdys, M. A., & Ulanicki, B. (1994). Operational control of water systems:
porates a number of improvements over previous optim- Structures, algorithms and applications. UK: Prentice-Hall Interna-
ization applications. In particular, it is possible to solve tional.
optimal control problems in networks where the hydrau- Carpentier, P. (1983). Decomposition et aggregation dans la conduite
lic model includes the nonlinear coupling between #ows optimale d'un grand reseau de distribution d 'eau, Ph.D. thesis, Ecole
and pressures. Additionally, although the #ows are Nat. de Mines de Paris.
Cembrano, G., Brdys, M., Quevedo, J., Coulbeck, B., & Orr, C. H.
treated as continuous variables, a solution that is close to (1988). Optimization of a multireservoir water network using a con-
the discrete possible setpoints of the pumps is obtained. jugate}gradient technique. In A. Bensousan, & J. L. Lions, Lecture
Furthermore, the interaction with other water manage- Notes in Control and Information Science, Vol. 111. Berlin: Springer
ment tools, such as the simulation and the quality control (pp. 987}989).
programs, guarantees that feasible and reliable solutions Coulbeck, B. (1977). Optimization and modelling techniques in dynamic
control of water distribution systems. Ph.D. thesis, University of
are produced. She$eld, She$eld, UK.
The case study presented in the paper shows that Drud, A. (1985). A GRG code for large sparse dynamic nonlinear
signi"cant savings may be achieved by using the optimal optimization problems. Mathematical Programming, 31, 153}191.
1188 G. Cembrano et al. / Control Engineering Practice 8 (2000) 1177}1188
Drud, A. (1992). CONOPT * A large-scale GRG code. ORSA Journal Minoux, M. (1986). Mathematical programming. Chichester, UK: Wiley.
on Computing, 6, 207}216. Murray, D. M., & Yakowitz, S. J. (1979). Constrained di!erential
Fallside, F., & Perry, P. F. (1975). Hierarchical optimization of a water dynamic programming and its application to multireservoir control.
supply network. Proceedings of the IEEE, 122(2), 387}401. Water Resources Research, 15(5), 223}235.
GAMS (1997). The solver manuals. Washington, DC: GAMS Develop- PeH rez, R., Cembrano, G., & Quevedo, J. (1998). Identixcation of
ment Corporation. optimisation's tasks and criteria: Characterisation of SMAS network.
Greco, M. (1997). WATERNET simulation users manual. Technical report Deliverable report No. 5.1, WATERNET ESPRIT IV Project No.
WATERNET Project, ESPRIT-IV No. 22186. 22.186, Barcelona.
Grin oH , R. (1991). Neural networks for water demand time-series fore- Quevedo, J., Cembrano, G., Casanova, F., & Ros, E. (1987). A contribu-
casting. In A. Prieto, Lecture Notes in Computer Science, vol. 540. tion to the interactive dispatching of water distribution systems.
Berlin: Springer. Proceedings of IMACS international symposium on AI, expert systems
Grin o, R., & Cembrano, G. (1991). Optimizacio& n en linea de estrategias and languages in modelling and simulation. Amsterdam: North-
de control de la red de distribucio& n de agua abastecida por la SGAB Holland.
mediante la metodologn& a de yujos sobre redes. Technical report No. Quevedo, J., Cembrano, G., GutieH rrez, L., & Valls, A. (1988). Time-
IC-DT-1991.02 Instituto de CiberneH tica, Universidad PoliteH cnica de series modelling of water demand, study on short-term and long-
Catalun a, Bercelona. term preditions. In B. Coulbeck, & C. H. Orr, Computer applications
Isaacs, L. T., & Mills, K. G. (1981). Linear theory methods for pipe of water supply and distribution. Lechworth, UK: Research Studies
network analysis. Journal of the Hydraulics Division ASCE, 9, Press.
542}569. Solanas, J. L. (1974). Mando en tiempo real de un sistema de
Jeppson, R. W. (1983). Analysis of yow in pipe networks, (6th ed.) Ann suministro de agua. Ph.D. thesis, Universidad PoliteH cnica de
Arbor Science, New York. Catalun a, Barcelona.
LoH pez, J., Cembrano, G., & Cellier, F. (1996). Time series prediction Solanas, J. L., & Montoliu, J. M. (1988). Optimal operation of water
using fuzzy inductive reasoning. Proceedings of the European simula- systems. In B. Coulbeck, & C. H. Orr, Computer applications of
tion multiconference, ESM '96, San Diego: SCS International water supply and distribution. Lechworth, UK: Research Studies
(pp. 765}770). Press.