원시데이터 수집 시스템
선정목록으로

Real-Time Pressure Control in Water Distribution Networks: Stability Guarantees via Gain-Scheduled Internal Model Control

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Giacomo Galuppini — Dipartimento di Ingegneria Industriale e dell’Informazione, University of Pavia, Pavia, Italy
  2. Enrico Creaco — Dipartimento di Ingegneria Civile e Architettura, University of Pavia, Pavia, Italy
  3. Lalo Magni — Dipartimento di Ingegneria Civile e Architettura, University of Pavia, Pavia, Italy
DOI
10.1109/tcst.2023.3325546
저널
IEEE Transactions on Control Systems Technology
발행년도
2023
발행기관
Institute of Electrical and Electronics Engineers
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/tcst.2023.3325546
토픽
Membrane Separation Technologies
OpenAlex ID
W4387935048

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

This article proposes a novel scheme for the real-time control (RTC) of service pressure in water distribution networks (WDNs), which is beneficial in terms of leakage reduction, energy recovery, pipe burst abatement, and extension of infrastructure lifetime. Compared with the other schemes previously proposed in the scientific literature, this novel scheme combines regulatory performance with proven guarantee of stability, which is obtained by framing gain scheduling in the context of internal model control (IMC) of linear parameter-varying (LPV) systems. Previous works relying on gain scheduling only prove stability for fixed scheduling parameter values, which is only a necessary condition for stability in case of possibly fast, time-varying parameters. The proposed RTC scheme guarantees instead stability of the closed loop for any admissible trajectory of the scheduling parameter. The novel control scheme is tested numerically against challenging operating conditions in a benchmark WDN, including two different demand patterns and four hydrant activation scenarios.

본문 66,892자

본문 펼치기
## Real-Time Pressure Control in Water Distribution Networks: Stability Guarantees via Gain-Scheduled Internal Model Control Giacomo Galuppini, Enrico Creaco, and Lalo Magni _Abstract_ — This article proposes a novel scheme for the real-time control (RTC) of service pressure in water distribution networks (WDNs), which is beneficial in terms of leakage reduction, energy recovery, pipe burst abatement, and extension of infrastructure lifetime. Compared with the other schemes previously proposed in the scientific literature, this novel scheme combines regulatory performance with proven guarantee of stability, which is obtained by framing gain scheduling in the context of internal model control (IMC) of linear parameter-varying (LPV) systems. Previous works relying on gain scheduling only prove stability for fixed scheduling parameter values, which is only a necessary condition for stability in case of possibly fast, time-varying parameters. The proposed RTC scheme guarantees instead stability of the closed loop for any admissible trajectory of the scheduling parameter. The novel control scheme is tested numerically against challenging operating conditions in a benchmark WDN, including two different demand patterns and four hydrant activation scenarios. _Index_ _Terms_ — Gain scheduling, internal model control (IMC), linear parameter-varying (LPV) systems, real-time control (RTC), smart cities, water networks. I. INTRODUCTION N THE context of water distribution networks (WDNs) management, leakage reduction [1], [2], excess energy # I recovery [3], [4], [5], [6], pipe burst abatement [2], [7], [8], and overall infrastructure life extension represent absolute priorities. Real-time control (RTC) of service pressure [9] represents an effective approach to pursue these goals, as it allows reducing pressure excess across the WDN, while providing sufficient pressure to ensure satisfaction of users’ demand. With the rise of the Water 4.0 approach [10], novel WDNs include sensors, actuators, and computing units, which are connected by wire (e.g., via optical fiber) or by high-end wireless networks [e.g., narrowband internet of things (NB-IoT)] to ensure fast and reliable communication. This technological advance enables the transition from local RTC, where the pressure is controlled right downstream of the control valve [11], [12], [13], Manuscript received 17 August 2023; accepted 14 October 2023. Recommended by Associate Editor F. You. _(Corresponding_ _author:_ _Giacomo_ _Galuppini.)_ Giacomo Galuppini is with the Dipartimento di Ingegneria Industriale e dell’Informazione, University of Pavia, 27100 Pavia, Italy (e-mail: giacomo. galuppini@unipv.it). Enrico Creaco and Lalo Magni are with the Dipartimento di Ingegneria Civile e Architettura, University of Pavia, 27100 Pavia, Italy (e-mail: creaco@unipv.it; lalo.magni@unipv.it). Color versions of one or more figures in this article are available at https://doi.org/10.1109/TCST.2023.3325546. Digital Object Identifier 10.1109/TCST.2023.3325546 to remote RTC, where the pressure can be controlled at any point of the WDN [14], [15], [16], [17]. Specifically, the aim of remote RTC is regulation of service pressure at the socalled critical node, i.e., the WDN node characterized by the minimum daily pressure. As several works in the literature clearly demonstrated both in silico and in situ, a suitable choice of the desired pressure at the critical node, combined with an effective control scheme, can simultaneously reduce pressure excess and guarantee satisfaction of users’ demand [13], [15], [16], [18]. The majority of the literature dealing with RTC of pressure focuses on the performances of the control scheme, whereas the fundamental issues of closed-loop stability and robustness are often overlooked. Motivated by incidents occurred on real plants [19], a series of works [19], [20], [21], [22], [23] started analyzing stability and robustness of common RTC schemes and highlighted common pitfalls in the control design that can lead to instability. In particular, Galuppini et al. [22] stress the need for an accurate description of the high-frequency dynamics of the plant, in order to achieve a reliable controller design. The WDN dynamics is, in fact, characterized by a strong resonant behavior, which arises from the interaction of pressure waves traveling at finite speed through the pipes [24]. A low-order model of the process, such as the first- or second-order linear models commonly adopted in the literature, may not adequately describe such resonant behavior and may, in turn, result in a poor evaluation of the stability margins of the control design [22]. Moreover, Janus and Ulanicki [21] and Galuppini et al. [22] highlight the presence of strong static nonlinearities affecting the process and demonstrate how their combination with the high frequency resonance peaks can lead to closed-loop instability. Finally, Janus and Ulanicki [21] and Galuppini et al. [25] propose a combination of gain scheduling and nonlinearity inversion to robustify the control schemes and mitigate these issues. The scheduling policies aim at keeping the loop function design unaltered, as the process moves across a wide range of operating points. This guarantees that, for all fixed values of the parameters, the closed loop is (robustly) stable. The resulting gain-scheduled controllers are parametric in nature and belong to the class of linear parameter-varying (LPV) systems. It is well understood that, for LPV systems, stability for all fixed parameter values does not necessarily imply stability for time-varying parameters [26], [27]. Whereas slow parameter variations can be tolerable, arbitrarily fast variations can be extremely dangerous and compromise the closed-loop stability. In the context of RTC, © 2023 The Authors. This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/ fast variations occur whenever the water demand increases or decreases abruptly (e.g., in case of fire hydrant operations [28] or presence of industrial users [29]). Therefore, all the aforementioned works fail to rigorously consider the issue of LPV stability and only focus on stability for fixed parameter values. The main aim of this work is to combine the findings from [21] and [25] with the rigorous gain scheduling approach discussed in [27], [30], and [31], to propose and test an RTC scheme for pressure control with LPV stability guarantees. The proposed approach is based on an LPV internal model control (IMC) scheme [27] and includes an LPV Smith predictor (SP) [32] to compensate for the presence of time delays. Low-pass filters are used to clean the scheduling signals from high-frequency oscillations [31]. A filter reinitialization strategy is also proposed, to preserve LPV stability of the closed loop. The novel control scheme is tested in a simulated environment, by relying on a detailed, pressure-driven [33] unsteady flow model of the WDN [34]. This hydraulic modeling approach is the most suitable to replace the actual plant for a preliminary evaluation [35]. The case study explored in this article is based on a real WDN topology and an accurate modeling of the users demand pattern [36]. Simulations include the sudden opening of fire hydrants [28], to evaluate the behavior of the control system in case of fast scheduling parameter variations. All the results stress the effectiveness and the reliability of the novel RTC approach discussed in this article. This article is organized as follows. Section II describes the realistic case study addressed in this work. Section III-A discusses the numerical model of the WDN. The definition of the nominal working point (WP) of the system is discussed in Section III-B, and the identification of the process model is presented in Section III-C. The overall control scheme is thoroughly described in Section III-D. Simulated results are presented and analyzed in Section IV, while further discussion is given in Section V. Finally, Section VI summarizes the main findings of this work. II. CASE STUDY The case study analyzed in this article is the skeletonized WDN of the town of Castelfranco Emilia, Northern Italy. The WDN is composed of 27 nodes (26 demanding nodes and one source node) and 32 pipes. In addition, two fire hydrants are located at nodes 3 and 13, respectively. The complete topology is depicted in Fig. 1. For further details, including features of network nodes, pipes, and hydrants, refer to [28] and [35]. For this case study, the goal to be achieved is pressure regulation at _h_ sp = 25 m at node 1, which is chosen as controlled node. A T.I.S. GROUP “NUOVAL” plunger valve with a diameter of 250 mm (other details and datasheet can be found in [37]) is installed in pipe 26-20, linking the source to the rest of the network. This pressure control valve (PCV) is well suited for RTC, as it can be equipped with an electric actuator and controlled by a programmable logic controller (PLC). For safety reasons, the actuation speed is limited to 0 _._ 0033 s <sup>−1</sup> . Residential demand patterns are generated by means of the bottom-up approach discussed in [36] and [38]. The demand Fig. 1. Topology of the WDN [14]. Fig. 2. Source pressure (left) and demand patterns (right). patterns keep into account human daily routine. With the aim of assessing the robustness of regulatory performances, two different demand patterns are considered, resulting in two different trends of the total WDN demand (see Fig. 2): a flatter trend (pattern A) and a more peaked trend (pattern B). Note that demand patterns A and B share the same average values for each single demand pattern. In addition, the presence of leakage is explicitly considered in this system. The source pressure pattern (see Fig. 2) follows the overall demand trend. III. MATERIALS AND METHODS This section describes the hydraulic model adopted for simulations as well as the main steps required for the design of the control algorithm introduced in this work. _A._ _Hydraulic_ _Model_ _for_ _Simulations_ The pressure-driven [33], unsteady flow modeling [34], [35] is the most suitable approach enabling an accurate analysis of the hydraulic transients resulting from rapid nodal demand and/or valve setting variations. For a generic pipe of a WDN, the 1-D unsteady flow equations take the form  _∂h p_ <u></u> _∂_ _x p_  _h p_ _c_ <sup>2</sup> _∂t_ <sup>+</sup> _gA_ _gA_ _p_ <u>1</u> + _gA_ _p_ _∂_ _Q p_ + _Jp_ = 0 _∂t_ _∂h p_ (1) (2) _∂_ _Q p_ _∂_ _x p_ = 0 Fig. 3. Local head loss coefficient _ξ_ as a function of the valve closure _α_ . where _h p_ [m] and _Q p_ [m <sup>3</sup> _/_ s] are the pressure head and the flow discharge along the pipe, _x p_ [m] is the position along the pipe, _t_ [s] is time, _A_ _p_ [m <sup>2</sup> ] is the pipe cross-sectional area, _g_ [m/s <sup>2</sup> ] is the gravity acceleration constant, _c_ [m/s] is the wave celerity, and _Jp_ is the friction slope. An additional outflow per unit of pipe length _ql_ [m <sup>2</sup> /s] models leakage from WDN pipes _ql_ = _α_ leak _h_ <sup>_γ_</sup> _p_ <sup>leak</sup> (3) where _α_ leak [ _m_ <sup>2−</sup> <sup>_γ_</sup> _/s_ ] and _γ_ leak [−] are the leakage coefficient and exponent, respectively. The exponent _γ_ leak is set to 1, typical value for plastic pipes [39]. Coefficient _α_ leak [−] is set to 9 _._ 4 × 10 <sup>−9</sup> m/s, resulting in a leakage percentage rate of 20%. Hydrant outflows _q_ hd [m <sup>3</sup> /s] are obtained as the outflow from a pressurized orifice, by means of the emitter equation [40] _q_ hd = _C_ hd _h_ <sup>0</sup> _p_ <sup>_._</sup> <sup>5</sup> (4) where _C_ hd [ _m_ <sup>5</sup> <sup>_/_</sup> <sup>2</sup> _/s_ ] is the emitter coefficient, which takes account of the outflow contracted area. If a hydrant is opened linearly in time, _C_ hd increases linearly from 0 to its maximum value _C_ hd _,_ max and vice versa. Each pipe friction slope is evaluated as follows: _Jp_ = 10 _._ 29 <sup>_n_</sup> <sup>2|</sup> <sup>_Q p_</sup> <sup>|</sup> <sup>_Q p_</sup> _d_ <sup>5</sup> _p_ <sup>_._</sup> <sup>33</sup> (5) local head loss coefficient is a growing function of _α_ . This function is typically available in the PCV datasheet [37] or can be characterized by laboratory experiments. Fig. 3 shows the function related to the T.I.S. GROUP “NUOVAL” plunger valve of the Castelfranco Emilia WDN. From this point onward, let _Q_ denote the flow at the valve site. In the model implementation, the water hammer partial differential equations are solved by relying on the method of the characteristics [34]. Network pipes are discretized with spatial steps _�x p_, and the hydraulic variables of interest (pressure head and water flow) along the pipes are computed at each time integration step _�t_, with _�x p_ and _�t_, such that _c_ <sup>_�t_</sup> ≤ 1 _._ (7) _�x p_ Suitable boundary conditions are assigned in correspondence to source and demanding nodes, where fixed total pressure head and demands are prescribed, respectively. The discretized water hammer equations are coupled with the continuity equation, applied to each node of the WDN. Finally, measurement noises acting, respectively, on the measured pressure heads _h(t)_ and on the flow at the valve site _Q(t_ ) are also included in the model. _B._ _WP_ _Definition_ Consider the multi-input multioutput (MIMO) system characterized by input signals as follows: 1) _ξ(α(t))_, the local loss coefficient, function of the valve closure ([−]); 2) _H_ _(t)_, the source pressure ([m]); 3) D _(t)_, the vector of water demands ([m <sup>3</sup> _/_ s]). Consider the multi-input multioutput (MIMO) system characterized by output signals as follows: 1) _h(t)_, the measured pressure ([m]) at the critical node of the WDN; 2) _Q(t)_ the flow at the valve site ([m <sup>3</sup> _/_ s]). The local head loss coefficient _ξ(α(t))_ is chosen as control variable, whereas pressure _h(t)_ is chosen as controlled variable. Source pressure _H_ _(t)_ and water demands D _(t)_ are stochastic disturbances acting on the process. For convenience, define the overall demand of the WDN _D_ tot _(t)_ as follows: where _n_ [ _s/m_ 31 ] is the Gauckler–Manning coefficient. Further more, pipe friction slopes are increased using the correction proposed in [41] to account for the unsteady flow effects. The effect of the control valve is modeled by considering no link at the valve site and setting nodal outflow _Q_ up from the upstream end node and nodal inflow _Q_ down into the downstream end node, at _D_ tot _(t)_ = _N_ nodes _i_ =1 _Di_ _(t)_ (8) where _Di_ _(t)_ is the water demand at node _i_ and _N_ nodes is the number of demanding nodes <u>in</u> <u>the</u> <u>WDN.</u> Let the tuple WP = _(ξ, H_ _,_ D _, h, Q)_ represent the WP for the MIMO system. The average values of typical _H_ _(t)_ and _Di_ _(t)_ patterns are usually available to the WDN manager (e.g., via billed consumption) and are adopted for the definition of the WP. The value of _ξ_ must be chosen, so that the <u>corresponding</u> steady-state pressure at the controlled node, _h_, is sufficiently close to the desired one. In a simulated environment, this can be achieved by adjusting the valve closure _α_ until the pressure _h_ reaches the desired pressure _h_ sp. _Q_ up = _Q_ down = <u>2</u> _g_ _ξ(α)_ <sup>_Av_</sup> - _�Hv_ (6) where _Av_ [m <sup>2</sup> ] is the valve cross-sectional area, _ξ_ [−] is the valve local head loss coefficient, _�Hv_ [m] is the head drop in the valve, and _α_ [−] is the valve closure setting, ranging from 0 (fully open) to 1 (fully closed). The valve <u>The value of</u> _ξ_ associated with such valve closure is adopted as _ξ_ . In a real scenario, this procedure can be directly performed on the real plant, by manual trial-and-error adjustments of _α_, or by means of SISO control schemes, as discussed in [42]. Remark: The analysis carried out in previous works [19], [22], [25] underlines that the choice of _ξ_ as control variable is fundamental to face the strong static nonlinearity affecting the system and improving the robustness of the control scheme. If _α_ is chosen as control variable, due to the _ξ(α)_ nonlinearity, the increase in the process gain occurring at high values of _α_ represents the main source of instability for closed-loop pressure control systems [17], [19]. However, as the _ξ(α)_ function is typically available and invertible, this issue can be conveniently faced by selecting _ξ_ as control variable and introducing a nonlinearity inversion block in the loop to compute at runtime the corresponding value of _α_ [25]. _C._ _Process_ _Model_ _Identification_ This section summarizes the two-step procedure originally introduced in [24] and [42] for the identification of an LPV process model [26]. The methodology combines the black-box identification of a local, linear model, and physical knowledge of the valve static behavior, to obtain an LPV description of the plant dynamics. Start by considering a continuous-time, strictly proper transfer function _P(s)_, relating local head loss variations _δξ(t)_ = _ξ(t)_ - _ξ_, to pressure head variations _δh(t)_ = _h(t)_ - _h_ . If available, a hydraulic WDN simulator (as discussed in Section III-A) can be exploited as source of input–output data. If, instead, a hydraulic model of the WDN is not available, or it is not sufficiently accurate, input–output data can be directly collected by means of experiments performed on the real plant. Note that, when working in silico, the experimental design can focus on maximizing the information contained in the dataset, but the collected data can be affected by hydraulic model versus plant mismatch. On the other hand, working in situ avoids this issue, but requires a more careful design of experiments, which should not interrupt the service to users and should not stress the WDN structure [42]. Once a dataset is available, input–output identification techniques can then be applied to compute suitable parameter estimates for _P(s)_ (e.g., via prediction error method (PEM) [43]). At this point, _P(s)_ should provide an accurate description of the WDN dynamics in a neighborhood of WP, and a testing dataset could be effective in assessing the predictive performances of _P(s)_ . Due to the dissipative nature of the system, _P(s)_ must be asymptotically stable. Moreover, due to the interaction of pressure waves in the WDN, _P(s)_ is typically characterized by several high-frequency resonance peaks, possibly associated with low damping factors [22], [24]. In addition, in the context of remote RTC, _P(s)_ is also characterized by a time delay arising from the time required by pressure waves to travel the WDN pipes from the PCV to the pressure sensor, along the quickest path [24]. This process model typically takes the form where _~~µ~~_ is the static gain, _Tz,i_ and _Tp,i_ are time constants associated with real zeros and poles, _ζi_ and _ξi_ are the damping factors of complex pairs of zeros and poles, _αni_ and _ωni_ are the natural modes of complex pairs of zeros and poles, and _τ_ is the time delay. At this point, physical knowledge of the valve can be incorporated in _P(s)_, to extend its range of validity. In particular, note that, in the valve equation [see (6)], the pressure loss induced by the valve, _�Hv_, quadratically depends on the flow through the valve, _Q_ . Furthermore, several works in the literature suggest that a static description of this nonlinearity can be very effective in improving the associated control design [14], [24], [25]. As _Q(t)_ can be measured online, it is possible to adopt it as scheduling parameter _w(t)_ and move to an LPV description of the plant. Let _~~µ~~_ be the static gain <u>of</u> _P(s)_, corresponding to the flow at the valve site at WP, _Q_ . Define _P(s, w)_ as the LPV extension of _P(s)_, and let its parameter-dependent static gain _µ(w(t))_ be <u>�</u> _Q_ _µ(w)_ = _~~µ~~_ _Q_ �2 _._ (10) Moreover, define _T (s)_ = _e_ <sup>−</sup> <sup>_sτ_</sup> (11) _P(s, w(t))_ = _P_ <sup>′</sup> _(s, w(t))T (s)_ (12) and consider a state-space realization of _P(s, w)_ of the form   x ˙ _(t)_ = A _P_ x _(t)_ + B _P_ _(w(t))u(t)_ (13) (14) (15) (16) _�(w(t))_ _z(t)_ = C _P_ x _(t)_ _y(t)_ = _z(t_ - _τ)_  x 0 = x _(_ 0 _),_ _t_ ≥ 0 - _<u>i</u>_ <sup>_(_</sup> <sup><u>1 + 2</u></sup> <sup>_sζi_</sup> <sup>_/αni_</sup> <sup>+</sup> <sup>_s_</sup> <sup>2</sup> <sup>_/α_</sup> _<u>ni</u>_ <sup>2</sup> - _<u>i</u>_ <sup>_(_</sup> <sup><u>1 + 2</u></sup> <sup>_sζi_</sup> <sup>_/αni_</sup> <sup>+</sup> <sup>_s_</sup> <sup>2</sup> <sup>_/α_</sup> _<u>ni</u>_ <sup>2</sup> <sup>_)_</sup> <u>�</u> _i_ <sup>_(_</sup> <sup>1 + 2</sup> <sup>_sξi_</sup> <sup>_/ωni_</sup> <sup>+</sup> <sup>_s_</sup> <sup>2</sup> <sup>_/ω_</sup> _ni_ <sup>2</sup> <sup>_)_</sup> <sup>_)_</sup> _ni_ <sup>2</sup> <sup>_)_</sup> <sup>_e_</sup> <sup>−</sup> <sup>_sτ_</sup> _P(s)_ = _~~µ~~_ - _<u>i</u>_ <sup>_(_</sup> <sup><u>1 +</u></sup> <sup>_sTz,i_</sup> <sup>_)_</sup> <u>�</u> _i_ <sup>_(_</sup> <sup>1 +</sup> <sup>_sTp,i_</sup> <sup>_)_</sup> (9) with _u(t)_ = _δξ(t)_, _y(t)_ = _δh(t)_, A _P_ and C _P_ matrices of suitable dimensions, and B _P_ _(w)_ a continuous function of the parameter _w_, which is supposed to belong to a compact set _W_ . <sup>1</sup> Similarly, denote by _�_ <sup>′</sup> _(w(t))_ = { A _P_ _,_ B _P_ _(w(t)),_ C _P_ } the state-space realization of _P_ <sup>′</sup> _(s, w)_ . With the proposed class of possible state-space realizations, the system _�_ <sup>′</sup> _(w(t))_ is both asymptotically stable and LPV stable (see Appendix, Definition 1) if and only if the matrix _A_ _P_ is Hurwitz. _D._ _Control_ _Design_ _Methodology_ This section discussed the control design methodology proposed in this article. The overall control scheme (Fig. 4) has, as fundamental building block, the IMC scheme for LPV-stable time delay systems originally developed in [27] and [30], which is adapted to meet the specific needs of this application. Each element of the control scheme is discussed in detail in the reminder of this section. _1)_ _IMC_ _Scheme_ _for_ _LPV-Stable_ _Time_ _Delay_ _Systems:_ The time delay present in the LPV system arises from the propagation of pressure waves across the WDN, and its time scale can pose sensible limitations to the performances of the control loop [24]. For LPV-stable systems as _�(w(t))_, the effect of time delay can be effectively compensated by means 1This is not restrictive as the flow _Q_ is always positive and upper limited due to the design of the WDN itself and cannot vary discontinuously. Fig. 4. Block scheme for the proposed RTC control algorithm, including parameter-varying internal model controller, saturation sat _(_ - _)_, and rate limiter rate lim _(_ - _)_ of control action, parameter-varying SP, gain scheduling policies, and low-pass filters. the transfer function of the primary controller, located in the forward path of the overall controller, _R(s)_ (delimited by a red dashed line). Fig. 6 depicts the scheme rearranged as an IMC scheme. The negative feedback loop inside the blue dotted rectangle, whose transfer function is _Q(s)_ = [1 + _C(s)P_ <sup>′</sup> _(s)_ ] <sup>−1</sup> _C(s)_ (17) Fig. 5. LTI control system for a time delay plant based on the SP. Fig. 6. SP control scheme rearranged. Fig. 7. IMC scheme for the LPV-stable time delay plant. of the LPV-SP formulation proposed in [30]. This approach frames the SP in the context of IMC and rearranges the control scheme to obtain a Youla–Kucera (YK) parameterization of the overall controller. Fig. 5 depicts the standard linear timeinvariant (LTI) control system based on the SP, with _C(s)_ represents the YK parameter of a controller whose positive feedback path (outside the blue dotted rectangle) contains a model of the time delay system. In case of LPV systems, transfer functions should be replaced by state-space realizations, as depicted in Fig. 7, to correctly address the issue of LPV stability. Let _�(w)_ = { A _Q(w),_ B _Q(w),_ C _Q(w),_ D _Q(w)_ } be the state-space realization of the proper LPV YK parameter _Q(s, w)_, where A _Q(w)_, B _Q(w)_, C _Q(w)_, and D _Q(w)_ are continuous functions of _w_ ∈ _W_ . It must be stressed that _�(w)_ may be unstable for time varying _w_, even if A _Q(w)_ is Hurwitz for all constant values of _w_ [26], [27]. To overcome this issue, it is necessary to compute an LPV-stable realization of _Q(s, w)_, every time the scheduling parameter _w_ varies in time. As proved in [27], every parametric transfer function _Q(s, w)_ that is stable for all admissible constant values of _w_ admits an LPV-stable realization _�(w)_, i.e., a realization that is stable for all functions _w(t)_ taking values in _W_ . Procedure 1 [27] allows the computation of such LPV-stable realization. _Procedure_ _1_ : Given _w_ ∈ _W_, the following hold. 1) Compute a generic realization _�(w)_ ˆ = - _A_ ˆ _Q(w),_ _B_ ˆ _Q(w),_ _C_ ˆ _Q(w),_ _D_ ˆ _Q(w)_ - (18) with _A_ <sup>ˆ</sup> _Q(w)_ Hurwitz. 2) Compute the positive-definite solution _ϒ(w)_ of the following Lyapunov equation: _A_ ˆ ⊤ _Q_ <sup>_(w)ϒ(w)_</sup> <sup>+</sup> <sup>_ϒ(w)A_</sup> <sup>ˆ</sup> <sup>_Q_</sup> <sup>= −</sup> <sup>I</sup> <sup>_._</sup> (19) 3) Factorize _ϒ(w)_ as follows: _ϒ(w)_ = _�_ <sup>⊤</sup> _(w)�(w)_ (20) with _�(w)_ an upper triangular matrix (Cholesky’s decomposition). 4) Realize _Q(s, w)_ as follows: _�(w)_ = { A _Q(w),_ B _Q(w),_ C _Q(w),_ D _Q(w)_ } (21) sufficient deamplification of resonance peaks is provided, the closed-loop bandwidth is set to the largest possible value to assess the performances of the control scheme in a demanding situation. Let _ωrp_ be the angular frequency associated with the resonance peak of _P_ <sup>′</sup> _(s)_ located at the lowest frequency. Then, the controller design can be carried out by setting where - A _Q(w)_ B _Q(w)_ = C _Q(w)_ D _Q(w)_ - _�(w)_ 0 0 I �� _A_ ˆ _Q(w)_ _B_ ˆ _Q(w)_ _C_ ˆ _Q(w)_ _D_ ˆ _Q(w)_ _Td_ = <sup><u>1</u></sup> <u>1</u> 5 _ωrp_ _T f_ = 20 _Td_ _._ (26) × - _�_ −1 _(w)_ 0 _._ (22) 0 I Theorem 1 ensures LPV stability of the closed-loop control scheme in Fig. 7. _Theorem_ _1_ _[30]:_ If the system _�(w)_ is LPV stable, the control system in Fig. 7 is LPV stable (see Appendix, Definition 2) if the state-space realization of _�(w)_ is LPV stable. The considered IMC scheme for LPV-stable time delay systems entails the design of the parametric transfer function of the controller _C(s, w)_ . In turn, this consists of two steps, namely, the design of a nominal controller transfer function _C(s)_ based on _P_ <sup>′</sup> _(s)_ and the definition of a scheduling policy based on the online knowledge of _w(t)_ . _2)_ _Nominal_ _Controller_ _Design:_ Several techniques are available in the literature for the design of _C(s)_ (e.g., pole placement and loopshaping [44], [45]). In this article, a loopshaping procedure is carried out, adopting the controller structure and the design rationale discussed in [22]. As the control scheme proposed in this article includes an SP for compensating the effects of time delay, the design of the nominal primary controller transfer function _C(s)_ is based on the delay-free transfer function _P_ <sup>′</sup> _(s)_ . The controller structure consists of a proportional–integral (PI) term and an additional filter term. Specifically, let _C pi_ _(s)_ be the PI transfer function Let _Tp_ be the time constant associated with the lowest frequency pole of _P_ <sup>′</sup> _(s)_ with null imaginary part. One can then set _Ti_ = _Tp_ _~~µ~~_ _C_ = <sup>_ωc_</sup> (27) _~~µ~~_ where _ωc_ is the desired closed-loop bandwidth expressed in rad/s. With this procedure, _ωc_ is the only free design parameter, which must fulfill _ωc_ ≪ _ωrp_ in order to provide robustness margins against gain and phase uncertainties. Note that, if _T_ <u>1</u> _f_ <sup>_<_</sup> <sup>_ωc_</sup> <sup>,</sup> <sup>the</sup> <sup>actual</sup> <sup>closed-loop</sup> <sup>bandwidth</sup> <sup>is</sup> <sup>smaller</sup> <sup>than</sup> the expected one, due to the effect of the pole associated with time constant _T f_ . To conclude the nominal design phase, nominal closed-loop stability can be proved by means of Bode criterion [44]. _Remark:_ Note that Theorem 1 ensures that the closed-loop system remains LPV stable as long as the YK parameter is stable for every fixed parameter values and is properly realized. While this work takes advantage of the control design considerations from the literature (e.g., [22], [24], [25]), the proposed control methodology would also allow for an online, trial-and-error tuning of the YK parameter transfer function [27]. _3)_ _Gain_ _Scheduling_ _for_ _Static_ _Nonlinearity_ _Compensation:_ As discussed in Section III-C, if the local head loss coefficient _ξ_ is used as control variable, the process model is characterized by a static nonlinearity depending on the flow at the valve site _Q_ [see (10)]. In order to keep loop functions constant over a wide range of operating points, the primary controller transfer function _C(s)_ can be made parameter-dependent [25] by acting on its static gain. The static gain _µC_ <sup>GS−</sup> <sup>_Q_</sup> _(w)_ of the parameter-dependent controller transfer function _C(s, w)_ can be chosen as follows: 1 + _s_ <sup>_<u>K p</u>_</sup> _<u>Ki</u>_ (23) _s_ _C pi_ _(s)_ = _~~µ~~_ _C_ <u>1 +</u> _sTi_ = _Ki_ _s_ with _K p_ the proportional gain, _Ki_ the integral gain, and _Ti_ = _K p/Ki_ the integral time constant. The gain of the transfer function _~~µ~~_ _C_ coincides with _Ki_ . Then, let _C f (s)_ be the filter transfer function _C f (s)_ = <sup>_(_</sup> <sup><u>1 +</u></sup> <sup>_sTd_</sup> <sup>_)_</sup> (24) _(_ 1 + _sT f )_ <sup>_._</sup> Finally, the primary controller transfer function _C(s)_ is _C(s)_ = _C f (s)C pi_ _(s)._ (25) Note that _C f (s)_ has unitary static gain, so that _~~µ~~_ _C_ coincides with the gain of the overall regulator. The integral term responds to static performances requirements (i.e., robust regulation to the constant set points, and disturbance rejection in presence of constant and slowly varying process disturbances). The filter term improves the deamplification of the high-frequency resonance peaks of _P_ <sup>′</sup> _(s)_ . The two additional zeros in the controller can be used to compensate for the effect of low-frequency poles in _P_ <sup>′</sup> _(s)_ and to recover phase margin. In this article, after so that the dependence on the scheduling parameter does not appear in the loop functions. _4)_ _Gain_ _Scheduling_ _for_ _Regulation_ _Error_ _Versus_ _Cost_ _of_ _Control_ _Trade-Off:_ The control approach discussed above is able to compensate the static nonlinearities of the process because of the choice of the local head loss coefficient _ξ_ as control variable and the LPV design based on online measurements of the flow at the valve site _Q_ . In this way, the loop functions can be kept as constant as possible over a wide range of operating points of the WDN. However, this choice may not always be the most efficient one. Consider �2 (28) _µC_ <sup>GS−</sup> <sup>_Q_</sup> _(Q(t))_ = _~~µ~~_ _C_ <u>�</u> _Q_ _Q(t)_ [25], convenient starting values are _µ_ <sup>∗</sup> ratio <sup>=</sup> <sup>0</sup> <sup>_._</sup> <sup>1</sup> <sup>and</sup> <sup>_p_</sup> <sup>=</sup> <sup>4,</sup> which should be adjusted to fit the specific case study. _5)_ _Filtering_ _of_ _the_ _Scheduling_ _Parameter:_ The scheduling policies discussed above are based on steady-state considerations about the WDN and involve online measurement of flow at the valve site _Q_ and valve closure _α_ . Since the WDN is mainly driven by the users’ time-varying demand, pressure and flow oscillations arise from both high-frequency demand oscillations and from the water hammer effect in the WDN pipes. Part of these oscillations is transferred to _α(t)_, through the closed-loop system. Low-pass filtering of the scheduling parameter can be introduced in the control scheme to mitigate this issue. Then, let LP _(s)_ be the transfer matrix of the low-pass filters for the scheduling parameter w _(t)_ Fig. 8. Example of gain scheduling policy for regulation performances versus cost of control trade-off. an operating point characterized by high flow values and associated valve closure _α_ assuming values close to zero. Under these conditions, the function _ξ(α)_ is almost flat, and small variations of the control variable _ξ_ require a wide variation of _α_ to be obtained. As a result, the cost of control associated with high flow conditions is much higher than that of low flow conditions. This issue can be explicitly accounted for by leveraging the gain-scheduled nature of the control scheme, to progressively reduce the closed-loop bandwidth as the flow at the valve site _Q_ increases. To this end, include the valve closure _α_ in the scheduling parameter w, and note that _α_ ∈[0; 1], so that w = [ _Q_ _α_ ] <sup>⊤</sup> still belongs to a compact set. The static gain _µC_ <sup>GS−</sup> <sup>_α_</sup> _(_ w _(t))_ of the new parameter-dependent primary controller transfer function, _C(s,_ w _)_, can be chosen according to the following scheduling law, inspired by Galuppini et al. [25]: LP _(s)_ = - <u>1</u> 0 1+ _sTlp,Q_ 0 <u>1</u> 1+ _sTlp,α_ (32) _µC_ <sup>GS−</sup> <sup>_α_</sup> _C_ <sup>GS−</sup> <sup>_Q_</sup> _(Q(t)))_ (29) _C_ <sup>GS−</sup> <sup>_α_</sup> _(Q(t), α(t))_ = _µ_ ratio _(α(t))(µC_ <sup>GS−</sup> <sup>_Q_</sup> with _Tlp,Q_ and _Tlp,α_ the filter time constants. Denote as w _lp(t)_ = [ _Qlp(t) αlp(t)_ ] <sup>⊤</sup> the low-pass filtering of the scheduling parameter w _(t)_ . Note that _Tlp,Q_ can be selected offline, by analyzing the spectrum of daily records of _Q(t)_, which can be directly collected from the plant. A straightforward choice for _Tlp,α_ could then be setting _Tlp,α_ = _Tlp,Q_ [25]. Simulations show that this low-pass filtering improves the performances of the gain-scheduled control approach. Nevertheless, this introduces a mismatch between the measured and the filtered scheduling parameter. In principle, both gain scheduling and SP design require a perfect knowledge of the parameters. In order to retain the benefits of the low-pass filtering and avoid stability issues, the following solution based on the small gain theorem [31], [45] is proposed. 1) Implement a state-space realization _�_ of the low-pass filter, such that the filter state x _lp(t)_ coincides with the filter output w _lp(t)_ . 2) (Re)initialize the filter state and output so that x _lp(t)_ = w _lp(t)_ = w _(t)_ (33) every time the following condition on the loop gain is violated: || _Q(s,_ w _lp(t))_ || || _T (s)�(s,_ w _lp(t),_ w _(t))_ || _< γ_ _<_ 1 (34) where || - || is a generic operator norm, _γ_ _>_ 0 is a robustness threshold (accounting for measurement errors for the scheduling parameter), _T (s)_ is the time delay operator [see (16)], and _�(s,_ w _lp(t),_ w _(t))_ is given by _�(s,_ w _lp(t),_ w _(t))_ = _P(s,_ w _lp(t))_ - _P(s,_ w _(t))._ (35) Similarly, it is possible to define filter reinitialization policies based on thresholds on the absolute difference between measured and filtered scheduling parameters. Whereas the reinitialization policy discussed earlier ensures closed-loop stability, these can improve the control performances in case of sudden scheduling parameter variations (due to, e.g., fire hydrants opening [28] and temporary activation of industrial user demands [29]). where _µ_ ratio _(α(t))_ ∈ _(_ 0 _,_ 1] is a multiplicative factor. Assuming the nominal design of _C(s)_ to result in the maximum desired closed-loop bandwidth, _µ_ ratio _(α(t))_ can be chosen as follows: - 1 _,_ ∀ _α(t) > α_ <sup>∗</sup> _µ_ ratio _(α(t))_ = _k_ ∗ _α_ <sup>_p_</sup> + _µ_ <sup>∗</sup> (30) <sup>∗</sup> ratio <sup>_,_</sup> ∀ _α(t)_ ≤ _α_ <sup>∗</sup> <u>ratio</u> _k_ = <sup><u>1 −</u></sup> <sup>_µ_</sup> <sup>∗</sup> (31) _α_ <sup>∗</sup> <sup>_p_</sup> with _α_ <sup>∗</sup> ∈[0; 1], _µ_ <sup>∗</sup> ratio <sup>∈</sup> <sup>_(_</sup> <sup>0; 1],</sup> <sup>and</sup> <sup>_p_</sup> <sup>_>_</sup> <sup>0</sup> <sup>are</sup> <sup>design</sup> parameters. In particular, _µ_ <sup>∗</sup> ratio <sup>represents</sup> <sup>the</sup> <sup>value</sup> <sup>of</sup> <sup>_µ_</sup> <sup>ratio</sup> <sup>_(α)_</sup> <sup>when</sup> _α_ = 0, _p_ the power of increase of _µ_ ratio _(α)_ as _α_ → _α_ <sup>∗</sup>, and _α_ <sup>∗</sup> the upper limit of the gain scheduling policy, which affects the design only for _α_ ∈[0; _α_ <sup>∗</sup> ]. An example is reported in Fig. 8. The three parameters are selected, so that the gain of the controller is progressively reduced, as soon as the valve closure _α_ reaches the flat region of curve _ξ(α)_ . The value of _α_ <sup>∗</sup> can, therefore, be selected by inspecting the curve _ξ(α)_ (see Fig. 3). The values of _µ_ <sup>∗</sup> ratio <sup>and</sup> <sup>_p_</sup> <sup>are</sup> <sup>then</sup> <sup>selected</sup> <sup>to</sup> <sup>obtain</sup> a sufficiently fast reduction of the controller gain. Based on Fig. 9. IMC scheme for the LPV-stable time delay plant including input saturation sat _(_ - _)_ and rate limiter rate lim _(_ - _)_ . _6)_ _Input_ _Saturation_ _and_ _Rate_ _Limiter:_ Note that the valve closure _α_ is upper and lower bounded. Moreover, under normal WDN operations, the valve must never be completely closed, i.e., the upper bound for _α_ is always lower than 1. As a consequence, the head loss coefficient _ξ_ is also upper and lower bounded by finite values. Moreover, as discussed in Section II, the valve speed is limited for safety reasons. This, in turn, imposes maximum and minimum rates of variations to _ξ_ . In order to account for these limitations, it is possible to include models of input saturation, sat _(_ - _)_, and rate limiter, rate lim _(_ - _)_, in the control scheme, as shown in Fig. 9, and prove bounded-input bounded-output (BIBO) stability of the closed loop. Due to the saturation, _u(t)_ is bounded. As the system _�(_ w _)_ is quadratically stable, it is also BIBO stable, i.e., _y(t)_ is bounded whenever _u(t)_ is bounded. Note that the same holds for the system model inside the controller; thus, _y_ ˆ _(t)_ is bounded whenever _u(t)_ is bounded. The difference _y(t)_ −ˆ _y(t)_ is also bounded. It follows that the output of the YK parameter _�(_ w _)_ is bounded for bounded set-point signals _y_ sp _(t)_ . In summary, _y(t)_ is bounded for bounded set-point signals _y_ sp _(t)_ . IV. RESULTS This section applies the RTC methodology proposed in this work to the Castelfranco Emilia WDN, described in Section II, and presents the results of simulations under several operating conditions. _A._ _Nominal_ _Controller_ _Design_ _and_ _Gain_ _Scheduling_ _Policies_ For the Castelfranco Emilia WDN, a reasonable set point for pressure at the critical node (node 1) is _h_ sp = 25 _m_ . Based on the average values of typical users’ demand and source pressure, the corresponding WP is _ξ_ = 170 _._ 45 _(_ i.e., _~~α~~_ = 0 _._ 619 _)_ _H_ = 39 _._ 6 m _D_ 1 = 0 _._ 0014 m <sup>3</sup> _/_ s _. . ._ _D_ _N_ nodes = 0 _._ 0007 m <sup>3</sup> _/_ s _h_ = 25 m _Q_ = 0 _._ 0586 m <sup>3</sup> _/_ s _._ WP =    (37) simulation around WP. The parameters of _P(s)_ are obtained by means of PEM identification [46], by relying on MATLAB identification toolbox [43]. Fig. 10 compares identification data and model prediction. The complete definition of _P(s)_ is reported in (36), as shown at the bottom of the next page, and the Bode diagram of _P(s)_ is reported in Fig. 11. From the Bode diagram of the modulus of _P(s)_, it holds that _ωrp_ = 0 _._ 1 rad/s. The design of the nominal primary controller _C(s)_ is based on the delay-free transfer function, _P_ <sup>′</sup> _(s)_ and is carried out following the loopshaping approach discussed in Section III-D2. The parameters of the filter term of the controller, _C f (s)_, are set to _Td_ = 2 s _T f_ = 40 s _._ (38) The required closed-loop bandwidth is _ωc_ = 0 _._ 0306 rad/s. As the nominal gain of _P_ <sup>′</sup> _(s)_ results _~~µ~~_ = −0 _._ 0631 m, the nominal static gain of the controller is set to _~~µ~~_ _C_ = −0 _._ 4849 m <sup>−1</sup> _._ (39) As _P_ <sup>′</sup> _(s)_ does not contain any real pole, _Tp_ is not defined, and the integral time constant _Ti_ can be treated as a free design parameter. In this case, _Ti_ is set to _Ti_ = 5 _._ 5 s (40) to recover some phase margin, which results _φm_ = 70 <sup>◦</sup> . The gain margin results _Km_ = 18 _._ 9. As for resonance peak deamplification, the analysis of Bode diagram of the loop gain function _L(s)_ = _C(s)P_ <sup>′</sup> _(s)_ (Bode diagram in Fig. 12) shows that the highest resonance peak, located around _ωrp_ = 0 _._ 1 rad/s, reaches −15 dB of magnitude. <sup>2</sup> The parameters of the gain scheduling policy GS − _α_ are _α_ <sup>∗</sup> = 0 _._ 5 _µ_ <sup>∗</sup> ratio <sup>= 0</sup> <sup>_._</sup> <sup>3</sup> _p_ = 6 _._ (41) The low-pass filters time constants are set to _Tlp,Q_ = _Tlp,α_ = 600 s _._ (42) The threshold for filter reinitialization based on the small gain theorem is set to _γ_ = 0 _._ 8. Moreover, the filter processing the flow at the valve site _Q(t)_ is also reinitialized at time _t_ if | _Q(t)_ - _Qlp(t)_ | ≥ 0 _._ 03 m <sup>3</sup> _/_ s (43) and the filter processing the valve closure _α(t)_ is also reinitialised at time _t_ if | _α(t)_ - _αlp(t)_ | ≥ 0 _._ 25 _._ (44) _B._ _Closed-Loop_ _Simulations_ Fig. 13(a) and (b) shows the results of whole-day, closedloop simulations for demand patterns A and B, respectively (details of results at the time scale of seconds are depicted in Fig. 13(c) and (d), respectively). In both scenarios, the control scheme provides accurate regulation of pressure to the 2The presence of a resonance peak around _ωrp_ = 0 _._ 1 rad/s is masked in the modulus of _L(s)_ by the negative slope introduced by the integrator. For this reason, in the nominal controller design, it is important to keep track of the angular frequencies at which the resonance peaks are originally located in _P_ <sup>′</sup> _(s)_ . _Remark:_ As the average value of each demand _Di_ _(t)_ is the same for demand patterns A and B, a single WP is sufficient to cover both scenarios. Input–output data for the identification of the nominal process transfer function, _P(s)_, are obtained from a step response Fig. 10. Model identification. Top: pressure variation _δh(t)_ (blue solid line: identification data and red dashed line: model prediction). Bottom: valve head loss coefficient variation _δξ(t)_ . Fig. 11. Bode diagram of the nominal process transfer function _P(s)_ . Fig. 12. Bode diagram of the nominal loop gain function _L(s)_ . chosen set point, by rejecting the disturbances generated by time-varying users’ demand and source pressure. For demand pattern B [Fig. 13(b)], due to its first, high peak, the valve TABLE I RESULTS OF CLOSED-LOOP SIMULATIONS WITH DEMAND PROFILES A AND B FOR THE LPV IMC CONTROL SCHEME PROPOSED IN THIS ARTICLE AND FOR THE FPI-SP-GS CONTROL SCHEME FROM [25] saturation limit is reached around _t_ = 8 h. However, because of the saturation model discussed in Section III-D6, the control loop quickly responds to the demand decrease and does not introduce any noticeable windup effect. Also note that, in both scenarios, the magnitude of high frequency oscillations of the valve closure _α_ remains almost constant throughout the entire simulation and across very different working conditions. This highlights the benefits of the additional gain scheduling policy discussed in Section III-D4. For whole-day simulations, a quantitative assessment of the performances of the control scheme is also given in this article, by means of the following metrics (defined for discrete-time signals, with _k_ the discrete-time instant). 1) _(_ 1 _/K_ tot _)_ <sup>�</sup> _k_ <sup>_K_</sup> = <sup>tot</sup> 1 <sup>|</sup> <sup>_h(k)_</sup> <sup>−</sup> <sup>_h_</sup> <sup>sp|</sup> <sup>[m].</sup> <sup>The</sup> <sup>regulation</sup> <sup>error,</sup> accounting for the proximity of the measured pressure to the set point. 2) <sup>�</sup> _k_ <sup>_K_</sup> = <sup>tot</sup> 1 <sup>|</sup> <sup>_α(k)_</sup> <sup>−</sup> <sup>_α(k_</sup> <sup>−</sup> <sup>1</sup> <sup>_)_</sup> <sup>|</sup> [−]. The control effort, accounting for energy consumption and wear of actuators. All signals are sampled with a 1-s sampling time; for wholeday simulations, then _K_ tot = 86400. The values reported in Table I are quite similar for both demand scenarios and are aligned with the state-of-the art results in the literature (see [25], [47]), which, however, do not provide rigorous guarantees in terms of LPV stability. This further stresses the effectiveness and reliability of the approach proposed in this article. As already discussed in this article, one of the main advantages of the proposed control scheme is its ability to face arbitrarily fast changes in the scheduling parameter. Specifically, as the flow _Q_ appears in the scheduling parameter, this issue can occur in case of pipe bursts or fire hydrant operations. Four simulations involving fire hydrant operations are then carried out in order to assess the reliability of the control scheme under these circumstances. In particular, Fig. 13(e) and (g) shows the results of fire hydrant operations at nodes 3 and 13, respectively, for demand pattern A. Fig. 13(f) and (h) shows the results of fire hydrant operations at nodes 3 and 13, respectively, for demand pattern B. In all cases, fire hydrants _(s_ +0 _._ <u>02091</u> _)(s_ <sup>2</sup> +0 _._ <u>05448</u> _s_ +0 _._ <u>02347</u> _)(s_ <sup>2</sup> + 0 _._ <u>0619</u> _s_ + 0 _._ <u>05856</u> _)(s_ <sup>2</sup> - <u>0</u> _._ <u>4878</u> _s_ + 1 _._ <u>625</u> _)_ _P(s)_ =−0 _._ 001812 _(s_ <sup>2</sup> +0 _._ 07914 _s_ +0 _._ 01334 _)(s_ <sup>2</sup> +0 _._ 05366 _s_ +0 _._ 03801 _)(s_ <sup>2</sup> +0 _._ 05476 _s_ +0 _._ 07299 _)(s_ <sup>2</sup> +0 _._ 07267 _s_ +0 _._ 3812 _)_ <sup>_e_</sup> <sup>−19</sup> <sup>_s_</sup> (36) Fig. 13. Closed-loop simulations. Top: pressure head at node 1 _h_ 1 _(t)_ (blue solid line) and pressure set point _h_ sp (red dashed line). Middle: flow at the valve site _Q(t)_ (red solid line) and low-pass-filtered flow at the valve site _Qlp(t)_ (green dashed line). Bottom: valve closure _α(t)_ (black solid line) and low-pass-filtered valve closure _αlp(t)_ (cyan dashed line). (a) Whole day, demand pattern A. (b) Whole day, demand pattern B. (c) Detail of whole-day simulation, demand pattern A. (d) Detail of whole-day simulation, demand pattern B. (e) Hydrant opening at node 3, demand pattern A. (f) Hydrant opening at node 3, demand pattern B. (g) Hydrant opening at node 13, demand pattern A. (h) Hydrant opening at node 13, demand pattern B. remain open for about 1600 s, from _t_ = 0 _._ 83 h to _t_ = 1 _._ 27 h. In all four cases, pressure is promptly regulated to the set point within few minutes from the fire hydrant opening or closure, with negligible overshoot in the response (recall that the usual sources of disturbance are always active). The dynamic response is consistent with the expected one, based on the loop function design discussed earlier in this section. Interestingly, the sudden variation in both flow at the valve site and valve closure results in low-pass filter reinitialization [see Fig. 13(e), (f), and (h)] due to (43) and (44). On the contrary, the stability-preserving reinitialization was never triggered in this simulations. _C._ _Comparison_ _With_ _the_ _State_ _of_ _the_ _Art_ As discussed earlier in this article, several gain-scheduled control schemes are available in the literature of pressure RTC in WDNs (e.g., [21], [25], [35]). However, none of them rigorously considers the issue of closed-loop stability for any admissible time history of the scheduling parameters. This is a fundamental step toward the implementation of pressure RTC schemes in real WDNs. Loss of stability may trigger wide pressure oscillations that can stress and possibly damage the infrastructure and disrupt the service to end users [19], [22]. The control scheme proposed in this work provides stability guarantees, while retaining the advantages of [25], i.e., a straightforward design of the nominal regulator, and simple gain-scheduling policies. A comparison with the results achieved by the filtered proportional-integral with smith predictor and gain scheduling (FPI-SP-gs) control scheme from [25] highlights that the novel control scheme can result in similar regulatory performances, while guaranteeing closedloop stability. To ensure a meaningful comparison, simulations are carried out by requiring the same nominal loop functions and using the same gain-scheduling policies. The results of the FPI-SP-gs control scheme are reported in Table I. A comparison with the results achieved by the LPV IMC scheme stresses that the performances are almost identical for demand profile A, as expected from the same design of the loop functions and similar scheduling policies. With demand profile B, the performances of the two control schemes are still similar, but not identical. Further investigations highlights that the main differences occur while the control action is saturating. This is consistent with a different handling of saturation in the two schemes. V. DISCUSSION The closed-loop simulations presented in the previous section highlight the effectiveness of the RTC scheme proposed in this work and support its implementation on a real plant. Note that the definition of the nominal WP, as well as the identification of the LPV process model, can be both performed directly on the real WDN with no need for an accurate hydraulic model, by following the guidelines discussed in [42]. In this case, the knowledge of average users’ demand would not even be required. Moreover, as previously introduced, the proposed control scheme enables online tuning of the YK parameter _Q(s)_, with no risk for the stability of the control loop. This would enable a safe application of reinforcement learning methodologies for the design of the controller. In fact, it is usually hard to directly relate relevant features of the loop functions and in situ performance metrics, as the dynamics of the main disturbances affecting the plant (i.e., users’ demands) are difficult to model, especially at a fine timescale. For these reasons, Galuppini et al. [47] proposed an alternative approach for the design of the controller, based on biobjective optimization. In the proposed formulation, the cost functions to be minimized/maximized encode the conflicting requirements of control performances (e.g., closed-loop settling time and process disturbance rejection) and moderation of the control action/rejection of measurement noise/robustness to model uncertainties. An integral action is still included in the controlled to ensure robust static performances. This approach provides a Pareto front of tunings to be tested on the real plant and evaluated according to the desired performance metrics. The possibility of changing the controller parameters online, without compromising the stability of the closed loop, represents an interesting feature of this work, which well complements the biobjective optimization approach, as it enables an automated choice of the “best” tuning over the available candidates forming the Pareto front. Therefore, the development of a fully automated controller design procedure represents an interesting research direction. Another possible extension of this work could focus on the identification of a full LPV model from experimental data. In fact, while this article only considers a static parametrization of the process model, the introduction of parameter-dependent dynamics and time delay may improve the predictive performances of the model and, possibly, of the overall control scheme. Note that the control scheme proposed in this article would not require any modification, as long as the new process model is LPV stable. Finally, run-to-run [48] or Bayesian optimization [49] approaches could be leveraged to automate and optimize the design parameters of the gain-scheduling policies as well as the time constants of the low-pass filters. VI. CONCLUSION This article deals with RTC of service pressure in WDNs and proposes a gain scheduling approach guaranteeing stability of the closed-loop system for arbitrary variations of the scheduling parameter. The proposed approach combines an IMC scheme with gain scheduling, in order to handle an LPV description of the WDN dynamics. The control scheme also includes an SP, to compensate for time delay effects, as well as models of the static nonlinearities affecting the control action, to avoid windup issues. Finally, to improve the performances, low-pass filtering of the scheduling parameter is also implemented, and filter reinitialization policies are included in the scheme to prevent loss of stability due to measured/filtered scheduling parameter mismatch. A detailed pressure-driven, unsteady flow model is used to simulate a real WDN under different demand scenarios and assess the performances of the proposed approach, which delivered satisfactory results even in case of very fast variations of the scheduling parameter. APPENDIX _LPV_ _Stability:_ Consider the following LPV system:   x ˙ _(t)_ = A _(w(t))_ x _(t)_ + B _(w(t))u(t)_ (45) (46) (47) (48) tends to zero as _t_ →∞, and its norm is bounded from above by a continuous and strictly decreasing function, again in view of [30, Lemma 3.1]. Consequently, the input _u(t)_ of both blocks _�(w)_, which coincides with the output of _�(w)_, tends to zero (and its norm is bounded from above by a continuous and strictly decreasing function) and so does the state x _(t)_ of the LPV-stable plant. To conclude the proof, it is enough to observe that, according to (58), x ˆ _(t)_ = x _(t)_ + x _e(t)_ → 0. Therefore, the system is LPV stable in the sense of Definition 2. REFERENCES [1] M. Farley and S. Trow, _Losses in Water Distribution Networks_ . London, U.K.: IWA Publishing, 2003. [2] E. Creaco and T. Walski, “Economic analysis of pressure control for leakage and pipe burst reduction,” _J._ _Water_ _Resour._ _Planning_ _Manage._, vol. 143, no. 12, Dec. 2017, Art. no. 04017074. [3] E. Creaco, G. Galuppini, A. Campisano, C. Ciaponi, and G. Pezzinga, “A bi-objective approach for optimizing the installation of PATs in systems of transmission mains,” _Water_, vol. 12, no. 2, p. 330, Jan. 2020. [4] N. Fontana, M. Giugni, L. Glielmo, and G. Marini, “Real time control of a prototype for pressure regulation and energy production in water distribution networks,” _J._ _Water_ _Resour._ _Planning_ _Manage._, vol. 142, no. 7, Jul. 2016, Art. no. 04016015. [5] N. Fontana, M. Giugni, L. Glielmo, G. Marini, and R. Zollo, “Use of hydraulically operated PRVs for pressure regulation and power generation in water distribution networks,” _J._ _Water_ _Resour._ _Planning_ _Manage._, vol. 146, no. 7, Jul. 2020, Art. no. 04020047. [6] E. Creaco, G. Galuppini, and A. Campisano, “Unsteady flow modelling of hydraulic and electrical RTC of PATs for hydropower generation and service pressure regulation in WDN,” _Urban_ _Water_ _J._, vol. 19, no. 3, pp. 233–243, Mar. 2022. [7] J. Thornton and A. Lambert, “Managing pressures to reduce new breaks,” _Water_, vol. 21, pp. 24–26, Dec. 2006. [8] A. Lambert, M. Fantozzi, and J. Thornton, “Practical approaches to modeling leakage and pressure management in distribution systems– progress since 2005,” in _Proc._ _12th_ _Int._ _Conf._ _Comput._ _Control_ _Water_ _Ind._, Perugia, Italy, 2013, pp. 2–4. [9] E. Creaco, A. Campisano, N. Fontana, G. Marini, P. R. Page, and T. Walski, “Real time control of water distribution networks: A stateof-the-art review,” _Water_ _Res._, vol. 161, pp. 517–530, Sep. 2019. [10] D. Sedlak, _Water 4.0: The Past, Present, and Future of the World’s Most_ _Vital_ _Resource_ . New Haven, CT, USA: Yale Univ. Press, 2014. [11] S. L. Prescott and B. Ulanicki, “Improved control of pressure reducing valves in water distribution networks,” _J. Hydraulic Eng._, vol. 134, no. 1, pp. 56–65, Jan. 2008. [12] H. AbdelMeguid, P. Skworcow, and B. Ulanicki, “Mathematical modelling of a hydraulic controller for PRV flow modulation,” _J._ _Hydroinform._, vol. 13, no. 3, pp. 374–389, Jul. 2011. [13] E. Creaco and T. Walski, “Operation and cost-effectiveness of local and remote RTC,” _J._ _Water_ _Resour._ _Planning_ _Manage._, vol. 144, no. 11, Nov. 2018, Art. no. 04018068. [14] E. Creaco, “Exploring numerically the benefits of water discharge prediction for the remote RTC of WDNs,” _Water_, vol. 9, no. 12, p. 961, Dec. 2017. [15] N. Fontana, M. Giugni, L. Glielmo, G. Marini, and R. Zollo, “Real-time control of pressure for leakage reduction in water distribution network: Field experiments,” _J. Water Resour. Planning Manage._, vol. 144, no. 3, Mar. 2018, Art. no. 04017096. [16] N. Fontana, M. Giugni, L. Glielmo, G. Marini, and F. Verrilli, “Real-time control of a PRV in water distribution networks for pressure regulation: Theoretical framework and laboratory experiments,” _J._ _Water_ _Resour._ _Planning_ _Manage._, vol. 144, no. 1, Jan. 2018, Art. no. 04017075. [17] G. Galuppini, E. Creaco, C. Toffanin, and L. Magni, “Service pressure regulation in water distribution networks,” _Control_ _Eng._ _Pract._, vol. 86, pp. 70–84, May 2019. [18] A. Campisano, C. Modica, F. Musmeci, C. Bosco, and A. Gullotta, “Lab oratory experiments and simulation analysis to evaluate the application potential of pressure remote RTC in water distribution networks,” _Water_ _Res._, vol. 183, Sep. 2020, Art. no. 116072. [19] B. Ulanicki and P. Skworcow, “Why PRVs tends to oscillate at low flows,” _Proc._ _Eng._, vol. 89, pp. 378–385, Jan. 2014. _�(w(t))_ _z(t)_ = C _(w(t))_ x _(t)_ _y(t)_ = _z(t_ - _τ)_  x 0 = x _(_ 0 _),_ _t_ ≥ 0 where A _(w(t))_, B _(w(t))_, and C _(w(t))_ are continuous functions of the parameter _w_, which is supposed to belong to a compact set _W_ . Denote by _�_ <sup>′</sup> _(w(t))_ = { A _(w(t)),_ B _(w(t)),_ C _(w(t))_ } the state-space representation of the delay-free part of the system. _Definition_ _1_ _[30]:_ System _�_ <sup>′</sup> _(w(t))_ is LPV stable, if the system x ˙ _(t)_ = A _(w(t))_ x _(t)_ is asymptotically stable for any function _w_ : [0; +∞ _)_ → _W_ . Considering now the entire LPV system _�(w(t))_, assume that there is no external input, and let _ν(t)_ be the norm (in the space of the continuous vector functions x defined in the interval [ _t_ - _t_ <sup>∗</sup> _, t_ ] _)_ defined by _ν(t)_ = sup _t_ - _t_ <sup>∗</sup> ≤ _σ_ ≤ _t_ || x _(σ)_ || _._ (49) _Definition_ _2_ _[30]:_ System _�(w(t))_ is LPV stable, if for all functions _w_ : R <sup>+</sup> → _W_ || x _(t)_ || ≤ _φ(ν(_ 0 _), t)_ (50) where _φ(ν, t)_ is a continuous function strictly increasing with respect to the first argument and strictly decreasing with respect to the second argument and such that lim _t_ →∞ _φ(ν, t)_ = 0, uniformly with respect to _ν_ . _Proof_ _of_ _Theorem_ _1_ _[30]:_ With reference to Fig. 7, note that the output of _�(w)_ = { A _Q(w),_ B _Q(w),_ C _Q(w),_ D _Q(w)_ } coincides with the input _u(t)_ of both blocks (system and internal model) _�(w)_ = { A _P_ _(w),_ B _P_ _(w),_ C _P_ _(w)_ }. Then, the equations describing the overall system in the absence of external inputs are: x ˙ _(t)_ = A _P_ _(w(t))_ x _(t)_ + B _P_ _(w(t))u(t)_ (51) _z(t)_ = C _P_ _(w(t))_ x _(t)_ (52) x ˙ˆ _(t)_ = A _P_ _(w(t))_ x ˆ _(t)_ + B _P_ _(w(t))u(t)_ (53) _z_ ˆ _(t)_ = C _P_ _(w(t))_ x ˆ _(t)_ (54) x ˙ _Q(t)_ = A _Q(w(t))_ x _Q(t)_ + B _Q(w(t))(w(t))v(t)_ (55) _u(t)_ = C _Q(w(t))_ x _Q(t)_ + D _Q(w(t))v(t)_ (56) _v(t)_ = _z_ ˆ _(t_ - _τ)_ - _z(t_ - _τ)._ (57) Consider now the auxiliary variable x _e(t)_ = x ˆ _(t)_ - x _(t)_, whose evolution is described by x ˙ _e(t)_ = A _P_ _(w(t))_ x _e(t)._ (58) Since _�(w)_ is LPV stable, then, in view of [30, Lemma 3.1], x _e(t)_ → 0 from any initial condition as _t_ →∞, and its norm is bounded from above by a continuous and strictly decreasing function. Therefore, _v(t)_ = C _P_ _(w(t_ - _τ))_ x _e(t_ - _τ)_ also tends to zero as _t_ →∞. Since the YK parameter _�(w)_ is LPV stable by assumption and its input _v(t)_ converges to zero, then also its state x _Q(t)_ [20] T. Janus and B. Ulanicki, “Hydraulic modelling for pressure reducing valve controller design addressing disturbance rejection and stability properties,” _Proc._ _Eng._, vol. 186, pp. 635–642, Jan. 2017. [21] T. Janus and B. Ulanicki, “Improving stability of electronically controlled pressure-reducing valves through gain compensation,” _J._ _Hydraulic_ _Eng._, vol. 144, no. 8, Aug. 2018, Art. no. 04018053. [22] G. Galuppini, L. Magni, and E. Creaco, “Stability and robustness of real-time pressure control in water distribution systems,” _J._ _Hydraulic_ _Eng._, vol. 146, no. 4, Apr. 2020, Art. no. 04020023. [23] T. Janus and B. Ulanicki, “Effects of sampling on stability and performance of electronically controlled pressure-reducing valves,” _J._ _Water_ _Resour._ _Planning_ _Manage._, vol. 147, no. 3, Mar. 2021, Art. no. 04021003. [24] G. Galuppini, E. Creaco, and L. Magni, “Sum-of-delay models for pressure control in water distribution networks,” _Control_ _Eng._ _Pract._, vol. 113, Aug. 2021, Art. no. 104844. [25] G. Galuppini, E. Creaco, and L. Magni, “A gain scheduling approach to improve pressure control in water distribution networks,” _Control_ _Eng._ _Pract._, vol. 103, Oct. 2020, Art. no. 104612. [26] J. S. Shamma, “An overview of LPV systems,” in _Control_ _of_ _Lin-_ _ear_ _Parameter_ _Varying_ _Systems_ _With_ _Applications_ . Berlin, Germany: Springer, 2012, pp. 3–26. [27] F. Blanchini, D. Casagrande, S. Miani, and U. Viaro, “Stable LPV realization of parametric transfer functions and its application to gainscheduling control design,” _IEEE Trans. Autom. Control_, vol. 55, no. 10, pp. 2271–2281, Oct. 2010. [28] E. Creaco, A. Campisano, and C. Modica, “Testing behavior and effects of PRVs and RTC valves during hydrant activation scenarios,” _Urban_ _Water_ _J._, vol. 15, no. 3, pp. 218–226, Mar. 2018. [29] G. Galuppini, E. F. Creaco, and L. Magni, “Multinode real-time control of pressure in water distribution networks via model predictive control,” _IEEE_ _Trans._ _Control_ _Syst._ _Technol._, vol. 31, no. 5, pp. 2201–2216, Sep. 2023. [30] F. Blanchini, D. Casagrande, S. Miani, and U. Viaro, “Stable LPV realisation of the Smith predictor,” _Int._ _J._ _Syst._ _Sci._, vol. 47, no. 10, pp. 2393–2401, Jul. 2016. [31] F. Blanchini, D. Casagrande, S. Miani, and U. Viaro, “Robust linear parameter-varying control of induction motors,” _Int. J. Robust Nonlinear_ _Control_, vol. 25, no. 12, pp. 1783–1800, Aug. 2015. [32] F. Blanchini, D. Casagrande, S. Miani, and U. Viaro, “An LPV control scheme for induction motors,” in _Proc._ _IEEE_ _51st_ _IEEE_ _Conf._ _Decis._ _Control_ _(CDC)_, Dec. 2012, pp. 7602–7607. [33] C. Ciaponi, L. Franchioli, E. Murari, and S. Papiri, “Procedure for defining a pressure-outflow relationship regarding indoor demands in pressure-driven analysis of water distribution networks,” _Water_ _Resour._ _Manage._, vol. 29, no. 3, pp. 817–832, Feb. 2015. [34] V. L. Streeter, E. B. Wylie, and K. W. Bedford, _Fluid_ _Mechanics_ . New York, NY, USA: McGraw-Hill, 1998. [35] E. Creaco, A. Campisano, M. Franchini, and C. Modica, “Unsteady flow modeling of pressure real-time control in water distribution networks,” _J._ _Water_ _Resour._ _Planning_ _Manage._, vol. 143, no. 9, Sep. 2017, Art. no. 04017056. [36] E. Creaco, F. De Paola, D. Fiorillo, and M. Giugni, “Bottom-up generation of water demands to preserve basic statistics and rank cross-correlations of measured time series,” _J._ _Water_ _Resour._ _Planning_ _Manage._, vol. 146, no. 1, Jan. 2020, Art. no. 06019011. [37] _T.I.S. Group Website, Nuoval Products_ . Accessed: Oct. 1, 2021. [Online]. Available: http://www.latis-service.com/en/products [38] E. Creaco, G. Galuppini, A. Campisano, and M. Franchini, “Bottom-up generation of peak demand scenarios in water distribution networks,” _Sustainability_, vol. 13, no. 1, p. 31, Dec. 2020. [39] J. E. van Zyl and A. M. Cassa, “Modeling elastically deforming leaks in water distribution pipes,” _J._ _Hydraulic_ _Eng._, vol. 140, no. 2, pp. 182–189, Feb. 2014. [40] T. M. Walski, D. V. Chase, D. A. Savic, W. Grayman, S. Beckwith, and E. Koelle, “Advanced water distribution modeling and management,” Univ. Dayton eCommons, Dayton, OH, USA, Tech. Rep., 2003. [41] G. Pezzinga, “Evaluation of unsteady flow resistances by quasi-2D or 1D models,” _J._ _Hydraulic_ _Eng._, vol. 126, no. 10, pp. 778–785, Oct. 2000. [42] G. Galuppini, E. Creaco, and L. Magni, “The in situ approach to model identification and control design for pressure regulation in water distribution networks: An in silico evaluation,” _Control_ _Eng._ _Pract._, vol. 120, Mar. 2022, Art. no. 105016. [43] L. Ljung, _System Identification Toolbox: For Use With MATLAB: User’s_ _Guide_ . Natick, MA, USA: Math Works, 1991. [44] D. E. Seborg, D. A. Mellichamp, T. F. Edgar, and F. J. Doyle, _Process_ _Dynamics_ _and_ _Control_ . Hoboken, NJ, USA: Wiley, 2010. [45] L. Magni and R. Scattolini, _Advanced_ _and_ _Multivariable_ _Control_ . Bologna, Italy: Pitagora, 2014. [46] L. Ljung, _System_ _Identification:_ _Theory_ _for_ _the_ _User_, vol. 28. Upper Saddle River, NJ, USA: Prentice-Hall, 1999. [47] G. Galuppini, E. Creaco, and L. Magni, “Bi-objective optimisa tion based tuning of pressure control algorithms for water distribution networks,” _Control_ _Eng._ _Pract._, vol. 104, Nov. 2020, Art. no. 104632. [48] Y. Wang, F. Gao, and F. J. Doyle, “Survey on iterative learning control, repetitive control, and run-to-run control,” _J._ _Process_ _Control_, vol. 19, no. 10, pp. 1589–1600, Dec. 2009. [49] R. Garnett, _Bayesian_ _Optimization_ . Cambridge, U.K.: Cambridge Univ. Press, 2023. Open Access funding provided by ‘Università degli Studi di Pavia’ within the CRUI CARE Agreement

섹션 본문 109문단 · 44,809자

(제목 없음)

1This article proposes a novel scheme for the real-time control (RTC) of service pressure in water distribution networks (WDNs), which is beneficial in terms of leakage reduction, energy recovery, pipe burst abatement, and extension of infrastructure lifetime.Compared with the other schemes previously proposed in the scientific literature, this novel scheme combines regulatory performance with proven guarantee of stability, which is obtained by framing gain scheduling in the context of internal model control (IMC) of linear parameter-varying (LPV) systems.Previous works relying on gain scheduling only prove stability for fixed scheduling parameter values, which is only a necessary condition for stability in case of possibly fast, time-varying parameters.The proposed RTC scheme guarantees instead stability of the closed loop for any admissible trajectory of the scheduling parameter.The novel control scheme is tested numerically against challenging operating conditions in a benchmark WDN, including two different demand patterns and four hydrant activation scenarios.

I. INTRODUCTION

2I N THE context of water distribution networks (WDNs) management, leakage reduction [1], [2], excess energy recovery [3], [4], [5], [6], pipe burst abatement [2], [7], [8], and overall infrastructure life extension represent absolute priorities.Real-time control (RTC) of service pressure [9] represents an effective approach to pursue these goals, as it allows reducing pressure excess across the WDN, while providing sufficient pressure to ensure satisfaction of users' demand.With the rise of the Water 4.0 approach [10], novel WDNs include sensors, actuators, and computing units, which are connected by wire (e.g., via optical fiber) or by high-end wireless networks [e.g., narrowband internet of things (NB-IoT)] to ensure fast and reliable communication.This technological advance enables the transition from local RTC, where the pressure is controlled right downstream of the control valve [11], [12], [13], to remote RTC, where the pressure can be controlled at any Giacomo Galuppini is with the Dipartimento di Ingegneria Industriale e dell'Informazione, University of Pavia, 27100 Pavia, Italy (e-mail: giacomo.galuppini@unipv.it).

3Enrico Creaco and Lalo Magni are with the Dipartimento di Ingegneria Civile e Architettura, University of Pavia, 27100 Pavia, Italy (e-mail: creaco@unipv.it;lalo.magni@unipv.it).

4Digital Object Identifier 10.1109/TCST.2023.3325546point of the WDN [14], [15], [16], [17].Specifically, the aim of remote RTC is regulation of service pressure at the socalled critical node, i.e., the WDN node characterized by the minimum daily pressure.As several works in the literature clearly demonstrated both in silico and in situ, a suitable choice of the desired pressure at the critical node, combined with an effective control scheme, can simultaneously reduce pressure excess and guarantee satisfaction of users' demand [13], [15], [16], [18].The majority of the literature dealing with RTC of pressure focuses on the performances of the control scheme, whereas the fundamental issues of closed-loop stability and robustness are often overlooked.Motivated by incidents occurred on real plants [19], a series of works [19], [20], [21], [22], [23] started analyzing stability and robustness of common RTC schemes and highlighted common pitfalls in the control design that can lead to instability.In particular, Galuppini et al. [22] stress the need for an accurate description of the high-frequency dynamics of the plant, in order to achieve a reliable controller design.The WDN dynamics is, in fact, characterized by a strong resonant behavior, which arises from the interaction of pressure waves traveling at finite speed through the pipes [24].A low-order model of the process, such as the first-or second-order linear models commonly adopted in the literature, may not adequately describe such resonant behavior and may, in turn, result in a poor evaluation of the stability margins of the control design [22].Moreover, Janus and Ulanicki [21] and Galuppini et al. [22] highlight the presence of strong static nonlinearities affecting the process and demonstrate how their combination with the high frequency resonance peaks can lead to closed-loop instability.Finally, Janus and Ulanicki [21] and Galuppini et al. [25] propose a combination of gain scheduling and nonlinearity inversion to robustify the control schemes and mitigate these issues.The scheduling policies aim at keeping the loop function design unaltered, as the process moves across a wide range of operating points.This guarantees that, for all fixed values of the parameters, the closed loop is (robustly) stable.The resulting gain-scheduled controllers are parametric in nature and belong to the class of linear parameter-varying (LPV) systems.It is well understood that, for LPV systems, stability for all fixed parameter values does not necessarily imply stability for time-varying parameters [26], [27].Whereas slow parameter variations can be tolerable, arbitrarily fast variations can be extremely dangerous and compromise the closed-loop stability.In the context of RTC, fast variations occur whenever the water demand increases or decreases abruptly (e.g., in case of fire hydrant operations [28] or presence of industrial users [29]).Therefore, all the aforementioned works fail to rigorously consider the issue of LPV stability and only focus on stability for fixed parameter values.The main aim of this work is to combine the findings from [21] and [25] with the rigorous gain scheduling approach discussed in [27], [30], and [31], to propose and test an RTC scheme for pressure control with LPV stability guarantees.The proposed approach is based on an LPV internal model control (IMC) scheme [27] and includes an LPV Smith predictor (SP) [32] to compensate for the presence of time delays.Low-pass filters are used to clean the scheduling signals from high-frequency oscillations [31].A filter reinitialization strategy is also proposed, to preserve LPV stability of the closed loop.

5The novel control scheme is tested in a simulated environment, by relying on a detailed, pressure-driven [33] unsteady flow model of the WDN [34].This hydraulic modeling approach is the most suitable to replace the actual plant for a preliminary evaluation [35].The case study explored in this article is based on a real WDN topology and an accurate modeling of the users demand pattern [36].Simulations include the sudden opening of fire hydrants [28], to evaluate the behavior of the control system in case of fast scheduling parameter variations.All the results stress the effectiveness and the reliability of the novel RTC approach discussed in this article.

6This article is organized as follows.Section II describes the realistic case study addressed in this work.Section III-A discusses the numerical model of the WDN.The definition of the nominal working point (WP) of the system is discussed in Section III-B, and the identification of the process model is presented in Section III-C.The overall control scheme is thoroughly described in Section III-D.Simulated results are presented and analyzed in Section IV, while further discussion is given in Section V. Finally, Section VI summarizes the main findings of this work.

II. CASE STUDY

7The case study analyzed in this article is the skeletonized WDN of the town of Castelfranco Emilia, Northern Italy.The WDN is composed of 27 nodes (26 demanding nodes and one source node) and 32 pipes.In addition, two fire hydrants are located at nodes 3 and 13, respectively.The complete topology is depicted in Fig. 1.For further details, including features of network nodes, pipes, and hydrants, refer to [28] and [35].

8For this case study, the goal to be achieved is pressure regulation at h sp = 25 m at node 1, which is chosen as controlled node.A T.I.S. GROUP "NUOVAL" plunger valve with a diameter of 250 mm (other details and datasheet can be found in [37]) is installed in pipe 26-20, linking the source to the rest of the network.This pressure control valve (PCV) is well suited for RTC, as it can be equipped with an electric actuator and controlled by a programmable logic controller (PLC).For safety reasons, the actuation speed is limited to 0.0033 s −1 .

9Residential demand patterns are generated by means of the bottom-up approach discussed in [36] and [38].The demand patterns keep into account human daily routine.With the aim of assessing the robustness of regulatory performances, two different demand patterns are considered, resulting in two different trends of the total WDN demand (see Fig. 2): a flatter trend (pattern A) and a more peaked trend (pattern B).Note that demand patterns A and B share the same average values for each single demand pattern.In addition, the presence of leakage is explicitly considered in this system.The source pressure pattern (see Fig. 2) follows the overall demand trend.

III. MATERIALS AND METHODS

10This section describes the hydraulic model adopted for simulations as well as the main steps required for the design of the control algorithm introduced in this work.

A. Hydraulic Model for Simulations

11The pressure-driven [33], unsteady flow modeling [34], [35] is the most suitable approach enabling an accurate analysis of the hydraulic transients resulting from rapid nodal demand and/or valve setting variations.For a generic pipe of a WDN, the 1-D unsteady flow equations take the form

12(2)

13Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.] is the gravity acceleration constant, c [m/s] is the wave celerity, and J p is the friction slope.

14An additional outflow per unit of pipe length q l [m 2 /s] models leakage from WDN pipes

15where α leak [m 2−γ /s] and γ leak [−] are the leakage coefficient and exponent, respectively.The exponent γ leak is set to 1, typical value for plastic pipes [39].Coefficient α leak [−] is set to 9.4 × 10 −9 m/s, resulting in a leakage percentage rate of 20%.Hydrant outflows q hd [m 3 /s] are obtained as the outflow from a pressurized orifice, by means of the emitter equation [40] q hd = C hd h 0.5 p (4) where C hd [m 5/2 /s] is the emitter coefficient, which takes account of the outflow contracted area.If a hydrant is opened linearly in time, C hd increases linearly from 0 to its maximum value C hd,max and vice versa.

16Each pipe friction slope is evaluated as follows:

17where n [s/m

18] is the Gauckler-Manning coefficient.Furthermore, pipe friction slopes are increased using the correction proposed in [41] to account for the unsteady flow effects.

19The effect of the control valve is modeled by considering no link at the valve site and setting nodal outflow Q up from the upstream end node and nodal inflow Q down into the downstream end node, at

20where

21] is the valve cross-sectional area, ξ [−] is the valve local head loss coefficient, H v [m] is the head drop in the valve, and α [−] is the valve closure setting, ranging from 0 (fully open) to 1 (fully closed).The valve local head loss coefficient is a growing function of α.This function is typically available in the PCV datasheet [37] or can be characterized by laboratory experiments.Fig. 3 shows the function related to the T.I.S. GROUP "NUOVAL" plunger valve of the Castelfranco Emilia WDN.From this point onward, let Q denote the flow at the valve site.

22In the model implementation, the water hammer partial differential equations are solved by relying on the method of the characteristics [34].Network pipes are discretized with spatial steps x p , and the hydraulic variables of interest (pressure head and water flow) along the pipes are computed at each time integration step t, with x p and t, such that

23Suitable boundary conditions are assigned in correspondence to source and demanding nodes, where fixed total pressure head and demands are prescribed, respectively.The discretized water hammer equations are coupled with the continuity equation, applied to each node of the WDN.Finally, measurement noises acting, respectively, on the measured pressure heads h(t) and on the flow at the valve site Q(t) are also included in the model.

B. WP Definition

24Consider the multi-input multioutput (MIMO) system characterized by input signals as follows:

251) ξ(α(t)), the local loss coefficient, function of the valve closure ([−]); 2) H (t), the source pressure ([m]); 3) D(t), the vector of water demands ([m 3 /s]).Consider the multi-input multioutput (MIMO) system characterized by output signals as follows:

261) h(t), the measured pressure ([m]) at the critical node of the WDN; 2) Q(t) the flow at the valve site ([m 3 /s]).The local head loss coefficient ξ(α(t)) is chosen as control variable, whereas pressure h(t) is chosen as controlled variable.Source pressure H (t) and water demands D(t) are stochastic disturbances acting on the process.

27For convenience, define the overall demand of the WDN D tot (t) as follows:

28where D i (t) is the water demand at node i and N nodes is the number of demanding nodes in the WDN.

29Let the tuple WP = (ξ , H , D, h, Q) represent the WP for the MIMO system.The average values of typical H (t) and D i (t) patterns are usually available to the WDN manager (e.g., via billed consumption) and are adopted for the definition of the WP.The value of ξ must be chosen, so that the corresponding steady-state pressure at the controlled node, h, is sufficiently close to the desired one.In a simulated environment, this can be achieved by adjusting the valve closure α until the pressure h reaches the desired pressure h sp .

30The value of ξ associated with such valve closure is adopted as ξ .In a real scenario, this procedure can be directly performed on the real plant, by manual trial-and-error adjustments of α, or by means of SISO control schemes, as discussed in [42].

31Remark: The analysis carried out in previous works [19], [22], [25] underlines that the choice of ξ as control variable is fundamental to face the strong static nonlinearity affecting the system and improving the robustness of the control scheme.If α is chosen as control variable, due to the ξ(α) nonlinearity, the increase in the process gain occurring at high values of α represents the main source of instability for closed-loop pressure control systems [17], [19].However, as the ξ(α) function is typically available and invertible, this issue can be conveniently faced by selecting ξ as control variable and introducing a nonlinearity inversion block in the loop to compute at runtime the corresponding value of α [25].

C. Process Model Identification

32This section summarizes the two-step procedure originally introduced in [24] and [42] for the identification of an LPV process model [26].The methodology combines the black-box identification of a local, linear model, and physical knowledge of the valve static behavior, to obtain an LPV description of the plant dynamics.

33Start by considering a continuous-time, strictly proper transfer function P(s), relating local head loss variations δξ

34If available, a hydraulic WDN simulator (as discussed in Section III-A) can be exploited as source of input-output data.If, instead, a hydraulic model of the WDN is not available, or it is not sufficiently accurate, input-output data can be directly collected by means of experiments performed on the real plant.Note that, when working in silico, the experimental design can focus on maximizing the information contained in the dataset, but the collected data can be affected by hydraulic model versus plant mismatch.On the other hand, working in situ avoids this issue, but requires a more careful design of experiments, which should not interrupt the service to users and should not stress the WDN structure [42].Once a dataset is available, input-output identification techniques can then be applied to compute suitable parameter estimates for P(s) (e.g., via prediction error method (PEM) [43]).At this point, P(s) should provide an accurate description of the WDN dynamics in a neighborhood of WP, and a testing dataset could be effective in assessing the predictive performances of P(s).Due to the dissipative nature of the system, P(s) must be asymptotically stable.Moreover, due to the interaction of pressure waves in the WDN, P(s) is typically characterized by several high-frequency resonance peaks, possibly associated with low damping factors [22], [24].In addition, in the context of remote RTC, P(s) is also characterized by a time delay arising from the time required by pressure waves to travel the WDN pipes from the PCV to the pressure sensor, along the quickest path [24].This process model typically takes the form

35where µ is the static gain, T z,i and T p,i are time constants associated with real zeros and poles, ζ i and ξ i are the damping factors of complex pairs of zeros and poles, α ni and ω ni are the natural modes of complex pairs of zeros and poles, and τ is the time delay.At this point, physical knowledge of the valve can be incorporated in P(s), to extend its range of validity.In particular, note that, in the valve equation [see (6)], the pressure loss induced by the valve, H v , quadratically depends on the flow through the valve, Q.Furthermore, several works in the literature suggest that a static description of this nonlinearity can be very effective in improving the associated control design [14], [24], [25].As Q(t) can be measured online, it is possible to adopt it as scheduling parameter w(t) and move to an LPV description of the plant.Let µ be the static gain of P(s), corresponding to the flow at the valve site at WP, Q. Define P(s, w) as the LPV extension of P(s), and let its parameter-dependent static gain µ(w(t)) be

36Moreover, define

37and consider a state-space realization of P(s, w) of the form

38(15) (16) with u(t) = δξ(t), y(t) = δh(t), A P and C P matrices of suitable dimensions, and B P (w) a continuous function of the parameter w, which is supposed to belong to a compact set W. 1 Similarly, denote by ′ (w(t)) = {A P , B P (w(t)), C P } the state-space realization of P ′ (s, w).With the proposed class of possible state-space realizations, the system ′ (w(t)) is both asymptotically stable and LPV stable (see Appendix, Definition 1) if and only if the matrix A P is Hurwitz.

D. Control Design Methodology

39This section discussed the control design methodology proposed in this article.The overall control scheme (Fig. 4) has, as fundamental building block, the IMC scheme for LPV-stable time delay systems originally developed in [27] and [30], which is adapted to meet the specific needs of this application.Each element of the control scheme is discussed in detail in the reminder of this section.

401) IMC Scheme for LPV-Stable Time Delay Systems: The time delay present in the LPV system arises from the propagation of pressure waves across the WDN, and its time scale can pose sensible limitations to the performances of the control loop [24].For LPV-stable systems as (w(t)), the effect of time delay can be effectively compensated by means of the LPV-SP formulation proposed in [30].This approach frames the SP in the context of IMC and rearranges the control scheme to obtain a Youla-Kucera (YK) parameterization of the overall controller.Fig. 5 depicts the standard linear timeinvariant (LTI) control system based on the SP, with C(s) the transfer function of the primary controller, located in the forward path of the overall controller, R(s) (delimited by a red dashed line).Fig. 6 depicts the scheme rearranged as an IMC scheme.The negative feedback loop inside the blue dotted rectangle, whose transfer function is It must be stressed that (w) may be unstable for time varying w, even if A Q (w) is Hurwitz for all constant values of w [26], [27].To overcome this issue, it is necessary to compute an LPV-stable realization of Q(s, w), every time the scheduling parameter w varies in time.As proved in [27], every parametric transfer function Q(s, w) that is stable for all admissible constant values of w admits an LPV-stable realization (w), i.e., a realization that is stable for all functions w(t) taking values in W. Procedure 1 [27] allows the computation of such LPV-stable realization.

41Procedure 1: Given w ∈ W, the following hold.1) Compute a generic realization

42with ÂQ (w) Hurwitz.2) Compute the positive-definite solution ϒ(w) of the following Lyapunov equation:

433) Factorize ϒ(w) as follows:

44Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.

45with (w) an upper triangular matrix (Cholesky's decomposition).4) Realize Q(s, w) as follows:

46where

47Theorem 1 ensures LPV stability of the closed-loop control scheme in Fig. 7.

48Theorem 1 [30]: If the system (w) is LPV stable, the control system in Fig. 7 is LPV stable (see Appendix, Definition 2) if the state-space realization of (w) is LPV stable.

49The considered IMC scheme for LPV-stable time delay systems entails the design of the parametric transfer function of the controller C(s, w).In turn, this consists of two steps, namely, the design of a nominal controller transfer function C(s) based on P ′ (s) and the definition of a scheduling policy based on the online knowledge of w(t).

502) Nominal Controller Design: Several techniques are available in the literature for the design of C(s) (e.g., pole placement and loopshaping [44], [45]).

51In this article, a loopshaping procedure is carried out, adopting the controller structure and the design rationale discussed in [22].As the control scheme proposed in this article includes an SP for compensating the effects of time delay, the design of the nominal primary controller transfer function C(s) is based on the delay-free transfer function P ′ (s).The controller structure consists of a proportional-integral (PI) term and an additional filter term.Specifically, let C pi (s) be the PI transfer function

52with K p the proportional gain, K i the integral gain, and T i = K p /K i the integral time constant.The gain of the transfer function µ C coincides with K i .Then, let C f (s) be the filter transfer function

53Finally, the primary controller transfer function C(s) is

54Note that C f (s) has unitary static gain, so that µ C coincides with the gain of the overall regulator.The integral term responds to static performances requirements (i.e., robust regulation to the constant set points, and disturbance rejection in presence of constant and slowly varying process disturbances).The filter term improves the deamplification of the high-frequency resonance peaks of P ′ (s).The two additional zeros in the controller can be used to compensate for the effect of low-frequency poles in P ′ (s) and to recover phase margin.In this article, after sufficient deamplification of resonance peaks is provided, the closed-loop bandwidth is set to the largest possible value to assess the performances of the control scheme in a demanding situation.

55Let ω r p be the angular frequency associated with the resonance peak of P ′ (s) located at the lowest frequency.Then, the controller design can be carried out by setting

56Let T p be the time constant associated with the lowest frequency pole of P ′ (s) with null imaginary part.One can then set

57where ω c is the desired closed-loop bandwidth expressed in rad/s.With this procedure, ω c is the only free design parameter, which must fulfill ω c ≪ ω r p in order to provide robustness margins against gain and phase uncertainties.Note that, if 1 T f < ω c , the actual closed-loop bandwidth is smaller than the expected one, due to the effect of the pole associated with time constant T f .To conclude the nominal design phase, nominal closed-loop stability can be proved by means of Bode criterion [44].

58Remark: Note that Theorem 1 ensures that the closed-loop system remains LPV stable as long as the YK parameter is stable for every fixed parameter values and is properly realized.While this work takes advantage of the control design considerations from the literature (e.g., [22], [24], [25]), the proposed control methodology would also allow for an online, trial-and-error tuning of the YK parameter transfer function [27].

593) Gain Scheduling for Static Nonlinearity Compensation: As discussed in Section III-C, if the local head loss coefficient ξ is used as control variable, the process model is characterized by a static nonlinearity depending on the flow at the valve site Q [see (10)].In order to keep loop functions constant over a wide range of operating points, the primary controller transfer function C(s) can be made parameter-dependent [25] by acting on its static gain.The static gain µ GS−Q C (w) of the parameter-dependent controller transfer function C(s, w) can be chosen as follows:

602 (28) so that the dependence on the scheduling parameter does not appear in the loop functions.

614) Gain Scheduling for Regulation Error Versus Cost of Control Trade-Off: The control approach discussed above is able to compensate the static nonlinearities of the process because of the choice of the local head loss coefficient ξ as control variable and the LPV design based on online measurements of the flow at the valve site Q.In this way, the loop functions can be kept as constant as possible over a wide range of operating points of the WDN.However, this choice may not always be the most efficient one.Consider an operating point characterized by high flow values and associated valve closure α assuming values close to zero.Under these conditions, the function ξ(α) is almost flat, and small variations of the control variable ξ require a wide variation of α to be obtained.As a result, the cost of control associated with high flow conditions is much higher than that of low flow conditions.This issue can be explicitly accounted for by leveraging the gain-scheduled nature of the control scheme, to progressively reduce the closed-loop bandwidth as the flow at the valve site Q increases.To this end, include the valve closure α in the scheduling parameter w, and note that α ∈ [0; 1], so that w = [Q α] ⊤ still belongs to a compact set.The static gain µ GS−α C (w(t)) of the new parameter-dependent primary controller transfer function, C(s, w), can be chosen according to the following scheduling law, inspired by Galuppini et al. [25]:

62where µ ratio (α(t)) ∈ (0, 1] is a multiplicative factor.Assuming the nominal design of C(s) to result in the maximum desired closed-loop bandwidth, µ ratio (α(t)) can be chosen as follows:

63with α * ∈ [0; 1], µ * ratio ∈ (0; 1], and p > 0 are design parameters.

64In particular, µ * ratio represents the value of µ ratio (α) when α = 0, p the power of increase of µ ratio (α) as α → α * , and α * the upper limit of the gain scheduling policy, which affects the design only for α ∈ [0; α *

65].An example is reported in Fig. 8.The three parameters are selected, so that the gain of the controller is progressively reduced, as soon as the valve closure α reaches the flat region of curve ξ(α).The value of α * can, therefore, be selected by inspecting the curve ξ(α) (see Fig. 3).The values of µ * ratio and p are then selected to obtain a sufficiently fast reduction of the controller gain.Based on [25], convenient starting values are µ * ratio = 0.1 and p = 4, which should be adjusted to fit the specific case study.

665) Filtering of the Scheduling Parameter: The scheduling policies discussed above are based on steady-state considerations about the WDN and involve online measurement of flow at the valve site Q and valve closure α.Since the WDN is mainly driven by the users' time-varying demand, pressure and flow oscillations arise from both high-frequency demand oscillations and from the water hammer effect in the WDN pipes.Part of these oscillations is transferred to α(t), through the closed-loop system.Low-pass filtering of the scheduling parameter can be introduced in the control scheme to mitigate this issue.Then, let LP(s) be the transfer matrix of the low-pass filters for the scheduling parameter w(t)

67with T lp,Q and T lp,α the filter time constants.Denote as w lp (t) = [Q lp (t) α lp (t)] ⊤ the low-pass filtering of the scheduling parameter w(t).Note that T lp,Q can be selected offline, by analyzing the spectrum of daily records of Q(t), which can be directly collected from the plant.A straightforward choice for T lp,α could then be setting T lp,α = T lp,Q [25].

68Simulations show that this low-pass filtering improves the performances of the gain-scheduled control approach.Nevertheless, this introduces a mismatch between the measured and the filtered scheduling parameter.In principle, both gain scheduling and SP design require a perfect knowledge of the parameters.In order to retain the benefits of the low-pass filtering and avoid stability issues, the following solution based on the small gain theorem [31], [45] is proposed.

691) Implement a state-space realization of the low-pass filter, such that the filter state x lp (t) coincides with the filter output w lp (t).

702) (Re)initialize the filter state and output so that

71every time the following condition on the loop gain is violated:

72where || • || is a generic operator norm, γ > 0 is a robustness threshold (accounting for measurement errors for the scheduling parameter), T (s) is the time delay operator [see (16)], and (s, w lp (t), w(t)) is given by (s, w lp (t), w(t)) = P(s, w lp (t)) − P(s, w(t)).(35) Similarly, it is possible to define filter reinitialization policies based on thresholds on the absolute difference between measured and filtered scheduling parameters.Whereas the reinitialization policy discussed earlier ensures closed-loop stability, these can improve the control performances in case of sudden scheduling parameter variations (due to, e.g., fire hydrants opening [28] and temporary activation of industrial user demands [29]).6) Input Saturation and Rate Limiter: Note that the valve closure α is upper and lower bounded.Moreover, under normal WDN operations, the valve must never be completely closed, i.e., the upper bound for α is always lower than 1.As a consequence, the head loss coefficient ξ is also upper and lower bounded by finite values.Moreover, as discussed in Section II, the valve speed is limited for safety reasons.This, in turn, imposes maximum and minimum rates of variations to ξ .In order to account for these limitations, it is possible to include models of input saturation, sat(•), and rate limiter, rate lim(•), in the control scheme, as shown in Fig. 9, and prove bounded-input bounded-output (BIBO) stability of the closed loop.Due to the saturation, u(t) is bounded.As the system (w) is quadratically stable, it is also BIBO stable, i.e., y(t) is bounded whenever u(t) is bounded.Note that the same holds for the system model inside the controller; thus, ŷ(t) is bounded whenever u(t) is bounded.The difference y(t) − ŷ(t) is also bounded.It follows that the output of the YK parameter (w) is bounded for bounded set-point signals y sp (t).In summary, y(t) is bounded for bounded set-point signals y sp (t).

IV. RESULTS

73This section applies the RTC methodology proposed in this work to the Castelfranco Emilia WDN, described in Section II, and presents the results of simulations under several operating conditions.

A. Nominal Controller Design and Gain Scheduling Policies

74For the Castelfranco Emilia WDN, a reasonable set point for pressure at the critical node (node 1) is h sp = 25 m.Based on the average values of typical users' demand and source pressure, the corresponding WP is

75Remark: As the average value of each demand D i (t) is the same for demand patterns A and B, a single WP is sufficient to cover both scenarios.

76Input-output data for the identification of the nominal process transfer function, P(s), are obtained from a step response simulation around WP.The parameters of P(s) are obtained by means of PEM identification [46], by relying on MATLAB identification toolbox [43].Fig. 10 compares identification data and model prediction.The complete definition of P(s) is reported in (36), as shown at the bottom of the next page, and the Bode diagram of P(s) is reported in Fig. 11.From the Bode diagram of the modulus of P(s), it holds that ω r p = 0.1 rad/s.

77The design of the nominal primary controller C(s) is based on the delay-free transfer function, P ′ (s) and is carried out following the loopshaping approach discussed in Section III-D2.

78The parameters of the filter term of the controller, C f (s), are set to

79The required closed-loop bandwidth is ω c = 0.0306 rad/s.As the nominal gain of P ′ (s) results µ = −0.0631m, the nominal static gain of the controller is set to

80As P ′ (s) does not contain any real pole, T p is not defined, and the integral time constant T i can be treated as a free design parameter.In this case, T i is set to

81to recover some phase margin, which results φ m = 70 • .The gain margin results K m = 18.9.As for resonance peak deamplification, the analysis of Bode diagram of the loop gain function L(s) = C(s)P ′ (s) (Bode diagram in Fig. 12)

82shows that the highest resonance peak, located around ω r p = 0.1 rad/s, reaches −15 dB of magnitude. 2he parameters of the gain scheduling policy GS − α are

83The low-pass filters time constants are set to

84The threshold for filter reinitialization based on the small gain theorem is set to γ = 0.8.Moreover, the filter processing the flow at the valve site Q(t) is also reinitialized at time t if

85and the filter processing the valve closure α(t) is also reinitialised at time t if

86B. Closed-Loop Simulations Fig. 13(a) and (b) shows the results of whole-day, closedloop simulations for demand patterns A and B, respectively (details of results at the time scale of seconds are depicted in Fig. 13(c) and (d), respectively).In both scenarios, the control scheme provides accurate regulation of pressure to the [25] saturation limit is reached around t = 8 h.However, because of the saturation model discussed in Section III-D6, the control loop quickly responds to the demand decrease and does not introduce any noticeable windup effect.Also note that, in both scenarios, the magnitude of high frequency oscillations of the valve closure α remains almost constant throughout the entire simulation and across very different working conditions.This highlights the benefits of the additional gain scheduling policy discussed in Section III-D4.For whole-day simulations, a quantitative assessment of the performances of the control scheme is also given in this article, by means of the following metrics (defined for discrete-time signals, with k the discrete-time instant).1)

87. The regulation error, accounting for the proximity of the measured pressure to the set point.I are quite similar for both demand scenarios and are aligned with the state-of-the art results in the literature (see [25], [47]), which, however, do not provide rigorous guarantees in terms of LPV stability.This further stresses the effectiveness and reliability of the approach proposed in this article.

88As already discussed in this article, one of the main advantages of the proposed control scheme is its ability to face arbitrarily fast changes in the scheduling parameter.Specifically, as the flow Q appears in the scheduling parameter, this issue can occur in case of pipe bursts or fire hydrant operations.Four simulations involving fire hydrant operations are then carried out in order to assess the reliability of the control scheme under these circumstances.In particular, Fig. 13(e) and (g) shows the results of fire hydrant operations at nodes 3 and 13, respectively, for demand pattern A. Fig. 13(f

89Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.remain open for about 1600 s, from t = 0.83 h to t = 1.27 h.In all four cases, pressure is promptly regulated to the set point within few minutes from the fire hydrant opening or closure, with negligible overshoot in the response (recall that the usual sources of disturbance are always active).The dynamic response is consistent with the expected one, based on the loop function design discussed earlier in this section.Interestingly, the sudden variation in both flow at the valve site and valve closure results in low-pass filter reinitialization [see Fig. 13(e), (f), and (h)] due to (43) and (44).On the contrary, the stability-preserving reinitialization was never triggered in this simulations.

C. Comparison With the State of the Art

90As discussed earlier in this article, several gain-scheduled control schemes are available in the literature of pressure RTC in WDNs (e.g., [21], [25], [35]).However, none of them rigorously considers the issue of closed-loop stability for any admissible time history of the scheduling parameters.This is a fundamental step toward the implementation of pressure RTC schemes in real WDNs.Loss of stability may trigger wide pressure oscillations that can stress and possibly damage the infrastructure and disrupt the service to end users [19], [22].The control scheme proposed in this work provides stability guarantees, while retaining the advantages of [25], i.e., a straightforward design of the nominal regulator, and simple gain-scheduling policies.A comparison with the results achieved by the filtered proportional-integral with smith predictor and gain scheduling (FPI-SP-gs) control scheme from [25] highlights that the novel control scheme can result in similar regulatory performances, while guaranteeing closedloop stability.To ensure a meaningful comparison, simulations are carried out by requiring the same nominal loop functions and using the same gain-scheduling policies.The results of the FPI-SP-gs control scheme are reported in Table I.A comparison with the results achieved by the LPV IMC scheme stresses that the performances are almost identical for demand profile A, as expected from the same design of the loop functions and similar scheduling policies.With demand profile B, the performances of the two control schemes are still similar, but not identical.Further investigations highlights that the main differences occur while the control action is saturating.This is consistent with a different handling of saturation in the two schemes.

V. DISCUSSION

91The closed-loop simulations presented in the previous section highlight the effectiveness of the RTC scheme proposed in this work and support its implementation on a real plant.Note that the definition of the nominal WP, as well as the identification of the LPV process model, can be both performed directly on the real WDN with no need for an accurate hydraulic model, by following the guidelines discussed in [42].In this case, the knowledge of average users' demand would not even be required.

92Moreover, as previously introduced, the proposed control scheme enables online tuning of the YK parameter Q(s), with no risk for the stability of the control loop.This would enable a safe application of reinforcement learning methodologies for the design of the controller.In fact, it is usually hard to directly relate relevant features of the loop functions and in situ performance metrics, as the dynamics of the main disturbances affecting the plant (i.e., users' demands) are difficult to model, especially at a fine timescale.For these reasons, Galuppini et al. [47] proposed an alternative approach for the design of the controller, based on biobjective optimization.In the proposed formulation, the cost functions to be minimized/maximized encode the conflicting requirements of control performances (e.g., closed-loop settling time and process disturbance rejection) and moderation of the control action/rejection of measurement noise/robustness to model uncertainties.An integral action is still included in the controlled to ensure robust static performances.This approach provides a Pareto front of tunings to be tested on the real plant and evaluated according to the desired performance metrics.The possibility of changing the controller parameters online, without compromising the stability of the closed loop, represents an interesting feature of this work, which well complements the biobjective optimization approach, as it enables an automated choice of the "best" tuning over the available candidates forming the Pareto front.Therefore, the development of a fully automated controller design procedure represents an interesting research direction.Another possible extension of this work could focus on the identification of a full LPV model from experimental data.In fact, while this article only considers a static parametrization of the process model, the introduction of parameter-dependent dynamics and time delay may improve the predictive performances of the model and, possibly, of the overall control scheme.Note that the control scheme proposed in this article would not require any modification, as long as the new process model is LPV stable.Finally, run-to-run [48] or Bayesian optimization [49] approaches could be leveraged to automate and optimize the design parameters of the gain-scheduling policies as well as the time constants of the low-pass filters.

VI. CONCLUSION

93This article deals with RTC of service pressure in WDNs and proposes a gain scheduling approach guaranteeing stability of the closed-loop system for arbitrary variations of the scheduling parameter.The proposed approach combines an IMC scheme with gain scheduling, in order to handle an LPV description of the WDN dynamics.The control scheme also includes an SP, to compensate for time delay effects, as well as models of the static nonlinearities affecting the control action, to avoid windup issues.Finally, to improve the performances, low-pass filtering of the scheduling parameter is also implemented, and filter reinitialization policies are included in the scheme to prevent loss of stability due to measured/filtered scheduling parameter mismatch.A detailed pressure-driven, unsteady flow model is used to simulate a real WDN under different demand scenarios and assess the performances of the proposed approach, which delivered satisfactory results even in case of very fast variations of the scheduling parameter.

Manuscript received 17

94August 2023; accepted 14 October 2023.Date of publication 25 October 2023; date of current version 25 April 2024.Recommended by Associate Editor F. You.(Corresponding author: Giacomo Galuppini.)

Fig. 1 .Fig. 2 .

95Fig. 1.Topology of the WDN [14].

Fig. 3 .

96Fig. 3. Local head loss coefficient ξ as a function of the valve closure α.

Fig. 4 .

97Fig. 4. Block scheme for the proposed RTC control algorithm, including parameter-varying internal model controller, saturation sat(•), and rate limiter rate lim(•) of control action, parameter-varying SP, gain scheduling policies, and low-pass filters.

Fig. 5 .

98Fig. 5. LTI control system for a time delay plant based on the SP.

Fig. 6 .

99Fig. 6.SP control scheme rearranged.

Fig. 7 .

100Fig. 7. IMC scheme for the LPV-stable time delay plant.

101) represents the YK parameter of a controller whose positive feedback path (outside the blue dotted rectangle) contains a model of the time delay system.In case of LPV systems, transfer functions should be replaced by state-space realizations, as depicted in Fig. 7, to correctly address the issue of LPV stability.Let (w) = {A Q (w), B Q (w), C Q (w), D Q (w)} be the state-space realization of the proper LPV YK parameter Q(s, w), where A Q (w), B Q (w), C Q (w), and D Q (w) are continuous functions of w ∈ W.

Fig. 8 .

102Fig. 8. Example of gain scheduling policy for regulation performances versus cost of control trade-off.

Fig. 9 .

103Fig. 9. IMC scheme for the LPV-stable time delay plant including input saturation sat(•) and rate limiter rate lim(•).

Fig. 10 .

104Fig. 10.Model identification.Top: pressure variation δh(t) (blue solid line: identification data and red dashed line: model prediction).Bottom: valve head loss coefficient variation δξ(t).

Fig. 11 .Fig. 12 .

105Fig. 11.Bode diagram of the nominal process transfer function

106chosen set point, by rejecting the disturbances generated by time-varying users' demand and source pressure.For demand pattern B [Fig.13(b)], due to its first, high peak, the valve

107|α(k) − α(k − 1)| [−].The control effort, accounting for energy consumption and wear of actuators.All signals are sampled with a 1-s sampling time; for wholeday simulations, then K tot = 86400.The values reported in Table

Fig. 13 .

108Fig. 13.Closed-loop simulations.Top: pressure head at node 1 h 1 (t) (blue solid line) and pressure set point h sp (red dashed line).Middle: flow at the valve site Q(t) (red solid line) and low-pass-filtered flow at the valve site Q lp (t) (green dashed line).Bottom: valve closure α(t) (black solid line) and low-pass-filtered valve closure α lp (t) (cyan dashed line).(a) Whole day, demand pattern A. (b) Whole day, demand pattern B. (c) Detail of whole-day simulation, demand pattern A. (d) Detail of whole-day simulation, demand pattern B. (e) Hydrant opening at node 3, demand pattern A. (f) Hydrant opening at node 3, demand pattern B. (g) Hydrant opening at node 13, demand pattern A. (h) Hydrant opening at node 13, demand pattern B.

TABLE I RESULTS

109OF CLOSED-LOOP SIMULATIONS WITH DEMAND PROFILES A AND B FOR THE LPV IMC CONTROL SCHEME PROPOSED IN THIS ARTICLE AND FOR THE FPI-SP-GS CONTROL SCHEME FROM

참고문헌 43건

  1. Advanced Water Distribution Modeling and Management 2003
  2. Robust linear parameter‐varying control of induction motors International Journal of Robust and Nonlinear Control · Wiley · 2014 10.1002/rnc.3174
  3. An Overview of LPV Systems Springer eBooks · Springer Nature · 2012 10.1007/978-1-4614-1833-7_1
  4. Stable LPV realisation of the Smith predictor International Journal of Systems Science · Taylor & Francis · 2015 10.1080/00207721.2014.998319
  5. Why PRVs Tends to Oscillate at Low Flows Procedia Engineering · Elsevier BV · 2014 10.1016/j.proeng.2014.11.202
  6. Improved Control of Pressure Reducing Valves in Water Distribution Networks Journal of Hydraulic Engineering · American Society of Civil Engineers · 2007 10.1061/(asce)0733-9429(2008)134:1(56)
  7. An LPV control scheme for induction motors 2012 10.1109/cdc.2012.6426618
  8. Evaluation of Unsteady Flow Resistances by Quasi-2D or 1D Models Journal of Hydraulic Engineering · American Society of Civil Engineers · 2000 10.1061/(asce)0733-9429(2000)126:10(778)
  9. Procedure for Defining a Pressure-Outflow Relationship Regarding Indoor Demands in Pressure-Driven Analysis of Water Distribution Networks Water Resources Management · Springer Science+Business Media · 2014 10.1007/s11269-014-0845-2
  10. Stable LPV Realization of Parametric Transfer Functions and Its Application to Gain-Scheduling Control Design IEEE Transactions on Automatic Control · Institute of Electrical and Electronics Engineers · 2010 10.1109/tac.2010.2044259
  11. Modeling Elastically Deforming Leaks in Water Distribution Pipes Journal of Hydraulic Engineering · American Society of Civil Engineers · 2013 10.1061/(asce)hy.1943-7900.0000813
  12. Mathematical modelling of a hydraulic controller for PRV flow modulation Journal of Hydroinformatics · IWA Publishing · 2011 10.2166/hydro.2011.024
  13. Survey on iterative learning control, repetitive control, and run-to-run control Journal of Process Control · Elsevier BV · 2009 10.1016/j.jprocont.2009.09.006
  14. Real Time Control of a Prototype for Pressure Regulation and Energy Production in Water Distribution Networks Journal of Water Resources Planning and Management · American Society of Civil Engineers · 2016 10.1061/(asce)wr.1943-5452.0000651
  15. Advanced and Multivariable Control 2014
  16. Hydraulic Modelling for Pressure Reducing Valve Controller Design Addressing Disturbance Rejection and Stability Properties Procedia Engineering · Elsevier BV · 2017 10.1016/j.proeng.2017.03.280
  17. Unsteady Flow Modeling of Pressure Real-Time Control in Water Distribution Networks Journal of Water Resources Planning and Management · American Society of Civil Engineers · 2017 10.1061/(asce)wr.1943-5452.0000821
  18. Real-Time Control of a PRV in Water Distribution Networks for Pressure Regulation: Theoretical Framework and Laboratory Experiments Journal of Water Resources Planning and Management · American Society of Civil Engineers · 2017 10.1061/(asce)wr.1943-5452.0000855
  19. Exploring Numerically the Benefits of Water Discharge Prediction for the Remote RTC of WDNs Water · Multidisciplinary Digital Publishing Institute · 2017 10.3390/w9120961
  20. Real-Time Control of Pressure for Leakage Reduction in Water Distribution Network: Field Experiments Journal of Water Resources Planning and Management · American Society of Civil Engineers · 2017 10.1061/(asce)wr.1943-5452.0000887
  21. Testing behavior and effects of PRVs and RTC valves during hydrant activation scenarios Urban Water Journal · Taylor & Francis · 2018 10.1080/1573062x.2018.1424214
  22. Improving Stability of Electronically Controlled Pressure-Reducing Valves through Gain Compensation Journal of Hydraulic Engineering · American Society of Civil Engineers · 2018 10.1061/(asce)hy.1943-7900.0001498
  23. Operation and Cost-Effectiveness of Local and Remote RTC Journal of Water Resources Planning and Management · American Society of Civil Engineers · 2018 10.1061/(asce)wr.1943-5452.0000993
  24. Service pressure regulation in water distribution networks Control Engineering Practice · Elsevier BV · 2019 10.1016/j.conengprac.2019.03.007
  25. Real time control of water distribution networks: A state-of-the-art review Water Research · Elsevier BV · 2019 10.1016/j.watres.2019.06.025
  26. Economic Analysis of Pressure Control for Leakage and Pipe Burst Reduction Journal of Water Resources Planning and Management · American Society of Civil Engineers · 2017 10.1061/(asce)wr.1943-5452.0000846
  27. Bottom-Up Generation of Water Demands to Preserve Basic Statistics and Rank Cross-Correlations of Measured Time Series Journal of Water Resources Planning and Management · American Society of Civil Engineers · 2019 10.1061/(asce)wr.1943-5452.0001142
  28. A Bi-Objective Approach for Optimizing the Installation of PATs in Systems of Transmission Mains Water · Multidisciplinary Digital Publishing Institute · 2020 10.3390/w12020330
  29. Stability and Robustness of Real-Time Pressure Control in Water Distribution Systems Journal of Hydraulic Engineering · American Society of Civil Engineers · 2020 10.1061/(asce)hy.1943-7900.0001722
  30. Use of Hydraulically Operated PRVs for Pressure Regulation and Power Generation in Water Distribution Networks Journal of Water Resources Planning and Management · American Society of Civil Engineers · 2020 10.1061/(asce)wr.1943-5452.0001234
  31. Laboratory experiments and simulation analysis to evaluate the application potential of pressure remote RTC in water distribution networks Water Research · Elsevier BV · 2020 10.1016/j.watres.2020.116072
  32. A gain scheduling approach to improve pressure control in water distribution networks Control Engineering Practice · Elsevier BV · 2020 10.1016/j.conengprac.2020.104612
  33. Bi-objective optimisation based tuning of pressure control algorithms for water distribution networks Control Engineering Practice · Elsevier BV · 2020 10.1016/j.conengprac.2020.104632
  34. Process Dynamics and Control 2011
  35. Bottom-Up Generation of Peak Demand Scenarios in Water Distribution Networks Sustainability · Multidisciplinary Digital Publishing Institute · 2020 10.3390/su13010031
  36. Effects of Sampling on Stability and Performance of Electronically Controlled Pressure-Reducing Valves Journal of Water Resources Planning and Management · American Society of Civil Engineers · 2021 10.1061/(asce)wr.1943-5452.0001328
  37. Sum-of-delay models for pressure control in Water Distribution Networks Control Engineering Practice · Elsevier BV · 2021 10.1016/j.conengprac.2021.104844
  38. Unsteady flow modelling of hydraulic and electrical RTC of PATs for hydropower generation and service pressure regulation in WDN Urban Water Journal · Taylor & Francis · 2021 10.1080/1573062x.2021.1992455
  39. The in situ approach to model identification and control design for pressure regulation in Water Distribution Networks: An in silico evaluation Control Engineering Practice · Elsevier BV · 2021 10.1016/j.conengprac.2021.105016
  40. System Identification Wiley Encyclopedia of Electrical and Electronics Engineering · 1999 10.1002/047134608x.w1046
  41. Water 4.0: the past, present, and future of the world's most vital resource Choice Reviews Online · Association of College and Research Libraries · 2014 10.5860/choice.52-0292
  42. Bayesian Optimization Cambridge University Press eBooks · 2023 10.1017/9781108348973
  43. Multinode Real-Time Control of Pressure in Water Distribution Networks via Model Predictive Control IEEE Transactions on Control Systems Technology · Institute of Electrical and Electronics Engineers · 2023 10.1109/tcst.2023.3291555