Application of predictive control strategies to the management of complex networks in the urban water cycle
Abstract
The management of the urban water cycle (UWC) is a subject of increasing interest because of its social, economic, and environmental impact. The most important issues include the sustainable use of limited resources and the reliability of service to consumers with adequate quality and pressure levels, as well as the urban drainage management to prevent flooding and polluting discharges to the environment.
Full text
1 Application of Predictive Control Strategies to the Management of Complex Networks in the Urban Water Cycle Carlos Ocampo-Martinez∗, Vicenc¸ Puig, Gabriela Cembrano, and Joseba Quevedo The management of the urban water cycle (UWC) is a subject of increasing interest because of its social, economic and environmental impact. The most important issues include the sustainable use of limited resources and the reliability of service to consumers with adequate quality and pressure levels, as well as the urban drainage management to prevent flooding and polluting discharges to the environment. Climate change is expected to produce regional changes in water availability in the 21st century. For example, Northern and Southern Europe are expected to experience, respectively, an increase and a decrease in mean precipitation, as well as an increase in the magnitude and frequency of extreme events [1]. These changes will have direct consequences through impacts on the availability and quality of water in the water cycle. Optimal management strategies for the systems in the water cycle can contribute to reduce the vulnerability of urban water systems (UWS) to climatic variability and change. An UWC is mainly comprised of the following systems: (i) Supply/production: water supply from superficial or underground sources and treatment to achieve necessary quality levels, (ii) transport networks, which use natural or artificial open-flow channels and/or pressurized conduits to deliver water from the treatment plants to the consumer areas, (iii) water distribution to consumers, involving pressurized pipeline networks, storage tanks, booster pumps and pressure/flow control valves, (iv) urban drainage and sewer systems carrying waste- and rain water together to wastewater treatment plants (WWTP), before returning it to the receiving environment. In urban environments, drinking water is provided by means of a drinking water network (DWN) to consumers and industry, and sanitation/urban drainage is achieved through a sewer network (SN). In a large number of cities, DWNs are managed using telemetry and telecontrol systems which provide, in real time, pressure, flow, quality and other measurements at several key locations within the network. Flow, pressure and storage control elements are operated from a central dispatch in a centralized or decentralized scheme. In some cases, advanced urban drainage systems also include sewage control infrastructure, such as detention tanks, pumps, gates and weirs. All these elements are monitored and controlled by using telemetry/telecontrol systems, which involve rain-gauge networks, wastewater level and/or flow meters in the sewers and actuators at the valves, pumps and weirs, a communication network, and monitory and control software. The control system manages the flows and the storage in the network in order to minimize the risk of untreated water overflows to the streets or to the receiving environment. The use of optimal control for managing water systems to achieve energy efficiency, cost minimization and environmental protection is summarized in this article. Applying optimal control concepts to water systems requires the development of control-oriented dynamic models to represent open-channel systems (such as rivers, canals, aqueducts or SNs), pressurized pipes or combinations of both, which have nonlinear responses to control actions, such as changing modes at different operating points. Those systems also contain storage and control elements, such as tanks and valves, with a pre-determined operational range, ∗Corresponding Author: Technical University of Catalonia (UPC), Institut de Rob`otica i Inform`atica Industrial (CSIC-UPC), Llorens i Artigas, 4-6, 08028 Barcelona (Spain), [email protected]
2 which leads to the inclusion of physical constraints in the model. Additionally, some on-off elements such as pumps or valves may exist. The management of UWS must be carried out predictively. Control actions must be computed ahead in time, with an appropriate time horizon, based on real measurements and on state estimation, as well as predictions of the stochastic variables involved in the models such as consumer demands in drinking water systems or rain intensities in urban drainage systems. For water distribution networks, the prediction horizon is usually of 24 hours. Longer horizons are chosen for water supply and treatment management. For real-time control of urban drainage systems, the horizons depend on the average sewage transport time between the discharge points and the final collection/treatment/discharge points. Thus, the length of those horizons results to be particular for each case-study application, mainly depending on topographic and physical characteristics of the terrain and the sewers. Predictive and optimal control techniques are a smart option to compute control strategies for these complex dynamic systems. In order to achieve certain control goals, one or more optimization problems are posed using a cost function to represent control goals and a set of constraints to take into account the system dynamics and physical and operating limits. Predictive and optimal control techniques also allow the user to establish priorities among the different control objectives, whenever these cannot be achieved simultaneously [2]. Over the past few years, Model Predictive Control (MPC) has proven to be one of the most effective and accepted control strategies for large-scale complex systems [3], [4]. The objective of using this technique for controlling UWS is to compute, in a predictive way, the manipulated inputs in order to achieve the optimal performance of the network according to a given set of control objectives and predefined performance indices. As shown in [5], [6], [7], [8], such controllers are suitable to be used in the global/supervisory control of networks related to the urban water cycle. Figure 1 shows a conceptual scheme for a hierarchical structure considered on the control of networks related to the UWC. This article summarizes the real-time global optimal management of two systems of the UWC, both of them located in Barcelona, Spain: its DWN – specifically the transport network – and a representative portion of its SN. Real-time control (RTC) of both types of UWC systems has received special attention during the last few years, due to the increasing demand for improved system performance to meet consumer and regulatory needs, often at reduced cost [5], [11]. The main goal to be achieved in DWNs is to reduce pumping costs – for instance, by filling tanks in low tariff periods – while maintaining adequate system pressure to meet fluctuating consumer demands [12]. Similarly, in urban drainage management, the goals are to minimize flooding and combined sewer overflow to the receiving environment (CSO) by controlling flow within the wastewater system, through for example, inline storage [13] or using underground detention tanks, gates and pumps [6], [14]. I. CONTROL-ORIENTED MODELING PRINCIPLES Complex nonlinear models are very useful for off-line operations (for instance, calibration and simulation). Detailed mathematical representations such as the Saint-Venant equations for describing the openflow behavior in SNs [15] or pressure-flow models for DWNs allow the simulation of those systems with enough accuracy to observe specific phenomena, useful for design and investment planning. However, for on-line computation purposes such as those related to global management, a simpler and control-oriented model structure must be conveniently selected. This simplified model includes the following features: (i) Representativeness of the main network dynamics: It must provide an evaluation of the main representative hydrological/hydraulic variables of the network and their response to control actions at the actuators. (ii) Simplicity, expandability, flexibility and speed: It must use the simplest approach capable of achieving the given purposes, allowing very easily to expand and/or modify the modeled portion of the network. (iii) Amenability to on-line calibration and optimization: this modeling approach must be easily calibrated on-line using data from the telemetry system and embedded in an optimization problem to achieve the network management objectives.
3 Fig. 1. Hierarchical structure for RTC system. Adapted from [9] and [7]. Here, the MPC, as the global control law, determines the references (set points) for the local controllers placed at different elements of the networked system. These references are computed according to measurements taken from sensors distributed around the network. The management level provides the MPC with its operational objectives, which are reflected in the controller design as the performance indices to be enhanced, which can be either minimized or maximized, depending on the case. Finally, water systems control requires the use of a supervisory system to monitor the performance of the different control elements in the networks (sensors and actuators) and to take appropriate correcting actions in the case where a malfunction is detected, to achieve a proper fault-tolerant control [10]. This section deals with the control-oriented model principles for the DWN and SN systems described in this article. The distinction is done at the stage of component description while the structure of the model from the merging of elements is described and discussed in a unified way for both systems, determining then the correspondence of their variables with the common variables established in the control theory. A. Drinking Water Networks (DWN) Several modeling techniques dealing with DWNs have been presented in the literature; see, e.g., [16], [15]. Here, a control-oriented modeling approach that considers a flow-model is outlined, which follows the principles presented by the authors in [5], [6] and [17]. The extension to include the pressure-model can be found in [16], [15], [18]. A DWN generally contains a set of pressurized pipes, water tanks at different elevation, and a number of pumping stations and valves to manage water flows, pressure and elevation in order to supply water to consumers. The DWN model can be considered as composed of a set of constitutive elements, which are presented and discussed below. Figure 2 shows, in a small example, the interconnection of typical constitutive elements. 1) Tanks: Water tanks provide the entire DWN with the storage capacity of drinking water at appropriate elevation levels to ensure adequate water pressure service to consumers. The mass balance expression relating the stored volume vin the n-th tank can be written as the discrete-time difference equation vn(k+ 1) = vn(k) + ∆t X j qjn in (k)−X h qnh out(k)!,(1)
4 Fig. 2. Example of a basic topology of a generic drinking water transport network. Notice the interaction of the main constitutive elements shown here: sources supply water to the system by means of pumps or valves, depending of the nature of the particular source (superficial or underground). Water is moved by using manipulated actuators in order to fill detention tanks and/or supply water to demands sectors. where qjn in (k)denotes the manipulated inflows from the j-th element to the n-th tank, and qnh out(k)denotes the manipulated outflows from the n-th tank to the h-th element (which includes the demand flows as outflows). Moreover, ∆tcorresponds with the sampling time and kthe discrete-time instant. The physical constraint related to the range of admissible storage volume in the n-th tank is expressed as vn≤vn(k)≤vn,for all k, (2) where vnand vndenote the minimum and the maximum admissible storage capacity, respectively. Notice that vnmight correspond with an empty tank; in practice this value can be set as nonzero in order to maintain an emergency stored volume. For simplicity, the dynamic behavior of these elements is described as a function of volume. However, in most cases the measured variable is the tank water level (by using level sensors), which implies the computation of volume taking into account the tank geometry. 2) Actuators: Two types of control actuators are considered: valves and pumps, or more precisely, complex pumping stations. A pumping station generally contains a number of individual pumps with fixed of variable speed. In practice, it is assumed that the flow through a pumping station is a continuous variable in a range of feasible values. The manipulated flows through the actuators represent the manipulated variables, denoted as qu. Both pumping stations and valves have lower and upper physical limits, which are taken into account as system constraints. As in (2), they are expressed as qum≤qum(k)≤qum,for all k, (3)
5 where qumand qumdenote the minimum and the maximum flow capacity of the m-th actuator, respectively. Since this modeling is stated within a supervisory control framework, it is assumed that a local controller is available, which ensures that the required flow through the actuator is obtained. 3) Nodes: These elements correspond to the network points where water flows are merged or split. Thus, nodes represent mass balance relations, modeled as equality constraints related to inflows – from other tanks through valves or pumps – and outflows, the latter being not only manipulated flows but also demand flows. The expression of the mass balance in these elements can be written as X j qjr in (k) = X h qrh out(k),(4) where qjr in (k)denotes inflows from the j-th element to the r-th node, and qrh out(k)denotes outflows from the r-th node to the h-th element. From now on, node inflows and outflows will be denoted by qin and qout, even if they are manipulated variables (denoted by qu). 4) Demand Sectors: A demand sector represents the water demand of the network users of a certain physical area. It is considered as a measured disturbance of the system at a given time instant. The demand can be anticipated by forecasting algorithms, which are integrated within the MPC closed-loop architecture. For the cases of study in this paper, the algorithm proposed in [19] is considered. This algorithm typically uses a two-level scheme composed of (i) a time-series model to represent the daily aggregate flow values, and (ii) a set of different daily flow demand patterns according to the day type to cater for different consumption during the weekends and holidays periods. Every pattern consists of 24-hourly values for each daily pattern. The algorithm runs in parallel with the MPC algorithm. The daily series of hourly-flow predictions are computed as a product of the daily aggregate flow value and the appropriate hourly demand pattern. Regarding the daily demand forecast, its corresponding flow model is built on the basis of an ARIMA time-series modeling approach described elsewhere [20]. Then, the structure of the daily flow model for each demand sensor may be written as yp(k) = −b1y(k−1) −b2y(k−2) −b3y(k−3) −b4y(k−4) −b5y(k−5) −b6y(k−6) −b7y(k−7).(5) where the parameters b1,...,b7are estimated based on historical data. The 1-hour flow model is based on distributing the daily flow prediction provided by the time-series model in (5) using an hourly-flow pattern that takes into account the daily/monthly variation as follows: yph(k+i) = ypat(k, i) 24 X j=1 ypat(k, j) yp(k), i = 1,...,24,(6) where yp(k)is the predicted flow for the current day kusing (5) and ypat(k)is the prediction provided by the flow pattern with the flow pattern class day/month of the current day. Demand patterns are obtained from statistical analysis. B. Sewer Networks (SN) Sewer are open canals. The Saint-Venant equations, based on physical principles of mass conservation and energy, allow the accurate description of the open-canal flow in sewer pipes [15] and therefore also allow to have a detailed nonlinear description of the system behavior. These partial-differential equations constitutes a nonlinear system, which is in general solved by iterative numerical procedures. For an arbitrary geometry of the sewer pipe, these equations may not have an analytic solution. Notice that these equations describe the system behavior in high detail. However, this level of detail is not useful for
6 real-time implementation in an optimal control scheme due to the complexity of obtaining the solution of high computational cost. Several simplified modeling techniques that deal with RTC of sewer networks have been presented in the literature, see, e.g., [21], [22], [23], [7]. The modeling approaches presented here follow closely the mathematical modeling principles given in [24]. Hence, the sewage system is divided into a set of catchments, each one conceptually represented as a virtual tank, as described in [24], [25]. Using the virtual tank modeling principle and the mass balance conservation law, a sewer network can be decomposed in a set of catchments described by using the elementary models explained below and shown in Figures 3 and 4, to obtain a simpler network. This representation also includes other sewer infrastructure elements such as detention tanks, gates, and weirs (other common sewage system elements such as pumping stations can be easily represented by using the mentioned modeling principles but are omitted here as they are not taken into account in the SN case study considered in this article). The set of elements is presented below. A conceptual scheme is included to describe its operation and also for explaining the mathematical relations and derived equations. 1) Virtual and Real Tanks: Consider that a SN is composed by ntanks, from which n1tanks are virtual and n2are real, with n=n1+n2. In the case of virtual tanks, used to model network catchments, the mass balance equation relates the stored volume, the flows in sewers going into and out of the tanks and the rain entering the catchment as follows: vn1(k+ 1) = vn1(k) + ∆tϕn1Sn1Pn1(k) + ∆t X j qn1j in (k)−X h qn1h out (k)!,(7) where ϕn1corresponds with the ground absorption coefficient of the n1-th catchment, Sn1is the surface area, P(k)is the rain intensity at each sample with a sampling time ∆t. The manipulated variables of the system, denoted as qum, are the flows through control gates. Tank outflows are assumed to be proportional to the water volume currently stored within the tank, that is, qn1h out (k) = βn1vn1(k),(8) where βn1is defined as the volume/flow conversion (VFC) coefficient as suggested in [26] by using the linear tank model approach. Notice that this relation can be made more accurate, but more complex, if (8) is considered to be nonlinear (nonlinear tank model approach) or by considering linear models with online parameter estimation [27]. See for example [28], where nonlinear models are identified as a function of inflows and outflows. Limits on the admissible volume of real tanks are expressed as 0≤vn2(k)≤vn2,for all k, (9) where vn2denotes the maximum volume capacity. As this constraint is physical, it is impossible to send more water to a real tank than it can store. Notice that real tanks without overflow capability have been considered. Virtual tanks do not have a physical upper limit on their capacity. This fact represents the case when sewage level in sewers has reached a limit so that overflow situation or flooding to the street occurs. Hence, when the maximum volume vis reached in a virtual tank, the excess volume is redirected to another tank/catchment within the network or to a receiving environment. This phenomenon is known as combined sewer overflow (CSO). This situation implies a new flow path coming from the tank and denoted as qd(referred to as virtual tank overflow), which can be expressed as qd(k) = ((v(k)−v) ∆tif v(k)≥v 0otherwise.(10)
7 Fig. 3. Conceptual schemes for sewer networks constitutive elements. Top graphs show the different tanks considered and the common way they are connected and configured (using auxiliary elements according to the case). Notice that elements (a) and (b) introduce to the system switching behaviors given when their maximum capacity, namely flow or volume, is achieved. Thus, outflow of virtual tank is then limited by its maximum volume capacity as follows: qout(k) = (βvif v(k)≥v βv(k)otherwise.(11) Consequently, considering this expression for tank overflow, the difference equation (7) related to virtual tanks becomes vn1(k+ 1) = vn1(k) + ∆tϕn1Sn1Pn1(k) + ∆t X j qjn1 in (k)−X h qn1h out (k)−qd(k)!.(12)
8 Fig. 4. Simple sewer network conformed by some traditional elements. According to the case, there are different types of sensors depending on the measurements taken. Moreover, actuators may be gates or pumping stations, this latter mainly used when storing sewage into multiplebody tanks with complex emptying strategies. Even the WWTPs are in theirself complex systems, their interconnection with the sewer network allows to determine the way of managing the sewage in order to avoid pollution phenomena, fulfilling one of the common control objectives for these networked systems. Real detention tanks are closed concrete structures used to store water in rain events. For this reason, both tank inflow and outflow are controlled using gates. Similarly, the admissible flows into and out of the tank are related to the current volume stored in the tank. Tank inflow is constrained by the current sewage volume of the real tank, by its maximum capacity and by tank outflow. Since real tanks are considered with no overflow capabilities, inflow is pre-manipulated by using a flow diversion gate (explained below), what results in the consideration of this component within the modeling of the real tank. In Figure 3 show conceptual schemes of the both virtual and real tanks considered in this article. In order to restrict the value of the manipulated flow q⋆ a(k)to satisfy the maximum flow condition in the input gate, flow through input link qais expressed as ˜qa(k) = (q⋆ a(k)if q⋆ a(k)≤qin(k) qin(k)otherwise.(13) However, maximum tank capacity also restricts the inflow according to the expression qa(k) = (˜qa(k)if qb(k)−qout(k)≤v−v(k) ∆t v−v(k) ∆totherwise.(14) Finally, tank outflow is given by qout(k) = (q⋆ out(k)if q⋆ out(k)≤βv(k) βv(k)otherwise,(15) taking into account that q⋆ out is also restricted by the maximum capacity of the outflow link, denoted by
9 qout(k). Thus, latter expressions lead to the following difference equation for real tanks in sewer networks: v(k+ 1) = v(k) + ∆t(qa(k)−qout(k)).(16) Notice that the flow through qbcorresponds to the mass balance qb(k) = qin(k)−qa(k).(17) 2) Controlled Gates: In sewer networks, gates are used as flow control devices. Depending on the actions they perform, gates can be classified as flow diversion gates, which are used to divert the sewage flow, and detention gates, which are used to stop flow at a certain point in the network. In a real tank, a detention gate is used to control the outflow. Flow diversion gates, shown in Figure 3(c), divert the flow at a junction, controlling flow from one sewer into others. The following equation expresses the mass conservation relation in the element: qin(k) = X j qj u(k),(18) where jis an index over all manipulated gate outflows qj u, and qin is the flow arriving the gate. When this modeling approach is employed, the inherent nonlinear dynamics of the sewer network are simplified by assuming that only flows are manipulated. The physical limits must be included as constraints on system variables (in this case, on the control inputs). For example, variable qj ucan never be larger than the tank discharges resulting from the action of gravity on the current volume of water stored in the tank. This constraint is expressed by the inequality X j qj u(k)≤βn1vn1(k).(19) Usually, the range of actuation is also limited, so the manipulated variable must fulfill qj u≤qj u(k)≤qj u,(20) where qudenotes the lower limit of the manipulated flow and qudenotes its upper limit. 3) Nodes, Weirs and Main Sewer Pipes: These components are passive sewer infrastructure elements. Since the descriptions of their dynamics are relatively close, all of them are presented together in this section. Nodes are points of the network where the sewage can be either propagated or merged. Hence, these elements can be classified as splitting nodes and merging nodes. In the case of a set of hinflows qj, with j= 1,2,...,h, the expression for the node outflow is expressed as qout = h X j=1 qj.(21) Weirs are passive flow diversion devices built into sewers to derive excess flow from the main sewer (nominal) to another called a spillway. This spillway leads, in some cases, to an overflow discharge point (to a treatment plant or into the receiving environment). Weirs can be seen as splitting nodes having a maximum capacity in the nominal path. Main sewer pipes are used as connection devices between network constitutive elements (Figure 3(d)). The set of expressions valid to represent the behavior of a weir is qb(k) = (qbif qin > qb qin(k)otherwise,(22a) qc(t) = (qin(k)−qbif qin > qb 0otherwise,(22b) where qbis the maximum flow through qband qin is the inflow.
16 5HVHUYRLU 'HPDQG VHFWRU ,QIUDVWUXFWXUHV 'LVWULEXWLRQQRGH 6RXUFH 6XSHUILFLDORU 8QGHUJURXQG 3XPSLQJ VWDWLRQ 9DOYH /HJHQG F3DOOHMD F3DOOHMD L3,9 G3DSLRO F 3DSLRO L3$3,, G5HOOHX G&)( F&)( Y6-'B F /OREUHJDW G*$9L&$6 &52 F*$9L &$6&52 F/OREUHJDW Y&$ L5HOOHX L*,9 L&DVWHOOGHIHOV G&$67 F&DVW Y&DQ5RFD L%HOODPDU G3/$17$ $SRUW// L3/$17$ L3/$17$ F&RUQHOOD L3/$17$ L&RUQHOOD L&RUQHOOD F)// Y=) Y&7 Y7 Y50 Y&2 L&2 L(VSOXJXHV Y( F%$5 L)LQHVWUHOOHV L)LQHVWUHOO HV G%// F%// Y) G%$5VXG F%$5VXG F%$5VF Y% Y3 Y0& G$OW F$/7 Y%6// G%$5QRUG F%$5QRUG G0,5 F0,5 L$ Y36- F%// QRUG G%%( F%%( L&RUQHOOD L&RUQHOOD L52 D06 L06 D3RXV&$67 L3RXV&$67 D3RXV% D3RXV( L3RXV% L3RXV G%$5 F/OREUHJDW G3DOOHMD Q$SRUW$ $SRUW7 Y$GG Y$GG Y$GG Y$GG Y$GG Y$GG Y$GG Y$GG Y$GG $SRUW// F%$5FHQWUH Q%$5FHQWUH $SRUW$ Y$GG Y$GG Y%0& Y$GG Y$GG Y$GG L$GG L$GG G)21 G)21 L3, L3,, F)21 F)21 F)21 G3DSLRO FL3DSLRO Y3$7// G3DOOHMD F3DOOHMD G/D6HQWLX L/D6HQWLX F/D6HQWLX D&$67 L&$67 G0RQWHPDU L0DV-RYH F0RQWHPDU F%9, L6W%RL L9LODGHFDQV L6W&OLPHQW L%HJXHV G6W%RL G2ULROHV L2ULROHV G(VSOXJ XHV G%HJXHV L%HJXHV G6W&OLP HQW G6W&OLP HQW L6W&OLPHQW G9LODGHF DQV G9LODGHF DQV L9LODGHFDQV G%HJXHV L%HJXHV G%HJXHV L%HJXHV & 2ULROHV & 9LODGHFDQV F6W &OLPHQW & %HJXHV F6W%RL & 9LODGHFDQV F6W &OLPHQW & (OXJXHV F %HJXHV F %HJXHV L&DQ5RLJ F7RU G6W&OP &UYOOR L6WD&OP&HUYHOOR F6W&OP &UYOOR G&HVFDO SLQD L&HVFDSOLQD F &HVFDOSLQD G&HVFDO SLQD L&HVFDSOLQD F &HVFDOSLQD G&DQ*X HOO G&DQ*X HOO L&DQ*XHOOG G&DQ*X H\ G&DQ*X H\ G&DQ*X H\ F&DQ *XH\ F&DQ *XH\ F&DQ *XHOO L&DQ*XH\G L&DQ*XH\G L&DQ*XHOO L&DQ*XH\ F&DQ *XH\ G&DQ*X H\ F&DQ *XH\ L&DQ*XH\ G&DQ*X HOO L&DQ*XHOOG F&DQ *XHOO F&DQ *XHOO G%HOOVRO HLJ L%62 F%HOO VROHLJ G9DOOYLGU HUD F%$5 L)LQHVWUHOOHV G0DV%XL PEDX L3$3 F0DV *XLPEDX & 9DOOYLGUHUD L0* L7,% G0DV*X LPEDX L0* F0DV *XLPEDX F0DV *XLPEDX F 7LELGDER G&DUPHO L&$5 F &DUPHO G6W*HQL V G6W*HQL V F6W*HQLV F6W*HQLV L6* L6* G7RUUH% DUR F7RUUH%DUR L7%$ L&8$% L&0 G%(7 G9DOOHVD QD G6W0D0 RQWFDGD L600 G&G0W)O RULW G)ORU0DL J L)'0 F8$% F)ORU0DLJ F6W0D 0RQWFDGD F%(7 F&G 0W)ORULW & 9DOOHVDQD F9$6$% L9$// F9DOOHVDQD F%(9 G&0( L7%$ F&0( F%$5 G320 L02 F73 F6$ G6WD$PDOLD G7UHV3LQV G7&DVWHOO F7UHV3LQV & 6WD$PDOLD F7&DVWHOO F320 G0RQWLJ DOD F07* F6&* G%RQD YLVWD G*XLQ DUGHUD F%RDYLVWD F*XLQDUGHUD G*XLQ DUGHUD F*8, L%21 L*8, L*8, F&)( Y%6& F%HVRV Y)R$O L&DVWHOO L6&0 L35 Y),1 F$/7 F%$5Q G&DQ5XWL F&DQ5XWL L&58 G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X 1RGH 1RGH 1RGH 1RGH 1RGH 1RGH 1RGH 1RGH 1RGH 1RGH 02'(/3$5$0(7(56 6800$5< 67$7(9$5,$%/(6 &21752/$&7,216 ',6785%$1&(6 12'(6 X Y&RQIOHQW Y6-'&LXWDW Y0RQWLJDOD L8$% Y+RUWD F0* F3,,, F99, G%$5 Y%$5 F&6 F9$// F%(9 G&RUQHOOD G725 Q3$/ Q%$5VF Q//2 Q//2 Q)// Q//2 Q%(6 Q$SRUW7 /DVW8SGDWH 0D\ &DUORV2FDPSR0DUWLQH] ,5,±&6,&±83& 6$& X Q6&* 1RGH X Y&2$ X G%//QRUG F%// FHQWUH G F%// VXG G Y6 Y6 X 8 1RGH Q%//FHQWUH 1RGH Q%//VXG 1RGH D3RXV( L3RXV X X 1RGH Fig. 5. The Barcelona DWN is managed by the AGBAR water company. It supplies drinking water to Barcelona city and its metropolitan area. The main sources of water are the Ter and Llobregat rivers, which are regulated at their head by some dams with an overall capacity of 600 hm3. Currently, there are four drinking water treatment plants (WTP): the Abrera and Sant Joan Desp´ı plants, which extract water from the Llobregat river, the Cardedeu plant, which extracts water from Ter river, and the Bes`os plant, which treats the underground flows from the aquifer of the Bes`os river. There are also several underground sources (wells), which can provide water through pumping stations. Those different water sources currently provide a flow of around 7 m3/s. The most important sources in terms of capacity are Sant Joan Desp´ı and Cardedeu. The maximum flow that can be taken from the first is about 5 m3/s, while from the second is about 7 m3/s. The water price from each source is different depending on water treatments and legal extraction canons. contribution, if possible. However, this is not always possible due to legal and contractual reasons not related to the network characteristics (operational limits of actuators and tanks). (ii) MPC minimizes the electrical costs by pumping as much as possible during the cheapest time period (typically during nights). Figure 6 shows the evolution of the flow from all sources when MPC is used. Figure 7 compares the operation of some representative pumping stations when the current control – the control strategy currently used by the management company – and MPC are used. Finally, Figure 8 shows the volume evolution of some network tanks, as well as their maximum and safety volumes when each of these control strategies are used. B. Results with the Barcelona SN The city of Barcelona has a combined sewage system (CSS) of approximately 1697 km length in the municipal area plus 335 km in the metropolitan area, but only 514.43 km are considered as the main sewer network. It is worth to notice that Barcelona has a population which is around 1.59 million inhabitants on
17 0 10 20 30 40 50 60 70 80 90 100 0 1 2 3 4 0 10 20 30 40 50 60 70 80 90 100 5 6 7 8 9 flow [m3/s] flow [m3/s] time [h] Fig. 6. Inflows from the network sources. In the top graph the water supplies are shown in red for the Ter river, in blue for the Sant Joan Desp´ı superficial source, in cyan for the Sant Joan Desp´ı underground, and in green for the Abrera treatment plant. In the bottom graph the sum of all flows and its average is shown. The mean flow from Llobregat source is about 5 m3/s, while the rest of water needed to satisfy the total demand is taken from Ter and Abrera sources. The water flow from underground sources is penalized in order to avoid their over-exploitation. In fact, these sources are rarely used. a surface of 98 km2, approximately. This fact results in a very high density of population. Additionally, the yearly rainfall is not very high (600mm/year), but it includes heavy storms (up to 90mm/h) typical of the Mediterranean climate that can cause a lot of flooding problems and CSO to the receiving environment. CLABSA is the company in charge of the sewage system management in Barcelona. Their remote control system is in operation since 1994, which includes sensors, regulators, remote stations, communications and a control center. Nowadays, the urban drainage system contains 21 pumping stations, 36 gates, 10 valves and 8 detention tanks, which are regulated in order to prevent flooding and CSO. The remote control system is equipped with 56 remote stations, including 23 rain-gauges and 136 water-level sensors. These latter elements provide real-time information about rainfall and water levels into the sewage system. All the information is centralized at the control center through a SCADA system. The regulated elements – pumps, gates and detention tanks – are currently controlled locally, that is, they are handled from the remote control center according to the measurements of sensors connected only to local stations. From the whole sewer network of Barcelona, this article considers a portion that is representative of the main phenomena and the most common characteristics of the entire network. For this representative portion, shown in Figure 9, a calibrated and validated model of the network is available. This model has been obtained by using the virtual modeling methodology and rain-gauge data corresponding to an interval of several years. Using this model, an MPC controller is designed to provide the set-points for the network actuators (local control loops). The corresponding Hpis 30 minutes (six samples), with a sampling time of five minutes. A rain forecast during this horizon may be provided by an external rain forecasting system based
18 0 10 20 30 40 50 60 70 80 90 100 0 0.2 0.4 0.6 0.8 0 10 20 30 40 50 60 70 80 90 100 0 0.01 0.02 0.03 0.04 0.05 time [h] flow [m3/s] flow [m3/s] Fig. 7. Electrical fee effects on pumps operation. In both graphs the scaled electric cost is shown in green and the real flow, which corresponds with data from the real actuator manipulation performed by the company, is shown in dotted-dashed black line. Moreover. the optimized flow determined by the MPC controller is shown in blue. The top graph corresponds with the outflow from Finestrelles pumping station, while the bottom graph shows the outflow from Santa Coloma Cervell´o pumping station. When MPC is considered, it can be noticed that, pumping stations work during the time interval with cheapest economic cost, if possible. For instance, the flow pumped by Santa Coloma Cervell´o pumping station decreases during those periods where the economic cost is not minimal. In contrast, there is not enough flow from Finestrelles pumping station if water is only pumped during the cheapest period of economic costs. Hence, this pumping station must pump water during other periods but the flow rate is lower. on a meteorological radar, if available, or it may be computed internally using a sample-hold assumption [45]. To compare the performance of the current control strategy based on local controllers with the designed MPC strategy for global management, three different real rain scenarios are considered: a) Rain scenario 1 (05/01/2006): This is a common winter rain occurred in Barcelona (approximately a 2-month average return period). It is neither very intense nor very long. The maximum intensity occurs in rain gauge P11 (see Figure 9), with 49.2 mm/h, and its duration is about 3 hours. This rain does not cause flooding, so the interest for the test is to avoid CSO spills. b) Rain scenario 2 (12/09/2006): This is a common summer rain occurred in Barcelona (approx. 1-year return period). It is intense and longer. The maximum intensity occurs in rain gauge P3(see Figure 9), with 128.4 mm/h, and its duration is about 3 days but with periods of no rain. This rain may cause flooding if the management of detention tanks is not appropriate, so the interest for the test is to manage flooding and also to avoid CSO spills. c) Rain scenario 3 (31/07/2002): This is a short and very intense rain. It has an average return period of about eight years. This rain causes flooding. The main performance expected is during the first hours of the event control devices must be managed so that flooding is minimized and, after the rain event, the CSO spill are highly minimized. Figure 10 shows that more volume of water is treated by the WWTP when MPC is used, while Figure 11 shows the comparison of CSO volumes in the rain scenario 3. The global management reduces significantly
19 10 20 30 40 50 60 70 80 90 2 3 4 5 6 7x 104 10 20 30 40 50 60 70 80 90 1000 2000 3000 4000 time [h] volume [m3]volume [m3] Fig. 8. Volume evolution of some tanks. In both graphs, the real volume is shown in dotted-dashed black, the optimized volume is show in blue, and the penalization volume is shown in dashed red. The top graph corresponds with the the tank d200ALT, where the MPC controller makes the volume lower than the real operation performed by the management company. This fact yields in less economic costs of water transport while decreasing the system safety against failures. The bottom graph corresponds to the tank d70BBE, where the volume never violates the constraints imposed by the MPC controler, in contrast with the case of the real data. TABLE III CLOSED-LOOP PERFORMANCE RESULT FOR SOME RAIN EPISODES (ALL VALUES IN CUBIC HECTOMETERS) Rain Episodes Current Control MPC Control Flooding Pollution Treated W. Flooding Pollution Treated W. 05/01/2006 0 203 77 0 167 (-17%) 116 (33%) 12/09/2006 5662 740 352 4072 (-28%) 670 (-9%) 404 (12%) 31/07/2002 5553 643 144 5436 (-2%) 588 (-8%) 198 (27%) the volume of CSO in this scenario. It can be noticed that the WWTP operational constraints are satisfied when the global control is used since they are imposed as constraints in the MPC strategy. Table III presents the results obtained with the different rain scenarios using the current local control strategy and the global control one based on MPC. Looking at these results, the following observations can be drawn: (i) In terms of the water volume treated by the WWTP, the global control strategy always outperforms the local control in all the considered scenarios. (ii) The CSO spill released to the sea is significantly reduced by the global control in all scenarios. (iii) Flooding is also reduced by the global control strategy based on MPC compared to the local control strategy, although the rain scenarios 12/09/2006 and 31/07/2002 still cause some flooding due to limitations on the infrastructure.
20 Fig. 9. The considered Barcelona Test Catchment (BTC) has two detention tanks: Zona Universitaria Detention Tank (T1) and Doctors Dolsa Detention Tank (T2). Additionally, one large sewer – marked as CSO sewer – with an associated detention gate, is used as additional storage capacity. This procedure is called in-line detention. Gates operating with global control are the detention ones at the output of detention tanks (C15 and C19), the in-line detention gate (CSO) and the flow diversion gate (C11), which connects the two detention tanks. Eleven measurement points are considered for flooding control in the case of the global control strategy. A waste water treatment plant (WWTP) with a maximum treatment capacity of 2 m3/s is located to the end of the BTC. Flows to the WWTP which are bigger than this maximum value are released to the sea, generating CSO. Using the virtual tank approach, the BTC model has 12 state variables corresponding to the volumes in the 12 tanks (two real, ten virtual), four control inputs, corresponding to the gates and five measured disturbances corresponding to measurements of rain precipitation at the sub-catchments of the BTC. IV. CONCLUSIONS The increasing use of advanced information and communication techniques to manage water systems contributes, to a great extent, to achieving environmental and social goals in several fields (see, for
21 Fig. 10. Comparison of WWTP volume in local and global control, shown in blue and red, respectively. It can be noticed that the WWTP is used for longer time at the maximum capacity in global control than when only local control is used, reducing the pollution to the sea. 00:00:00 5-1-2006 02:00:00 04:00:00 06:00:00 08:00:00 10:00:00 12:00:00 14:00:00 16:00:00 18:00:00 20:00:00 22:00:00 00:00:00 6-1-2006 02:00:00 04:00:00 0.0 2.0 4.0 6.0 8.0 10.0 12.0 14.0 16.0 18.0 20.0 22.0 24.0 26.0 28.0 30.0 32.0 [m3/s] CSO 31.049 32.909 Fig. 11. Comparison of the CSO volume to the sea in local and global control, shown in blue and red, respectively. It can be observed that the global control reduces significantly the volume of CSO (pollution to the sea) in this scenario compared to the local control. This improvement is achieved thanks to the better usage of the on-line retention capacity of the network. instance, [46]). This article shows how the concepts of MPC can be used to efficiently solve complex management problems in real systems of the urban water cycle. Particularly, this control technique allows to consider different issues on the behavior of these networked systems and to cope with different intrinsic characteristics that can not be treated by using other control strategies. The different intrinsic characteristics of drinking water networks and sewer networks have been described and appropriate mathematical solutions to tackle them have been presented. Similarly, realistic operational goals of drinking water networks and sewer networks have been outlined and modeled. The article shows the results obtained by applying the MPC with the previously described approaches in two realistic cases taken from the corresponding networks in Barcelona.
22 V. ACKNOWLEDGEMENTS This work has been partially supported by Spanish research projects WATMAN (DPI2009-13744) and SHERECS (DPI2011-26243), both from the Science and Innovation Ministry, the DGR of Generalitat de Catalunya (SAC group Ref. 2009/SGR/1491), and the European Project iSENSE (FP7-ICT-2009-6- 270428). The authors thank AGBAR and CLABSA for their technical support and for providing data and information of the cases of study treated in this article.
23 VI. SIDEBAR S1: SOFTWARE TOOL FOR MPC DESIGN OF DWNS Fig. 12. PLIO interface corresponding to the model manager module than allows creating/updating the model of the water network in a user friendly way. A general-purpose decision support tool has been developed to allows the user to implement optimal/predictive control techniques in large-scale drinking water systems [18]. The tool has been called PLIO. An important feature of PLIO compared to other existing tools is the application of a unified approach to the complete drinking water system including supplies, production, transport and distribution and, therefore pressurized and open-channel dynamics, simultaneously. The modeling and predictive control problem solution algorithm in PLIO are designed for real-time decision support, in connection with a supervisory control and data acquisition system. The hydraulic modeling relies on simple, but representative enough dynamic equations whose parameters are recalibrated on-line using recursive parameter estimation and real data obtained from sensors in the network. Demand forecast models, based on time series analysis, are also dynamically updated. The real-time calibration using recursive parameter estimation methods contributes to dealing with hydraulic uncertainty. This modeling choice, as well as the optimization method selection allows PLIO to deal with very large scale systems. Another distinguishing feature is its capability to accommodate complex operational goals. PLIO was developed jointly by the AGBAR Group and SAC (Advanced Control Systems Group) at UPC (Universitat Polit`ecnica de Catalunya) and CSIC (Spanish National Research Council). Currently, PLIO is in the process of becoming a commercial product Aqualogy AquaAmbiente S.A.
24 VII. SIDEBAR S2: SOFTWARE TOOL FOR MPC DESIGN OF SNS Fig. 13. CORAL interface corresponding to the model manager module than allows creating/updating the model of the sewer network in graphical way using the virtual modeling approach. CORAL is a general-purpose decision support tool that allows the user to apply and implement in real-time predictive optimal control techniques in large-scale urban drainage/sewer systems [40], [18]. The model methodology used by this software tool is described in the modeling section of this article. CORAL has been jointly developed by CLABSA and UPC and has been already tested off-line in Escola Industrial and Riera Blanca test catchments of the Barcelona sewer network as described in [6] and [27]. It was also tested on the Murcia (Spain) network to study the feasibility and potential benefits of the construction of three detention tanks and the use of flow diversion gates. CORAL was developed jointly by the AGBAR Group and SAC (Advanced Control Systems Group) at UPC (Universitat Polit`ecnica de Catalunya) and CSIC (Spanish National Research Council). Currently, CORAL is also in the process of becoming a commercial product Aqualogy AquaAmbiente S.A.
25 VIII. SIDEBAR S4: VIRTUAL TANK CONCEPT Fig. 14. Sewer network modeling by means of interconnected virtual tanks. Each tank represents a catchment in the sewer network. At any given time, let the virtual tank be a storing element that represents the total volume of sewage inside the sewer mains associated with a determined sub-catchment of a given sewer network. The sewage volume is computed through the mass balance of the stored volume, the inflows and outflows related to the sewage mains and the equivalent inflow associated with the rain water [24], [25], [14].