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

Recurrent Neural Network-Based MPC for Systems With Input and Incremental Input Constraints

관련 수소연료전지 · (6) PEM(고분자전해질막)

기본 정보

저자
  1. Irene Schimperna — Department of Civil and Architecture Engineering, University of Pavia, Pavia, Italy
  2. Giacomo Galuppini — Department of Electrical, Computer and Biomedical Engineering, University of Pavia, Pavia, Italy
  3. Lalo Magni — Department of Civil and Architecture Engineering, University of Pavia, Pavia, Italy
DOI
10.1109/lcsys.2024.3404332
저널
IEEE Control Systems Letters
발행년도
2024
발행기관
Institute of Electrical and Electronics Engineers
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/lcsys.2024.3404332
토픽
Fuel Cells and Related Materials
OpenAlex ID
W4398226259

평가 내용

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

초록

This paper proposes a stabilizing Model Predictive Control algorithm, specifically designed to handle systems learned by Incrementally Input-to-State Stable Recurrent Neural Networks, in presence of input and incremental input constraints. Closed-loop stability is proven by relying on the Incremental Input-to-State Stability property of the model, and on a terminal equality constraint involving the control sequence only. The Incremental Input-to-State Stability is also used to derive a suitable formulation of the Model Predictive Control terminal cost. The proposed control algorithm can be readily applied to a wide range of Recurrent Neural Networks, including Gated Recurrent Units, Echo State Networks, and Neural Nonlinear Autoregressive eXogenous models. Furthermore, this work specializes the approach to handle the particular case of Long Short-Term Memory Networks, and showcases its effectiveness on a four tanks process benchmark.

본문 42,970자

본문 펼치기
## Recurrent Neural Network based MPC for systems with input and incremental input constraints Irene Schimperna, Giacomo Galuppini, and Lalo Magni _Abstract_ — This paper proposes a stabilizing Model Predictive Control algorithm, specifically designed to handle systems learned by Incrementally Input-to-State Stable Recurrent Neural Networks, in presence of input and incremental input constraints. Closed-loop stability is proven by relying on the Incremental Input-to-State Stability property of the model, and on a terminal equality constraint involving the control sequence only. The Incremental Input-to-State Stability is also used to derive a suitable formulation of the Model Predictive Control terminal cost. The proposed control algorithm can be readily applied to a wide range of Recurrent Neural Networks, including Gated Recurrent Units, Echo State Networks, and Neural Nonlinear Autoregressive eXogenous models. Furthermore, this work specializes the approach to handle the particular case of Long Short-Term Memory Networks, and showcases its effectiveness on a four tanks process benchmark. _Index_ _Terms_ — Predictive control for nonlinear systems, Constrained control, Neural networks. I. INTRODUCTION ODEL Predictive Control (MPC) [1] is an optimization-based control method that relies on # M a model of the system under control to predict the future dynamics, and optimize the closed-loop performance. Moreover, the possibility to explicitly consider constraints in the control problem formulation makes MPC extremely suitable to face real-world problems. While input, state and output constraints are commonly considered, the control input _variation_ is often just penalized in the cost, and is not included in the hard constraints. As a matter of fact, the satisfaction of incremental input constraints can be very important to guarantee the safety of the system. For example, in hydraulic networks, the speed of control valves is usually limited. Fast valve operations results in strong hydraulic transients, which could stress and eventually damage the structure of the network [2]. Similarly, in mechanical systems, it is desirable to avoid large accelerations and jerks that could wear out the system [3]. In the control of assisted an driverless vehicles, accelerations and jerks are limited to improve passengers comfort [4]. In [5], incremental input I. Schimperna and L. Magni are with Department of Civil and Architecture Engineering, University of Pavia, via Ferrata 3, Pavia, 27100, Italy (e-mails: irene.schimperna01@universitadipavia.it, lalo.magni@unipv.it). G. Galuppini is with Department of Electrical, Computer and Biomedical Engineering, University of Pavia, via Ferrata 3, Pavia, 27100, Italy (e-mail: giacomo.galuppini@unipv.it). constraints are introduced in the control of a mobile robot, in the consideration of the safety and comfort needs in real life. The use of nonlinear, black-box models in MPC gained increasing popularity in recent years, thanks to the availability of large amount of data and to the increase in the available computing power. In particular, the class of Recurrent Neural Network (RNN) models is particularly effective in learning nonlinear plant dynamics, and only requires input-output data for the training [6]. In order to guarantee that the effect of the state initialization vanishes, and that a small input variation does not lead to a large state variation, it is useful to consider RNN models that satisfy an Incremental Input-to-State Stability ( _δ_ ISS) property [7]. Sufficient conditions for _δ_ ISS have been derived for the most common classes of RNN, such as for Long Short-Term Memory (LSTM) in [8], for Gated Recurrent Units (GRU) in [9] and other particular classes of RNN including Echo State Networks (ESN) and Neural Nonlinear Autoregressive eXogenous models (NNARX) in [10]. For all these networks, a straightforward modification of the training loss can lead to a final model that satisfies the desired _δ_ ISS condition. Several examples of MPC algorithms based on _δ_ ISS RNN models are available in the literature: e.g., _δ_ ISS LSTM models are used in MPC with input constraints for regulation in [8], and in MPC with input and output constraints for offset-free tracking in [11]. In [12], _δ_ ISS GRU models are employed in robust MPC with input and output constraints. In [13], a stabilizing MPC based on a sufficiently long prediction horizon is designed for general _δ_ ISS systems, and is applied to GRU models. In [14], the practical aspects of the implementation of MPC using LSTM models are analysed, and the computation time of different optimization tools is compared. In [15], a stabilizing MPC is designed for Recurrent Equilibrium Networks (REN), that are a particular class of RNN for which the _δ_ ISS property can be achieved by means of a proper parametrization. This paper considers both aspects, and proposes a stabilizing MPC for a generic _δ_ ISS RNN model with input and incremental input constraints. To take into account the incremental constraint on the input, the input variation is considered as control input, and an integrator is introduced to obtain the actual system input. Closed-loop stability is guaranteed by means of a suitable terminal cost and a terminal equality constraint only on the state of the integrator, that is the input of the system. Since state/output constraints are not considered, and in view of the stability property of the RNN model, no terminal constraint on the model state is required. This is a significant advance because it is not necessary to introduce conservative contracting constraints to cope with the observer estimation and modelling errors. In fact the equality constraint on the state of the integrator is not affected by uncertainties. The proposed algorithm is then applied to control a four tanks process benchmark [16] modelled with an LSTM network. In order to satisfy all the assumptions introduced in the general algorithm, the input constraint is tightened with respect to the set considered for stability. _A._ _Preliminaries_ _Notation:_ Considering a vector _v_, _∥v∥_ is its 2-norm, _∥v∥∞_ is its infinity-norm, and _∥v∥_ <sup>2</sup> _A_ <sup>=</sup> <sup>_v⊤Av_</sup> <sup>is</sup> <sup>its</sup> <sup>squared</sup> <sup>norm</sup> weighted with matrix _A_ . _λmax_ ( _M_ ) and _λmin_ ( _M_ ) are the maximum and minimum eigenvalues of the symmetric matrix _M_ . I _n_ is the _n_ _×_ _n_ identity matrix. int( _X_ ) denotes the interior of the set _X_ . Given two vectors _v_ and _w_, _v_ _◦_ _w_ is their Hadamard product (element-wise product). _σ_ ( _z_ ) = 1+1 _e_ <sup>_−z_</sup> <sup>is</sup> the sigmoid activation function. The activation functions _σ_ ( _·_ ) and tanh( _·_ ) are applied to vectors element by element. The standard definitions of functions of classes _K_, _K∞_ and _KL_ are considered (see [1]). _Stability_ _definitions:_ The notions of Input-to-State Stability (ISS) and _δ_ ISS are now introduced for the generic discretetime dynamical system _xk_ +1 = _f_ ( _xk, uk_ ), with _x ∈_ R <sup>_nx_</sup> and _u_ _∈_ R <sup>_m_</sup> . The definitions are stated in the sets _X_ <sup>_ISS_</sup> _⊆_ R <sup>_nx_</sup> and _U_ <sup>_ISS_</sup> _⊆_ R <sup>_m_</sup>, with the set _X_ <sup>_ISS_</sup> assumed to be positive invariant, i.e. _u ∈U_ <sup>_ISS_</sup> and _x ∈X_ <sup>_ISS_</sup> = _⇒_ _f_ ( _x, u_ ) _∈X_ <sup>_ISS_</sup> . _Definition_ _1_ _(ISS,_ _[17]):_ The system _xk_ +1 = _f_ ( _xk, uk_ ) is ISS in the sets _X_ <sup>_ISS_</sup> and _U_ <sup>_ISS_</sup> if there exist functions _β_ _∈KL_ and _γ_ _∈K_ such that for any _k_ _≥_ 0, any initial condition _x_ 0 _∈X_ <sup>_ISS_</sup> and any input sequence _u_ 0 _, u_ 1 _, ..., uk−_ 1 with _uh_ _∈_ _U_ <sup>_ISS_</sup> for _h_ = 0 _, ..., k −_ 1, it holds that _y_ ¯ RNN based <u>∆</u> _<u>u</u>_ _z_ _<u>u</u>_ _y_ RNN based _z_ _<u>u</u>_ _z−_ 1 Plant MPC _u_ _x_ ˆ Fig. 1. Block diagram of the control scheme. RNN observer _∥xk∥≤_ _β_ ( _∥x_ 0 _∥, k_ ) + _γ_ - 0max _≤h<k_ <sup>_∥uh∥_</sup> _Definition_ _2_ _(ISS-Lyapunov_ _function,_ _[17]):_ A function _V_ : _X_ <sup>_ISS_</sup> _→_ R+ is an ISS-Lyapunov function for the system _xk_ +1 = _f_ ( _xk, uk_ ) if there exist functions _α_ 1 _, α_ 2 _, α_ 3 _∈K∞_ and _γ_ _∈K_ such that for all _x ∈X_ <sup>_ISS_</sup>, _u ∈U_ <sup>_ISS_</sup> _α_ 1( _∥x∥_ ) _≤_ _V_ ( _x_ ) _≤_ _α_ 2( _∥x∥_ ) _V_ ( _f_ ( _x, u_ )) _−_ _V_ ( _x_ ) _≤−α_ 3( _∥x∥_ ) + _γ_ ( _∥u∥_ ) _Lemma_ _1_ _(_ _[17]):_ If the system _xk_ +1 = _f_ ( _xk, uk_ ) admits an ISS-Lyapunov function in the sets _X_ <sup>_ISS_</sup> and _U_ <sup>_ISS_</sup>, then it is ISS in _X_ <sup>_ISS_</sup> and _U_ <sup>_ISS_</sup> . _Definition_ _3_ _(δISS,_ _[7]):_ The system _xk_ +1 = _f_ ( _xk, uk_ ) is _δ_ ISS in the sets _X_ <sup>_ISS_</sup> and _U_ <sup>_ISS_</sup> if there exist functions _β_ _∈_ _KL_ and _γ_ _∈K∞_ such that for any _k_ _≥_ 0, any pair of initial conditions _xa,_ 0 _∈X_ <sup>_ISS_</sup> and _xb,_ 0 _∈X_ <sup>_ISS_</sup>, any pair of input sequences _ua,_ 0 _, ua,_ 1 _, ..., ua,k−_ 1 and _ub,_ 0 _, ub,_ 1 _, ..., ub,k−_ 1, with _ua,h, ub,h_ _∈U_ <sup>_ISS_</sup> for all _h_ = 0 _, .., k −_ 1, it holds that _∥xa,k −_ _xb,k∥≤_ _β_ ( _∥xa,_ 0 _−_ _xb,_ 0 _∥, k_ ) II. PROBLEM FORMULATION The objective of this paper is to design an MPC algorithm for a nonlinear system, given its RNN model. In particular, the problem of regulation to a set point _y_ ¯ is considered, while respecting constraint on the input and on the maximum input variation, i.e. _u ∈U,_ ∆ _u ∈V_ (1) where ∆ _uk_ = _uk_ _−_ _uk−_ 1, _U_ is a bounded closed set and _V_ includes the origin in its interior. In the following, the RNN model will be denoted in compact form as _xk_ +1 = _f_ ( _xk, uk_ ) (2a) _yk_ = _g_ ( _xk_ ) (2b) where _u_ _∈_ R <sup>_m_</sup> is the input of the model, _y_ _∈_ R <sup>_p_</sup> is the predicted output, _x_ _∈_ R <sup>_nx_</sup> is the RNN state, and the pedix _k_ denotes the time dependence. In order to ensure that the effect of the initialization asymptotically vanishes, and that bounded inputs produce bounded outputs, _δ_ ISS RNN models are considered. _Assumption_ _1:_ The model (2) is _δ_ ISS in the sets _X_ <sup>_ISS_</sup> and _U_ <sup>_ISS_</sup> _⊇U_, and there exists an incremental Lyapunov function _Vf_ ( _xa, xb_ ) such that for any _xa, xb_ _∈X_ <sup>_ISS_</sup>, _u ∈U_ <sup>_ISS_</sup> _a ∥xa −_ _xb∥_ <sup>2</sup> _≤_ _Vf_ ( _xa, xb_ ) _≤_ _b ∥xa −_ _xb∥_ <sup>2</sup> (3a) _Vf_ ( _f_ ( _xa, u_ ) _, f_ ( _xb, u_ )) _−_ _Vf_ ( _xa, xb_ ) _≤−c ∥xa −_ _xb∥_ <sup>2</sup> (3b) for some _a, b, c >_ 0. Moreover, _Vf_ ( _xa, xb_ ) is locally Lipschitz continuous in any bounded set, i.e. given any bounded set _X_ ¯ _⊆X_ <sup>_ISS_</sup>, if _xa, x_ <sup>_′_</sup> _a_ <sup>_, xb_</sup> <sup>_∈_</sup> _X_ <sup>¯</sup> then there exist a finite constant _L_ ¯ _V_ such that _δ_ ISS conditions and incremental Lyapunov functions that satisfy (3) can be found for the main RNN architectures (LSTM [8], GRU [9], [12], REN [15], and other particular classes of RNN [10]). Moreover, the property of local Lipschitzianity is satisfied by quadratic functions, that are the most common types of Lyapunov functions used to study RNN stability. III. CONTROL ALGORITHM In Fig. 1 the scheme of the proposed control algorithm is reported. It is composed by three main blocks. The first one is the observer, that is needed in order to properly initialise the predictions in the MPC. The observer is necessary because in general the state _x_ of the RNN model is not measurable and has no physical meaning. The second block is the MPC. In order to take into account the constraint on the input variation, <sup>_′_</sup> _a_ <sup>_, xb_</sup> <sup>)</sup> <sup>_| ≤_</sup> <sup>_L_</sup> <sup>¯</sup> <sup>_V_</sup> <sup>_∥xa_</sup> <sup>_−_</sup> <sup>_x′_</sup> _a_ _|Vf_ ( _xa, xb_ ) _−_ _Vf_ ( _x_ <sup>_′_</sup> <sup>_′_</sup> _a_ <sup>_∥_</sup> + _γ_ - 0max _≤h<k_ <sup>_∥ua,h −_</sup> <sup>_ub,h∥_</sup> the MPC considers ∆ _u_ as optimization variable. The value of the control variable _u_ is obtained from ∆ _u_ by means of a discrete time integrator. _A._ _Observer_ In view of the _δ_ ISS property of the model, it is always possible to design a converging observer. The most simple one is the open-loop observer. _Assumption_ _2:_ There exists an observer for the RNN model that can be written in the form _x_ ˆ _k_ +1 = _f_ (ˆ _xk, uk_ ) + _δx_ (ˆ _xk, uk, yk_ ) (4) where _∥δx_ (ˆ _xk, uk, yk_ ) _∥≤_ _Lmax ∥xk −_ _x_ ˆ _k∥_ (5) for some _Lmax_ _≥_ 0. The observer satisfies the following properties: 1) there exist a finite _k_ <sup>¯</sup> _≥_ 0 and a set _X_ <sup>ˆ</sup> such that for any _x_ ˆ0 _∈_ _X_ <sup>ˆ</sup>, and for any input sequence in _U_, _x_ ˆ _k_ _∈X_ <sup>_ISS_</sup> _∀k_ _≥_ _k_ <sup>¯</sup> ; 2) the observer estimation error converges to 0, i.e. for any input sequence in _U_, _∥xk −_ _x_ ˆ _k∥→_ 0 for _k_ _→∞_ . Observers respecting Assumption 2 have been designed for the main RNN architectures (LSTM [8], GRU [13], REN [15] and other particular classes of RNN [10]). _B._ _MPC design_ The MPC solves at every sample time instant a Finite Horizon Optimal Control Problem (FHOCP), where the deviation from the state and input reference values ¯ _x_ and ¯ _u_ are penalized. The references values are computed from the RNN model (2) as the equilibrium state and input corresponding to the output _y_ ¯. It is assumed that _u_ ¯ _∈U_ and _x_ ¯ _∈X_ <sup>_ISS_</sup> . The FHOCP is given by Then, the system input is _uk_ = _uk−_ 1 + _k_ <sup>_MP C_</sup> (ˆ _xk, uk−_ 1) (9) _C._ _Stability analysis_ In this subsection the stability properties of the closed-loop system are analysed, under the assumption that the system behaves according to its RNN model. Firstly, note that the feasibility of the FHOCP only depends on the value of _uk−_ 1 and not on the initial state, since there are no state constraints. Hence, define _U_ <sup>_MP C_</sup> (¯ _u_ ) = _{u ∈U_ : _∃_ a sequence ∆ _u_ 0 _|k, ..._ ∆ _uN_ _−_ 1 _|k_ respecting (6c)-(6e)-(6f)-(6g) with _u−_ 1 _|k_ = _u}_ The size of _U_ <sup>_MP C_</sup> depends on the incremental constraint set _V_ and of the prediction horizon _N_ . In presence of a small set _V_ it may be necessary to enlarge _N_ to obtain a sufficiently large feasibility set _U_ <sup>_MP C_</sup> (¯ _u_ ). _Theorem_ _1:_ Let Assumptions 1-2 hold. Then for the closedloop system composed by the RNN model (2), the observer (4) and the MPC (9), the FHOCP is recursively feasible and the closed-loop system converges to _x_ = _x_ ¯, _u_ = _u_ ¯, _x_ ˆ = _x_ ¯ with domain of attraction _x ∈X_ <sup>_ISS_</sup>, _u ∈U_ <sup>_MP C_</sup> (¯ _u_ ), _x_ ˆ _∈_ _X_ <sup>ˆ</sup> . _Proof:_ Denote the optimal input sequence and state trajectory computed by the MPC at time step _k_ respectively by _u_ <sup>_∗_</sup> _i−_ 1 _|k_ <sup>and</sup> <sup>_x∗_</sup> _i|k_ <sup>for</sup> <sup>_i_</sup> <sup>=</sup> <sup>0</sup> <sup>_, ..., N_</sup> <sup>.,</sup> <sup>where</sup> <sup>_x_</sup> 0 <sup>_∗_</sup> _|k_ <sup>=</sup> <sup>_x_</sup> <sup>ˆ</sup> <sup>_k_</sup> <sup>and</sup> _u_ <sup>_∗_</sup> _−_ 1 _|k_ <sup>=</sup> <sup>_uk−_</sup> <sup>1.</sup> To prove recursive feasibility, assuming that the FHOCP is feasible at time step _k_, it is sufficient to consider as candidate solution at time step _k_ + 1 the sequence ∆˜ _u_ 0 _|k_ +1 _, ...,_ ∆˜ _uN_ _−_ 1 _|k_ +1, defined by ∆˜ _ui|k_ +1 = ∆ _u_ <sup>_∗_</sup> _i_ +1 _|k_ <sup>for</sup> constraints are introduced on the system state. Denote by ∆ _u_ <sup>_∗_</sup> 0 _|k_ <sup>_, ...,_</sup> <sup>∆</sup> <sup>_u∗_</sup> _N_ _−_ 1 _|k_ <sup>the</sup> <sup>optimal</sup> <sup>solution</sup> <sup>of</sup> <sup>the</sup> <sup>FHOCP.</sup> <sup>Ac-</sup> cording to the Receding Horizon principle, the MPC control law is ∆ _uk_ = _k_ <sup>_MP C_</sup> (ˆ _xk, uk−_ 1) = ∆ _u_ <sup>_∗_</sup> 0 _|k_ (8) <sup>_∗_</sup> _i−_ 1 _|k_ <sup>and</sup> <sup>_x∗_</sup> _i|_ <sup>_∗_</sup> _−_ 1 _|k_ <sup>=</sup> <sup>_uk−_</sup> <sup>1.</sup> <sup>_∗_</sup> _i|k_ <sup>for</sup> <sup>_i_</sup> <sup>=</sup> <sup>0</sup> <sup>_, ..., N_</sup> <sup>.,</sup> <sup>where</sup> <sup>_x_</sup> 0 <sup>_∗_</sup> ��∆ _ui|k_ ��2 _R_ ∆ min ∆ _u·|k_ _N_ _−_ 1 _i_ =0 ��� _xi|k −_ _x_ ¯��2 _Q_ <sup>+</sup> �� _ui−_ 1 _|k −_ _u_ ¯��2 _R_ <sup>+</sup> + _sVf_ ( _xN_ _|k,_ ¯ _x_ ) (6a) s.t. _x_ 0 _|k_ = _x_ ˆ _k,_ _u−_ 1 _|k_ = _uk−_ 1 (6b) _uN_ _−_ 1 _|k_ = _u_ ¯ (6c) for _i_ = 0 _, ..., N_ _−_ 1 _xi_ +1 _|k_ = _f_ ( _xi|k, ui|k_ ) (6d) _ui|k_ = _ui−_ 1 _|k_ + ∆ _ui|k_ (6e) _ui|k_ _∈U_ (6f) ∆ _ui|k_ _∈V_ (6g) In the cost function (6a), the matrices _Q_ = _Q_ <sup>_⊤_</sup> _>_ 0, _R_ = _R_ <sup>_⊤_</sup> _>_ 0, _R_ ∆ = _R_ ∆ <sup>_⊤_</sup> <sup>_>_</sup> <sup>0</sup> <sup>and</sup> _s ≥_ <sup>_<u>λmax</u>_</sup> <sup><u>(</u></sup> <sup>_<u>Q</u>_</sup> <sup><u>)</u></sup> (7) _c_ are design choices. In order to guarantee closed-loop stability, the terminal equality constraint (6c) is introduced on the last element of the input sequence, while no terminal ∆˜ _u_ 0 _|k_ +1 _, ...,_ ∆˜ _uN_ _−_ 1 _|k_ +1, defined by ∆˜ _ui|k_ +1 = ∆ _u_ <sup>_∗_</sup> _i_ +1 _|k_ <sup>for</sup> _i_ = 1 _, ..., N_ _−_ 2 and ∆˜ _uN_ _−_ 1 _|k_ +1 = 0, that trivially satisfies constraints (6c)-(6f)-(6g). In view of Assumption 2, there exists a finite value _k_ <sup>¯</sup> _≥_ 0 such that _x_ ˆ _k_ _∈X_ <sup>_ISS_</sup> for all _k_ _≥_ _k_ <sup>¯</sup> . Moreover, for Assumption 1, the set _X_ <sup>_ISS_</sup> is positive invariant for the model state _x_ . Hence, along the proof of convergence, it is assumed that _x_ ˆ _∈_ _X_ <sup>_ISS_</sup> and _x ∈X_ <sup>_ISS_</sup>, which is true for all _k_ _≥_ _k_ <sup>¯</sup> . In addition, in view of Assumption 2, _∥xk −_ _x_ ˆ _k∥_ is bounded and converges to zero. Hence, the observer innovation _δx_ is considered as a disturbance term, and it is shown that the closed-loop system is ISS with respect to it. Then, convergence follows in view of (5) and of the convergence of the observer estimation error. In order to prove ISS, consider the optimal cost of the MPC as candidate ISS-Lyapunov function _Q_ <sup>+</sup> _R_ _V_ ( _x, u_ ) = + _N_ _−_ 1 _i_ =0 ���� _xi∗|k_ <sup>_−_</sup> <sup>_x_</sup> <sup>¯</sup> - + _sVf_ ( _x_ <sup>_∗_</sup> _N_ _|k_ <sup>_,_</sup> <sup>¯</sup> <sup>_x_</sup> <sup>)</sup> ���2 _Q_ ��� _ui∗−_ 1 _|k_ <sup>_−_</sup> <sup>_u_</sup> <sup>¯</sup> ���2 _R_ ���∆ _ui∗|k_ ���2 _R_ ∆ where _x_ = _x_ <sup>_∗_</sup> 0 _|k_ <sup>and</sup> <sup>_u_</sup> <sup>=</sup> <sup>_u_</sup> _−_ <sup>_∗_</sup> 1 _|k_ <sup>.</sup> <sup>_V_</sup> <sup>is</sup> <sup>also</sup> <sup>a</sup> <sup>function</sup> <sup>of</sup> <sup>_u_</sup> <sup>,</sup> that is the state of the discrete time integrator at time step _k_ . Firstly, derive a lower bound for _V_ ( _x, u_ ) �� _x_ ˜ _N_ _−_ 1 _|k_ +1 _−_ _x_ ¯��2 _Q_ <sup>_−_</sup> <sup>_sVf_</sup> <sup>(</sup> <sup>_x_</sup> _N_ <sup>_∗_</sup> _|k_ <sup>_,_</sup> <sup>¯</sup> <sup>_x_</sup> <sup>)</sup> ��� _u−∗_ 1 _|k_ <sup>_−_</sup> <sup>_u_</sup> <sup>¯</sup> Then _sVf_ (˜ _xN_ _|k_ +1 _,_ ¯ _x_ ) + _V_ ( _x, u_ ) _≥_ 2 ��� _x_ 0 _∗|k_ <sup>_−_</sup> <sup>_x_</sup> <sup>¯</sup> ��� _Q_ _Q_ <sup>+</sup> ���2 _≤_ _sVf_ ( _x_ <sup>_∗_</sup> _N_ +1 _|k_ <sup>_,_</sup> <sup>¯</sup> <sup>_x_</sup> <sup>) +</sup> _R_ (10) _≥_ _λmin_ ( _Q_ ) _∥x −_ _x_ ¯ _∥_ <sup>2</sup> + _λmin_ ( _R_ ) _∥u −_ _u_ ¯ _∥_ <sup>2</sup> _Q_ <sup>_−_</sup> <sup>_sVf_</sup> <sup>(</sup> <sup>_x_</sup> _N_ <sup>_∗_</sup> ��� _xN∗_ _|k_ <sup>_−_</sup> <sup>_x_</sup> <sup>¯</sup> ���2 _Q_ _N_ <sup>_∗_</sup> _|k_ <sup>_,_</sup> <sup>¯</sup> <sup>_x_</sup> <sup>)</sup> _k_ <sup>_⊤_</sup> + _N_ <sup>_Q_</sup> <sup>(</sup> <sup>_x∗_</sup> _N_ <sup>_∗_</sup> _N_ _|k_ <sup>_−_</sup> <sup>_x_</sup> <sup>¯)</sup> To derive an upper bound for _V_ ( _x, u_ ), consider as candidate solution at time _k_ the sequence ∆˜ _u_ 0 _|k, ...,_ ∆˜ _uN_ _−_ 1 _|k_, where ∆˜ _u_ 0 _|k_ = _u_ ¯ _−_ _u_ and ∆˜ _ui|k_ = 0 for _i_ = 1 _, ..., N_ _−_ 1. This solution is feasible for _u_ in a neighborhood of _u_ ¯. Denote by _x_ ˜ _i|k_, _i_ = 0 _, ..., N_, the associate state trajectory. One has that + _sL_ <sup>¯</sup> _V_ _∥εk_ + _N_ +1 _∥_ + _∥εk_ + _N_ _∥_ <sup>2</sup> _Q_ + _sL_ <sup>¯</sup> _V_ _∥εk_ + _N_ +1 _∥_ + _∥εk_ + _N_ _∥_ <sup>2</sup> _Q_ <sup>2</sup> _Q_ <sup>+</sup> <sup>_ε_</sup> _k_ <sup>_⊤_</sup> + <sup>2</sup> _Q_ <sup>+</sup> <sup>_ε_</sup> _k_ <sup>_⊤_</sup> + _≤_ _sVf_ ( _f_ ( _x_ <sup>_∗_</sup> _N_ <sup>_∗_</sup> _N_ _|k_ <sup>_,_</sup> <sup>¯</sup> <sup>_u_</sup> <sup>)</sup> <sup>_, f_</sup> <sup>(¯</sup> <sup>_x,_</sup> <sup>¯</sup> <sup>_u_</sup> <sup>))</sup> <sup>_−_</sup> <sup>_sVf_</sup> <sup>(</sup> <sup>_x∗_</sup> _N_ <sup>_∗_</sup> _N_ _|k_ <sup>_,_</sup> <sup>¯</sup> <sup>_x_</sup> <sup>)</sup> 2 ��� _xN∗_ _|k_ <sup>_−_</sup> <sup>_x_</sup> <sup>¯</sup> ��� + _λmax_ ( _Q_ ) ���2 _k_ <sup>_⊤_</sup> + _N_ <sup>_Q_</sup> <sup>(</sup> <sup>_x∗_</sup> _N_ <sup>_∗_</sup> _N_ _|k_ <sup>_−_</sup> <sup>_x_</sup> <sup>¯)</sup> ���2 2 ��� _xN∗_ _|k_ <sup>_−_</sup> <sup>_x_</sup> <sup>¯</sup> ��� + _λmax_ ( _Q_ ) 2 + _λmax_ ( _Q_ ) ��� 2 ��� _xN∗_ _|k_ <sup>_−_</sup> <sup>_x_</sup> <sup>¯</sup> ��� (3b) _≤−sc_ (3b) _V_ ( _x, u_ ) _≤_ _N_ _−_ 1 _i_ =0 ��� _x_ ˜ _i|k −_ _x_ ¯��2 _Q_ - + _∥u −_ _u_ ¯ _∥_ <sup>2</sup> _R_ _k_ <sup>_⊤_</sup> + _N_ <sup>_Q_</sup> <sup>(</sup> <sup>_x∗_</sup> _N_ + _∥u_ ¯ _−_ _u∥_ <sup>2</sup> _R_ ∆ <sup>+</sup> <sup>_sVf_</sup> <sup>(˜</sup> <sup>_xN_</sup> <sup>_|k,_</sup> <sup>¯</sup> <sup>_x_</sup> <sup>)</sup> <sup>2</sup> _Q_ <sup>+</sup> <sup>_ε_</sup> _k_ <sup>_⊤_</sup> + _k_ <sup>_⊤_</sup> + _N_ <sup>_Q_</sup> <sup>(</sup> <sup>_x∗_</sup> _N_ <sup>_∗_</sup> _N_ _|k_ <sup>_−_</sup> <sup>_x_</sup> <sup>¯)</sup> <sup>_∗_</sup> _N_ _|k_ <sup>_−_</sup> <sup>_x_</sup> <sup>¯)</sup> In view of the _δ_ ISS property of the model and of (3a), there exists _bx_ _>_ 0 such that, for _u_ in a neighborhood of _u_ ¯, _V_ ( _x, u_ ) _≤_ _bx ∥x −_ _x_ ¯ _∥_ <sup>2</sup> + ( _λmax_ ( _R_ ) + _λmax_ ( _R_ ∆)) _∥u −_ _u_ ¯ _∥_ <sup>2</sup> (11) Given this local upper bound, the existence of an upper bound for any _u ∈U_ <sup>_MP C_</sup> (¯ _u_ ) follows from [18, Lemma 4]. To prove the decreasing property of _V_ ( _x, u_ ), denote _u_ <sup>+</sup> = _u_ + _k_ <sup>_MP C_</sup> ( _x, u_ ) and _x_ <sup>+</sup> = _f_ ( _x, u_ <sup>+</sup> )+ _δx_ . The term _δx_ due to the observer presence is regarded as an external disturbance. Consider now the same candidate solution introduced to prove recursive feasibility. Denote by _u_ ˜ _−_ 1 _|k_ +1 _, ...,_ ˜ _uN_ _−_ 1 _|k_ +1 the associate input sequence, defined by _u_ ˜ _−_ 1 _|k_ +1 = _u_ <sup>+</sup> and _u_ ˜ _i|k_ +1 = _u_ ˜ _i−_ 1 _|k_ +1 + ∆˜ _ui|k_ +1 for _i_ = 0 _, ..., N_ _−_ 1, and by _x_ ˜0 _|k_ +1 _, ...,_ ˜ _xN_ _|k_ +1 the associate state trajectory, defined by _x_ ˜0 _|k_ +1 = _x_ <sup>+</sup> and _x_ ˜ _i_ +1 _|k_ +1 = _f_ (˜ _xi|k_ +1 _,_ ˜ _ui|k_ +1) for _i_ = 0 _, ..., N_ _−_ 1. Define _x_ <sup>_∗_</sup> _N_ +1 _|k_ <sup>=</sup> <sup>_f_</sup> <sup>(</sup> <sup>_x_</sup> _N_ <sup>_∗_</sup> _|k_ <sup>_,_</sup> <sup>¯</sup> <sup>_u_</sup> <sup>),</sup> <sup>and</sup> <sup>denote</sup> <sup>for</sup> <sup>_i_</sup> <sup>=</sup> <sup>1</sup> <sup>_, ..., N_</sup> <sup>,</sup> _εk_ + _i_ = _x_ ˜ _i−_ 1 _|k_ +1 _−_ _x_ <sup>_∗_</sup> _i|k_ <sup>.</sup> <sup>One</sup> <sup>has</sup> <sup>that</sup> + _sL_ <sup>¯</sup> _V_ _∥εk_ + _N_ +1 _∥_ + _∥εk_ + _N_ _∥_ <sup>2</sup> _Q_ (7) _≤_ _sL_ <sup>¯</sup> _V_ _∥εk_ + _N_ +1 _∥_ + _∥εk_ + _N_ _∥_ <sup>2</sup> _Q_ <sup>2</sup> _Q_ <sup>+</sup> <sup>_ε_</sup> _k_ <sup>_⊤_</sup> + Combining the computation, one has that _V_ ( _x_ <sup>+</sup> _, u_ <sup>+</sup> ) _−_ _V_ ( _x, u_ ) _≤_ <sup>2</sup> _Q_ <sup>_−∥u −_</sup> <sup>_u_</sup> <sup>¯</sup> <sup>_∥_</sup> _R_ <sup>2</sup> _−∥x −_ _x_ ¯ _∥_ <sup>2</sup> _Q_ _R_ <sup>2</sup> <sup>_−_</sup> 2 ���∆ _u_ 0 _∗|k_ ��� _R_ ∆ _k_ <sup>_⊤_</sup> + _i_ <sup>_Q_</sup> <sup>(</sup> <sup>_x∗_</sup> _i_ <sup>_∗_</sup> _i|k_ <sup>_−_</sup> <sup>_x_</sup> <sup>¯)</sup> + _N_ _−_ 1 _i_ =1 - _∥εk_ + _i∥_ <sup>2</sup> _Q_ <sup>2</sup> _Q_ <sup>+</sup> <sup>_ε_</sup> _k_ <sup>_⊤_</sup> + _sL_ <sup>¯</sup> _V_ _∥εk_ + _N_ +1 _∥_ + _∥εk_ + _N_ _∥_ <sup>2</sup> _Q_ _k_ <sup>_⊤_</sup> + _N_ <sup>_Q_</sup> <sup>(</sup> <sup>_x∗_</sup> _N_ <sup>_∗_</sup> _N_ _|k_ <sup>_−_</sup> <sup>_x_</sup> <sup>¯)</sup> _∥_ <sup>2</sup> _Q_ <sup>+</sup> <sup>_ε_</sup> _k_ <sup>_⊤_</sup> + In view of the boundedness of _U_ and of the _δ_ ISS property of the system, the values of _x_ <sup>_∗_</sup> _i|k_ <sup>are</sup> <sup>bounded</sup> <sup>for</sup> <sup>_i_</sup> <sup>=</sup> <sup>1</sup> <sup>_, ..., N_</sup> <sup>.</sup> Moreover, _εk_ +1 = _δx_ and, for the _δ_ ISS property of the model, _∥εk_ + _i_ +1 _∥≤_ _β_ ( _∥δx∥_ _, i_ ) for a _KL_ -function _β_ . Then there exist a _K_ -function _γ_ ( _·_ ) such that <sup>_∗_</sup> _N_ +1 _|k_ <sup>=</sup> <sup>_f_</sup> <sup>(</sup> <sup>_x_</sup> _N_ <sup>_∗_</sup> _V_ ( _x_ <sup>+</sup> _, u_ <sup>+</sup> ) _−_ _V_ ( _x, u_ ) _≤_ (12) _R_ <sup>2</sup> <sup>+</sup> <sup>_γ_</sup> <sup>(</sup> <sup>_∥δx∥_</sup> <sup>)</sup> <sup>_∗_</sup> _i|k_ <sup>.</sup> <sup>One</sup> <sup>has</sup> <sup>that</sup> _−∥x −_ _x_ ¯ _∥_ <sup>2</sup> <sup>2</sup> _Q_ <sup>_−∥u −_</sup> <sup>_u_</sup> <sup>¯</sup> <sup>_∥_</sup> _R_ <sup>2</sup> _V_ ( _x_ <sup>+</sup> _, u_ <sup>+</sup> ) _−_ _V_ ( _x, u_ ) _≤_ _N_ _−_ 1 _i_ =0 ��� _x_ ˜ _i|k_ +1 _−_ _x_ ¯��2 _Q_ <sup>+</sup> �� _u_ ˜ _i−_ 1 _|k_ +1 _−_ _u_ ¯��2 _R_ + _sVf_ (˜ _xN_ _|k_ +1 _,_ ¯ _x_ ) + _−_ ��∆˜ _ui|k_ +1��2 _R_ ∆ _N_ _−_ 1 _i_ =0 ���� _xi∗|k_ <sup>_−_</sup> <sup>_x_</sup> <sup>¯</sup> ���2 _Q_ _Q_ <sup>+</sup> _R_ <sup>+</sup> ��� _ui∗−_ 1 _|k_ <sup>_−_</sup> <sup>_u_</sup> <sup>¯</sup> ���2 _R_ ���∆ _ui∗|k_ ���2 _R_ ∆ ���2 _−_ _sVf_ ( _x_ <sup>_∗_</sup> _N_ _|k_ <sup>_,_</sup> <sup>¯</sup> <sup>_x_</sup> <sup>)</sup> _≤−∥x −_ _x_ ¯ _∥_ <sup>2</sup> <sup>2</sup> _Q_ <sup>_−∥u −_</sup> <sup>_u_</sup> <sup>¯</sup> <sup>_∥_</sup> <sup>2</sup> _R_ <sup>2</sup> _R_ <sup>_−_</sup> 2 ���∆ _u_ 0 _∗|k_ ��� _R_ ∆ _k_ <sup>_⊤_</sup> + _i_ <sup>_Q_</sup> <sup>(</sup> <sup>_x∗_</sup> _i|_ <sup>_∗_</sup> _i|k_ <sup>_−_</sup> <sup>_x_</sup> <sup>¯)</sup> + _N_ _−_ 1 _i_ =1 - _∥εk_ + _i∥_ <sup>2</sup> _Q_ <sup>2</sup> _Q_ <sup>+</sup> <sup>_ε_</sup> _k_ <sup>_⊤_</sup> + _sVf_ (˜ _xN_ _|k_ +1 _,_ ¯ _x_ ) + �� _x_ ˜ _N_ _−_ 1 _|k_ +1 _−_ _x_ ¯��2 _Q_ <sup>_−_</sup> <sup>_sVf_</sup> <sup>(</sup> <sup>_x_</sup> _N_ <sup>_∗_</sup> _|k_ <sup>_,_</sup> <sup>¯</sup> <sup>_x_</sup> <sup>)</sup> Consider now the terms related to the terminal cost. First, note that _x_ ˜ _N_ _|k_ +1, _x_ <sup>_∗_</sup> _N_ +1 _|k_ <sup>and</sup> <sup>_x_</sup> <sup>¯</sup> <sup>are</sup> <sup>bounded</sup> <sup>in</sup> <sup>view</sup> <sup>of</sup> <sup>the</sup> boundedness of _U_ and of the _δ_ ISS property of the system. Then, in view of Assumption 1, there exists a Lipschitz constant _L_ <sup>¯</sup> _V_ such that In view of (10)-(11)-(12), the closed-loop system is ISS with respect to the disturbance _δx_ . Convergence follows from the fact that _δx →_ 0 for _k_ _→∞_ . IV. SIMULATION EXAMPLE WITH LSTM MODELS This section discusses how the control algorithm proposed in Section III for the generic RNN model can be applied to the particular case of LSTM networks, considering as system under control a simulated four tank benchmark process [16]. _A._ _Algorithm for the LSTM model_ LSTM networks are an architecture in the family of RNN, known to achieve remarkable performances in predictions tasks, in view of their ability to learn both long and short term dependencies between data. The equations of the LSTM network are the following _ck_ +1 = _σ_ ( _W_ f _uk_ + _U_ f _hk_ + _b_ f ) _◦_ _ck_ + _σ_ ( _W_ i _uk_ + _U_ i _hk_ + _b_ i) _◦_ tanh( _W_ c _uk_ + _U_ c _hk_ + _b_ c) (13a) _hk_ +1 = _σ_ ( _W_ - _uk_ + _U_ - _hk_ + _b_ o) _◦_ tanh( _ck_ +1) (13b) _yk_ = _W_ y _hk_ + _b_ y (13c) _|Vf_ (˜ _xN_ _|k_ +1 _,_ ¯ _x_ ) _−_ _Vf_ ( _x_ <sup>_∗_</sup> _N_ +1 _|k_ <sup>_,_</sup> <sup>¯</sup> <sup>_x_</sup> <sup>)</sup> <sup>_| ≤_</sup> <sup>_L_</sup> <sup>¯</sup> <sup>_V_</sup> <sup>_∥εk_</sup> <sup>+</sup> <sup>_N_</sup> <sup>+1</sup> <sup>_∥_</sup> where _c, h_ _∈_ R <sup>_n_</sup> are two vector states, _u_ _∈_ R <sup>_m_</sup> is the input and _y_ _∈_ R <sup>_p_</sup> is the output of the network. The overall state of the LSTM model is _x_ = [ _c_ <sup>_⊤_</sup> _h_ <sup>_⊤_</sup> ] <sup>_⊤_</sup> _∈_ R <sup>2</sup> <sup>_n_</sup> . Matrices _W_ f _, W_ i _, W_ c _, W_ - _∈_ R <sup>_n×m_</sup>, _U_ f _, U_ i _, U_ c _, U_ - _∈_ R <sup>_n×n_</sup>, _W_ y _∈_ R <sup>_p×n_</sup> and vectors _b_ f _, b_ i _, b_ c _, b_ - _∈_ R <sup>_n_</sup>, _b_ y _∈_ R <sup>_p_</sup> contain the trainable weights of the network. In [8], a condition on the weights of the LSTM model that guarantees _δ_ ISS is derived. Note that the _δ_ ISS property is guaranteed in the sets _X_ <sup>_ISS_</sup> = _C × H_ and _U_ <sup>_ISS_</sup>, where _C_ = _{c ∈_ R <sup>_n_</sup> : _∥c∥∞_ _≤_ _c_ ¯ _}_ _H_ = _{h ∈_ R <sup>_n_</sup> : _∥h∥∞_ _≤_ 1 _}_ _U_ <sup>_ISS_</sup> = _{u ∈_ R <sup>_m_</sup> : _∥u∥∞_ _≤_ _umax}_ and _c_ ¯ is a function of the LSTM weigths. Under the _δ_ ISS condition, the function control algorithm can be applied using an LSTM model, provided that the input constraint set is such that _U_ _⊂_ int( _U_ <sup>_ISS_</sup> ). _B._ _Simulation_ The considered four tanks process is described by the following differential equations 2 _gh_ 3 + <sup>_<u>γa</u>_</sup> _S_ <sup>_qa_</sup> 2 _gh_ 4 + <sup>_<u>γb</u>_</sup> _S_ <sup>_qb_</sup> _h_ ˙ 1 = _−_ <sup>_<u>a</u>_</sup> <sup><u>1</u></sup> _S_ _h_ ˙ 2 = _−_ <sup>_<u>a</u>_</sup> <sup><u>2</u></sup> _S_ _h_ ˙ 3 = _−_ <sup>_<u>a</u>_</sup> <sup><u>3</u></sup> _S_ _S_ _S_ 2 _gh_ 1 + <sup>_<u>a</u>_</sup> <sup><u>3</u></sup> _S_ 2 _gh_ 2 + <sup>_<u>a</u>_</sup> <sup><u>4</u></sup> _S_ _h_ ˙ 3 = _−_ <sup>_<u>a</u>_</sup> <sup><u>3</u></sup> _S_ _h_ ˙ 4 = _−_ <sup>_<u>a</u>_</sup> <sup><u>4</u></sup> _S_ _h_ ˙ 4 = _−_ <sup>_<u>a</u>_</sup> <sup><u>4</u></sup> �2 _gh_ 3 + <sup><u>1</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>γb</u>_</sup> _qb_ _S_ �2 _gh_ 4 + <sup><u>1</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>γa</u>_</sup> _qa_ _S_ ����� 2 _P_ _Vf_ ( _xa, xb_ ) = ���� - _∥ca −_ _cb∥_ _∥ha −_ _hb∥_ (14) where the states _h_ 1 _, h_ 2 _, h_ 3 _, h_ 4 are the water levels in the four tanks, and the inputs _qa_ and _qb_ represent the inlet flows in the two valves. The numerical values of the system parameters can be found in [16]. The objective is to control the water level in the two bottom tanks, _h_ 1 and _h_ 2, by acting on _qa_ and _qb_ . The system is subject to the operational and safety constraints _qa_ _∈_ [0 _._ 0 _,_ 9 _._ 05] _×_ 10 <sup>_−_</sup> <sup>4</sup> _m_ <sup>3</sup> _/s_, _qb_ _∈_ [0 _._ 0 _,_ 11 _._ 1] _×_ 10 <sup>_−_</sup> <sup>4</sup> _m_ <sup>3</sup> _/s_ and ∆ _qa,_ ∆ _qb_ _∈_ [ _−_ 1 _._ 0 _,_ 1 _._ 0] _×_ 10 <sup>_−_</sup> <sup>4</sup> _m_ <sup>3</sup> _/s_, where ∆ _qa_ and ∆ _qb_ are the maximum input variations between subsequent sampling instants. Note that the need for incremental input constraint is motivated by the fact that the system is actuated by pumps, whose acceleration is related to wear and electrical consumption [19]. In order to derive an LSTM model of the plant, a sampling time of _Ts_ = 25 _s_ is considered. The model is trained using an input-output dataset composed of 20000 time steps, that is split in a training set of 15000 time steps, a validation set of 2500 time steps, and a test set of 2500 time steps. The training set is then divided into subsequences of 1000 time steps each, and a training of 1000 epochs is performed using a learning rate of 0.001 and Adam optimizer. The loss function is the sum of the mean squared error and of a regularization term used to enforce the _δ_ ISS property [6]. The model inputs and outputs are normalized within the range [-1,1], using the maximum and minimum values of the input constraints to normalize the inputs, and the maximum and minimum values in the training dataset to normalize the outputs. The FIT index [12] is considered to assess the predictive performance of the model on test data. The resulting network has _n_ = 10 neurons, has a FIT on the test dataset of 93.4% for _h_ 1 and of 87.9% for _h_ 2, and fulfills the _δ_ ISS condition considering _umax_ = 1 _._ 05, that is larger that the range of feasible inputs in the normalized variables. For the design of the control algorithm, the observer is tuned according to the optimization proposed in [8], whereas the cost matrices for the MPC are set to _Q_ = I 2 _n_, _R_ = I _m_, _R_ ∆ = I _m_ and _s_ is selected according to (7) with the equality. The considered prediction horizon is _N_ = 10. The optimization problem is solved numerically using CasADi. The output, input and input variation of the closed-loop trajectories for the four tanks process are reported respectively in Fig. 2, 3 and 4. It can be seen that the control system is capable of correctly managing the plant and respecting the is an incremental Lyapunov function for the LSTM model, where _P_ _∈_ R <sup>2</sup> <sup>_×_</sup> <sup>2</sup> is the solution of a suitable Lyapunov equation <sup>1</sup>, _xa_ = [ _c_ <sup>_⊤_</sup> _a_ <sup>_h⊤_</sup> _a_ <sup>]</sup> <sup>_⊤_</sup> <sup>and</sup> <sup>_xb_</sup> <sup>=</sup> <sup>[</sup> <sup>_c_</sup> _b_ <sup>_⊤_</sup> _h_ <sup>_⊤_</sup> _b_ <sup>]</sup> <sup>_⊤_</sup> <sup>.</sup> <sup>Note</sup> <sup>that</sup> <sup>_⊤_</sup> _a_ <sup>_h⊤_</sup> _a_ <sup>_⊤_</sup> _a_ <sup>]</sup> <sup>_⊤_</sup> <sup>and</sup> <sup>_xb_</sup> <sup>=</sup> <sup>[</sup> <sup>_c_</sup> _b_ <sup>_⊤_</sup> _b_ <sup>_⊤_</sup> _h_ <sup>_⊤_</sup> _b_ equation <sup>1</sup>, _xa_ = [ _c_ <sup>_⊤_</sup> _a_ <sup>_h⊤_</sup> _a_ <sup>]</sup> <sup>_⊤_</sup> <sup>and</sup> <sup>_xb_</sup> <sup>=</sup> <sup>[</sup> <sup>_c_</sup> _b_ <sup>_⊤_</sup> _h_ <sup>_⊤_</sup> _b_ <sup>]</sup> <sup>_⊤_</sup> <sup>.</sup> <sup>Note</sup> <sup>that</sup> condition (3) is fulfilled with _a_ = _λmin_ ( _P_ ), _b_ = _λmax_ ( _P_ ) and _c_ = 1. Therefore, _Vf_ ( _xa, xb_ ) can be used to define the terminal cost for the MPC. The following observer was proposed in [8] for the LSTM model _c_ ˆ _k_ +1 = _σ_ ( _W_ f _uk_ + _U_ f _h_ <sup>ˆ</sup> _k_ + _b_ f + _L_ f ( _yk −_ _y_ ˆ _k_ )) _◦_ _c_ ˆ _k_ + _σ_ ( _W_ i _uk_ + _U_ i _h_ <sup>ˆ</sup> _k_ + _b_ i + _L_ i( _yk −_ _y_ ˆ _k_ )) _◦_ tanh( _W_ c _uk_ + _U_ c _h_ <sup>ˆ</sup> _k_ + _b_ c) (15a) _h_ ˆ _k_ +1 = _σ_ ( _W_ - _uk_ + _U_ - _h_ ˆ _k_ + _b_ - + _L_ o( _yk −_ _y_ ˆ _k_ )) (15b) _◦_ tanh(ˆ _ck_ +1) _y_ ˆ _k_ = _W_ y _h_ <sup>ˆ</sup> _k_ + _b_ y (15c) The state of the observer is _x_ ˆ = [ˆ _c_ <sup>_⊤_</sup> _h_ <sup>ˆ</sup> <sup>_⊤_</sup> ] <sup>_⊤_</sup> _∈_ R <sup>2</sup> <sup>_n_</sup>, and _L_ f _, L_ i _, L_ - _∈_ R <sup>_n×p_</sup> are the observer gains. Under a proper selection of _L_ f, _L_ i and _L_ o, the LSTM observer (15) provides a converging state estimation, i.e. _∥x_ ˆ _k −_ _xk∥→_ 0 for _k_ _→∞_, for any _x_ ˆ0 _∈_ R <sup>2</sup> <sup>_n_</sup> . The observer structure satisfies (4)-(5). In particular, it is possible to prove (5) by following the proof of Theorem 2 of [11] with _d_ = _d_ <sup>ˆ</sup> = 0. However, it is not guaranteed that _X_ <sup>_ISS_</sup> is an invariant set for the observer state _x_ ˆ, as required by Assumption 2. To circumvent this issue, a tightened input constraint set _U_ such that _U_ _⊂_ int( _U_ <sup>_ISS_</sup> ) can be considered in the MPC formulation. In fact, if _U_ _⊂_ int( _U_ <sup>_ISS_</sup> ), then there exist a positive invariant set _X_ _⊂_ int( _X_ <sup>_ISS_</sup> ) for the LSTM state. The observer convergence implies that for any _ε_ _>_ 0 there exists a finite _k_ <sup>¯</sup> such that _∥x_ ˆ _k −_ _xk∥≤_ _ε_ for all _k_ _≥_ _k_ <sup>¯</sup> . Hence, there exists _k_ <sup>¯</sup> such that _x_ ˆ _k_ ¯ is sufficiently close to _xk_ ¯ to guarantee that _x_ ˆ _k_ ¯ _∈X_ <sup>_ISS_</sup>, in view of the fact that _xk_ _∈X_ . In conclusion, in view of the existence of an incremental Lyapunov (14) for the LSTM model that satisfies Assumption 1, and of an observer that satisfies Assumption 2, the proposed 1The Lyapunov equation is _A⊤δ_ <sup>_PAδ_</sup> <sup>_−_</sup> <sup>_P_</sup> <sup>=</sup> <sup>_−_</sup> <sup>I</sup> <sup>2,</sup> <sup>where</sup> <sup>_Aδ_</sup> <sup>_∈_</sup> <sup>R2</sup> <sup>_×_</sup> <sup>2</sup> <sup>is</sup> <sup>a</sup> Schur matrix that depends on the LSTM weights [8], [11]. 2 1 0 2 1 0 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 10 <sup>4</sup> 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 10 <sup>4</sup> Fig. 2. Closed-loop trajectories: output (orange solid line) and reference (blue dashed line). <u>10</u> <sup>-4</sup> 10 5 0 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 10 <sup>4</sup> <u>10</u> <sup>-4</sup> 10 5 0 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 10 <sup>4</sup> Fig. 3. Closed-loop trajectories: input (blue solid line) and constraints (black dashed lines). constraints on the input and on the input variation. Moreover, the simulation shows that the proposed algorithm is able to handle also step-wise variations of the reference, and not only constant references as proven in Theorem 1. In fact the feasibility of the FHOCP only depends on the input, so it is maintained provided that the new reference _u_ ¯ is such that the current value of the input is in _U_ <sup>_MP C_</sup> (¯ _u_ ). V. CONCLUSIONS In this paper an MPC algorithm based on a _δ_ ISS RNN model is proposed for systems with hard constraints on the input and on the input incremental variation. Closed-loop convergence is guaranteed by introducing a general formulation for the terminal cost, while a terminal equality constraint on <u>10</u> <sup>-4</sup> 1 0 -1 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 10 <sup>4</sup> <u>10</u> <sup>-4</sup> 1 0 -1 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 10 <sup>4</sup> Fig. 4. Closed-loop trajectories: variation of the input (blue solid line) and constraints (black dashed lines). the optimal input sequence takes into account the presence of the integrator. Remarkably, the proposed approach can be easily applied to different _δ_ ISS RNN architectures. In the application to LSTM models it is shown how it is possible to manage the case where the _δ_ ISS property is valid only in an invariant set. REFERENCES [1] J. B. Rawlings, D. Q. Mayne, and M. M. Diehl, _Model_ _Predictive_ _Control:_ _Theory,_ _Computation,_ _and_ _Design_ . Santa Barbara, California: Nob Hill Publishing, 2019. [2] G. Galuppini, E. F. Creaco, and L. Magni, “Multinode real-time control of pressure in water distribution networks via model predictive control,” _IEEE_ _Transactions_ _on_ _Control_ _Systems_ _Technology_, 2023. [3] W. Leonhard, _Control of electrical drives_ . Springer Science & Business Media, 2001. [4] S. Luciani, A. Bonfitto, N. Amati, and A. Tonoli, “Model predic tive control for comfort optimization in assisted and driverless vehicles,” _Advances_ _in_ _Mechanical_ _Engineering_, vol. 12, no. 11, p. 1687814020974532, 2020. [5] L. Dai, Y. Lu, H. Xie, Z. Sun, and Y. Xia, “Robust tracking model predictive control with quadratic robustness constraint for mobile robots with incremental input constraints,” _IEEE_ _Transactions_ _on_ _Industrial_ _Electronics_, vol. 68, no. 10, pp. 9789–9799, 2020. [6] F. Bonassi, M. Farina, J. Xie, and R. Scattolini, “On recurrent neural networks for learning-based control: Recent results and ideas for future developments,” _Journal_ _of_ _Process_ _Control_, vol. 114, pp. 92–104, 2022. [7] D. N. Tran, B. S. R¨uffer, and C. M. Kellett, “Incremental stability properties for discrete-time systems,” in _2016_ _IEEE_ _55th_ _Conference_ _on_ _Decision_ _and_ _Control_ _(CDC)_ . IEEE, 2016, pp. 477–482. [8] E. Terzi, F. Bonassi, M. Farina, and R. Scattolini, “Learning model predictive control with long short-term memory networks,” _International_ _Journal_ _of_ _Robust_ _and_ _Nonlinear_ _Control_, vol. 31, no. 18, pp. 8877– 8896, 2021. [9] F. Bonassi, M. Farina, and R. Scattolini, “On the stability properties of gated recurrent units neural networks,” _Systems_ _&_ _Control_ _Letters_, vol. 157, p. 105049, 2021. [10] W. D’Amico, A. L. Bella, and M. Farina, “An incremental input-to state stability condition for a class of recurrent neural networks,” _IEEE_ _Transactions_ _on_ _Automatic_ _Control_, no. 99, 2023. [11] I. Schimperna and L. Magni, “Robust offset-free constrained model predictive control with long short-term memory networks,” _IEEE Trans-_ _actions_ _on_ _Automatic_ _Control_, 2024. [12] ——, “Robust constrained nonlinear model predictive control with gated recurrent unit model,” _Automatica_, vol. 161, p. 111472, 2024. [13] F. Bonassi, A. La Bella, M. Farina, and R. Scattolini, “Nonlinear MPC design for incrementally ISS systems with application to GRU networks,” _Automatica_, vol. 159, p. 111381, 2024. [14] M. Jung, P. R. da Costa Mendes, M. Onnheim, <sup>¨</sup> and E. Gustavsson, “Model predictive control when utilizing LSTM as dynamic models,” _Engineering_ _Applications_ _of_ _Artificial_ _Intelligence_, vol. 123, p. 106226, 2023. [15] I. Schimperna and L. Magni, “Recurrent equilibrium network models for nonlinear model predictive control,” in _8th_ _IFAC_ _Conference_ _on_ _Nonlinear_ _Model_ _Predictive_ _Control_, 2024. [16] I. Alvarado, D. Limon, D. M. De La Pe˜na, J. M. Maestre, M. Ridao, H. Scheu, W. Marquardt, R. Negenborn, B. De Schutter, F. Valencia _et_ _al._, “A comparative analysis of distributed MPC techniques applied to the hd-mpc four-tank benchmark,” _Journal of Process Control_, vol. 21, no. 5, pp. 800–815, 2011. [17] L. Gr¨une and C. M. Kellett, “ISS-lyapunov functions for discontinu ous discrete-time systems,” _IEEE_ _Transactions_ _on_ _Automatic_ _Control_, vol. 59, no. 11, pp. 3098–3103, 2014. [18] D. Limon, T. Alamo, D. M. Raimondo, D. M. De La Pe˜na, J. M. Bravo, A. Ferramosca, and E. F. Camacho, “Input-to-state stability: a unifying framework for robust model predictive control,” _Nonlinear_ _Model_ _Predictive_ _Control:_ _Towards_ _New_ _Challenging_ _Applications_, pp. 1–26, 2009. [19] 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_ _Journal_, vol. 19, no. 3, pp. 233–243, 2022.

섹션 본문 66문단 · 20,588자

(제목 없음)

2Furthermore, this letter specializes the approach to handle the particular case of Long Short-Term Memory Networks, and showcases its effectiveness on a four tanks process benchmark.

3Index Terms-Predictive control for nonlinear systems, constrained control, neural networks.

I. INTRODUCTION

4M ODEL Predictive Control (MPC) [1] is an optimization- based control method that relies on a model of the system under control to predict the future dynamics, and optimize the closed-loop performance.Moreover, the possibility to explicitly consider constraints in the control problem formulation makes MPC extremely suitable to face realworld problems.While input, state and output constraints are commonly considered, the control input variation is often just penalized in the cost, and is not included in the hard constraints.As a matter of fact, the satisfaction of incremental input constraints can be very important to guarantee the safety of the system.For example, in hydraulic networks, the speed of control valves is usually limited.Fast valve operations results in strong hydraulic transients, which could stress and eventually damage the structure of the network [2].Similarly, in mechanical systems, it is desirable to avoid large accelerations and jerks that could wear out the system [3].In the control of assisted an driverless vehicles, accelerations and jerks are limited to improve passengers comfort [4].In [5], incremental input constraints are introduced in the control of a mobile robot, in the consideration of the safety and comfort needs in real life.

5The use of nonlinear, black-box models in MPC gained increasing popularity in recent years, thanks to the availability of large amount of data and to the increase in the available computing power.In particular, the class of Recurrent Neural Network (RNN) models is particularly effective in learning nonlinear plant dynamics, and only requires input-output data for the training [6].In order to guarantee that the effect of the state initialization vanishes, and that a small input variation does not lead to a large state variation, it is useful to consider RNN models that satisfy an Incremental Inputto-State Stability (δISS) property [7].Sufficient conditions for δISS have been derived for the most common classes of RNN, such as for Long Short-Term Memory (LSTM) in [8], for Gated Recurrent Units (GRU) in [9] and other particular classes of RNN including Echo State Networks (ESN) and Neural Nonlinear Autoregressive eXogenous models (NNARX) in [10].For all these networks, a straightforward modification of the training loss can lead to a final model that satisfies the desired δISS condition.Several examples of MPC algorithms based on δISS RNN models are available in the literature: e.g., δISS LSTM models are used in MPC with input constraints for regulation in [8], and in MPC with input and output constraints for offset-free tracking in [11].In [12], δISS GRU models are employed in robust MPC with input and output constraints.In [13], a stabilizing MPC based on a sufficiently long prediction horizon is designed for general δISS systems, and is applied to GRU models.In [14], the practical aspects of the implementation of MPC using LSTM models are analyzed, and the computation time of different optimization tools is compared.In [15], a stabilizing MPC is designed for Recurrent Equilibrium Networks (REN), that are a particular class of RNN for which the δISS property can be achieved by means of a proper parametrization.

6This letter considers both aspects, and proposes a stabilizing MPC for a generic δISS RNN model with input and incremental input constraints.To take into account the incremental constraint on the input, the input variation is considered as control input, and an integrator is introduced to obtain the actual system input.Closed-loop stability is guaranteed by means of a suitable terminal cost and a terminal equality constraint only on the state of the integrator, that is the input of the system.Since state/output constraints are not considered, and in view of the stability property of the RNN model, no terminal constraint on the model state is required.This is a significant advance because it is not necessary to introduce conservative contracting constraints to cope with the observer estimation and modeling errors.In fact the equality constraint on the state of the integrator is not affected by uncertainties.The proposed algorithm is then applied to control a four tanks process benchmark [16] modeled with an LSTM network.In order to satisfy all the assumptions introduced in the general algorithm, the input constraint is tightened with respect to the set considered for stability.

A. Preliminaries

7Notation: Considering a vector v, v is its 2-norm, v ∞ is its infinity-norm, and v 2 A = v Av is its squared norm weighted with matrix A. λ max (M) and λ min (M) are the maximum and minimum eigenvalues of the symmetric matrix M. I n is the n×n identity matrix.int(X ) denotes the interior of the set X .Given two vectors v and w, v•w is their Hadamard product (element-wise product).σ (z) = 1 1+e −z is the sigmoid activation function.The activation functions σ (•) and tanh(•) are applied to vectors element by element.The standard definitions of functions of classes K, K ∞ and KL are considered (see [1]).

8Stability definitions: The notions of Input-to-State Stability (ISS) and δISS are now introduced for the generic discretetime dynamical system x k+1 = f (x k , u k ), with x ∈ R n x and u ∈ R m .The definitions are stated in the sets X ISS ⊆ R n x and U ISS ⊆ R m , with the set X ISS assumed to be positive invariant, i.e., u ∈ U ISS and x ∈ X ISS =⇒ f (x, u) ∈ X ISS .

9Definition 1 (ISS, [17]): The system x k+1 = f (x k , u k ) is ISS in the sets X ISS and U ISS if there exist functions β ∈ KL and γ ∈ K such that for any k ≥ 0, any initial condition x 0 ∈ X ISS and any input sequence u 0 , u 1 , . . .,

10Lemma 1 [17]: If the system x k+1 = f (x k , u k ) admits an ISS-Lyapunov function in the sets X ISS and U ISS , then it is ISS in X ISS and U ISS .

11Definition 3 (δISS, [7]): The system x k+1 = f (x k , u k ) is δISS in the sets X ISS and U ISS if there exist functions β ∈ KL and γ ∈ K ∞ such that for any k ≥ 0, any pair of initial conditions x a,0 ∈ X ISS and x b,0 ∈ X ISS , any pair of input sequences u a,0 , u a,1 , . . ., u a,k−1 and

II. PROBLEM FORMULATION

12The objective of this letter is to design an MPC algorithm for a nonlinear system, given its RNN model.In particular, the problem of regulation to a set point ȳ is considered, while respecting constraint on the input and on the maximum input variation, i.e.,

13where

14U is a bounded closed set and V includes the origin in its interior.In the following, the RNN model will be denoted in compact form as

15where u ∈ R m is the input of the model, y ∈ R p is the predicted output, x ∈ R n x is the RNN state, and the pedix k denotes the time dependence.In order to ensure that the effect of the initialization asymptotically vanishes, and that bounded inputs produce bounded outputs, δISS RNN models are considered.

16Assumption 1: The model ( 2) is δISS in the sets X ISS and U ISS ⊇ U , and there exists an incremental Lyapunov function

17for some a, b, c > 0.Moreover, V f (x a , x b ) is locally Lipschitz continuous in any bounded set, i.e., given any bounded set X ⊆ X ISS , if x a , x a , x b ∈ X then there exist a finite constant LV such that

18δISS conditions and incremental Lyapunov functions that satisfy (3) can be found for the main RNN architectures (LSTM [8], GRU [9], [12], REN [15], and other particular classes of RNN [10]).Moreover, the property of local Lipschitzianity is satisfied by quadratic functions, that are the most common types of Lyapunov functions used to study RNN stability.

III. CONTROL ALGORITHM

19In Fig. 1 the scheme of the proposed control algorithm is reported.It is composed by three main blocks.The first one is the observer, that is needed in order to properly initialize the predictions in the MPC.The observer is necessary because in general the state x of the RNN model is not measurable and has no physical meaning.The second block is the MPC.In order to take into account the constraint on the input variation, the MPC considers u as optimization variable.The value of the control variable u is obtained from u by means of a discrete time integrator.

A. Observer

20In view of the δISS property of the model, it is always possible to design a converging observer.The most simple one is the open-loop observer.

21Assumption 2: There exists an observer for the RNN model that can be written in the form

22where

23for some L max ≥ 0. The observer satisfies the following properties:

241) there exist a finite k ≥ 0 and a set X such that for any x0 ∈ X , and for any input sequence in U , xk ∈ X ISS ∀k ≥ k; 2) the observer estimation error converges to 0, i.e., for any input sequence in U , x k − xk → 0 for k → ∞.Observers respecting Assumption 2 have been designed for the main RNN architectures (LSTM [8], GRU [13], REN [15] and other particular classes of RNN [10]).

B. MPC Design

25The MPC solves at every sample time instant a Finite Horizon Optimal Control Problem (FHOCP), where the deviation from the state and input reference values x and ū are penalized.The references values are computed from the RNN model (2) as the equilibrium state and input corresponding to the output ȳ.It is assumed that ū ∈ U and x ∈ X ISS .The FHOCP is given by min

26In the cost function (6a), the matrices

27are design choices.In order to guarantee closed-loop stability, the terminal equality constraint (6c) is introduced on the last element of the input sequence, while no terminal constraints are introduced on the system state.Denote by u * 0|k , . . ., u * N−1|k the optimal solution of the FHOCP.According to the Receding Horizon principle, the MPC control law is

28Then, the system input is

C. Stability Analysis

29In this subsection the stability properties of the closed-loop system are analyzed, under the assumption that the system behaves according to its RNN model.

30Firstly, note that the feasibility of the FHOCP only depends on the value of u k−1 and not on the initial state, since there are no state constraints.Hence, define

31The size of U MPC depends on the incremental constraint set V and of the prediction horizon N. In presence of a small set V it may be necessary to enlarge N to obtain a sufficiently large feasibility set U MPC (ū).

32Theorem 1: Let Assumptions 1-2 hold.Then for the closed-loop system composed by the RNN model (2), the observer (4) and the MPC (9), the FHOCP is recursively feasible and the closed-loop system converges to x = x, u = ū, x = x with domain of attraction x ∈ X ISS , u ∈ U MPC (ū), x ∈ X .

33Proof: Denote the optimal input sequence and state trajectory computed by the MPC at time step k respectively by u * i−1|k and x * i|k for i = 0, . . ., N., where x * 0|k = xk and u * −1|k = u k−1 .To prove recursive feasibility, assuming that the FHOCP is feasible at time step k, it is sufficient to consider as candidate solution at time step k + 1 the sequence ũ0|k+1 , . . ., ũN−1|k+1 , defined by ũi|k+1 = u * i+1|k for i = 1, . . ., N − 2 and ũN−1|k+1 = 0, that trivially satisfies constraints (6c)-(6f)-(6g).

34In view of Assumption 2, there exists a finite value k ≥ 0 such that xk ∈ X ISS for all k ≥ k.Moreover, for Assumption 1, the set X ISS is positive invariant for the model state x.Hence, along the proof of convergence, it is assumed that x ∈ X ISS and x ∈ X ISS , which is true for all k ≥ k.In addition, in view of Assumption 2, x k − xk is bounded and converges to zero.Hence, the observer innovation δx is considered as a disturbance term, and it is shown that the closed-loop system is ISS with respect to it.Then, convergence follows in view of (5) and of the convergence of the observer estimation error.

35In order to prove ISS, consider the optimal cost of the MPC as candidate ISS-Lyapunov function

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

37where x = x * 0|k and u = u * −1|k .V is also a function of u, that is the state of the discrete time integrator at time step k.

38Firstly, derive a lower bound for V(x, u)

39To derive an upper bound for V(x, u), consider as candidate solution at time k the sequence ũ0|k , . . ., ũN−1|k , where ũ0|k = ū − u and ũi|k = 0 for i = 1, . . ., N − 1.This solution is feasible for u in a neighborhood of ū.Denote by xi|k , i = 0, . . ., N, the associate state trajectory.One has that

40In view of the δISS property of the model and of (3a), there exists b x > 0 such that, for u in a neighborhood of ū,

41Given this local upper bound, the existence of an upper bound for any u ∈ U MPC (ū) follows from [18,Lemma 4].

42To prove the decreasing property of V(x, u),

43x Consider now the terms related to the terminal cost.First, note that xN|k+1 , x * N+1|k and x are bounded in view of the boundedness of U and of the δISS property of the system.Then, in view of Assumption 1, there exists a Lipschitz constant LV such that

44Then

45Combining the computation, one has that

46In view of the boundedness of U and of the δISS property of the system, the values of x * i|k are bounded for i = 1, . . ., N.Moreover, ε k+1 = δx and, for the δISS property of the model, ε k+i+1 ≤ β( δx , i) for a KL-function β.Then there exist a K-function γ (•) such that

47In view of ( 10)-( 11)-( 12), the closed-loop system is ISS with respect to the disturbance δx.Convergence follows from the fact that δx → 0 for k → ∞.

IV. SIMULATION EXAMPLE WITH LSTM MODELS

48This section discusses how the control algorithm proposed in Section III for the generic RNN model can be applied to the particular case of LSTM networks, considering as system under control a simulated four tank benchmark process [16].

A. Algorithm for the LSTM Model

49LSTM networks are an architecture in the family of RNN, known to achieve remarkable performances in predictions tasks, in view of their ability to learn both long and short term dependencies between data.The equations of the LSTM network are the following

50where c, h ∈ R n are two vector states, u ∈ R m is the input and y ∈ R p is the output of the network.The overall state of the LSTM model is

51the trainable weights of the network.In [8], a condition on the weights of the LSTM model that guarantees δISS is derived.Note that the δISS property is guaranteed in the sets X ISS = C × H and U ISS , where

52and c is a function of the LSTM weigths.Under the δISS condition, the function The following observer was proposed in [8] for the LSTM model

53The state of the observer is x = [ĉ ĥ ] ∈ R 2n , and The observer structure satisfies (4)- (5).In particular, it is possible to prove (5) by following the proof of Theorem 2 of [11] with d = d = 0.However, it is not guaranteed that X ISS is an invariant set for the observer state x, as required by Assumption 2. To circumvent this issue, a tightened input constraint set U such that U ⊂ int(U ISS ) can be considered in the MPC formulation.In fact, if U ⊂ int(U ISS ), then there exist a positive invariant set X ⊂ int(X ISS ) for the LSTM state.The observer convergence implies that for any ε > 0 there exists a finite k such that xk − x k ≤ ε for all k ≥ k.Hence, there exists k such that xk is sufficiently close to x k to guarantee that xk ∈ X ISS , in view of the fact that x k ∈ X .

54In conclusion, in view of the existence of an incremental Lyapunov (14) for the LSTM model that satisfies Assumption 1, and of an observer that satisfies Assumption 2, the proposed control algorithm can be applied using an LSTM model, provided that the input constraint set is such that U ⊂ int(U ISS ).

B. Simulation

55The considered four tanks process is described by the following differential equations

56where the states h 1 , h 2 , h 3 , h 4 are the water levels in the four tanks, and the inputs q a and q b represent the inlet flows in the two valves.The numerical values of the system parameters can be found in [16].The objective is to control the water level in the two bottom tanks, h 1 and h 2 , by acting on q a and q b .The system is subject to the operational and safety constraints q a ∈ [0.0, 9.05] × 10 −4 m 3 /s, q b ∈ [0.0, 11.1] × 10 −4 m 3 /s and q a , q b ∈ [ − 1.0, 1.0] × 10 −4 m 3 /s, where q a and q b are the maximum input variations between subsequent sampling instants.Note that the need for incremental input constraint is motivated by the fact that the system is actuated by pumps, whose acceleration is related to wear and electrical consumption [19].

57In order to derive an LSTM model of the plant, a sampling time of T s = 25s is considered.The model is trained using an input-output dataset composed of 20000 time steps, that is split in a training set of 15000 time steps, a validation set of 2500 time steps, and a test set of 2500 time steps.The training set is then divided into subsequences of 1000 time steps each, and a training of 1000 epochs is performed using a learning rate of 0.001 and Adam optimizer.The loss function is the sum of the mean squared error and of a regularization term used to enforce the δISS property [6].The model inputs and outputs are normalized within the range [-1, 1], using the maximum and minimum values of the input constraints to normalize the inputs, and the maximum and minimum values in the training dataset to normalize the outputs.The FIT index [12] is considered to assess the predictive performance of the model on test data.The resulting network has n = 10 neurons, has a FIT on the test dataset of 93.4% for h 1 and of 87.9% for h 2 , and fulfills the δISS condition considering u max = 1.05, that is larger that the range of feasible inputs in the normalized variables.

58For the design of the control algorithm, the observer is tuned according to the optimization proposed in [8], whereas the cost matrices for the MPC are set to Q = I 2n , R = I m , R = I m and s is selected according to (7) with the equality.The considered prediction horizon is N = 10.The optimization problem is solved numerically using CasADi.

59The output, input and input variation of the closed-loop trajectories for the four tanks process are reported respectively in Fig. 2, 3 and 4. It can be seen that the control system is capable of correctly managing the plant and respecting the constraints on the input and on the input variation.Moreover, Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.the simulation shows that the proposed algorithm is able to handle also step-wise variations of the reference, and not only constant references as proven in Theorem 1.In fact the feasibility of the FHOCP only depends on the input, so it is maintained provided that the new reference ū is such that the current value of the input is in U MPC (ū).

V. CONCLUSION

60In this letter an MPC algorithm based on a δISS RNN model is proposed for systems with hard constraints on the input and on the input incremental variation.Closed-loop convergence is guaranteed by introducing a general formulation for the terminal cost, while a terminal equality constraint on the optimal input sequence takes into account the presence of the integrator.Remarkably, the proposed approach can be easily applied to different δISS RNN architectures.In the application to LSTM models it is shown how it is possible to manage the case where the δISS property is valid only in an invariant set.

Fig. 1 .

61Fig. 1.Block diagram of the control scheme.

62The term δx due to the observer presence is regarded as an external disturbance.Consider now the same candidate solution introduced to prove recursive feasibility.Denote by ũ−1|k+1 , . . ., ũN−1|k+1 the associate input sequence, defined by ũ−1|k+1 = u + and ũi|k+1 = ũi−1|k+1 + ũi|k+1 for i = 0, . . ., N − 1, and by x0|k+1 , . . ., xN|k+1 the associate state trajectory, defined by x0|k+1 = x + and xi+1|k+1 = f (x i|k+1 , ũi|k+1 ) for i = 0, . . ., N − 1. Define x * N+1|k = f (x * N|k , ū), and denote for i = 1, . . ., N,

63) is an incremental Lyapunov function for the LSTM model, where P ∈ R 2×2 is the solution of a suitable Lyapunov equation,1 x a = [c a h a ] andx b = [c b h b ] .Note that condition (3) is fulfilled with a = λ min (P), b = λ max (P) and c = 1.Therefore, V f (x a , x b ) can be used to define the terminal cost for the MPC.

Fig. 2 .

64Fig. 2. Closed-loop trajectories: output (orange solid line) and reference (blue dashed line).

Fig. 3 .

65Fig. 3. Closed-loop trajectories: input (blue solid line) and constraints (black dashed lines).

Fig. 4 .

66Fig. 4. Closed-loop trajectories: variation of the input (blue solid line) and constraints (black dashed lines).

This letter proposes a stabilizing Model Predictive Control algorithm, specifically designed to handle systems learned by Incrementally Input-to-State Stable Recurrent Neural Networks, in presence of input and incremental input constraints. Closed-loop stability is proven by relying on the Incremental Input-to-State Stability property of the model, and on a terminal equal- ity constraint involving the control sequence only. The Incremental Input-to-State Stability is also used to derive a suitable formulation of the Model Predictive Control terminal cost. The proposed control algorithm can be read- ily applied to a wide range of Recurrent Neural Networks, including Gated Recurrent Units, Echo State Networks, and Neural Nonlinear Autoregressive eXogenous models.

67n×p are the observer gains.Under a proper selection of L f , L i and L o , the LSTM observer (15) provides a converging state estimation, i.e., xk − x k → 0 for k → ∞, for any x0 ∈ R 2n .

참고문헌 18건

  1. A comparative analysis of distributed MPC techniques applied to the HD-MPC four-tank benchmark Journal of Process Control · Elsevier BV · 2011 10.1016/j.jprocont.2011.03.003
  2. ISS-Lyapunov Functions for Discontinuous Discrete-Time Systems IEEE Transactions on Automatic Control · Institute of Electrical and Electronics Engineers · 2014 10.1109/tac.2014.2321667
  3. Input-to-State Stability: A Unifying Framework for Robust Model Predictive Control Lecture notes in control and information sciences · Springer Science+Business Media · 2009 10.1007/978-3-642-01094-1_1
  4. Incremental stability properties for discrete-time systems 2016 10.1109/cdc.2016.7798314
  5. Robust Tracking Model Predictive Control With Quadratic Robustness Constraint for Mobile Robots With Incremental Input Constraints IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2020 10.1109/tie.2020.3026289
  6. On the stability properties of Gated Recurrent Units neural networks Systems & Control Letters · Elsevier BV · 2021 10.1016/j.sysconle.2021.105049
  7. Model predictive control for comfort optimization in assisted and driverless vehicles Advances in Mechanical Engineering · SAGE Publishing · 2014 10.1177/1687814020974532
  8. Learning model predictive control with long short‐term memory networks International Journal of Robust and Nonlinear Control · Wiley · 2021 10.1002/rnc.5519
  9. 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
  10. On Recurrent Neural Networks for learning-based control: Recent results and ideas for future developments Journal of Process Control · Elsevier BV · 2022 10.1016/j.jprocont.2022.04.011
  11. Control of Electrical Drives Power systems · Springer Nature · 2001 10.1007/978-3-642-56649-3
  12. Model Predictive Control when utilizing LSTM as dynamic models Engineering Applications of Artificial Intelligence · Elsevier BV · 2023 10.1016/j.engappai.2023.106226
  13. 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
  14. Nonlinear MPC design for incrementally ISS systems with application to GRU networks Automatica · Elsevier BV · 2023 10.1016/j.automatica.2023.111381
  15. An Incremental Input-to-State Stability Condition for a Class of Recurrent Neural Networks IEEE Transactions on Automatic Control · Institute of Electrical and Electronics Engineers · 2023 10.1109/tac.2023.3327937
  16. Robust constrained nonlinear Model Predictive Control with Gated Recurrent Unit model Automatica · Elsevier BV · 2023 10.1016/j.automatica.2023.111472
  17. Robust offset-free constrained Model Predictive Control with Long Short-Term Memory Networks IEEE Transactions on Automatic Control · Institute of Electrical and Electronics Engineers · 2024 10.1109/tac.2024.3398494
  18. Recurrent Equilibrium Network models for Nonlinear Model Predictive Control IFAC-PapersOnLine · Elsevier BV · 2024 10.1016/j.ifacol.2024.09.035