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

Koopman operator-based multi-model for predictive control

간접 관련 화학·수지 · (21) 에폭시수지 (19) 석유수지(20) 페놀수지(23) 컴파운드

기본 정보

저자
  1. Maciej Ławryńczuk — Faculty of Electronics and Information Technology, Institute of Control and Computation Engineering, Warsaw University of Technology, ul. Nowowiejska 15/19, 00-665, Warsaw, Poland
DOI
10.1007/s11071-024-09615-7
저널
Nonlinear Dynamics
발행년도
2024
발행기관
Springer Science+Business Media
피인용수
7
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1007/s11071-024-09615-7
토픽
Fuel Cells and Related Materials
OpenAlex ID
W4395694666

평가 내용

관련도
간접 관련
사업분야
화학·수지 · (21) 에폭시수지
부 분야
(19) 석유수지, (20) 페놀수지, (23) 컴파운드
R&D 측면
공정·제조
확신도
0.80
근거 용어
polymerisation reactor process, Model Predictive Control, Koopman operator, nonlinear dynamical system, process control
판단 근거
이 논문은 비선형 중합 반응기(polymerisation reactor)의 공정 제어를 위한 모델 예측 제어(MPC) 알고리즘을 다루고 있습니다. 중합 공정은 코오롱인더스트리의 에폭시, 페놀, 석유수지 등 화학·수지 사업의 핵심 제조 공정 기술과 밀접한 관련이 있습니다.
R&D 활용 포인트
수지(Resin) 및 고분자 합성 공정의 정밀 제어 및 최적화를 통해 제품의 분자량(NAMW) 및 물성 균일성을 확보하는 데 활용 가능합니다.
평가 입력
섹션 본문 47,055자 중 30,032자 발췌

초록

Abstract This work describes a new model structure developed for prediction in Model Predictive Control (MPC). The model has a multi-model structure in which independent sub-models are employed for the consecutive sampling instants. The model lifts process states into a high-dimensional space in which a linear process description is applied. Depending on the influence of the manipulated variables on lifted states, three general model versions are described and model identification algorithms are derived. As a result of the multi-model structure, model parameters are found analytically from computationally uncomplicated least squares problems using the Extended Dynamic Mode Decomposition algorithm, but the evolution of states over the horizon used in MPC is taken into account. Next, the MPC algorithm for the described model is derived. It requires solving online simple quadratic optimisation tasks. The effectiveness of three considered model configurations and three versions of the lifting functions is examined for a nonlinear DC motor benchmark. Their impact on model accuracy, complexity, possible control accuracy and MPC calculation time is thoroughly discussed. Finally, a more complex polymerisation reactor process is considered to showcase the practical applicability of the presented approach to modelling and MPC.

본문 49,942자

본문 펼치기
This work describes a new model structure developed for prediction in Model Predictive Control (MPC).The model has a multi-model structure in which independent sub-models are employed for the consecutive sampling instants.The model lifts process states into a high-dimensional space in which a linear process description is applied.Depending on the influence of the manipulated variables on lifted states, three general model versions are described and model identification algorithms are derived.As a result of the multi-model structure, model parameters are found analytically from computationally uncomplicated least squares problems using the Extended Dynamic Mode Decomposition algorithm, but the evolution of states over the horizon used in MPC is taken into account.Next, the MPC algorithm for the described model is derived.It requires solving online simple quadratic optimisation tasks.The effectiveness of three considered model configurations and three versions of the lifting functions is examined for a nonlinear DC motor benchmark.Their impact on model accuracy, complexity, possible control accuracy and MPC calculation time is thoroughly discussed.Finally, a more complex polymerisation reactor process is considered to showcase the practical applicability of the presented approach to modelling and MPC. Introduction Model Predictive Control (MPC) algorithms repeatedly use online a dynamical model of the controlled process to make predictions of its future trajectory and optimise the sequence of manipulated variables [1,2].They give good control quality and consider necessary constraints.The historical background of MPC and a comprehensive overview of recent theoretical developments are reviewed in [3].Typically, MPC methods have been used for years in industrial process control; example processes are chemical reactors [4] and distillation columns [5].Nowadays, MPC algorithms are used in embedded systems, e.g., in autonomous vehicles [6], aerial vehicles [7], quadrotors [8] and autonomous underwater vehicles [9].Other applications include visual robot servoing systems [10], spacecrafts [11] as well as missile guidance and control systems [12].Machine learning and neural networks are increasingly popular in MPC [13]. The problem Using a linear model for prediction in MPC leads to easily solvable quadratic optimisation tasks with only one global minimum [1,2].Unfortunately, nonlinear models lead to nonlinear optimisation problems that must be solved online.Such problems are incomparably more difficult than quadratic tasks.It is not only because the calculation time may be longer but because the classical gradient-based optimisation algorithms may find shallow local solutions.A few methods are possible to simplify nonlinear MPC.A predominant practical solution is the utilisation of MPC schemes with the online linearisation, which lead to quadratic optimisation tasks [14,15].An inverse static model may compensate for static process nonlinearity and lead to quadratic optimisation tasks [15,16].Neural networks may approximate the explicit MPC control law or its coefficients [17][18][19].Convex models [20] or some convexification techniques [21] lead to convex MPC optimisation tasks.Finally, some methods for selecting the initial solution for the nonlinear solver are possible [22,23]. The problem An interesting idea is to represent a nonlinear dynamical system using the Koopman operator.In this approach, the true states are replaced by the so-called lifted states and a nonlinear process may be described by a linear model but in the infinite-dimensional space [24,25].One of the methods to obtain a finite-dimensional approximation of the Koopman operator for dynamical systems with inputs is the Extended Dynamic Mode Decomposition (EDMD) algorithm [26]; possible alternatives are reviewed in [27].Of note, the EDMD approach is purely data-driven; no fundamental knowledge of the process is necessary and computationally simple because the linear model in the lifted space is found analytically from simple least squares tasks.Because the choice of lifting functions is an issue, neural network-based approximations of the Koopman operator may be used [28,29].However, in such cases, training neural networks requires nonlinear optimisation, i.e., we cannot use the least squares problems.When an MPC algorithm uses Koopman operator-based models, we obtain simple to solve quadratic MPC optimisation tasks [30]. The problem Let us highlight two essential limitations of the classical Koopman operator-based models determined using the classical EDMD algorithm.Firstly, the possibility of finding linear representations of nonlinear processes from least squares tasks is an advantage, but, on the other hand, such models are identified in the one-step-ahead configuration.Propagation of errors is inevitable when the MPC algorithm uses such models recurrently.Shi and Meng recently proposed a new Koopman operator-based model structure to solve the problem [29].In their approach, the identification algorithm minimises model errors when the model is used recurrently, i.e., in the multiple-step-ahead mode over the horizon used in MPC.However, using least squares tasks is no longer possible and nonlinear optimisation is necessary for model identification.The second limitation of the classical Koopman operator-based models is that the input vector (i.e., the manipulated variables) is not lifted, which is likely to reduce the model's ability to approximate properties of nonlinear processes.The state-dependent influence of the manipulated variables on the lifted states is very infrequently considered [29]. Contribution This work has three objectives: it describes a new model structure developed for prediction in MPC, derives model identification algorithms and the resulting MPC algorithm.The discussed model aims to eliminate the abovementioned limitations of the classical models generated by the EDMD algorithm.Furthermore, the identification procedure of the model presented in this work is significantly computationally simpler compared to the model developed by Shi and Meng [29].The model identification procedure uses simple least squares tasks solved analytically, but the evolution of states over a time horizon is taken into account.The model has a multi-model structure in which independent sub-models are used for the consecutive sampling instants to make it possible.Each submodel is found independently in the one-step-ahead mode, which enables the formulation of easy-to-solve least squares problems.Depending on the influence of manipulated variables on the lifted states, three general model versions are described and model identification algorithms are derived.Namely, we consider a fixed linear influence and two time-varying approaches: one linear and one nonlinear, based on monomials.Next, the MPC algorithm for the described model is detailed.Although the model is nonlinear, MPC requires solving online simple quadratic optimisation tasks.Due to its multi-model structure, the model is not used recurrently in MPC. Contribution This work is organised as follows.Section 2 describes three model versions while Sect. 3 derives least squares identification tasks.Section 4 derives the MPC quadratic optimisation task.Section 5 thoroughly inves-tigates model selection issues and the efficiency of different model configurations utilised in MPC for a benchmark dynamical system.Next, a more complex polymerisation reactor process is considered to showcase the practical applicability of the presented approach to modelling and MPC.Finally, Sect.6 summarises the whole work. Preliminaries We consider a discrete-time nonlinear controlled dynamical system Preliminaries where n x and n u stand for the number of states and inputs, respectively, i.e., Preliminaries , and f : R n x +n u → R n x is a nonlinear function.In the Koopman operator approach, we find a linear counterpart of the nonlinear system (1) in the lifted space [30,31] Preliminaries where Preliminaries The lifted state vector is Preliminaries where ψ n : R n x → R are lifting functions, n = 1, . . ., n lift .The manipulated variables, u, are not typically lifted in the state Eq. ( 2).It allows the imposition of linear constraints on manipulated variables easily.We express the original state as a linear function of the lifted state Preliminaries Similarly, it allows using linear constraints on states.The EDMD algorithm [26] finds the matrices A, B and C from simple least squares problems assuming n lift is finite.The EDMD algorithm is entirely data-driven, so the nonlinear system representation (1) is not used.Instead, all calculations are based on measurements.We can use the discussed approach when the function f in Eq. ( 1) is unknown. Preliminaries Exact lifting functions may be found analytically for some simple systems [27].Since the Koopman operator is infinite-dimensional [24,25], we use a finite number of lifting functions to obtain a computationally possible solution.It means the linear model in the lifted space (Eq.( 2)) attempts to approximate the true nonlinear system (Eq.( 1)). Multi-models using Koopman operator This work combines the Koopman operator method with the multi-model approach in which independent sub-models calculate at the current sampling instant, k, model states for the consecutive sampling instants over the prediction horizon N , i.e., the vectors x(k + 1|k), . . ., x(k + N |k).Next, the MPC algorithm uses these model states for prediction.Previous research concentrated on input-output multi-models [14,20].A significant advantage of the multi-model approach is that the consecutive model outputs, and hence the predictions, are not found recurrently, i.e., they do not depend on model outputs or predictions found for the previous sampling instants.It is essential for two reasons.Firstly, identification is possible in the easy one-step-ahead non-recurrent configuration.It is much computationally easier than recurrent model identification.Secondly, when the MPC algorithm uses the multi-model for prediction, model errors are not propagated as necessary in classical recurrent models.Multimodels have two disadvantages: they usually have more parameters than the classical models and cannot be used for long horizons.The following part of this section describes three model versions, with the different influence of the manipulated variables on the lifted states. Model 1: Koopman operator-based multi-model with constant matrices B p,i Combining the Koopman operator-based models defined by Eqs. ( 2) and ( 4) with the multi-model approach, we define the sub-model for the sampling Let us stress that we do not intend to find one model that aims to approximate the nonlinear system (1) by the model given by Eqs. ( 2) and (4) as done in the classical Koopman-operator approach.Instead, we intentionally use a set of sub-models.Each sub-model finds process state variables for only one sampling time and is not used recurrently.As a result, least squares can be used for identification, as shown in Sect.3. Otherwise, con-sidering a state trajectory over a time horizon and only one model will lead to nonlinear optimisation-based model identification [29]. Model 1: Koopman operator-based multi-model with constant matrices B p,i Depending on lifting functions, we consider the following variants of model 1: Model 1: Koopman operator-based multi-model with constant matrices B p,i 1. Model 1a: monomials of the degree n A pol are used as lifting functions Model 1: Koopman operator-based multi-model with constant matrices B p,i for i = 1, . . ., n x and j = 1, . . ., n A pol .For example, for n x = 2 and n A pol = 3, we have Model 1: Koopman operator-based multi-model with constant matrices B p,i The number of lifting functions is n lift = n x n A pol .2. Model 1b: polynomials of the degree n A pol (with mixed terms) are used as lifting functions Model 1: Koopman operator-based multi-model with constant matrices B p,i where i 1 = 0, . . ., n x , …, i n x = 0, . . ., n x and n = 1, . . ., n lift .Because polynomials of high degree lead to numerical problems, we limit our consideration to polynomials that satisfy the condition n x n=1 i n ≤ n A pol which means that the maximal degree of each term is not greater than n A pol .For example, for n x = 2 and n A pol = 3, we have Model 1: Koopman operator-based multi-model with constant matrices B p,i The overall number of lifting functions is Model 1: Koopman operator-based multi-model with constant matrices B p,i 3. Model 1c: n A RBF Radial Basis Functions (RBFs) are used as lifting functions.In this work, we use n A RBF Gaussian basis functions (12) where i = 1, . . ., n A RBF .The spread is denoted by σ and the vectors c A i , of length n x , define centres.In the simplest approach, centres may be chosen randomly [30], but they may also be located at grid points of states or a clustering algorithm may be employed, e.g., the k-means approach.We also use original states as additional lifting functions [30], i.e., Model 2: Koopman operator-based multi-model with time-varying matrices B p,i (k) using linear functions Figure 2 shows the structure of models 2 and 3. Similarly to model 1 shown in Fig. 1, the matrices A p and C p for p = 1, . . ., N are constant, but now the matrices B p,i (k) for p = 1, . . ., N and i = 0, . . ., p − 1 are time-varying and defined by the functions φ p,i Model 2: Koopman operator-based multi-model with time-varying matrices B p,i (k) using linear functions The vector Model 2: Koopman operator-based multi-model with time-varying matrices B p,i (k) using linear functions defines the current operating point of the process.It is of length n ω = n x + n u and uses the most recent process information available at the current sampling instant, k.For this purpose, we use the current state vector and manipulated variables sent to the process at the previous sampling instant.At the current sampling instant, the vector u(k) is not available since it is computed by a control algorithm which means that the vector u(k − 1) gives the most recent measurements of manipulated variables.Other choices of the vector ω(k) are: Model 2: Koopman operator-based multi-model with time-varying matrices B p,i (k) using linear functions . Using Eqs. ( 5)-( 6), the following equations define models 2 and 3 Model 2: Koopman operator-based multi-model with time-varying matrices B p,i (k) using linear functions for p = 1, . . ., N .The matrices A p are not timevarying, which makes an easy determination of model stability.The state Eq. ( 15) is affine, i.e., linear in future values of manipulated variables, which means that constraints imposed on manipulated variables are linear.Depending on the functions φ p,i : R n ω → R n lift that describe the dependence of the time-varying matrices B p,i (k) on the current operating point, ω(k), (Eq.( 13)), we can distinguish a few model configurations.In this work, we name them models 2 and 3.In model 2, we assume the linear dependence Model 2: Koopman operator-based multi-model with time-varying matrices B p,i (k) using linear functions where matrices w 0 p,i are of dimensionality n lift × n u , matrices w 1 p,i are of dimensionality n lift × n ω and ω n u (k) = 1 1×n u ⊗ ω(k) are matrices of dimensionality n ω × n u ; the symbol ⊗ stands for the Kronecker tensor product.The symbol 1 m×n stands for a matrix all entries of which equal 1. Model 2: Koopman operator-based multi-model with time-varying matrices B p,i (k) using linear functions Depending on the lifting functions, we distinguish model 2a (it uses monomials of the degree n A pol as in Eq. ( 7)), model 2b (it uses polynomials of the degree Fig. 2 The structure of models 2 and 3 n A pol as in Eq. ( 9)) and model 2c (it uses n A RBF RBFs as in Eq. ( 12)). Model 3: Koopman operator-based multi-model with time-varying matrices B p,i (k) using monomials In model 3, time-varying matrices B p,i (k) for p = 1, . . ., N and i = 0, . . ., p − 1 depend on the current operating point defined by the vector ω(k) as specified by Eq. ( 13).We use the general Eqs. ( 15)-( 16) to compute the lifted state vector for the sampling instant k + p and the true state vector, respectively.The model matrices are monomial functions of the operating point Model 3: Koopman operator-based multi-model with time-varying matrices B p,i (k) using monomials The monomial degree is denoted by n B pol .Matrices w 0 p,i and w j p,i are of dimensionality n lift × n u and n lift × n ω , respectively.The symbol • stands for the Hadamard product.Depending on lifting functions, we distinguish models 3a, 3b and 3c (the lifting functions are specified by Eqs. ( 7), ( 9) and ( 12), respectively). Identification of Koopman operator-based multi-models We calculate all parameters from least squares problems whose solutions can be easily found analytically without numerical optimisation.Moreover, because model errors are quadratic functions of parameters, the calculated parameters are globally optimal, which means that they result in a minimal model error.We find model parameters using the EDMD algorithm [26], considering the specific model structures.For identification, we need a set of samples of input and state process variables (measured or observed).Multi-model identification is performed independently for the consecutive sampling instants k + p, where p = 1, . . ., N , i.e., we find parameters of consecutive sub-models separately.In all model configurations, matrices C p are calculated in the same way as described in Sect.3.1.Identification of model state equations depends on the model structure.Sections 3.2, 3.3 and 3.4 describe identification procedures of state equations for models 1, 2 and 3, respectively. Calculation of matrices C p We define the model error when calculating the state vector, x(k + p|k), at the current sampling instant, k.The error takes into account the sum of squared differences between the data samples, x i (k + p), and model outputs, x mod i (k + p|k), for all n x state variables and all data samples Calculation of matrices C p where the indices k min and k max define the range of considered samples.We can rewrite the error compactly Calculation of matrices C p where Calculation of matrices C p For all model variants, the relations between the original state vector, x(k + p|k), and the lifted one, z(k + p|k), are the same, i.e., given by Eqs. ( 6) and ( 16); the choice of lifting functions does not impact this issue.Hence, we always calculate matrices C p in the same way.We can rewrite Eqs. ( 6) or ( 16) compactly for all data samples Calculation of matrices C p where the matrix Calculation of matrices C p is of dimensionality n nlift × n s .The model matrices C p are optimised in the one-step-ahead prediction mode.From Eqs. ( 20) and ( 23), the unconstrained optimisation problem is min Calculation of matrices C p Because process states are linear functions of lifted states (Eq.( 23)), the optimisation problem ( 25) is of a least squares type.Its solution is determined analytically Calculation of matrices C p where the symbol (.) + stands for the Moore-Penrose matrix pseudo-inverse.We compute matrices C p for all sub-models, i.e., for p = 1, . . ., N . Identification of Model 1 Let us rewrite the state Eq. ( 5) for all data samples in the following compact matrix form Identification of Model 1 where the matrix Identification of Model 1 is of dimensionality n nlift ×(n nlift + pn u ) and the matrix Identification of Model 1 is of dimensionality (n nlift + pn u ) × n s .The matrix Identification of Model 1 is of dimensionality n nlift × n s and the vectors Identification of Model 1 are of dimensionality n u × n s , p = 1, . . ., N .We optimise the model matrix AB p in the one-step-ahead prediction mode.We define the model error for the lifted state vector Identification of Model 1 123 Identification of Model 1 where the matrix Z p is given by Eq. ( 24) and the matrix Identification of Model 1 is of dimensionality n nlift ×n s .From Eqs. ( 27) and ( 32), we get the unconstrained optimisation problem min Identification of Model 1 Because the future lifted state vectors are linear functions of the current lifted states and future manipulated variables (Eq.( 27)), the optimisation problem ( 34) is of a least squares type.It is solved analytically Identification of Model 1 Next, the model matrices A p and B p,0 , . . ., B p, p−1 are formed from the calculated matrix AB p Identification of Model 1 and Identification of Model 1 for i = 0, . . ., p − 1.The symbol I m×m denotes an identity matrix, while the symbol 0 m×n stands for a matrix all entries of which equal 0. We compute matrices A p and B p,i for all sub-models, i.e., for p = 1, . . ., N .Some models may have low training data errors and much larger validation data errors.We use regularisation to increase model generalisation.The optimisation task (34) becomes min Identification of Model 1 where α > 0 is a regularisation coefficient.Since the optimisation problem ( 38) is of a least squares type, its analytical solution is Identification of Model 1 where n par p stands for the number of model parameters.In this work, it is recommended not to use regularisation for the entries of the state matrices A p , but apply this technique only for the entries of matrices B p,i .Hence, we find the optimal model parameters from Identification of Model 1 where the matrix Identification of Model 2 For model 2, we need to find constant matrices A p and the matrices w 0 p,i and w 1 p,i that define the time-varying matrices B p,i (k) as specified by Eq. ( 17).Let us rewrite the state Eq. ( 15) using the matrix Eq. ( 27), but now the matrix Identification of Model 2 is of dimensionality n nlift × (n nlift + p(n u + n ω )) and the matrix Identification of Model 2 The matrix Z is defined by Eq. ( 30), the vectors U p are characterised by Eq. ( 31) and the matrices Identification of Model 2 are of dimensionality n ω × n s .Model parameters are calculated from the optimisation problem (34) or (38), the solution of which is given by Eqs.(35) or (39) or (40).Next, the model matrices A p , w 0 p,i and w 1 p,i are formed Identification of Model 2 and Identification of Model 2 and Identification of Model 2 for i = 0, . . ., p − 1.We repeat calculations for p = 1, . . ., N . Identification of Model 3 For model 3, we have to find constant matrices A p as well as the matrices w 0 p,i and w j p,i that define the matrices B p,i (k), as specified by Eq. (18).The state Eq. ( 15) may be expressed by the matrix Eq. ( 27), but now the matrix Identification of Model 3 The matrix Z is defined by Eq. ( 30), the vectors U p are characterised by Eq. ( 31) and the matrices Identification of Model 3 are of dimensionality n ω × n s .The matrices Identification of Model 3 are of dimensionality n ω × n u .The model parameters are calculated from the optimisation problem (34) or (38), the solution of which is given by Eqs.(35) or (39) or (40).Next, the model matrices A p , w 0 p,i and w j p,i are formed Identification of Model 3 for i = 0, . . ., p − 1 and Identification of Model 3 pol .We repeat calculations for p = 1, . . ., N . Identification of Model 3 where N u stands for the control horizon; u(k+ p|k) = 0 for p ≥ N u .We compute the decision vector (55) as a result of solving the MPC optimisation task min Identification of Model 3 where ||x|| 2 A = x T Ax.The vector x sp (k + p|k) defines the set-point values of state variables for the future sampling instant k + p known at the current instant, k.The vector x(k + p|k) stands for state predictions for the sampling instant k + p calculated from the process model at the current instant.Both vectors are of length n x .Diagonal weighting matrices M p ≥ 0 and Λ p > 0 are of dimensionality n x ×n x and n u ×n u , respectively.The constraints imposed on the manipulated variables and on the predicted states are defined by the vectors u min , u max , u min and u max of length n u as well as the vectors x min and x max of length n x , respectively.The last constraint represents the prediction model used to find the predicted trajectory.Only the first n u elements of the vector (55), i.e., the current increments u(k|k), are sent to the process at each sampling instant. Identification of Model 3 It is convenient for future derivations to compactly rewrite the problem (56).We define two vectors of length n x N : the set-point vector for the prediction horizon Identification of Model 3 . . . Identification of Model 3 and the corresponding vector of state predictions Identification of Model 3 We define the matrices M = diag(M 1 , . . ., M N ) and Identification of Model 3 Let us explicitly embed the prediction model M (•) into the MPC cost function.We will derive predictions and the MPC optimisation task assuming variability of matrices B p,i (k) used in models 2 and 3; the description for model 1 using constant matrices B p,i can be easily obtained.Using Eqs. ( 15)-( 16), the state vectors found from the model for the consecutive sampling instants over the prediction horizon, i.e., p = 1, . . ., N , are Identification of Model 3 Model errors and actual disturbances acting on the process are unavoidable.To obtain offset-free control, we use the prediction equation Identification of Model 3 In MPC, we name the vectors d(k + p|k), of length n x , predicted unmeasured disturbances.We find them as differences between measured or observed state variables and those found from the model [1,2].Using the model (61) for the current sampling instant, k, the disturbances are Identification of Model 3 for p = 1, . . ., N .Using Eq. ( 62), we find the predicted state trajectory (58) in the following compact vectormatrix form Identification of Model 3 where the matrix Identification of Model 3 is of dimensionality n x N × n lift , the matrix Identification of Model 3 is of length n u N and the vector Identification of Model 3 is of length n x N .We use the following relation between the vectors u N (k) and u(k) Identification of Model 3 where Identification of Model 3 It is comprised of the matrix J 1 defined by Eq. ( 60) and the following matrix of dimensionality Identification of Model 3 The vector u N (k − 1) = 1 N ×1 ⊗ u(k − 1) is of length n u N .We rewrite Eq. (64) using Eq. ( 69) Identification of Model 3 Finally, using Eq. ( 71), from the rudimentary MPC optimisation task (59), we derive the optimisation problem min Identification of Model 3 We obtain a quadratic optimisation task since the cost function is quadratic in terms of the decision vector, u(k), and all constraints are linear.At first, a DC motor benchmark is considered to thoroughly discuss the influence of three model configurations and three versions of the lifting functions on model accuracy and MPC control quality.Next, a more complex polymerisation reactor benchmark is considered to showcase the practical applicability of the presented approach to modelling and MPC. DC motor A Direct Current (DC) motor is an example of a nonlinear process.It is a frequent benchmark for assessing Koopman operator-based models, e.g., [30,32,33].The process fundamental model is [34] ẋ1 DC motor where x 1 and x 2 stand for the rotor current and the angular velocity, respectively.The manipulated variable u is the stator current.Process parameters are: L a = 0.314, R a = 12.345, k m = 0.253, J = 0.00441, B = 0.00732, τ l = 1.47, u a = 60.The manipulated variable is limited: DC motor The fundamental model ( 73)-( 75) is simulated open-loop for a series of random step changes of the manipulated variable, u; each change takes place every 100th sampling period, which equals 0.01 s.Differential model equations are solved using the Runge-Kutta method of order 45.As many as 200,000 samples of manipulated and state variables are collected.The available data set has been divided into training and validation sets, each with 100,000 samples.Figure 3 shows the first 5000 samples from training and validation data sets.The regularisation coefficient α = 10 is used. Modelling of DC motor Linear multi-model.Taking into account Eqs. ( 5)-( 6), we find the corresponding structure of the linear multimodel in which the state vector is not lifted Modelling of DC motor We can note that the linear multi-model can be obtained from model 1 (Eq.( 5)) assuming that the lifted state vector equals the state vector, i.e., z(k) = x(k).Hence, the identification procedure detailed in Sect.3.2 can also be used for the linear structure.Figure 4 shows the relationship between two state variables from the validation data set vs corresponding outputs (states) of the linear model for the consecutive sampling instants p = 1, . . ., 10.The accuracy of the linear multi-model deteriorates as p grows.The sub-models are very inaccurate for p > 2 and p > 5 for the first and the second state variables, respectively.The cumulative error for all sub-models is where E X p is given by Eq. ( 19).Since we will next compare different nonlinear models to the simplest linear structure (76), we scale the error for the linear model to 100%.The model has 150 parameters.Koopman operator-based multi-model 1. Figure 5 shows the influence of the complexity of lifting functions on training and validation errors.We consider three model versions: 1a, 1b and 1c.Model 1a uses monomials of the degree n A pol , model 1b uses polynomials of the degree n A pol and model 1c uses n A RBF radial basis functions (and two state variables).We consider the monomial and polynomial degrees: n A pol = 2, 3, 4, 5, 6 since numerical problems occur for higher degrees.To keep the number of model parameters on a relatively moderate level, we consider n A RBF = 4, 9, 16, 25, 36 radial basis functions.These numbers result from the fact that we have two state variables and centres of radial basis functions are located at 2 × 2, 3×3, 4×4, 5×5 and 6×6 grid points of states, respec-tively.All errors are expressed in relation to errors of the simple linear multi-model.In general, models 1 give much lower errors than the linear model and the more complex the lifting functions, the lower the errors.Monomials (model 1a) have the largest errors and the monomial degree's impact on the error is insignificant.The polynomials (model 1b) give lower errors and the polynomial degree noticeably impacts the error.In general, radial basis functions (model 1c) lead to slightly lower errors than polynomials; we observe an exception for four basis functions that are insufficient.Koopman operator-based multi-model 2. Figure 6 shows the influence of the complexity of the lifting functions on training and validation errors.Depending on the lifting functions, we consider three model versions: 2a, 2b and 2c, similarly to models 1a, 1b and 1c.In general, models 2 give at least two times lower errors than the corresponding models 1 (Fig. 5).Indeed, the more complex the lifting functions, the lower the errors.Monomials (model 2a) are the worst ones, while the polynomials (model 2b) improve modelling accuracy.Radial basis functions (model 2c) give the lowest errors.Koopman operator-based multi-model 3. Figure 7 shows the influence of the complexity of the lifting functions (defined by the monomial or polynomial degree, n A pol , and the number of basis functions, n A RBF ) on training and validation errors.Additionally, model errors depend on the degree of the monomial that defines the complexity of the time-varying matrices B p,i (k), i.e., n B pol .We consider the following degrees: n A pol = 2, 3, 4, 5 and n B pol = 2, 3, 4, 5 as numerical problems occur for higher degrees.Regarding lifting functions, we consider three model versions: 3a, 3b and 3c.In general, in comparison with models 2 (Fig. 6), models 3 have some 20-30% lower errors.Similarly to models 1 and 2, lifting functions significantly impact model accuracy.The largest errors characterise monomials (model 3a), while radial basis functions (model 3c) give the best results.Comparison of Koopman operator-based multi-models 1, 2 and 3. Having analysed the influence of model configuration on errors in Figs.5-7, we can select some models for thorough comparison.First, let us study Table 1, which details the number of lifting functions, training and validation errors and the number of parameters for minimal models.When it gives reasonable results, we accept the models with the minimal number of parameters, i.e., for Modelling of DC motor In two cases, however, the most uncomplicated models give very poor results and we must use more complex alternatives.Namely, model 1c0 (n A RBF = 4, n lift = 6) has larger errors than potentially less advanced models 1a and 1b with the minimal number of parameters.Hence, model 1c (n A RBF = 9, n lift = 11) is chosen.Generally, the more complex the lifting functions and dependence of the matrices B p,i (k) on the process operating point, the lower the errors, but also the higher the number of parameters. Modelling of DC motor Next, Table 2 reports the results for the best possible models, i.e., those that give minimal validation errors in each model category.The maximal working degrees of monomials and polynomials are used.In comparison with the minimal models listed in Table 1, we can see that all errors are reduced by some 10-20% in the case of models 1a, 1b, 1c, 2a, 2c, 3a, 3b, 3c, or even almost 40-50%, e.g., in the case of model 2b. Modelling of DC motor Since increasing the degree of monomials, polynomials and the number of basis functions leads to an unacceptable growth in the number of model parameters, we also select compromise models in each category.Table 3 shows the results.We select these models considering two conflicting objectives: minimising model errors and the number of parameters.The chosen compromise models have slightly greater errors than those for the best structures (Table 2), but the number of parameters is much lower. Modelling of DC motor All Koopman operator-based models are more precise than the linear model, whose error equals 100%.The error of the best Koopman operator-based model equals 11%, while the worst models have errors of about 60%. Modelling of DC motor It is interesting to discuss the influence of the lifting functions and the choice of the matrix B p,i (k) on model accuracy.For the considered process, we observe that the type of the matrix B p,i (k) has a very strong influence on model errors.For constant matrices B p,i (models 1a, 1b and 1c), model errors are large, equal approx.50-60%.Introduction of quite simple Fig. 7 The DC motor, models 3: the influence of the complexity of the lifting functions (defined by the monomial or polynomial degree, n A pol , and the number of basis functions, n A RBF ) and complexity of the time-varying matrices B p,i (k) (defined by the monomial degree, n B pol ) on training and validation errors time-varying matrices B p,i (k) that use linear functions (models 2a, 2b and 2c) leads to a significant reduction of errors at least three times.For more complex timevarying matrices B p,i (k) that use monomials (models 3a, 3b and 3c), the errors are reduced at least four times in comparison with the rudimentary models 1a, 1b and 1c. Figure 8 presents the influence of the type of matrices B p,i (k) on the accuracy of the model with polynomial lifting functions as the relationship between the validation data set vs outputs of the compromise models 1b and 2b.Model 1b is very inaccurate while model 2b is better, which means that variability of matrices B p,i (k) leads to reducing model errors.Furthermore, from Table 3, it is interesting to note that more complex model 3b leads to some reduction of model errors, but it is bought by a dramatic increase in the number of parameters. Modelling of DC motor The type of the lifting functions also has an impact on model errors, but it is not as strong as the influence of matrices B p,i (k).We observe the least gain of using complex lifting functions for models 1, which are generally bad.We observe quite a significant gain for models 2 and 3.The radial basis lifting functions are the best, but let us note that monomials and polynomials also give good results. Modelling of DC motor To sum up, we recommend using monomials or polynomials as lifting functions for the considered process; radial basis functions slightly improve accuracy but lead to a huge growth of model complexity.We also suggest that linear dependence of matrices B p,i (k) on the process operating point should be used.Classical Koopman operator-based model.Let us evaluate the efficiency of the classical Koopman operatorbased model determined using the EDMD algorithm Fig. 8 The DC motor: the influence of the type of the matrix B p,i (k) on the accuracy of the model with polynomial lifting functions: the relationship between the validation data set vs outputs of the compromise models 1b (top) and 2b (bottom) [26,30].It finds the model described by Eqs. ( 2) and ( 4); its objective is minimisation of model errors in the onestep-ahead mode.Different lifting functions are evaluated and, finally, the model utilising 100 Gaussian basis functions located at 10 × 10 grid points of states and the state vector itself are used.Figure 9 It is because the considered Koopman-operator multimodels independently find state variables for all consecutive sampling instants over the prediction horizon; the model is not used recurrently.Figure 10 shows the relationship between the validation data set vs outputs of the classical Koopman operator-based model used recurrently for the chosen prediction horizon.Model accuracy is poor when it is used recurrently; it is much worse than the accuracy of the compromise model 2b (Fig. 8). MPC of DC motor The MPC horizons are: N = 10, N u = 3.According to Eq. (75), the second state variable is the controlled output.Hence, the weighting matrix in the first part of the MPC cost function (Eq.( 56)) is M p = 0 0 0 1 for p = 1, . . ., N .Since we have only one manipulated variable, the weighting matrix in the second part of the MPC cost function, Λ p , is replaced by the scalar λ = 0.1 for p = 0, . . ., N u − 1. MPC of DC motor First, let us verify the MPC's efficacy using the linear model (76).Figure 11 presents the obtained results for a set-point trajectory with the same values as considered in [30], but faster changes.Additionally, from the sampling instant k = 20, the additive step disturbance 0.1 acts on the process output; it changes its value to −0.1 starting from the sampling instant 60.Unfortunately, the default value λ = 0.1 gives very bad control quality when the MPC algorithm uses the linear model.We observe some oscillations in the first part of the simulation, while a large set-point error occurs in the second part.The linear model is imprecise, as shown in Fig. 4 and cannot make precise predictions in MPC.We must increase the penalty coefficient to obtain any set-point tracking and compensation of disturbances.Unfortunately, it leads to very slow process trajectories. MPC of DC motor Let us compare numerically the efficiency of MPC algorithms based on all models listed in Tabs. 1, 2 and 3 using the classical sum of squared control errors MPC of DC motor where k min and k max indicate the simulation horizon. MPC of DC motor The control error for the best model configuration is assumed to be 0% and all results are expressed in percentages.Table 4 presents the obtained relative control errors.The best results are possible for model 2c. MPC of DC motor The control quality is poor when the MPC algorithm uses models 1 with constant matrices B p,i .Figure 12 depicts simulation results when we use the minimal models 1a, 1b and 1c.We do not obtain satisfying results as they are of very low quality.In the first two model cases, oscillations are observed for the first setpoint change, while completely wrong trajectories are obtained for the second set-point step.The minimal model 1c results in better control quality, but much better results are possible for more complex models.Figure 13 depicts the impact of the type of lifting functions on control quality when MPC uses compromise models 2a, 2b and 2c.These models have the same type of the matrix B p,i (k) but different lifting functions, i.e., monomials, polynomials and RBFs.Because the accuracy of all these models is good, all obtained control trajectories are correct.The process output quickly follows all changes of the set-point trajectory and changes of the unmeasured disturbance are efficiently compensated.There is no steady-state error, which means that offset-free control is obtained.If the matrix B p,i is time-varying, the choice of the lifting functions does not impact model accuracy and control quality. MPC of DC motor Figure 14 presents the influence of the type of the matrix B p,i (k) on control quality when we use compromise models 1b, 2b and 3b.These models use the same lifting functions (polynomials).The accuracy of these models is different since the compromise model 1b with the constant matrix B p,i is much worse than the models 2b and 3b.The more complex the dependence of the time-varying matrix B p,i (k) on the vector ω(k), Fig. 12 The DC motor: the comparison of control quality when the MPC algorithm uses minimal models 1a, 1b and 1c Fig. 13 The DC motor: the influence of the type of lifting functions on control quality when the MPC algorithm uses the compromise models 2a, 2b and 2c MPC of DC motor Fig. 14 The DC motor: the influence of the type of the matrix B p,i (k) on control quality when the MPC algorithm uses the compromise models 1b, 2b and 3b the more precise the model, but these differences are not very significant.The compromise model 2b with a linear dependence of the matrix B p,i (k) on the vector ω(k) gives very good control quality; it is not necessary to use more complex model configurations. MPC of DC motor To sum up, for the considered process, we recommend model structure 2, which relies on time-varying matrices B p,i (k).Even the simplest polynomial lifting functions give very good results in such a case.The negative feedback in MPC efficiently compensates for model inaccuracies and process disturbances.The more complicated structure 3, and more complex lifting functions do not significantly improve the control quality.Structure 1 gives the worst results; some configurations do not work in MPC. MPC of DC motor Although the application of all models recommended in this work requires solving simple quadratic optimisation MPC problems, it is interesting to investigate the impact of model structure on the computational time.Table 5 specifies the relative calculation time for the minimal, the best and compromise models (Tables 1, 2 and 3); the time for the minimal model 1a is assumed to be 100%.In general, we can see that both the number of lifting functions and the complexity of the functions used to define the matrix B p,i (k) have an impact on the computational burden.Namely, the more the lifting functions (as in models a, b and c, respectively), the longer the time.Similarly, the more complicated the matrix B p,i (k) (as in models 1, 2 and 3, respectively), the longer the time.We also observe the shortest calculation time for the least complicated minimal models; compromise models require medium time, while the most complex best models need the longest time.We do not observe a significant increase in the calculation time of MPC as the model complexity increases.Namely, the recommended compromise model 2b, that leads to very good MPC control quality, needs the calculation time equal to approx.130% of the time necessary when the simplest minimal model 1a is used. Polymerisation reactor Next, we consider a polymerisation reactor [35].Its manipulated and controlled variables are the inlet initiator flow rate F I (m 3 h −1 ) and the Number Average Molecular Weight (NAMW) of the product (kg kmol −1 ), respectively.The process fundamental model is [35] Polymerisation reactor where The parameters of the fundamental model are given in Table 6.The manipulated variable is limited: 0.003 ≤ F I ≤ 0.06.The polymerisation reactor is a well-known benchmark for assessing model accuracy, e.g., [4,14,20,[36][37][38], and MPC performance, e.g., [4,20,[38][39][40][41]. Modelling of polymerisation reactor The fundamental model ( 79)-( 84) is simulated openloop for a series of random step changes of the manipulated variable, F I ; each change takes place every 30th sampling period, which equals 0.03 s.Differential model equations are solved using the Runge-Kutta method of order 45.200,000 samples of manipulated and state variables are collected.The available data set has been divided into training and validation sets, each with 100,000 samples.Table 7 reports the results for all considered models of the polymerisation process.To obtain relatively simple models, we limit our comparison to monomials used as lifting functions of degree n A pol = 2, 3, 4. We study all three versions of the matrix B p,i (k) considered in this work, i.e., constant (models 1a), timevarying using linear functions (models 2a) and timevarying using monomials of degree n B pol = 2, 3, 4, 5 (models 3a).The regularisation coefficient α = 10.All model errors are scaled in relation to the error of the linear model which equals 100%.All Koopman operator-based multi-models are more precise than the linear multi-model.Similarly to the DC motor process, we observe that the models with a constant matrix B p,i are the second worst.Moreover, depending on the degree of the monomials used as lifting functions, i.e., n A pol , such models have validation errors equal to 44-50%.On the other hand, assuming time-varying matrix B p,i (k) gives much lower errors, they equal to 10-18%.We see that increasing the degree of monomials used as lifting functions and to define the matrix B p,i (k), i.e., the quantities n A pol and n B pol , respectively, leads to reducing the model error.However, it is accompanied by significant growth in the number of model parameters.Hence, as a compromise between model accuracy and complexity, we choose the model 2a with n A pol = 2 and time-varying matrix B p,i (k) using a linear function.Since the Koopman operator-based multi-models rely on a time-varying but linear influence of future values of manipulated variables on the predicted process states, it is possible to derive a quadratic optimisation MPC task. Modelling of polymerisation reactor In this work, a set of models characterised by different lifting functions and types of matrices B p,i (k) is found and compared.In the future, it will be of interest to develop a systematic method for automatically finding the model structure. Fig. 1 Fig.1The structure of model 1 Fig. 3 Fig.3The DC motor: the first 5000 samples of training and validation data sets Fig. 4 Fig. 5 Fig.4 The DC motor: the relationship between the validation data set vs outputs of the linear model Fig. 6 Fig.6 The DC motor, models 2: the influence of the complexity of the lifting functions (defined by the monomial or polynomial degree, n A pol , and the number of basis functions, n A RBF ) on training and validation errors Fig. 6 compares the first 2000 samples of the validation data set vs outputs, i.e., states, of the classical Koopman operator-based model used in the one-step-ahead mode and recurrently.The one-step-ahead mode gives good modelling accuracy.Unfortunately, model errors are significantly larger when the model is used recurrently.To emphasise the bad prediction accuracy of the classical Koopman operator-based model used recurrently, let us consider predictions over the prediction horizon N = 10 that start from all consecutive available data samples.The cumulative scaled model error for the validation data set equals 730%.It means the classical Koopman-operator model used recurrently has lower accuracy than all discussed multi-models. Fig. 9 Fig. 9 The DC motor: the first 2000 samples of the validation data set vs outputs of the classical Koopman operator-based model used in the one-step-ahead mode and recurrently Fig. 11 Fig.11The DC motor: the MPC algorithm which uses the linear model Fig. 11 f * C I (t)Z I exp −E I Figure 15 shows the first 1500 samples from both sets.Because process variables are of different range, they are scaled: u = 100(F I − F I ),x 1 = 3(C m − C m ), x 2 = 4(C I − C I ),x 3 = 400(D 0 − D 0 ), x 4 = 0.025(D I − D I ), where F I = 0.028328, C m = 5.3745, C I = 2.2433 × 10 −1 , D 0 = 3.1308 × 10 −3 , D I = 6.2616 × 10 −1 are process variables at the nominal operating point. Fig. 16 Fig.16 The polymerisation reactor: simulation results of MPC based on model 2a with n A pol = 2 and time-varying matrix B p,i (k) using a linear function Fig. 17 Fig.17 The polymerisation reactor: the influence of the regularisation coefficient, α, on the MPC control quality utilising model 2a with n A pol = 2 and time-varying matrix B p,i (k) using a linear function Table 1 The DC motor: the number of lifting functions, training and validation model errors for the minimal models; n par stands for the number of model parameters Table 2 The DC motor: the number of lifting functions, training and validation model errors for the best models; n par stands for the number of model parameters Table 3 The DC motor: the number of lifting functions, training and validation model errors for the compromise models; n par stands for the number of model parameters Table 6 Tc 2.9442 × 10 3 kJ kmol −1 Z Tc 3.8223 × 10 10 m 3 kmol −1 h −1 E Td 2.9442 × 10 3 kJ kmol −1 Z Td 3.1457 × 10 11 m 3 kmol −1 h −1 E fm 7.4478 × 10 4 kJ kmol −1 Z fm 1.0067 × 10 15 m 3 kmol −1 h −1 The polymerisation reactor: the first 1500 samples of training and validation data sets

섹션 본문 132문단 · 45,896자

(제목 없음)

1This work describes a new model structure developed for prediction in Model Predictive Control (MPC).The model has a multi-model structure in which independent sub-models are employed for the consecutive sampling instants.The model lifts process states into a high-dimensional space in which a linear process description is applied.Depending on the influence of the manipulated variables on lifted states, three general model versions are described and model identification algorithms are derived.As a result of the multi-model structure, model parameters are found analytically from computationally uncomplicated least squares problems using the Extended Dynamic Mode Decomposition algorithm, but the evolution of states over the horizon used in MPC is taken into account.Next, the MPC algorithm for the described model is derived.It requires solving online simple quadratic optimisation tasks.The effectiveness of three considered model configurations and three versions of the lifting functions is examined for a nonlinear DC motor benchmark.Their impact on model accuracy, complexity, possible control accuracy and MPC calculation time is thoroughly discussed.Finally, a more complex polymerisation reactor process is considered to showcase the practical applicability of the presented approach to modelling and MPC.

Introduction

2Model Predictive Control (MPC) algorithms repeatedly use online a dynamical model of the controlled process to make predictions of its future trajectory and optimise the sequence of manipulated variables [1,2].They give good control quality and consider necessary constraints.The historical background of MPC and a comprehensive overview of recent theoretical developments are reviewed in [3].Typically, MPC methods have been used for years in industrial process control; example processes are chemical reactors [4] and distillation columns [5].Nowadays, MPC algorithms are used in embedded systems, e.g., in autonomous vehicles [6], aerial vehicles [7], quadrotors [8] and autonomous underwater vehicles [9].Other applications include visual robot servoing systems [10], spacecrafts [11] as well as missile guidance and control systems [12].Machine learning and neural networks are increasingly popular in MPC [13].

The problem

3Using a linear model for prediction in MPC leads to easily solvable quadratic optimisation tasks with only one global minimum [1,2].Unfortunately, nonlinear models lead to nonlinear optimisation problems that must be solved online.Such problems are incomparably more difficult than quadratic tasks.It is not only because the calculation time may be longer but because the classical gradient-based optimisation algorithms may find shallow local solutions.A few methods are possible to simplify nonlinear MPC.A predominant practical solution is the utilisation of MPC schemes with the online linearisation, which lead to quadratic optimisation tasks [14,15].An inverse static model may compensate for static process nonlinearity and lead to quadratic optimisation tasks [15,16].Neural networks may approximate the explicit MPC control law or its coefficients [17][18][19].Convex models [20] or some convexification techniques [21] lead to convex MPC optimisation tasks.Finally, some methods for selecting the initial solution for the nonlinear solver are possible [22,23].

4An interesting idea is to represent a nonlinear dynamical system using the Koopman operator.In this approach, the true states are replaced by the so-called lifted states and a nonlinear process may be described by a linear model but in the infinite-dimensional space [24,25].One of the methods to obtain a finite-dimensional approximation of the Koopman operator for dynamical systems with inputs is the Extended Dynamic Mode Decomposition (EDMD) algorithm [26]; possible alternatives are reviewed in [27].Of note, the EDMD approach is purely data-driven; no fundamental knowledge of the process is necessary and computationally simple because the linear model in the lifted space is found analytically from simple least squares tasks.Because the choice of lifting functions is an issue, neural network-based approximations of the Koopman operator may be used [28,29].However, in such cases, training neural networks requires nonlinear optimisation, i.e., we cannot use the least squares problems.When an MPC algorithm uses Koopman operator-based models, we obtain simple to solve quadratic MPC optimisation tasks [30].

5Let us highlight two essential limitations of the classical Koopman operator-based models determined using the classical EDMD algorithm.Firstly, the possibility of finding linear representations of nonlinear processes from least squares tasks is an advantage, but, on the other hand, such models are identified in the one-step-ahead configuration.Propagation of errors is inevitable when the MPC algorithm uses such models recurrently.Shi

and Meng recently proposed a new

6Koopman operator-based model structure to solve the problem [29].In their approach, the identification algorithm minimises model errors when the model is used recurrently, i.e., in the multiple-step-ahead mode over the horizon used in MPC.However, using least squares tasks is no longer possible and nonlinear optimisation is necessary for model identification.The second limitation of the classical Koopman operator-based models is that the input vector (i.e., the manipulated variables) is not lifted, which is likely to reduce the model's ability to approximate properties of nonlinear processes.The state-dependent influence of the manipulated variables on the lifted states is very infrequently considered [29].

Contribution

7This work has three objectives: it describes a new model structure developed for prediction in MPC, derives model identification algorithms and the resulting MPC algorithm.The discussed model aims to eliminate the abovementioned limitations of the classical models generated by the EDMD algorithm.Furthermore, the identification procedure of the model presented in this work is significantly computationally simpler compared to the model developed by Shi and Meng [29].The model identification procedure uses simple least squares tasks solved analytically, but the evolution of states over a time horizon is taken into account.The model has a multi-model structure in which independent sub-models are used for the consecutive sampling instants to make it possible.Each submodel is found independently in the one-step-ahead mode, which enables the formulation of easy-to-solve least squares problems.Depending on the influence of manipulated variables on the lifted states, three general model versions are described and model identification algorithms are derived.Namely, we consider a fixed linear influence and two time-varying approaches: one linear and one nonlinear, based on monomials.Next, the MPC algorithm for the described model is detailed.Although the model is nonlinear, MPC requires solving online simple quadratic optimisation tasks.Due to its multi-model structure, the model is not used recurrently in MPC.

8This work is organised as follows.Section 2 describes three model versions while Sect. 3 derives least squares identification tasks.Section 4 derives the MPC quadratic optimisation task.Section 5 thoroughly inves-tigates model selection issues and the efficiency of different model configurations utilised in MPC for a benchmark dynamical system.Next, a more complex polymerisation reactor process is considered to showcase the practical applicability of the presented approach to modelling and MPC.Finally, Sect.6 summarises the whole work.

Preliminaries

9We consider a discrete-time nonlinear controlled dynamical system

10where n x and n u stand for the number of states and inputs, respectively, i.e.,

11, and f : R n x +n u → R n x is a nonlinear function.In the Koopman operator approach, we find a linear counterpart of the nonlinear system (1) in the lifted space [30,31]

12where

13The lifted state vector is

14where ψ n : R n x → R are lifting functions, n = 1, . . ., n lift .The manipulated variables, u, are not typically lifted in the state Eq. ( 2).It allows the imposition of linear constraints on manipulated variables easily.We express the original state as a linear function of the lifted state

15Similarly, it allows using linear constraints on states.The EDMD algorithm [26] finds the matrices A, B and C from simple least squares problems assuming n lift is finite.The EDMD algorithm is entirely data-driven, so the nonlinear system representation (1) is not used.Instead, all calculations are based on measurements.We can use the discussed approach when the function f in Eq. ( 1) is unknown.

16Exact lifting functions may be found analytically for some simple systems [27].Since the Koopman operator is infinite-dimensional [24,25], we use a finite number of lifting functions to obtain a computationally possible solution.It means the linear model in the lifted space (Eq.( 2)) attempts to approximate the true nonlinear system (Eq.( 1)).

Multi-models using Koopman operator

17This work combines the Koopman operator method with the multi-model approach in which independent sub-models calculate at the current sampling instant, k, model states for the consecutive sampling instants over the prediction horizon N , i.e., the vectors x(k + 1|k), . . ., x(k + N |k).Next, the MPC algorithm uses these model states for prediction.Previous research concentrated on input-output multi-models [14,20].A significant advantage of the multi-model approach is that the consecutive model outputs, and hence the predictions, are not found recurrently, i.e., they do not depend on model outputs or predictions found for the previous sampling instants.It is essential for two reasons.Firstly, identification is possible in the easy one-step-ahead non-recurrent configuration.It is much computationally easier than recurrent model identification.Secondly, when the MPC algorithm uses the multi-model for prediction, model errors are not propagated as necessary in classical recurrent models.Multimodels have two disadvantages: they usually have more parameters than the classical models and cannot be used for long horizons.The following part of this section describes three model versions, with the different influence of the manipulated variables on the lifted states.

Model 1: Koopman operator-based multi-model with constant matrices B p,i

18Combining the Koopman operator-based models defined by Eqs. ( 2) and ( 4) with the multi-model approach, we define the sub-model for the sampling Let us stress that we do not intend to find one model that aims to approximate the nonlinear system (1) by the model given by Eqs. ( 2) and (4) as done in the classical Koopman-operator approach.Instead, we intentionally use a set of sub-models.Each sub-model finds process state variables for only one sampling time and is not used recurrently.As a result, least squares can be used for identification, as shown in Sect.3. Otherwise, con-sidering a state trajectory over a time horizon and only one model will lead to nonlinear optimisation-based model identification [29].

19Depending on lifting functions, we consider the following variants of model 1:

201. Model 1a: monomials of the degree n A pol are used as lifting functions

21for i = 1, . . ., n x and j = 1, . . ., n A pol .For example, for n x = 2 and n A pol = 3, we have

22The number of lifting functions is n lift = n x n A pol .2. Model 1b: polynomials of the degree n A pol (with mixed terms) are used as lifting functions

23where i 1 = 0, . . ., n x , …, i n x = 0, . . ., n x and n = 1, . . ., n lift .Because polynomials of high degree lead to numerical problems, we limit our consideration to polynomials that satisfy the condition n x n=1 i n ≤ n A pol which means that the maximal degree of each term is not greater than n A pol .For example, for n x = 2 and n A pol = 3, we have

24The overall number of lifting functions is

253. Model 1c: n A RBF Radial Basis Functions (RBFs) are used as lifting functions.In this work, we use n A RBF Gaussian basis functions (12) where i = 1, . . ., n A RBF .The spread is denoted by σ and the vectors c A i , of length n x , define centres.In the simplest approach, centres may be chosen randomly [30], but they may also be located at grid points of states or a clustering algorithm may be employed, e.g., the k-means approach.We also use original states as additional lifting functions [30], i.e.,

Model 2: Koopman operator-based multi-model with time-varying matrices B p,i (k) using linear functions

26Figure 2 shows the structure of models 2 and 3. Similarly to model 1 shown in Fig. 1, the matrices A p and C p for p = 1, . . ., N are constant, but now the matrices B p,i (k) for p = 1, . . ., N and i = 0, . . ., p − 1 are time-varying and defined by the functions φ p,i

27The vector

28defines the current operating point of the process.It is of length n ω = n x + n u and uses the most recent process information available at the current sampling instant, k.For this purpose, we use the current state vector and manipulated variables sent to the process at the previous sampling instant.At the current sampling instant, the vector u(k) is not available since it is computed by a control algorithm which means that the vector u(k − 1) gives the most recent measurements of manipulated variables.Other choices of the vector ω(k) are:

29. Using Eqs. ( 5)-( 6), the following equations define models 2 and 3

30for p = 1, . . ., N .The matrices A p are not timevarying, which makes an easy determination of model stability.The state Eq. ( 15) is affine, i.e., linear in future values of manipulated variables, which means that constraints imposed on manipulated variables are linear.Depending on the functions φ p,i : R n ω → R n lift that describe the dependence of the time-varying matrices B p,i (k) on the current operating point, ω(k), (Eq.( 13)), we can distinguish a few model configurations.In this work, we name them models 2 and 3.In model 2, we assume the linear dependence

31where matrices w 0 p,i are of dimensionality n lift × n u , matrices w 1 p,i are of dimensionality n lift × n ω and ω n u (k) = 1 1×n u ⊗ ω(k) are matrices of dimensionality n ω × n u ; the symbol ⊗ stands for the Kronecker tensor product.The symbol 1 m×n stands for a matrix all entries of which equal 1.

32Depending on the lifting functions, we distinguish model 2a (it uses monomials of the degree n A pol as in Eq. ( 7)), model 2b (it uses polynomials of the degree Fig. 2 The structure of models 2 and 3 n A pol as in Eq. ( 9)) and model 2c (it uses n A RBF RBFs as in Eq. ( 12)).

Model 3: Koopman operator-based multi-model with time-varying matrices B p,i (k) using monomials

33In model 3, time-varying matrices B p,i (k) for p = 1, . . ., N and i = 0, . . ., p − 1 depend on the current operating point defined by the vector ω(k) as specified by Eq. ( 13).We use the general Eqs. ( 15)-( 16) to compute the lifted state vector for the sampling instant k + p and the true state vector, respectively.The model matrices are monomial functions of the operating point

34The monomial degree is denoted by n B pol .Matrices w 0 p,i and w j p,i are of dimensionality n lift × n u and n lift × n ω , respectively.The symbol • stands for the Hadamard product.Depending on lifting functions, we distinguish models 3a, 3b and 3c (the lifting functions are specified by Eqs. ( 7), ( 9) and ( 12), respectively).

Identification of Koopman operator-based multi-models

35We calculate all parameters from least squares problems whose solutions can be easily found analytically without numerical optimisation.Moreover, because model errors are quadratic functions of parameters, the calculated parameters are globally optimal, which means that they result in a minimal model error.We find model parameters using the EDMD algorithm [26], considering the specific model structures.For identification, we need a set of samples of input and state process variables (measured or observed).Multi-model identification is performed independently for the consecutive sampling instants k + p, where p = 1, . . ., N , i.e., we find parameters of consecutive sub-models separately.In all model configurations, matrices C p are calculated in the same way as described in Sect.3.1.Identification of model state equations depends on the model structure.Sections 3.2, 3.3 and 3.4 describe identification procedures of state equations for models 1, 2 and 3, respectively.

Calculation of matrices C p

36We define the model error when calculating the state vector, x(k + p|k), at the current sampling instant, k.The error takes into account the sum of squared differences between the data samples, x i (k + p), and model outputs, x mod i (k + p|k), for all n x state variables and all data samples

37where the indices k min and k max define the range of considered samples.We can rewrite the error compactly

38where

39For all model variants, the relations between the original state vector, x(k + p|k), and the lifted one, z(k + p|k), are the same, i.e., given by Eqs. ( 6) and ( 16); the choice of lifting functions does not impact this issue.Hence, we always calculate matrices C p in the same way.We can rewrite Eqs. ( 6) or ( 16) compactly for all data samples

40where the matrix

41is of dimensionality n nlift × n s .The model matrices C p are optimised in the one-step-ahead prediction mode.From Eqs. ( 20) and ( 23), the unconstrained optimisation problem is min

42Because process states are linear functions of lifted states (Eq.( 23)), the optimisation problem ( 25) is of a least squares type.Its solution is determined analytically

43where the symbol (.) + stands for the Moore-Penrose matrix pseudo-inverse.We compute matrices C p for all sub-models, i.e., for p = 1, . . ., N .

Identification of Model 1

44Let us rewrite the state Eq. ( 5) for all data samples in the following compact matrix form

45where the matrix

46is of dimensionality n nlift ×(n nlift + pn u ) and the matrix

47is of dimensionality (n nlift + pn u ) × n s .The matrix

48is of dimensionality n nlift × n s and the vectors

49are of dimensionality n u × n s , p = 1, . . ., N .We optimise the model matrix AB p in the one-step-ahead prediction mode.We define the model error for the lifted state vector

50123

51where the matrix Z p is given by Eq. ( 24) and the matrix

52is of dimensionality n nlift ×n s .From Eqs. ( 27) and ( 32), we get the unconstrained optimisation problem min

53Because the future lifted state vectors are linear functions of the current lifted states and future manipulated variables (Eq.( 27)), the optimisation problem ( 34) is of a least squares type.It is solved analytically

54Next, the model matrices A p and B p,0 , . . ., B p, p−1 are formed from the calculated matrix AB p

55and

56for i = 0, . . ., p − 1.The symbol I m×m denotes an identity matrix, while the symbol 0 m×n stands for a matrix all entries of which equal 0. We compute matrices A p and B p,i for all sub-models, i.e., for p = 1, . . ., N .Some models may have low training data errors and much larger validation data errors.We use regularisation to increase model generalisation.The optimisation task (34) becomes min

57where α > 0 is a regularisation coefficient.Since the optimisation problem ( 38) is of a least squares type, its analytical solution is

58where n par p stands for the number of model parameters.In this work, it is recommended not to use regularisation for the entries of the state matrices A p , but apply this technique only for the entries of matrices B p,i .Hence, we find the optimal model parameters from

59where the matrix

Identification of Model 2

60For model 2, we need to find constant matrices A p and the matrices w 0 p,i and w 1 p,i that define the time-varying matrices B p,i (k) as specified by Eq. ( 17).Let us rewrite the state Eq. ( 15) using the matrix Eq. ( 27), but now the matrix

61is of dimensionality n nlift × (n nlift + p(n u + n ω )) and the matrix

62The matrix Z is defined by Eq. ( 30), the vectors U p are characterised by Eq. ( 31) and the matrices

63are of dimensionality n ω × n s .Model parameters are calculated from the optimisation problem (34) or (38), the solution of which is given by Eqs.(35) or (39) or (40).Next, the model matrices A p , w 0 p,i and w 1 p,i are formed

64and

65and

66for i = 0, . . ., p − 1.We repeat calculations for p = 1, . . ., N .

Identification of Model 3

67For model 3, we have to find constant matrices A p as well as the matrices w 0 p,i and w j p,i that define the matrices B p,i (k), as specified by Eq. (18).The state Eq. ( 15) may be expressed by the matrix Eq. ( 27), but now the matrix

68The matrix Z is defined by Eq. ( 30), the vectors U p are characterised by Eq. ( 31) and the matrices

69are of dimensionality n ω × n s .The matrices

70are of dimensionality n ω × n u .The model parameters are calculated from the optimisation problem (34) or (38), the solution of which is given by Eqs.(35) or (39) or (40).Next, the model matrices A p , w 0 p,i and w j p,i are formed

71for i = 0, . . ., p − 1 and

72pol .We repeat calculations for p = 1, . . ., N .

73where N u stands for the control horizon; u(k+ p|k) = 0 for p ≥ N u .We compute the decision vector (55) as a result of solving the MPC optimisation task min

74where ||x|| 2 A = x T Ax.The vector x sp (k + p|k) defines the set-point values of state variables for the future sampling instant k + p known at the current instant, k.The vector x(k + p|k) stands for state predictions for the sampling instant k + p calculated from the process model at the current instant.Both vectors are of length n x .Diagonal weighting matrices M p ≥ 0 and Λ p > 0 are of dimensionality n x ×n x and n u ×n u , respectively.The constraints imposed on the manipulated variables and on the predicted states are defined by the vectors u min , u max , u min and u max of length n u as well as the vectors x min and x max of length n x , respectively.The last constraint represents the prediction model used to find the predicted trajectory.Only the first n u elements of the vector (55), i.e., the current increments u(k|k), are sent to the process at each sampling instant.

75It is convenient for future derivations to compactly rewrite the problem (56).We define two vectors of length n x N : the set-point vector for the prediction horizon

76. . .

77and the corresponding vector of state predictions

78We define the matrices M = diag(M 1 , . . ., M N ) and

79Let us explicitly embed the prediction model M (•) into the MPC cost function.We will derive predictions and the MPC optimisation task assuming variability of matrices B p,i (k) used in models 2 and 3; the description for model 1 using constant matrices B p,i can be easily obtained.Using Eqs. ( 15)-( 16), the state vectors found from the model for the consecutive sampling instants over the prediction horizon, i.e., p = 1, . . ., N , are

80Model errors and actual disturbances acting on the process are unavoidable.To obtain offset-free control, we use the prediction equation

81In MPC, we name the vectors d(k + p|k), of length n x , predicted unmeasured disturbances.We find them as differences between measured or observed state variables and those found from the model [1,2].Using the model (61) for the current sampling instant, k, the disturbances are

82for p = 1, . . ., N .Using Eq. ( 62), we find the predicted state trajectory (58) in the following compact vectormatrix form

83where the matrix

84is of dimensionality n x N × n lift , the matrix

85is of length n u N and the vector

86is of length n x N .We use the following relation between the vectors u N (k) and u(k)

87where

88It is comprised of the matrix J 1 defined by Eq. ( 60) and the following matrix of dimensionality

89The vector u N (k − 1) = 1 N ×1 ⊗ u(k − 1) is of length n u N .We rewrite Eq. (64) using Eq. ( 69)

90Finally, using Eq. ( 71), from the rudimentary MPC optimisation task (59), we derive the optimisation problem min

91We obtain a quadratic optimisation task since the cost function is quadratic in terms of the decision vector, u(k), and all constraints are linear.At first, a DC motor benchmark is considered to thoroughly discuss the influence of three model configurations and three versions of the lifting functions on model accuracy and MPC control quality.Next, a more complex polymerisation reactor benchmark is considered to showcase the practical applicability of the presented approach to modelling and MPC.

DC motor

92A Direct Current (DC) motor is an example of a nonlinear process.It is a frequent benchmark for assessing Koopman operator-based models, e.g., [30,32,33].The process fundamental model is [34] ẋ1

93where x 1 and x 2 stand for the rotor current and the angular velocity, respectively.The manipulated variable u is the stator current.Process parameters are: L a = 0.314, R a = 12.345, k m = 0.253, J = 0.00441, B = 0.00732, τ l = 1.47, u a = 60.The manipulated variable is limited:

94The fundamental model ( 73)-( 75) is simulated open-loop for a series of random step changes of the manipulated variable, u; each change takes place every 100th sampling period, which equals 0.01 s.Differential model equations are solved using the Runge-Kutta method of order 45.As many as 200,000 samples of manipulated and state variables are collected.The available data set has been divided into training and validation sets, each with 100,000 samples.Figure 3 shows the first 5000 samples from training and validation data sets.The regularisation coefficient α = 10 is used.

Modelling of DC motor

95Linear multi-model.Taking into account Eqs. ( 5)-( 6), we find the corresponding structure of the linear multimodel in which the state vector is not lifted

96We can note that the linear multi-model can be obtained from model 1 (Eq.( 5)) assuming that the lifted state vector equals the state vector, i.e., z(k) = x(k).Hence, the identification procedure detailed in Sect.3.2 can also be used for the linear structure.Figure 4 shows the relationship between two state variables from the validation data set vs corresponding outputs (states) of the linear model for the consecutive sampling instants p = 1, . . ., 10.The accuracy of the linear multi-model deteriorates as p grows.The sub-models are very inaccurate for p > 2 and p > 5 for the first and the second state variables, respectively.The cumulative error for all sub-models is where E X p is given by Eq. ( 19).Since we will next compare different nonlinear models to the simplest linear structure (76), we scale the error for the linear model to 100%.The model has 150 parameters.Koopman operator-based multi-model 1. Figure 5 shows the influence of the complexity of lifting functions on training and validation errors.We consider three model versions: 1a, 1b and 1c.Model 1a uses monomials of the degree n A pol , model 1b uses polynomials of the degree n A pol and model 1c uses n A RBF radial basis functions (and two state variables).We consider the monomial and polynomial degrees: n A pol = 2, 3, 4, 5, 6 since numerical problems occur for higher degrees.To keep the number of model parameters on a relatively moderate level, we consider n A RBF = 4, 9, 16, 25, 36 radial basis functions.These numbers result from the fact that we have two state variables and centres of radial basis functions are located at 2 × 2, 3×3, 4×4, 5×5 and 6×6 grid points of states, respec-tively.All errors are expressed in relation to errors of the simple linear multi-model.In general, models 1 give much lower errors than the linear model and the more complex the lifting functions, the lower the errors.Monomials (model 1a) have the largest errors and the monomial degree's impact on the error is insignificant.The polynomials (model 1b) give lower errors and the polynomial degree noticeably impacts the error.In general, radial basis functions (model 1c) lead to slightly lower errors than polynomials; we observe an exception for four basis functions that are insufficient.Koopman operator-based multi-model 2. Figure 6 shows the influence of the complexity of the lifting functions on training and validation errors.Depending on the lifting functions, we consider three model versions: 2a, 2b and 2c, similarly to models 1a, 1b and 1c.In general, models 2 give at least two times lower errors than the corresponding models 1 (Fig. 5).Indeed, the more complex the lifting functions, the lower the errors.Monomials (model 2a) are the worst ones, while the polynomials (model 2b) improve modelling accuracy.Radial basis functions (model 2c) give the lowest errors.Koopman operator-based multi-model 3. Figure 7 shows the influence of the complexity of the lifting functions (defined by the monomial or polynomial degree, n A pol , and the number of basis functions, n A RBF ) on training and validation errors.Additionally, model errors depend on the degree of the monomial that defines the complexity of the time-varying matrices B p,i (k), i.e., n B pol .We consider the following degrees: n A pol = 2, 3, 4, 5 and n B pol = 2, 3, 4, 5 as numerical problems occur for higher degrees.Regarding lifting functions, we consider three model versions: 3a, 3b and 3c.In general, in comparison with models 2 (Fig. 6), models 3 have some 20-30% lower errors.Similarly to models 1 and 2, lifting functions significantly impact model accuracy.The largest errors characterise monomials (model 3a), while radial basis functions (model 3c) give the best results.Comparison of Koopman operator-based multi-models 1, 2 and 3. Having analysed the influence of model configuration on errors in Figs.5-7, we can select some models for thorough comparison.First, let us study Table 1, which details the number of lifting functions, training and validation errors and the number of parameters for minimal models.When it gives reasonable results, we accept the models with the minimal number of parameters, i.e., for

97In two cases, however, the most uncomplicated models give very poor results and we must use more complex alternatives.Namely, model 1c0 (n A RBF = 4, n lift = 6) has larger errors than potentially less advanced models 1a and 1b with the minimal number of parameters.Hence, model 1c (n A RBF = 9, n lift = 11) is chosen.Generally, the more complex the lifting functions and dependence of the matrices B p,i (k) on the process operating point, the lower the errors, but also the higher the number of parameters.

98Next, Table 2 reports the results for the best possible models, i.e., those that give minimal validation errors in each model category.The maximal working degrees of monomials and polynomials are used.In comparison with the minimal models listed in Table 1, we can see that all errors are reduced by some 10-20% in the case of models 1a, 1b, 1c, 2a, 2c, 3a, 3b, 3c, or even almost 40-50%, e.g., in the case of model 2b.

99Since increasing the degree of monomials, polynomials and the number of basis functions leads to an unacceptable growth in the number of model parameters, we also select compromise models in each category.Table 3 shows the results.We select these models considering two conflicting objectives: minimising model errors and the number of parameters.The chosen compromise models have slightly greater errors than those for the best structures (Table 2), but the number of parameters is much lower.

100All Koopman operator-based models are more precise than the linear model, whose error equals 100%.The error of the best Koopman operator-based model equals 11%, while the worst models have errors of about 60%.

101It is interesting to discuss the influence of the lifting functions and the choice of the matrix B p,i (k) on model accuracy.For the considered process, we observe that the type of the matrix B p,i (k) has a very strong influence on model errors.For constant matrices B p,i (models 1a, 1b and 1c), model errors are large, equal approx.50-60%.Introduction of quite simple Fig. 7 The DC motor, models 3: the influence of the complexity of the lifting functions (defined by the monomial or polynomial degree, n A pol , and the number of basis functions, n A RBF ) and complexity of the time-varying matrices B p,i (k) (defined by the monomial degree, n B pol ) on training and validation errors time-varying matrices B p,i (k) that use linear functions (models 2a, 2b and 2c) leads to a significant reduction of errors at least three times.For more complex timevarying matrices B p,i (k) that use monomials (models 3a, 3b and 3c), the errors are reduced at least four times in comparison with the rudimentary models 1a, 1b and 1c. Figure 8 presents the influence of the type of matrices B p,i (k) on the accuracy of the model with polynomial lifting functions as the relationship between the validation data set vs outputs of the compromise models 1b and 2b.Model 1b is very inaccurate while model 2b is better, which means that variability of matrices B p,i (k) leads to reducing model errors.Furthermore, from Table 3, it is interesting to note that more complex model 3b leads to some reduction of model errors, but it is bought by a dramatic increase in the number of parameters.

102The type of the lifting functions also has an impact on model errors, but it is not as strong as the influence of matrices B p,i (k).We observe the least gain of using complex lifting functions for models 1, which are generally bad.We observe quite a significant gain for models 2 and 3.The radial basis lifting functions are the best, but let us note that monomials and polynomials also give good results.

103To sum up, we recommend using monomials or polynomials as lifting functions for the considered process; radial basis functions slightly improve accuracy but lead to a huge growth of model complexity.We also suggest that linear dependence of matrices B p,i (k) on the process operating point should be used.Classical Koopman operator-based model.Let us evaluate the efficiency of the classical Koopman operatorbased model determined using the EDMD algorithm Fig. 8 The DC motor: the influence of the type of the matrix B p,i (k) on the accuracy of the model with polynomial lifting functions: the relationship between the validation data set vs outputs of the compromise models 1b (top) and 2b (bottom) [26,30].It finds the model described by Eqs. ( 2) and ( 4); its objective is minimisation of model errors in the onestep-ahead mode.Different lifting functions are evaluated and, finally, the model utilising 100 Gaussian basis functions located at 10 × 10 grid points of states and the state vector itself are used.Figure 9 It is because the considered Koopman-operator multimodels independently find state variables for all consecutive sampling instants over the prediction horizon; the model is not used recurrently.Figure 10 shows the relationship between the validation data set vs outputs of the classical Koopman operator-based model used recurrently for the chosen prediction horizon.Model accuracy is poor when it is used recurrently; it is much worse than the accuracy of the compromise model 2b (Fig. 8).

MPC of DC motor

104The MPC horizons are: N = 10, N u = 3.According to Eq. (75), the second state variable is the controlled output.Hence, the weighting matrix in the first part of the MPC cost function (Eq.( 56)) is M p = 0 0 0 1 for p = 1, . . ., N .Since we have only one manipulated variable, the weighting matrix in the second part of the MPC cost function, Λ p , is replaced by the scalar λ = 0.1 for p = 0, . . ., N u − 1.

105First, let us verify the MPC's efficacy using the linear model (76).Figure 11 presents the obtained results for a set-point trajectory with the same values as considered in [30], but faster changes.Additionally, from the sampling instant k = 20, the additive step disturbance 0.1 acts on the process output; it changes its value to −0.1 starting from the sampling instant 60.Unfortunately, the default value λ = 0.1 gives very bad control quality when the MPC algorithm uses the linear model.We observe some oscillations in the first part of the simulation, while a large set-point error occurs in the second part.The linear model is imprecise, as shown in Fig. 4 and cannot make precise predictions in MPC.We must increase the penalty coefficient to obtain any set-point tracking and compensation of disturbances.Unfortunately, it leads to very slow process trajectories.

106Let us compare numerically the efficiency of MPC algorithms based on all models listed in Tabs. 1, 2 and 3 using the classical sum of squared control errors

107where k min and k max indicate the simulation horizon.

108The control error for the best model configuration is assumed to be 0% and all results are expressed in percentages.Table 4 presents the obtained relative control errors.The best results are possible for model 2c.

109The control quality is poor when the MPC algorithm uses models 1 with constant matrices B p,i .Figure 12 depicts simulation results when we use the minimal models 1a, 1b and 1c.We do not obtain satisfying results as they are of very low quality.In the first two model cases, oscillations are observed for the first setpoint change, while completely wrong trajectories are obtained for the second set-point step.The minimal model 1c results in better control quality, but much better results are possible for more complex models.Figure 13 depicts the impact of the type of lifting functions on control quality when MPC uses compromise models 2a, 2b and 2c.These models have the same type of the matrix B p,i (k) but different lifting functions, i.e., monomials, polynomials and RBFs.Because the accuracy of all these models is good, all obtained control trajectories are correct.The process output quickly follows all changes of the set-point trajectory and changes of the unmeasured disturbance are efficiently compensated.There is no steady-state error, which means that offset-free control is obtained.If the matrix B p,i is time-varying, the choice of the lifting functions does not impact model accuracy and control quality.

110Figure 14 presents the influence of the type of the matrix B p,i (k) on control quality when we use compromise models 1b, 2b and 3b.These models use the same lifting functions (polynomials).The accuracy of these models is different since the compromise model 1b with the constant matrix B p,i is much worse than the models 2b and 3b.The more complex the dependence of the time-varying matrix B p,i (k) on the vector ω(k), Fig. 12 The DC motor: the comparison of control quality when the MPC algorithm uses minimal models 1a, 1b and 1c Fig. 13 The DC motor: the influence of the type of lifting functions on control quality when the MPC algorithm uses the compromise models 2a, 2b and 2c

111Fig. 14 The DC motor: the influence of the type of the matrix B p,i (k) on control quality when the MPC algorithm uses the compromise models 1b, 2b and 3b the more precise the model, but these differences are not very significant.The compromise model 2b with a linear dependence of the matrix B p,i (k) on the vector ω(k) gives very good control quality; it is not necessary to use more complex model configurations.

112To sum up, for the considered process, we recommend model structure 2, which relies on time-varying matrices B p,i (k).Even the simplest polynomial lifting functions give very good results in such a case.The negative feedback in MPC efficiently compensates for model inaccuracies and process disturbances.The more complicated structure 3, and more complex lifting functions do not significantly improve the control quality.Structure 1 gives the worst results; some configurations do not work in MPC.

113Although the application of all models recommended in this work requires solving simple quadratic optimisation MPC problems, it is interesting to investigate the impact of model structure on the computational time.Table 5 specifies the relative calculation time for the minimal, the best and compromise models (Tables 1, 2 and 3); the time for the minimal model 1a is assumed to be 100%.In general, we can see that both the number of lifting functions and the complexity of the functions used to define the matrix B p,i (k) have an impact on the computational burden.Namely, the more the lifting functions (as in models a, b and c, respectively), the longer the time.Similarly, the more complicated the matrix B p,i (k) (as in models 1, 2 and 3, respectively), the longer the time.We also observe the shortest calculation time for the least complicated minimal models; compromise models require medium time, while the most complex best models need the longest time.We do not observe a significant increase in the calculation time of MPC as the model complexity increases.Namely, the recommended compromise model 2b, that leads to very good MPC control quality, needs the calculation time equal to approx.130% of the time necessary when the simplest minimal model 1a is used.

Polymerisation reactor

114Next, we consider a polymerisation reactor [35].Its manipulated and controlled variables are the inlet initiator flow rate F I (m 3 h −1 ) and the Number Average Molecular Weight (NAMW) of the product (kg kmol −1 ), respectively.The process fundamental model is [35]

115where The parameters of the fundamental model are given in Table 6.The manipulated variable is limited: 0.003 ≤ F I ≤ 0.06.The polymerisation reactor is a well-known benchmark for assessing model accuracy, e.g., [4,14,20,[36][37][38], and MPC performance, e.g., [4,20,[38][39][40][41].

Modelling of polymerisation reactor

116The fundamental model ( 79)-( 84) is simulated openloop for a series of random step changes of the manipulated variable, F I ; each change takes place every 30th sampling period, which equals 0.03 s.Differential model equations are solved using the Runge-Kutta method of order 45.200,000 samples of manipulated and state variables are collected.The available data set has been divided into training and validation sets, each with 100,000 samples.Table 7 reports the results for all considered models of the polymerisation process.To obtain relatively simple models, we limit our comparison to monomials used as lifting functions of degree n A pol = 2, 3, 4. We study all three versions of the matrix B p,i (k) considered in this work, i.e., constant (models 1a), timevarying using linear functions (models 2a) and timevarying using monomials of degree n B pol = 2, 3, 4, 5 (models 3a).The regularisation coefficient α = 10.All model errors are scaled in relation to the error of the linear model which equals 100%.All Koopman operator-based multi-models are more precise than the linear multi-model.Similarly to the DC motor process, we observe that the models with a constant matrix B p,i are the second worst.Moreover, depending on the degree of the monomials used as lifting functions, i.e., n A pol , such models have validation errors equal to 44-50%.On the other hand, assuming time-varying matrix B p,i (k) gives much lower errors, they equal to 10-18%.We see that increasing the degree of monomials used as lifting functions and to define the matrix B p,i (k), i.e., the quantities n A pol and n B pol , respectively, leads to reducing the model error.However, it is accompanied by significant growth in the number of model parameters.Hence, as a compromise between model accuracy and complexity, we choose the model 2a with n A pol = 2 and time-varying matrix B p,i (k) using a linear function.Since the Koopman operator-based multi-models rely on a time-varying but linear influence of future values of manipulated variables on the predicted process states, it is possible to derive a quadratic optimisation MPC task.

117In this work, a set of models characterised by different lifting functions and types of matrices B p,i (k) is found and compared.In the future, it will be of interest to develop a systematic method for automatically finding the model structure.

Fig. 1

118Fig.1The structure of model 1

Fig. 3

119Fig.3The DC motor: the first 5000 samples of training and validation data sets

Fig. 4 Fig. 5

120Fig.4 The DC motor: the relationship between the validation data set vs outputs of the linear model

Fig. 6

121Fig.6 The DC motor, models 2: the influence of the complexity of the lifting functions (defined by the monomial or polynomial degree, n A pol , and the number of basis functions, n A RBF ) on training and validation errors

122compares the first 2000 samples of the validation data set vs outputs, i.e., states, of the classical Koopman operator-based model used in the one-step-ahead mode and recurrently.The one-step-ahead mode gives good modelling accuracy.Unfortunately, model errors are significantly larger when the model is used recurrently.To emphasise the bad prediction accuracy of the classical Koopman operator-based model used recurrently, let us consider predictions over the prediction horizon N = 10 that start from all consecutive available data samples.The cumulative scaled model error for the validation data set equals 730%.It means the classical Koopman-operator model used recurrently has lower accuracy than all discussed multi-models.

Fig. 9

123Fig. 9 The DC motor: the first 2000 samples of the validation data set vs outputs of the classical Koopman operator-based model used in the one-step-ahead mode and recurrently

Fig. 11

124Fig.11The DC motor: the MPC algorithm which uses the linear model

125f * C I (t)Z I exp −E I

Figure 15

126shows the first 1500 samples from both sets.Because process variables are of different range, they are scaled: u = 100(F I − F I ),x 1 = 3(C m − C m ), x 2 = 4(C I − C I ),x 3 = 400(D 0 − D 0 ), x 4 = 0.025(D I − D I ), where F I = 0.028328, C m = 5.3745, C I = 2.2433 × 10 −1 , D 0 = 3.1308 × 10 −3 , D I = 6.2616 × 10 −1 are process variables at the nominal operating point.

Fig. 16

127Fig.16 The polymerisation reactor: simulation results of MPC based on model 2a with n A pol = 2 and time-varying matrix B p,i (k) using a linear function

Fig. 17

128Fig.17 The polymerisation reactor: the influence of the regularisation coefficient, α, on the MPC control quality utilising model 2a with n A pol = 2 and time-varying matrix B p,i (k) using a linear function

Table 1

129The DC motor: the number of lifting functions, training and validation model errors for the minimal models; n par stands for the number of model parameters

Table 2

130The DC motor: the number of lifting functions, training and validation model errors for the best models; n par stands for the number of model parameters

Table 3

131The DC motor: the number of lifting functions, training and validation model errors for the compromise models; n par stands for the number of model parameters

Table 6

132Tc 2.9442 × 10 3 kJ kmol −1 Z Tc 3.8223 × 10 10 m 3 kmol −1 h −1 E Td 2.9442 × 10 3 kJ kmol −1 Z Td 3.1457 × 10 11 m 3 kmol −1 h −1 E fm 7.4478 × 10 4 kJ kmol −1 Z fm 1.0067 × 10 15 m 3 kmol −1 h −1 The polymerisation reactor: the first 1500 samples of training and validation data sets

참고문헌 41건

  1. Advanced Control of Industrial Processes: Structures and Algorithms 2006
  2. A Data–Driven Approximation of the Koopman Operator: Extending Dynamic Mode Decomposition Journal of Nonlinear Science · Springer Science+Business Media · 2015 10.1007/s00332-015-9258-5
  3. Adaptive IMC Controller Design for Nonlinear Process Control Process Safety and Environmental Protection · Elsevier BV · 2007 10.1205/cherd06071
  4. Hamiltonian Systems and Transformation in Hilbert Space Proceedings of the National Academy of Sciences · National Academy of Sciences · 1931 10.1073/pnas.17.5.315
  5. Nonlinear predictive control of a polymerization reactor based on piecewise linear Wiener model Chemical Engineering Journal · Elsevier BV · 2008 10.1016/j.cej.2008.05.013
  6. Genetic Programming for the Identification of Nonlinear Input−Output Models Industrial & Engineering Chemistry Research · American Chemical Society · 2005 10.1021/ie049626e
  7. Explicit nonlinear predictive control algorithms with neural approximation Neurocomputing · Elsevier BV · 2013 10.1016/j.neucom.2013.09.002
  8. Dynamical Systems of Continuous Spectra Proceedings of the National Academy of Sciences · National Academy of Sciences · 1932 10.1073/pnas.18.3.255
  9. Adaptive generalized predictive control based on JITL technique Journal of Process Control · Elsevier BV · 2009 10.1016/j.jprocont.2009.04.002
  10. Online model predictive control of industrial processes using low level control hardware: A pilot-scale distillation column case study Control Engineering Practice · Elsevier BV · 2014 10.1016/j.conengprac.2014.02.016
  11. Nonlinear model-based control using second-order Volterra models Automatica · Elsevier BV · 1995 10.1016/0005-1098(94)00150-h
  12. Experimental physical parameter estimation of a thyristor driven DC-motor using the HMF-method Control Engineering Practice · Elsevier BV · 1998 10.1016/s0967-0661(98)00036-7
  13. Predictive control with constraints Automatica · Elsevier BV · 2003 10.1016/s0005-1098(03)00056-6
  14. Computationally Efficient Model Predictive Control Algorithms Studies in systems, decision and control · Springer International Publishing · 2014 10.1007/978-3-319-04229-9
  15. Linear predictors for nonlinear dynamical systems: Koopman operator meets model predictive control Automatica · Elsevier BV · 2018 10.1016/j.automatica.2018.03.046
  16. Extending Data-Driven Koopman Analysis to Actuated Systems IFAC-PapersOnLine · Elsevier BV · 2016 10.1016/j.ifacol.2016.10.248
  17. Globally optimal nonlinear model predictive control based on multi-parametric disaggregation Journal of Process Control · Elsevier BV · 2017 10.1016/j.jprocont.2017.01.005
  18. Model predictive control for systems with fast dynamics using inverse neural models ISA Transactions · Elsevier BV · 2017 10.1016/j.isatra.2017.09.016
  19. Deep learning for universal linear embeddings of nonlinear dynamics Nature Communications · Nature Portfolio · 2018 10.1038/s41467-018-07210-0
  20. Integrated missile guidance and control using optimization-based predictive control Nonlinear Dynamics · Springer Science+Business Media · 2019 10.1007/s11071-019-04835-8
  21. A constrained error-based MPC for path following of quadrotor with stability analysis Nonlinear Dynamics · Springer Science+Business Media · 2019 10.1007/s11071-019-04859-0
  22. Nonlinear black-box system identification through coevolutionary algorithms and radial basis function artificial neural networks Applied Soft Computing · Elsevier BV · 2019 10.1016/j.asoc.2019.105990
  23. Algorithms with state estimation in linear and nonlinear model predictive control Computers & Chemical Engineering · Elsevier BV · 2020 10.1016/j.compchemeng.2020.107065
  24. Fast approximate learning-based multistage nonlinear model predictive control using Gaussian processes and deep neural networks Computers & Chemical Engineering · Elsevier BV · 2020 10.1016/j.compchemeng.2020.107174
  25. On Gaussian Process Based Koopman Operators IFAC-PapersOnLine · Elsevier BV · 2020 10.1016/j.ifacol.2020.12.217
  26. 3D path-following control of robotic penguin: an ETFLMPC approach Nonlinear Dynamics · Springer Science+Business Media · 2021 10.1007/s11071-021-06365-8
  27. A Neural Network Architecture to Learn Explicit MPC Controllers from Data IFAC-PapersOnLine · Elsevier BV · 2020 10.1016/j.ifacol.2020.12.546
  28. Deterministic Global Nonlinear Model Predictive Control with Neural Networks Embedded IFAC-PapersOnLine · Elsevier BV · 2020 10.1016/j.ifacol.2020.12.1207
  29. Review on model predictive control: an engineering perspective The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2021 10.1007/s00170-021-07682-3
  30. LSTM and GRU Neural Networks as Models of Dynamical Processes Used in Predictive Control: A Comparison of Models Developed for Two Chemical Reactors Sensors · Multidisciplinary Digital Publishing Institute · 2021 10.3390/s21165625
  31. Nonlinear Predictive Control Using Wiener Models Studies in systems, decision and control · Springer International Publishing · 2021 10.1007/978-3-030-83815-7
  32. Deep Koopman Operator With Control for Nonlinear Systems IEEE Robotics and Automation Letters · Institute of Electrical and Electronics Engineers · 2022 10.1109/lra.2022.3184036
  33. Dynamic Mode Decomposition Society for Industrial and Applied Mathematics eBooks · Society for Industrial and Applied Mathematics · 2016 10.1137/1.9781611974508
  34. Expectation–maximization algorithm for bilinear systems by using the Rauch–Tung–Striebel smoother Automatica · Elsevier BV · 2022 10.1016/j.automatica.2022.110365
  35. A tutorial review of neural network modeling approaches for model predictive control Computers & Chemical Engineering · Elsevier BV · 2022 10.1016/j.compchemeng.2022.107956
  36. Input convex neural networks in nonlinear predictive control: A multi-model approach Neurocomputing · Elsevier BV · 2022 10.1016/j.neucom.2022.09.108
  37. Advanced predictive control for GRU and LSTM networks Information Sciences · Elsevier BV · 2022 10.1016/j.ins.2022.10.078
  38. Composite observer-based robust model predictive control technique for ducted fan aerial vehicles Nonlinear Dynamics · Springer Science+Business Media · 2022 10.1007/s11071-022-08011-3
  39. Efficient and integration stable nonlinear model predictive controller for autonomous vehicles based on the stabilized explicit integration method Nonlinear Dynamics · Springer Science+Business Media · 2022 10.1007/s11071-022-08081-3
  40. Model predictive control for formation reconfiguration exploiting quasi-periodic tori in the cislunar environment Nonlinear Dynamics · Springer Science+Business Media · 2023 10.1007/s11071-022-08214-8
  41. Predictive tracking of an object by a pan–tilt camera of a robot Nonlinear Dynamics · Springer Science+Business Media · 2023 10.1007/s11071-023-08295-z