Recurrent Neural Network-Based MPC for Systems With Input and Incremental Input Constraints
수소연료전지 · (6) PEM(고분자전해질막)
기본 정보
- 저자
- 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 활용 포인트
- –
- 평가 입력
- –
초록
본문 42,970자
본문 펼치기
섹션 본문 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건
- 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
- 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
- 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
- Incremental stability properties for discrete-time systems 2016 10.1109/cdc.2016.7798314
- 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
- On the stability properties of Gated Recurrent Units neural networks Systems & Control Letters · Elsevier BV · 2021 10.1016/j.sysconle.2021.105049
- Model predictive control for comfort optimization in assisted and driverless vehicles Advances in Mechanical Engineering · SAGE Publishing · 2014 10.1177/1687814020974532
- Learning model predictive control with long short‐term memory networks International Journal of Robust and Nonlinear Control · Wiley · 2021 10.1002/rnc.5519
- 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
- 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
- Control of Electrical Drives Power systems · Springer Nature · 2001 10.1007/978-3-642-56649-3
- Model Predictive Control when utilizing LSTM as dynamic models Engineering Applications of Artificial Intelligence · Elsevier BV · 2023 10.1016/j.engappai.2023.106226
- 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
- Nonlinear MPC design for incrementally ISS systems with application to GRU networks Automatica · Elsevier BV · 2023 10.1016/j.automatica.2023.111381
- 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
- Robust constrained nonlinear Model Predictive Control with Gated Recurrent Unit model Automatica · Elsevier BV · 2023 10.1016/j.automatica.2023.111472
- 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
- Recurrent Equilibrium Network models for Nonlinear Model Predictive Control IFAC-PapersOnLine · Elsevier BV · 2024 10.1016/j.ifacol.2024.09.035