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

A numerically efficient fuzzy MPC algorithm with fast generation of the control signal

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

기본 정보

저자
  1. Piotr M. Marusak — Institute of Control and Computation Engineering, Warsaw University of Technology
DOI
10.34768/amcs-2021-0005
저널
International Journal of Applied Mathematics and Computer Science
발행년도
2021
발행기관
De Gruyter Open
피인용수
13
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.34768/amcs-2021-0005
토픽
Fuel Cells and Related Materials
OpenAlex ID
W3182767866

평가 내용

관련도
간접 관련
사업분야
화학·수지 · (21) 에폭시수지
부 분야
(19) 석유수지, (23) 컴파운드
R&D 측면
공정·제조
확신도
0.70
근거 용어
Model predictive control, chemical CSTR reactor, pH reactor, nonlinear control, optimization problem
판단 근거
논문은 화학 반응기(CSTR, pH reactor)의 비선형 제어를 위한 효율적인 MPC 알고리즘을 다루고 있습니다. 이는 코오롱인더스트리의 화학/수지 및 엔지니어링 플라스틱 제조 공정의 자동화 및 최적화 제어 시스템에 응용될 수 있는 기술입니다.
R&D 활용 포인트
석유수지, 에폭시, 컴파운드 등 화학 제품의 연속 공정(CSTR 등)에서 반응 조건(온도, pH, 농도 등)을 정밀하고 빠르게 제어하여 제품 품질의 균일성을 확보하고 공정 효율을 높이는 데 활용 가능합니다.
평가 입력
본문 61,062자 중 30,032자 발췌

초록

Model predictive control (MPC) algorithms are widely used in practical applications. They are usually formulated as optimization problems. If a model used for prediction is linear (or linearized on-line), then the optimization problem is a standard, i.e., quadratic, one. Otherwise, it is a nonlinear, in general, nonconvex optimization problem. In the latter case, numerical problems may occur during solving this problem, and the time needed to calculate control signals cannot be determined. Therefore, approaches based on linear or linearized models are preferred in practical applications. A novel, fuzzy, numerically efficient MPC algorithm is proposed in the paper. It can offer better performance than the algorithms based on linear models, and very close to that of the algorithms based on nonlinear optimization. Its main advantage is the short time needed to calculate the control value at each sampling instant compared with optimization-based numerical algorithms; it is a combination of analytical and numerical versions of MPC algorithms. The efficiency of the proposed approach is demonstrated using control systems of two nonlinear control plants: the first one is a chemical CSTR reactor with a van de Vusse reaction, and the second one is a pH reactor.

본문 61,062자

본문 펼치기
Int. J. Appl. Math. Comput. Sci., 2021, Vol. 31, No. 1, 59–71 <u>DOI: 10.34768/amcs-2021-0005</u> A NUMERICALLY EFFICIENT FUZZY MPC ALGORITHM WITH FAST GENERATION OF THE CONTROL SIGNAL PIOTR M. MARUSAK <sup>_a_</sup> _a_ Institute of Control and Computation Engineering Warsaw University of Technology Nowowiejska 15/19, 00-665 Warsaw, Poland e-mail: [P.Marusak@ia.pw.edu.pl](mailto:P.Marusak@ia.pw.edu.pl) Model predictive control (MPC) algorithms are widely used in practical applications. They are usually formulated as optimization problems. If a model used for prediction is linear (or linearized on-line), then the optimization problem is a standard, i.e., quadratic, one. Otherwise, it is a nonlinear, in general, nonconvex optimization problem. In the latter case, numerical problems may occur during solving this problem, and the time needed to calculate control signals cannot be determined. Therefore, approaches based on linear or linearized models are preferred in practical applications. A novel, fuzzy, numerically efficient MPC algorithm is proposed in the paper. It can offer better performance than the algorithms based on linear models, and very close to that of the algorithms based on nonlinear optimization. Its main advantage is the short time needed to calculate the control value at each sampling instant compared with optimization-based numerical algorithms; it is a combination of analytical and numerical versions of MPC algorithms. The efficiency of the proposed approach is demonstrated using control systems of two nonlinear control plants: the first one is a chemical CSTR reactor with a van de Vusse reaction, and the second one is a pH reactor. Keywords: model predictive control, fuzzy systems, fuzzy control, nonlinear control. 1. Introduction MPC algorithms offer good control quality resulting from the way they are formulated. Therefore, they can be successfully used in control systems of processes with difficult dynamics and constraints, and of MIMO processes. This is because during the generation of the control signals a model of the control plant is used to predict the behavior of the control system (see, e.g., Camacho and Bordons, 1999; Karimi Pour _et_ _al._, 2018; Maciejowski, 2002; Rossiter, 2003; Tatjewski, 2007; 2017). Standard formulations of the MPC algorithms are based on linear control plant models (see, e.g., Camacho and Bordons, 1999; Tatjewski, 2014). However, the operation of the control system of a nonlinear control plant may be usually improved using the MPC algorithm based on a nonlinear model. It is especially important if the MPC algorithm should operate well at different operating points as in control system structures with steady-state set-point optimization (see, e.g., Blevins _et_ _al_ ., 2003; Ławry´nczuk _et al_ ., 2008; Tatjewski, 2007). © 2021 P.M. Marusak. This is an open access article distributed under If a nonlinear process model is used for prediction, then the optimization problem solved at each iteration by the algorithm may be in general a nonconvex, nonlinear optimization problem—hard to solve and with unpredictable time needed to find the solution; such algorithms will be called NMPC. One of the solutions to cope with the complexity of the optimization task is to allow a slightly suboptimal solution. This idea was proposed, in the case of MPC algorithms based on linear models, by Kouvaritakis _et_ _al_ . (2002). In the case of NPMC algorithms, fast NMPC algorithms were designed in which the solution is generated faster than in the standard approach also at the expense of suboptimality (see, e.g., Diehl _et al_ ., 2002; Schäfer _et al_ ., 2007; Zavala _et_ _al_ ., 2008). Another approach, described, e.g., by Dominguez and Pistikopoulos (2010) or Johansen (2002; 2004), is the explicit one, in which most calculations are done off-line. Furthermore, this approach is optimal in the case when a linear model is used (Bemporad _et_ _al._, 2000; 2002; Pistikopoulos _et_ _al._, 2000). Unfortunately, an important disadvantage of the approach is that the <u>P.M. Marusak</u> 6 ~~0~~ complexity of the controller grows significantly with the number of inequality constraints included in the problem. When a fuzzy Takagi–Sugeno model is used in the MPC algorithm, then obviously nonlinear optimization can be applied. The structure of the fuzzy model can be, however, exploited to formulate algorithms which are easier to solve than the standard NMPC. The first group of such algorithms includes classical fuzzy Takagi–Sugeno controllers composed of a few linear controllers which are switched in a fuzzy way (see, e.g., Killian and Kozek, 2017; Marusak and Tatjewski, 2002). Other algorithms, exploiting the structure of fuzzy Takagi–Sugeno models, are based on linear matrix inequalities (LMIs). An interesting review of algorithms using this technique is given by Guerra _et_ _al_ . (2009), and recently proposed algorithms can be found in the works of Khooban _et_ _al_ . (2016), Kong and Yuan (2019a; 2019b), Shen _et al_ . (2020) or Wu _et al_ . (2015). In order to avoid the complexity of NMPC, often on-line linearization at each algorithm iteration is used (see, e.g., Boulkaibet _et_ _al._, 2017; Essien _et_ _al._, 2019; Ławry´nczuk, 2014; 2015; 2020; Marusak, 2009a; 2009b; Morari and Lee, 1999; Tatjewski, 2007). After a linear approximation of the nonlinear model is obtained, a prediction linear to decision variables is acquired. Therefore, the optimization problem solved at each iteration of the algorithm is a quadratic one. The prediction can be based on the classical linearization or it can exploit the structure of the model the algorithm is based on. Examples of algorithms using linearization of the fuzzy Takagi–Sugeno model, in which both the free response and the dynamic matrix are obtained using the linearized model, are given by Boulkaibet _et_ _al_ . (2017) and Marusak (2009a). Algorithms in which the free response is calculated using the nonlinear model and the model obtained after linearization is used to obtain the dynamic matrix can be found in the works of Essien _et al_ . (2019) and Marusak (2009b). The computational efficiency of MPC algorithms is important when they are implemented in micro-controllers, FPGAs or PLCs. The computational power of these devices achieved such a level that they allow to implement analytical versions of MPC algorithms. An implementation of the DMC algorithm runing on an FPGA and on a PLC was described recently by Wojtulewicz and Ławry´nczuk (2018b; 2018a); implementation of the GPC controller for the STM32 ARM micro-controller is detailed by Chaber and Ławry´nczuk (2019). Both DMC and GPC algorithms are based on linear models. However, in many cases control performance can be improved after using an MPC algorithm based on a nonlinear (e.g., fuzzy) model. Therefore, fast MPC algorithms based on fuzzy models are desirable. The present paper addresses this issue. The approach proposed in this work consists in using where _yk_ <sup>_j_</sup> + _i|k_ <sup>is</sup> <sup>the</sup> <sup>value</sup> <sup>of</sup> <sup>the</sup> <sup>_j_</sup> <sup>-th</sup> <sup>output</sup> <sup>for</sup> <sup>the</sup> ( _k_ + _i_ )-th sampling instant predicted at the _k_ -th sampling instant using a control plant model, _y_ <sup>_j_</sup> _k_ + _i|k_ <sup>are</sup> <sup>elements</sup> of the reference trajectory for the _j_ -th output, Δ _u_ <sup>_m_</sup> _k_ + _i|k_ are future changes in manipulated variables, _κj_ _≥_ 0 and _λm_ _≥_ 0 are weighting coefficients for the predicted control errors of the _j_ -th output and for the changes in the _m_ -th manipulated variable, respectively; _p_ and _s_ denote prediction and control horizons, respectively; _ny_, _nu_ denote a number of output and manipulated variables, two models in the algorithm: a nonlinear model and its (easy to obtain) fuzzy approximation. The algorithm is a combination of analytical and numerical versions of MPC algorithms. Thanks to such an approach, the time needed to calculate the control value at each sampling instant is much smaller compared with numerical algorithms. However, thanks to skillful use of nonlinear models, the algorithm offers almost the same performance as that with nonlinear optimization. The next section contains a description of MPC algorithms. In Section 3 the proposed approach based on fuzzy and nonlinear models is detailed. Example results illustrating the efficacy of the proposed approach are presented in Section 4. The paper is summarized in the last section. 2. Model predictive control algorithms Model predictive control (MPC) algorithms derive future values of manipulated variables predicting the behavior of the control plant many sampling instants ahead. The values of manipulated variables are calculated in such a way that the prediction fulfills assumed criteria. Usually, the minimization of a performance index is demanded subject to the constraints put on values of manipulated and of output variables (Camacho and Bordons, 1999; Maciejowski, 2002; Rossiter, 2003; Tatjewski, 2007): _k_ + _i|k_ - _p_ _κj_ _i_ =1 _y_ <sup>_j_</sup> _k_ �2 arg min Δ _u_ - _ny_ _j_ =1 <sup>_j_</sup> _k_ + _i|k_ <sup>_−_</sup> <sup>_y_</sup> _k_ <sup>_j_</sup> �2 (1) Δ _u_ <sup>_m_</sup> _k_ + _i|k_ + - _nu_ - _s_ _m_ =1 _i_ =0 _λm_ subject to the constraints Δ _u_ min _≤_ Δ _u_ _≤_ Δ _u_ max _,_ (2) _u_ min _≤_ _u_ _≤_ _u_ max _,_ (3) _y_ min _≤_ _y_ _≤_ _y_ max _,_ (4) <u>A numerically efficient fuzzy MPC algorithm with fast generation of the control signal</u> ~~6~~ 1 respectively; _y_ = Δ _u_ = _u_ = <sup>1</sup> _k_ <sup>_,_</sup> <sup>_u_</sup> <sup>2</sup> _k_ _y_ <sup>1</sup> _k_ <sup>2</sup> _k_ <sup>_, . . .,_</sup> <sup>_y_</sup> <sup>_n_</sup> _k_ <sup>_y_</sup> _,_ <sup>1</sup> _k_ <sup>_,_</sup> <sup>_y_</sup> <sup>2</sup> _k_ - _T_ _,_ _k_ _k_ + _p|k_ _y_ <sup>_j_</sup> _k_ <sup>=</sup> _yk_ <sup>_j_</sup> _k_ <sup>_j_</sup> +1 _|k_ <sup>_, . . ., y_</sup> _k_ <sup>_j_</sup> Δ _u_ <sup>1</sup> _k_ Δ _u_ <sup>_m_</sup> _k|_ <sup>2</sup> _k_ <sup>_, . . .,_</sup> <sup>Δ</sup> <sup>_u_</sup> <sup>_n_</sup> _k_ <sup>_u_</sup> <sup>1</sup> _k_ <sup>_,_</sup> <sup>Δ</sup> <sup>_u_</sup> <sup>2</sup> _k_ - _T_ _,_ _k_ <sup>_m_</sup> _k_ + _s−_ 1 _|k_ Δ _u_ <sup>_m_</sup> _k_ <sup>=</sup> Δ _u_ <sup>_m_</sup> _k_ <sup>_m_</sup> _k|k_ <sup>_, . . .,_</sup> <sup>Δ</sup> <sup>_um_</sup> _k_ _,_ _u_ <sup>1</sup> _k_ <sup>2</sup> _k_ <sup>_, . . .,_</sup> <sup>_u_</sup> <sup>_n_</sup> _k_ <sup>_u_</sup> _,_ - _T_ _,_ _k_ <sup>_m_</sup> _k_ + _s−_ 1 _|k_ _u_ <sup>_m_</sup> _k_ <sup>=</sup> _u_ <sup>_m_</sup> _k|_ <sup>_m_</sup> _k|k_ <sup>_, . . ., um_</sup> _k_ + _u_ min, _u_ max and Δ _u_ min, Δ _u_ max are vectors of lower and upper bounds on the values and on the changes of the manipulated variables, and _y_ min, _y_ max are the vectors of lower and upper bounds on the values of the output variables. As a solution to the optimization problem (1)–(4) an optimal vector of changes in the manipulated variables is obtained. From this vector, the Δ _u_ <sup>_m_</sup> _k|k_ elements, corresponding to the current sampling instant, are applied in the control system. The optimization problem (1)–(4) is solved at each sampling instant. _λ_ _j_ = [ _λj, . . ., λj_ ] is of length _s_ (and the matrix _I_ is of dimension _s · nu × s · nu_ ). 2.1. MPC algorithms based on linear models (LMPC). If the prediction is obtained using a linear process model, then the optimization problem (1)–(4) is a standard quadratic programming one (Camacho and Bordons, 1999; Maciejowski, 2002; Rossiter, 2003; Tatjewski, 2007). This is because the superposition principle applies and the vector of predicted output values _y_ can be described by the following formula: _y_ = _y_ - + _A_ _·_ Δ _u_ _,_ (6) where _y_ - = _y_ - <sup>1</sup> _k_ <sup>_,_</sup> <sup>�</sup> <sup>_y_</sup> <sup>2</sup> _k_ _k_ <sup>2</sup> _k_ <sup>_, . . .,_</sup> <sup>�</sup> <sup>_y_</sup> <sup>_n_</sup> _k_ <sup>_y_</sup> - _T_ _,_ _y_ - <sup>_j_</sup> _k_ <sup>=</sup> _y_ - _k_ <sup>_j_</sup> +1 _|k_ <sup>_, . . .,_</sup> <sup>�</sup> <sup>_y_</sup> _k_ <sup>_j_</sup> _k_ + _p|k_ The way the predicted values of output variables _yk_ <sup>_j_</sup> + _i|k_ <sup>are</sup> <sup>derived depends on</sup> <sup>the</sup> <sup>dynamic</sup> <sup>control plant</sup> model the predictive algorithm is based on. If a nonlinear process model is used, then the optimization problem (1)–(4) is, in general, a nonconvex nonlinear optimization problem instead of a linear-quadratic one. In such an algorithm, different kinds of process models can be used but they are exploited in a similar way; therefore an algorithm of this kind will be later referred to, in general, as nonlinear MPC (NMPC). In the NMPC algorithm the computational burden needed to solve such a problem can be prohibitive, making practical implementation of the predictive algorithm difficult and unreliable. On the other hand, if the linear model is used, then the problem (1)–(4) is a standard quadratic programming one. Unfortunately, using the algorithm based on a linear plant model for the nonlinear plant may be insufficient if control at a wide range of set-points is needed. A possible solution to these difficulties could be to use algorithms based on an on-line linearization approach; see, e.g., Tatjewski (2007), a survey paper by Mayne _et al_ . (2000) and the references therein. The performance index (1) can be expresssed by _J_ MPC = ( _y_ _−_ _y_ ) <sup>_T_</sup> _·_ _κ_ _·_ ( _y_ _−_ _y_ ) + Δ _u_ <sup>_T_</sup> _·_ _λ_ _·_ Δ _u_ _,_ (5) is called a free response of the control plant, because it contains future values of output variables calculated assuming that the control signals do not change in the prediction horizon; _A_ is called the dynamic matrix, composed of the step response coefficients. It can be shown that the dynamic matrix has the same form in different types of LMPC algorithms using different types of linear models (Tatjewski, 2007). After applying the prediction (6), the performance index (5) can be transformed to _J_ LMPC =( _y_ _−_ _y_ - _−_ _A_ _·_ Δ _u_ ) <sup>_T_</sup> _·_ _κ_ _·_ ( _y_ _−_ _y_ - _−_ _A_ _·_ Δ _u_ ) + Δ _u_ <sup>_T_</sup> _·_ _λ_ _·_ Δ _u_ _._ (7) The performance index (7) depends quadratically on decision variables Δ _u_ ; if it is minimized without taking constraints into consideration, then the following analytical solution is obtained: Δ _u_ = _K_ _·_ ( _y_ _−_ _y_ �) _,_ (8) where the matrix _K_ = - - _−_ 1 _A_ <sup>_T_</sup> _·_ _κ_ _·_ _A_ + _λ_ _·_ _A_ <sup>_T_</sup> _·_ _κ_ (9) where <sup>2</sup> _k_ <sup>_, . . .,_</sup> <sup>_y_</sup> <sup>_n_</sup> _k_ <sup>_y_</sup> - _T_ _k_ _y_ = _y_ <sup>1</sup> _k_ <sup>1</sup> _k_ <sup>_,_</sup> <sup>_y_</sup> <sup>2</sup> _k_ can be calculated only once, off-line, because the elements of the dynamic matrix remain constant. If only control changes for the current iteration are of interest, then (8) can be simplified: Δ _u_ <sup>_m_</sup> _k|k_ <sup>=</sup> <sup>_K_</sup> <sup>(</sup> <sup>_m−_</sup> <sup>1)</sup> <sup>_·s_</sup> <sup>+1</sup> <sup>_·_</sup> <sup>(</sup> <sup>_y_</sup> <sup>_−_</sup> <sup>_y_</sup> <sup>�)</sup> <sup>_,_</sup> (10) where _K_ ( _m−_ 1) _·s_ +1 is the (( _m −_ 1) _· s_ + 1)-th row of the matrix _K_ . _k_ + _p|k_ and every vector _y_ <sup>_j_</sup> _k_ <sup>_j_</sup> _k_ <sup>=</sup> _y_ <sup>_j_</sup> _k_ <sup>_j_</sup> _k_ +1 _|k_ <sup>_, . . ., yj_</sup> _k_ is of length - - _k_ + _p|k_ _p_, _κ_ = _κ_ 1 _, . . .,_ _κ_ _ny_ _·_ _I_, every vector _κ_ _j_ = [ _κj, . . ., κj_ ] is of length _p_ (and the matrix _I_ is of dimension _p_ _·_ _ny_ _×_ _p_ _·_ _ny_ ), _λ_ = [ _λ_ 1 _, . . .,_ _λ_ _nu_ ] _·_ _I_, every vector _p_, _κ_ = _κ_ 1 _, . . .,_ _κ_ _ny_ <u>P.M. Marusak</u> 6 ~~2~~ 3. Efficient fuzzy MPC algorithm Application of the LMPC algorithm to a nonlinear process may result in unsatisfactory control performance, especially if operation at different operating points is demanded. However, a skillful usage of a fuzzy model for prediction allows improving the control quality of highly nonlinear processes. An algorithm which offers control quality comparable with the one guaranteed by the NMPC algorithm is the FMPC algorithm, in which the free response is calculated using a nonlinear process model. This FMPC algorithm is detailed by Marusak (2009b) and is a numerical, optimization-based one. The algorithm proposed in this section is a combination of analytical LMPC, described in Section 2.1, and of the FMPC algorithm by Marusak (2009b). Thanks to such an approach it generates the control signal fast and, at the same time, offers control quality close to the one guaranteed by NMPC algorithms. This is because in the proposed numerically efficient FMPC (EFMPC) algorithm solving the optimization problem in each iteration is avoided; the control action is generated in a much simpler way. In the EFMPC algorithm two models are used. The original, nonlinear one is used to calculate the free response, like in the FMPC algorithm, whereas the fuzzy model, with step responses used as local models, is employed in a skillful generation of the control law. The proposed EFMPC algorithm will be now described. Suppose that one has a nonlinear process model which generates the output values _y_ - _k_ +1 _|k_ = _f_ ( _y_ _k,_ _y_ _k−_ 1 _, . . .,_ _y_ _k−na_ _,_ _u_ _k−_ 1 _,_ _u_ _k−_ 2 _, . . .,_ _u_ _k−nb_ ) _,_ (11) where _y_ _k−i_ = _yk_ <sup>1</sup> _−i_ <sup>_, . . ., y_</sup> _k_ <sup>_n_</sup> _−_ <sup>_y_</sup> _i_ - _T_ is the vector of the measured values of the output variables at the ( _k −_ _i_ )-th sampling instant, _u_ _k−i_ = _u_ <sup>1</sup> _k−i_ <sup>_, . . ., un_</sup> _k−_ <sup>_u_</sup> _i_ - _T_ is the vector does not change (the free response is calculated) is utilized: _y_ - _k_ +2 _|k_ = _f_ ( _y_ - _k_ +1 _|k,_ _y_ _k, . . .,_ _y_ _k−na_ +1 _,_ _u_ _k−_ 1 _,_ _u_ _k−_ 1 _, . . .,_ _u_ _k−nb_ +1); (12) _•_ thus, in general, in the _i_ -th step, using the values _y_ - _k_ +1 _|k, . . .,_ - _y_ _k_ + _i−_ 1 _|k_ and assuming that the control signal does not change, one obtains _y_ - _k_ + _i|k_ = _f_ ( _y_ - _k_ + _i−_ 1 _|k,_ - _y_ _k_ + _i−_ 2 _|k, . . .,_ _y_ _k−na_ + _i−_ 1 _,_ _u_ _k−_ 1 _,_ _u_ _k−_ 1 _, . . .,_ _u_ _k−nb_ + _i−_ 1) _._ (13) _•_ Then the free response is calculated taking into consideration the estimated disturbances (containing also the influence of modeling errors). The final formula describing the elements of the free response is then as follows: _y_ - _k_ + _i|k_ = _y_ - _k_ + _i|k_ + _d_ _k_ _,_ (14) where _y_ - _k_ + _i|k_ = _y_ - _k_ <sup>1</sup> + _i|k_ <sup>_, . . .,_</sup> <sup>�</sup> <sup>_y_</sup> _k_ <sup>_n_</sup> + <sup>_y_</sup> _i|k_ - _T_ and _d_ _k_ is the DMC-type disturbance model, i.e., it is assumed the same for all instants in the prediction horizon and where _y_ - _k_ + _i|k_ = _y_ - _k_ <sup>1</sup> + _i|k_ <sup>_, . . .,_</sup> <sup>�</sup> <sup>_y_</sup> _k_ <sup>_n_</sup> + <sup>_y_</sup> _k_ + _i|k_ _k−i_ _d_ _k_ = _y_ _k −_ _y_ - _k|k−_ 1 _._ (15) 3.2. Formulation of the control law. In order to simplify the algorithm and make the calculation of the control signal faster, the latter part of the algorithm is done in a way described below. Assume that a Takagi–Sugeno fuzzy model composed of local models in the form of step responses was obtained: Rule _f_ : (16) where _y_ _k−i_ = _yk_ <sup>1</sup> _k_ <sup>1</sup> _−i_ <sup>_, . . ., y_</sup> _k_ <sup>_n_</sup> _−_ <sup>_y_</sup> 1 <sup>_f,j_</sup> and _. . ._ and _yk_ <sup>_j_</sup> _k_ <sup>_j_</sup> _−i_ <sup>is</sup> <sup>_B_</sup> _i_ <sup>_f,j_</sup> _i_ <sup>_f,j_</sup> and if _yk_ <sup>_j_</sup> _k_ <sup>_j_</sup> _−_ 1 <sup>is</sup> <sup>_B_</sup> 1 <sup>_f,j_</sup> _u_ <sup>1</sup> _k_ _k−i_ sampling instant, _u_ _k−i_ = _u_ <sup>1</sup> _k−i_ <sup>_, . . ., un_</sup> _k−_ <sup>_u_</sup> _i_ - _T_ is the vector of the values of manipulated variables at the ( _k −_ _i_ )-th sampling instant; let us also denote the outputs of the model at the ( _k_ + _i_ )-th sampling instant as _y_ - _k_ + _i|k_ = _y_ - _k_ <sup>1</sup> + _i|k_ <sup>_, . . .,_</sup> <sup>�</sup> <sup>_y_</sup> _k_ <sup>_n_</sup> + <sup>_y_</sup> _i|k_ - _T_, while _na, nb_ determine how many where _yk_ <sup>_j_</sup> <sup>_m_</sup> _k−i_ <sup>is</sup> <sup>_C_</sup> _i_ <sup>_f,m_</sup> 1 <sup>_f,m_</sup> and _. . ._ and _u_ <sup>_m_</sup> _k_ _i_ <sup>1</sup> _k−i_ <sup>_, . . ., un_</sup> _k−_ <sup>_u_</sup> _u_ <sup>_m_</sup> _k_ <sup>_m_</sup> _k−_ 1 <sup>is</sup> <sup>_C_</sup> 1 <sup>_f,m_</sup> _p_ - _−_ 1 _i_ =1 then _y_ ˆ _k_ <sup>_j,f_</sup> = - _nu_ _m_ =1 _a_ <sup>_j,m,f_</sup> _i_ <sup>_j,m,f_</sup> _i_ _·_ Δ _u_ <sup>_m_</sup> _k−i_ <sup>+</sup> <sup>_a_</sup> _p_ <sup>_j,m,f_</sup> _p_ <sup>_j,m,f_</sup> _· u_ <sup>_m_</sup> _k−p_ <sup>_,_</sup> _y_ - _k_ <sup>1</sup> + _i|k_ <sup>_, . . .,_</sup> <sup>�</sup> <sup>_y_</sup> _k_ <sup>_n_</sup> + <sup>_y_</sup> _i|k_ - _T_, while _na, nb_ determine how many past output and control values are used by the model. where _yk_ <sup>_j_</sup> <sup>is</sup> <sup>the</sup> <sup>_j_</sup> <sup>-th</sup> <sup>output</sup> <sup>variable</sup> <sup>value</sup> <sup>at</sup> <sup>the</sup> <sup>_k_</sup> <sup>-th</sup> sampling instant, _u_ <sup>_m_</sup> _k_ <sup>is</sup> <sup>the</sup> <sup>_m_</sup> <sup>-th</sup> <sup>manipulated</sup> <sup>variable</sup> sampling instant, _u_ <sup>_m_</sup> _k_ <sup>is</sup> <sup>the</sup> <sup>_m_</sup> <sup>-th</sup> <sup>manipulated</sup> <sup>variable</sup> value at the _k_ -th sampling instant, _B_ 1 <sup>_f,j, . . ., B_</sup> _i_ <sup>_f,j_</sup>, _k_ + _i|k_ 3.1. Generation of the free response. The model (11) is then employed to obtain the free response, like in the work of Marusak (2009b), for the whole prediction horizon, iteratively, i.e., _•_ First, the process model is used to obtain _y_ - _k_ +1 _|k_ (formula (11)). _•_ Then the values _y_ - _k_ +1 _|k_ are used as the output values for the ( _k_ + 1)-th sampling instant, to obtain the output values for the next sampling instant _y_ - _k_ +2 _|k_ . Moreover, the assumption that the control signal value at the _k_ -th sampling instant, _B_ 1 <sup>_f,j, . . ., B_</sup> _i_ <sup>_f,j_</sup>, _C_ 1 <sup>_f,m_</sup> _, . . ., Ci_ <sup>_f,m_</sup> are fuzzy sets, _a_ <sup>_j,m,f_</sup> _i_ are the coefficients of step responses in the _f_ -th local model, _j_ = 1 _, . . ., ny_, _m_ = 1 _, . . ., nu_, _f_ = 1 _, . . ., l_ ; here _l_ is the number of rules. The design process of such a model is rather simple. It is sufficient to collect a few sets of step responses (around a few operating points). Then, using expert knowledge, the premises can be formulated and, subsequently, they can be tuned using, e.g., a fuzzy neural network. 1 <sup>_f,m_</sup> _, . . ., Ci_ <sup>_f,m_</sup> _i_ <sup>_f,m_</sup> are fuzzy sets, _a_ <sup>_j,m,f_</sup> _i_ <u>A numerically efficient fuzzy MPC algorithm with fast generation of the control signal</u> ~~6~~ 3 <sup>_m_</sup> _k|k_ <sup>= Δ</sup> <sup>_u_</sup> min <sup>_m_</sup> Now, for each local model a dynamic matrix is obtained: _•_ for lower bound constraints: —if Δ _u_ <sup>_m_</sup> _k|k_ <sup>_<_</sup> <sup>Δ</sup> <sup>_u_</sup> min <sup>_m_</sup> <sup>, then</sup> —if Δ _u_ <sup>_m_</sup> _k|k_ <sup>_<_</sup> <sup>Δ</sup> <sup>_u_</sup> min <sup>_m_</sup> <sup>, then Δ</sup> <sup>_um_</sup> _k|k_ <sup>= Δ</sup> <sup>_u_</sup> min <sup>_m_</sup> <sup>,</sup> _•_ for upper bound constraints: —if Δ _u_ <sup>_m_</sup> _k|k_ <sup>_>_</sup> <sup>Δ</sup> <sup>_u_</sup> max <sup>_m_</sup> <sup>, then Δ</sup> <sup>_um_</sup> _k|k_ <sup>= Δ</sup> <sup>_u_</sup> max <sup>_m_</sup> <sup>_m_</sup> _k|k_ <sup>_<_</sup> <sup>Δ</sup> <sup>_u_</sup> min <sup>_m_</sup> min <sup>_m_</sup> <sup>, then Δ</sup> <sup>_um_</sup> _k|k_ ... ... ... ... _A_ <sup>_f_</sup> _A_ <sup>_f_</sup> _. . ._ _A_ <sup>_f_</sup> _A_ <sup>_f_</sup> <sup>_f_</sup> 12 _. . ._ _A_ <sup>_f_</sup> 1 _n_ <sup>_f_</sup> 22 _. . ._ _A_ <sup>_f_</sup> 2 _,_ (17) <sup>_m_</sup> _k|k_ <sup>= Δ</sup> <sup>_um_</sup> max <sup>_m_</sup> <sup>, then Δ</sup> <sup>_um_</sup> _k|_ ⎤ ⎥⎥⎥⎥⎦ <sup>_m_</sup> _k|k_ <sup>_>_</sup> <sup>Δ</sup> <sup>_um_</sup> _A_ <sup>_f_</sup> = ⎡ ⎡ ⎢⎢⎢⎢⎣ _a_ <sup>_j,m,f_</sup> 1 _a_ <sup>_j,m,f_</sup> 1 0 _. . ._ 0 0 _a_ <sup>_j,m,f_</sup> 2 _a_ <sup>_j,m,f_</sup> 1 _. . ._ 0 0 ... ... ... ... ... _a_ <sup>_j,m,f_</sup> _p_ _a_ <sup>_j,m,f_</sup> _p−_ 1 _. . ._ _a_ <sup>_j,m,f_</sup> _p−s_ +2 _a_ <sup>_j,m,f_</sup> _p−_ 11 12 1 _nu_ _A_ <sup>_f_</sup> _A_ <sup>_f_</sup> _. . ._ _A_ <sup>_f_</sup> <sup>_f_</sup> _A_ <sup>_f_</sup> 11 <sup>_f_</sup> _A_ <sup>_f_</sup> 21 21 22 2 _nu_ ... ... ... ... —if Δ _u_ <sup>_m_</sup> _k|k_ <sup>_>_</sup> <sup>Δ</sup> <sup>_u_</sup> max <sup>_m_</sup> <sup>, then Δ</sup> <sup>_um_</sup> _k|k_ <sup>= Δ</sup> <sup>_u_</sup> max <sup>_m_</sup> <sup>;</sup> and leading to fulfillment of the constraints on control values: <sup>_f_</sup> _A_ <sup>_f_</sup> _ny_ 1 _n_ <sup>_f_</sup> _ny_ 2 _. . ._ _A_ <sup>_f_</sup> _n_ _nynu_ _•_ for lower bound constraints: —if _u_ <sup>_m_</sup> _k−_ 1 <sup>+ Δ</sup> <sup>_um_</sup> _k|k_ <sup>_< u_</sup> min <sup>_m_</sup> _•_ for upper bound constraints: —if _u_ <sup>_m_</sup> _k−_ 1 <sup>+ Δ</sup> <sup>_um_</sup> _k|k_ <sup>_> u_</sup> max <sup>_m_</sup> <sup>_m_</sup> _k−_ 1 <sup>+ Δ</sup> <sup>_um_</sup> _k|_ <sup>_m_</sup> _k|k_ <sup>_< u_</sup> min <sup>_m_</sup> min <sup>_m_</sup> <sup>, then</sup> min <sup>_m_</sup> <sup>_−_</sup> <sup>_u_</sup> _k_ <sup>_m_</sup> _−_ _k_ <sup>_m_</sup> _−_ 1 <sup>_,_</sup> <sup>_j,m,f_</sup> _a_ <sup>_j,m,f_</sup> 1 _. . ._ 0 0 ... ... ... ... ... ... ... ... ⎤ ⎥⎥⎥⎦ _._ Δ _u_ <sup>_m_</sup> _k|_ <sup>_m_</sup> _k|k_ <sup>=</sup> <sup>_u_</sup> min <sup>_m_</sup> _A_ <sup>_f_</sup> _jm_ <sup>=</sup> ⎢⎢⎢⎣ <sup>_j,m,f_</sup> 2 _a_ <sup>_j,m,f_</sup> 1 <sup>_j,m,f_</sup> _p_ _a_ <sup>_j,m,f_</sup> _p−_ 1 <sup>_j,m,f_</sup> _p−_ 1 _. . ._ _a_ <sup>_j,m,f_</sup> _p−s_ _a_ <sup>_j,m,f_</sup> _p−s_ +2 _a_ <sup>_j,m,f_</sup> _p−s_ _p−s_ +1 <sup>_m_</sup> _k−_ 1 <sup>+ Δ</sup> <sup>_um_</sup> _k|_ <sup>_m_</sup> _k|k_ <sup>_> um_</sup> max <sup>_m_</sup> <sup>, then</sup> (18) Next, for each dynamic matrix _A_ <sup>_f_</sup> the appropriate matrix _K_ <sup>_f_</sup> is calculated using the formula (cf. (9)) Δ _u_ <sup>_m_</sup> _k|_ <sup>_m_</sup> _k|k_ <sup>=</sup> <sup>_u_</sup> max <sup>_m_</sup> max <sup>_m_</sup> <sup>_−_</sup> <sup>_u_</sup> _k_ <sup>_m_</sup> _k_ <sup>_m_</sup> _−_ 1 <sup>_._</sup> - _−_ 1 _·_ _A_ <sup>_f_</sup> <sup>_T_</sup> _·_ _κ_ _._ (19) Using this mechanism it is also possible to take constraints on predicted output values into consideration; for details see the work of Marusak (2010). 3.4. Properties of the algorithm. The diagram of the algorithm is depicted in Fig. 1. Many actions, also the most computationally demanding calculation of the matrices _K_ <sup>_f_</sup> (using (19)), are done off-line; these include the following: I. Development of the fuzzy model (16). II. Construction of the dynamic matrices _A_ <sup>_f_</sup> from (17), for each of the local models from (16). III. Calculation of the matrices _K_ <sup>_f_</sup> using (19), for each dynamic matrix obtained in the previous step. IV. Construction of the fuzzy controller (21) using appropriate elements of the _K_ <sup>_f_</sup> matrices. Thanks to the proposed approach, in each iteration of the EFDMC algorithm (in each sampling instant) only the following actions should be done (see Fig. 1): 1. The nonlinear control plant model is used to generate the free response (14) of the control plant. 2. For each fuzzy rule from the model (16) the value of _w_ - <sup>_f_</sup>, the normalized firing strength, is calculated. 3. The obtained free response _y_ �, the firing strengths _w_ - <sup>_f_</sup> and the appropriate rows of the matrices _K_ <sup>_f_</sup> are used in the control law (22) to calculate the control signals. No optimization routines are used. The proposed algorithm usually gives better results than the standard LMPC one and generates results very close to those obtained with a numerical, optimization-based FMPC algorithm, in which the free response is generated the same way. However, it needs much fewer computations to obtain the control values than its counterpart, which uses quadratic optimization. The proposed algorithm, like other algorithms based on linearization, is an approximate one compared with _K_ <sup>_f_</sup> = _A_ <sup>_f_</sup> <sup>_T_</sup> _·_ _κ_ _·_ _A_ <sup>_f_</sup> + _λ_ Each matrix _K_ <sup>_f_</sup> can be calculated off-line. Thus, the following fuzzy controller can be obtained (compare the local controllers with (8)): Rule _f_ : (20) if _yk_ <sup>_j_</sup> _k_ <sup>_j_</sup> _−_ 1 <sup>is</sup> <sup>_B_</sup> 1 <sup>_f,j_</sup> 1 <sup>_f,j_</sup> and _. . ._ and _yk_ <sup>_j_</sup> _k_ <sup>_j_</sup> _−i_ <sup>is</sup> <sup>_B_</sup> _i_ <sup>_f,j_</sup> _i_ <sup>_f,j_</sup> and <sup>_m_</sup> _k−_ 1 <sup>is</sup> <sup>_C_</sup> 1 <sup>_f,m_</sup> <sup>_m_</sup> _k−i_ <sup>is</sup> <sup>_C_</sup> _i_ <sup>_f,m_</sup> _u_ <sup>_m_</sup> _k_ 1 <sup>_f,m_</sup> and _. . ._ and _u_ <sup>_m_</sup> _k_ 1 _i_ then Δ _u_ <sup>_f_</sup> = _K_ <sup>_f_</sup> _·_ ( _y_ _−_ _y_ �) _._ If only control changes for the current iteration are of interest, then (20) can be simplified: Rule _f_ : (21) if _yk_ <sup>_j_</sup> _k_ <sup>_j_</sup> _−_ 1 <sup>is</sup> <sup>_B_</sup> 1 <sup>_f,j_</sup> 1 <sup>_f,j_</sup> and _. . ._ and _yk_ <sup>_j_</sup> _k_ <sup>_j_</sup> _−i_ <sup>is</sup> <sup>_B_</sup> _i_ <sup>_f,j_</sup> _i_ <sup>_f,j_</sup> and <sup>_m_</sup> _k−_ 1 <sup>is</sup> <sup>_C_</sup> 1 <sup>_f,m_</sup> <sup>_m_</sup> _k−i_ <sup>is</sup> <sup>_C_</sup> _i_ <sup>_f,m_</sup> _u_ <sup>_m_</sup> _k_ 1 <sup>_f,m_</sup> and _. . ._ and _u_ <sup>_m_</sup> _k_ 1 _i_ then Δ _u_ <sup>_f,m_</sup> _k|k_ <sup>=</sup> <sup>_K_</sup> ( <sup>_f_</sup> _m−_ 1) _·s_ +1 <sup>_·_</sup> <sup>(</sup> <sup>_y_</sup> <sup>_−_</sup> <sup>_y_</sup> <sup>�)</sup> <sup>_,_</sup> <sup>_f,m_</sup> _k|k_ <sup>=</sup> <sup>_K_</sup> ( <sup>_f_</sup> ( <sup>_f_</sup> _m−_ 1) _·s_ +1 <sup>_·_</sup> <sup>(</sup> <sup>_y_</sup> <sup>_−_</sup> <sup>_y_</sup> <sup>�)</sup> <sup>_,_</sup> where _K_ <sup>_f_</sup> ( _m−_ 1) _·s_ +1 <sup>are</sup> <sup>the</sup> <sup>((</sup> <sup>_m −_</sup> <sup>1)</sup> <sup>_· s_</sup> <sup>+ 1)-th</sup> <sup>rows</sup> <sup>of</sup> the matrices _K_ <sup>_f_</sup> . The output of the fuzzy controller (21) is given by Δ _u_ <sup>_m_</sup> _k|k_ <sup>=</sup> - _l_ _f_ =1 _w_ - <sup>_f_</sup> _·_ _K_ <sup>_f_</sup> ( _m−_ 1) _·s_ +1 <sup>_·_</sup> <sup>(</sup> <sup>_y_</sup> <sup>_−_</sup> <sup>_y_</sup> <sup>�)</sup> <sup>_,_</sup> (22) where _w_ - <sup>_f_</sup> is the normalized firing strength of the _f_ -th rule, obtained using fuzzy reasoning. 3.3. Taking constraints into consideration. In order to take control constraints into consideration in the proposed algorithm, the control projection onto the constraint set can be applied (see, e.g., Tatjewski, 2007). The mechanism consists in application of the following rules of Δ _u_ <sup>_m_</sup> _k|k_ <sup>modification, leading to</sup> <sup>the fulfillment of</sup> the constraints on control changes: <u>P.M. Marusak</u> 6 ~~4~~ Fig. 2. Diagram of the isothermal CSTR with a van de Vusse reaction. CB 1.4 1.2 1 0.8 0.6 0.4 0.2 0 11 10 60 80 100 CAf 9 0 20 40 F Fig. 1. Diagram of the EFMPC algorithm. an NMPC algorithm. However, in the example control systems it will be demonstrated that both algorithms can offer comparable results. Moreover, the algorithm can be used not only as a stand-alone one, but also as support for NMPC algorithms to improve their numerical properties. In the latter case the numerically efficient algorithm can be employed to generate the starting control trajectory for a nonlinear optimization routine, using (20). Next, the NMPC algorithm tries to improve the initial trajectory. If it manages to do so during one sampling instant, then the newly derived control action is applied to the process. If it fails to improve the approximate solution, then the control signal generated by the proposed algorithm can be used, as it offers performance very close to the optimal one, anyway. Remark 1. The model given by (16) is obtained from the model (11). The membership functions can be chosen by a designer after analyzing the shape of the steady-state characteristic of the process. It is done in the examples detailed in the next section. Such an approach is relatively simple and allows obtaining the EFMPC controller offering better control performance than the LMPC one, fast. However, parameters of the membership functions can be also tuned using optimization. Remark 2. The premises of the obtained controller (21) can be changed if needed to improve the control Fig. 3. Steady-state characteristic of the control plant. system performance. This can be done either by using a trial-and-error method or by optimizing the parameters of the membership functions. In the case of the local controllers the main tuning parameters are _κj_ and _λm_ . An increase in _λm_ in relation to _κj_ increases robustness of the controller but, at the same time, slows it down. In the MIMO case, if one needs to improve stabilization of the _j_ -th output, then _κj_ should be increased. More advanced methods of tuning allow varying the values of _κj_ and _λm_ at different instants of the prediction horizon. Such an approach allows obtaining interesting results but demands significant effort during the tuning process; for details, see the work of Nebeluk and Marusak (2020). 4. Simulation experiments 4.1. SISO control plant. The control plant under consideration is an isothermal CSTR in which a van de Vusse reaction is carried out (Fig. 2). The steady-state characteristic of the control plant is shown in Fig. 3. The process model of the reactor contains two composition balance equations (Doyle _et al_ ., 1995): _C_ B = _k_ 1 _· C_ A _−_ _k_ 2 _· C_ B _−_ <sup>_F_</sup> d _t_ _V_ d _C_ A A <sup>2</sup> <sup>+</sup> <sup>_F_</sup> _V_ _C_ A = _−k_ 1 _· C_ A _−_ _k_ 3 _· C_ A <sup>2</sup> d _t_ <sup>_F_</sup> _V_ <sup>(</sup> <sup>_C_</sup> <sup>Af</sup> <sup>_−_</sup> <sup>_C_</sup> <sup>A)</sup> <sup>_,_</sup> (23) d _C_ B <sup>_F_</sup> _V_ <sup>_C_</sup> <sup>B</sup> <sup>_,_</sup> <u>A numerically efficient fuzzy MPC algorithm with fast generation of the control signal</u> ~~6~~ 5 where _C_ A, _C_ B are the concentrations of components A and B, respectively, _F_ is the inlet flow rate (equal to the outlet flow rate; it is assumed that it is constrainted, and _F_ min = 0 l _/_ h, _F_ max = 60 l _/_ h), _V_ is the volume in which the reaction takes place (it is assumed constant and _V_ = 1 l), _C_ Af is the concentration of component A in the inlet flow stream (it is assumed that _C_ Af = 10 mol _/_ l). The values of the parameters are _k_ 1 = 50 1 _/_ h, _k_ 2 = 100 1 _/_ h, _k_ 3 = 10 l _/_ (h _·_ mol). The output variable is the concentration _C_ B of substance B, the manipulated variable is the inlet flow rate _F_ of the raw substance, _C_ Af concentration is the disturbance variable. The fuzzy model is composed of three step responses, with membership functions shown in Fig. 4. The step responses were obtained in a vicinity of the following operating points (Marusak, 2009a): 1. _C_ B0 = 0 _._ 91 mol _/_ l _,_ _C_ A0 = 2 _._ 18 mol _/_ l _,_ _F_ = 20 l _/_ h; 2. _C_ B0 = 1 _._ 12 mol _/_ l _,_ _C_ A0 = 3 mol _/_ l _,_ _F_ = 34 _._ 3 l _/_ h; 3. _C_ B0 = 1 _._ 22 mol _/_ l _,_ _C_ A0 = 3 _._ 66 mol _/_ l _,_ _F_ = 50 l _/_ h. Operation of the proposed EFMPC algorithm will be compared with that of three other MPC algorithms: an NMPC one with nonlinear optimization, an LMPC one with a linear model and the optimization-based FMPC by Marusak (2009b). The sampling time was assumed equal to _T_ s = 3 _._ 6 s; tuning parameters of all three algorithms were as follows: prediction horizon _p_ = 70, control horizon _s_ = 35, _λ_ 1 = 0 _._ 001 and _κ_ 1 = 1. Responses generated with the predictive algorithms will be also compared with the ones obtained with the PID controller proposed by Krishna _et_ _al_ . (2012) (called SA-PID) and considered the best there. The responses obtained after changes in the set-point value are shown in Figs. 5 and 6. In the case when the set-point was changed to _C_ _B_ = 1 _._ 25 (Fig. 5), the responses obtained in the control system with the proposed EFMPC algorithm (solid lines) are almost the same as those generated with the optimization-based FMPC algorithm (dotted lines). Despite significant simplification of calculations, the obtained responses are practically the same. The responses obtained with FMPC algorithms are faster than those obtained with the NMPC algorithm (dashed lines). All the algorithms based on nonlinear models outperform the standard LMPC algorithm (dash-dotted lines), which works very slow—the control time is much longer than in the case of other algorithms. The PID controller is the slowest among all tested algorithms. In all cases there is no overshoot. The responses obtained after the change in the set-point value to _C_ _B_ = 0 _._ 8 are shown in Fig. 6. In this experiment the responses obtained in the control system with the EFMPC algorithm (solid lines) are also very close to those obtained with optimization-based FMPC Fig. 4. Membership functions of the fuzzy model. 1.25 1.2 1.15 1.1 1.05 0 1 2 3 4 5 6 time (min) 60 50 40 30 20 10 0 1 2 3 4 5 6 time (min) Fig. 5. Responses of control systems to the change in the set-point value to _C_ _B_ = 1 _._ 25; EFMPC—solid lines, optimization-based FMPC—dotted lines, NMPC— dashed lines, LMPC—dash-dotted lines and PID— dashed lines with points. (dotted lines). Moreover, they are also similar to the responses generated with the NMPC algorithm (dashed lines). In all three cases there is practically no overshoot; this time the NMPC algorithm is slightly faster than its fuzzy counterparts. All the algorithms based on nonlinear models outperform the standard LMPC (dotted lines) and PID (dashed lines with points) algorithms. The LMPC algorithm generates significant overshoot and control time is longer than in the case of other algorithms. In this experiment it is the worst among all tested algorithms. It was also tested how the algorithms respond to the disturbance change by 10% from _C_ Af0 = 10 mol _/_ l to _C_ Af1 = 11 mol _/_ l (Fig. 7). The responses obtained <u>P.M. Marusak</u> 6 ~~6~~ 1.2 1.1 1 0.9 0.8 0.7 0.6 60 50 40 30 20 10 0 0 1 2 3 4 5 6 time (min) 0 1 2 3 4 5 6 time (min) Fig. 6. Responses of control systems to the change of the set-point value to _C_ _B_ = 0 _._ 8; EFMPC—solid lines, optimization-based FMPC—dotted lines, NMPC— dashed lines, LMPC—dash-dotted lines and PID— dashed lines with points. in control systems with the EFMPC (solid lines) and FMPC (dotted lines) algorithms are almost the same and very similar to these obtained with the NMPC algorithm (dashed lines). The LMPC and PID algorithms (dash-dot lines and dashed lines with points, respectively) compensate the disturbance faster than MPC algorithms based on nonlinear models when operating near _CB_ = 1 _._ 12, but slower when operating near _CB_ = 1 _._ 25. In the latter case the maximal control error generated with the LMPC algorithm is lower than in the case when MPC algorithms based on nonlinear models are used. Near both operating points the maximal control error is the smallest when the PID controller is used in the control system. There was also an experiment conducted to show the effectiveness in the constraint handling mechanism. The algorithms were tuned to work faster at the expense of a more aggressive control action ( _λ_ decreased to 0.0001); see Fig. 8. The responses obtained in control systems with the EFMPC (solid lines) and FMPC (dotted lines) algorithms are almost the same. The difference can be noticed in control signal between the 1st and 2nd minute of the experiment; the output responses are 1.35 1.3 1.25 1.2 1.15 1.1 12 13 14 15 16 17 18 time (min) 60 55 50 45 40 35 30 25 12 13 14 15 16 17 18 time (min) Fig. 7. Responses of control systems to the change in the dis turbance by 10% to _C_ Af1 = 11 mol _/_ l: EFMPC— solid lines, optimization-based FMPC—dotted lines, NMPC—dashed lines, LMPC—dash-dotted lines and PID—dashed lines with points. almost the same (the difference is barely perceptible). For comparison, also the responses obtained in a control system with the EFMPC algorithm in the unconstrained case (dashed lines) are shown. In such a case the rise time is faster, but at the expense of small overshooting. There were also experiments conducted with changes of the parameters of the control plant—reaction rate constants _ki_ ( _i_ = 1 _,_ 2 _,_ 3). The responses obtained after a decrease by 10% are shown in Fig. 9 and the ones obtained after an increase by 10% are shown in Fig. 10. The changes in reaction rate constants significantly influence the behavior of the control plant. Despite that, in all cases the control system is stable. Moreover, in most cases the obtained responses are good. In some cases, the set-point value _C_ _B_ = 1 _._ 25 cannot be achieved due to the upper bound of the control signal, but in these cases the output signal stabilizes on the value which is as close to the set-point as possible. 4.2. MIMO control plant. The next control plant considered is a pH reactor (Fig. 11). The process model is given by the set of the following equations <u>A numerically efficient fuzzy MPC algorithm with fast generation of the control signal</u> ~~6~~ 7 1.3 1.25 1.2 1.15 1.1 1.05 70 60 50 40 30 0 1 2 3 4 5 6 time (min) 0 1 2 3 4 5 6 time (min) (Chen and Huang, 2004; Dougherty and Cooper, 2003; Hu _et al_ ., 2000; Marusak, 2009a): d _h_ _A_ <sup>_Q_</sup> <sup>1 +</sup> <sup>_Q_</sup> <sup>2 +</sup> <sup>_Q_</sup> <sup>3 +</sup> <sup>_Q_</sup> <sup>4</sup> <sup>_,_</sup> _Q_ 4 = _CV_ d _h_ d _t_ <sup>= 1</sup> _A_ _√_ _h,_ (24) d _Wa_ 4 1 + ( _Wb_ 2 _−_ _Wb_ 4) _· Q_ 2 + ( _Wb_ 3 _−_ _Wb_ 4) _· Q_ 3 _Wa_ 4 1 = d _t_ _A · h_ ( _Wa_ 1 _−_ _Wa_ 4) _· Q_ 1 + ( _Wa_ 2 _−_ _Wa_ 4) _· Q_ 2 + ( _Wa_ 3 _−_ _Wa_ 4) _· Q_ 3 _,_ (25) d _Wb_ 4 1 _,_ _Wb_ 4 1 = d _t_ _A · h_ ( _Wb_ 1 _−_ _Wb_ 4) _· Q_ 1 Fig. 8. Responses of control systems to the change in the set point value to _C_ _B_ = 1 _._ 25, _λ_ = 0 _._ 0001: EFMPC—solid lines, optimization-based FMPC—dotted lines, EFMPC and no constraints—dashed lines. 1.3 1.2 1.1 1 0.9 0.8 0.7 0 1 2 3 4 5 6 time (min) Fig. 9. Responses obtained in the control system for _k_ 1 = 45 (solid line), _k_ 2 = 90 (dotted line) and _k_ 3 = 9 (dashed line). 1.3 1.2 1.1 1 0.9 0.8 0.7 0 1 2 3 4 5 6 time (min) Fig. 10. Responses obtained in the control system for _k_ 1 = 55 (solid line), _k_ 2 = 110 (dotted line) and _k_ 3 = 11 (dashed line). 1. _h_ 0 = 14 cm _,_ _pH_ 0 = 4 _,_ _Q_ 10 = 19 _._ 48 <sup>ml</sup> s <sup>_,_</sup> <sup>_Q_</sup> <sup>30</sup> <sup>ml</sup> s <sup>_,_</sup> <sup>_Q_</sup> <sup>30</sup> <sup>= 12</sup> <sup>_._</sup> <sup>71</sup> <sup>ml</sup> s (26) _Wa_ 4 + 10 <sup>_pH−_</sup> <sup>14</sup> + _Wb_ 4 1 + 2 _·_ 10 <sup>_pH−pK_</sup> <sup>2</sup> 1 1 + 10 <sup>_pK_</sup> <sup>1</sup> <sup>_−pH_</sup> + 10 <sup>_pK_</sup> <sup>2</sup> <sup>_−pH_</sup> <sup>_−_</sup> 10 <sup>_pH_</sup> <sup>= 0</sup> <sup>_,_</sup> (27) where _Q_ 1 is the flow rate of acid (HNO3), _Q_ 2 is the flow rate of buffer (NaHCO3), _Q_ 3 is the flow rate of base (NaOH), _Q_ 4 is the gravitational outflow of the product, _h_ is the level of the liquid in the reactor, _pH_ indicates the composition of the product. The values of the parameters in the pH reactor model are as follows: _Wa_ 1 = 3 _·_ 10˘ <sup>3</sup> M _,_ _Wa_ 2 = ˘3 _·_ 10 <sup>˘2</sup> M _,_ _Wa_ 3 = ˘3 _._ 05 _·_ 10 <sup>˘3</sup> M _,_ _Wb_ 1 = 0 M _,_ _Wb_ 2 = 3 _·_ 10 <sup>˘2</sup> M _,_ _Wb_ 3 = 5 _·_ 10 <sup>˘5</sup> M _,_ _A_ = 207 cm <sup>2</sup> _,_ _CV_ = 8 _._ 75 cmml _·_ s <sup>_,_</sup> _pK_ 1 = 6 _._ 35 _,_ _pK_ 2 = 10 _._ 25 _._ Moreover, there is a delay of pH measurement, which is equal to _Td_ = 30 s. The control task is thus difficult because of the delay and high nonlinearity of the control plant; the steady-state characteristic _pH_ ( _Q_ 1 _, Q_ 3) is shown in Fig. 12. It is assumed that the manipulated variables are the flow rates: of acid— _Q_ 1 and of base— _Q_ 3; the controlled variables are: the level of the liquid in the reactor— _h_ and the composition of the product— _pH_ . It is assumed that the liquid level should be stabilized on the fixed value _h_ 0 = 14 cm. The fuzzy model by Marusak (2009a) is used; it is composed of five sets of step responses, with membership functions shown in Fig. 13. The step responses were obtained in vicinity of the following operating points: <sup>ml</sup> s <sup>;</sup> <u>P.M. Marusak</u> 6 ~~8~~ 2. _h_ 0 = 14 cm _,_ _pH_ 0 = 5 _,_ _Q_ 10 = 18 _._ 89 <sup>ml</sup> s <sup>_,_</sup> <sup>_Q_</sup> <sup>30</sup> <sup>ml</sup> s <sup>_,_</sup> <sup>_Q_</sup> <sup>30</sup> <sup>= 13</sup> <sup>_._</sup> <sup>30</sup> <sup>ml</sup> s _pH_ 0 = 6 _._ 5 _,_ <sup>ml</sup> s <sup>_,_</sup> <sup>_Q_</sup> <sup>30</sup> <sup>= 14</sup> <sup>_._</sup> <sup>90</sup> <sup>ml</sup> s _pH_ 0 = 8 _,_ <sup>ml</sup> s <sup>_,_</sup> <sup>_Q_</sup> <sup>30</sup> <sup>= 16</sup> <sup>_._</sup> <sup>05</sup> <sup>ml</sup> s _pH_ 0 = 10 _,_ <sup>ml</sup> s <sup>_,_</sup> <sup>_Q_</sup> <sup>30</sup> <sup>= 17</sup> <sup>_._</sup> <sup>68</sup> <sup>ml</sup> s _Q_ 10 = 18 _._ 89 <sup>ml</sup> s <sup>_,_</sup> <sup>_Q_</sup> <sup>30</sup> <sup>= 13</sup> <sup>_._</sup> <sup>30</sup> <sup>ml</sup> s <sup>;</sup> 3. _h_ 0 = 14 cm _,_ _pH_ 0 = 6 _._ 5 _,_ _Q_ 10 = 17 _._ 29 <sup>ml</sup> s <sup>_,_</sup> <sup>_Q_</sup> <sup>30</sup> <sup>= 14</sup> <sup>_._</sup> <sup>90</sup> <sup>ml</sup> s <sup>;</sup> _Q_ 10 = 17 _._ 29 <sup>ml</sup> s <sup>_,_</sup> <sup>_Q_</sup> <sup>30</sup> <sup>= 14</sup> <sup>_._</sup> <sup>90</sup> <sup>ml</sup> s <sup>;</sup> 4. _h_ 0 = 14 cm _,_ _pH_ 0 = 8 _,_ _Q_ 10 = 16 _._ 14 <sup>ml</sup> s <sup>_,_</sup> <sup>_Q_</sup> <sup>30</sup> <sup>= 16</sup> <sup>_._</sup> <sup>05</sup> <sup>ml</sup> s <sup>;</sup> _Q_ 10 = 16 _._ 14 <sup>ml</sup> s <sup>_,_</sup> <sup>_Q_</sup> <sup>30</sup> <sup>= 16</sup> <sup>_._</sup> <sup>05</sup> <sup>ml</sup> s <sup>;</sup> 5. _h_ 0 = 14 cm _,_ _pH_ 0 = 10 _,_ _Q_ 10 = 14 _._ 51 <sup>ml</sup> s <sup>_,_</sup> <sup>_Q_</sup> <sup>30</sup> <sup>= 17</sup> <sup>_._</sup> <sup>68</sup> <sup>ml</sup> s <sup>.</sup> <sup>ml</sup> s <sup>.</sup> Operation of the proposed EFMPC algorithm will be compared with that of optimization-based FMPC and of LMPC. The sampling time was assumed equal to _T_ s = 10 s; tuning parameters of all three algorithms are assumed the same as in the work of Marusak (2009a): prediction horizon _p_ = 100, control horizon _s_ = 50, _λ_ 1 = 1, _λ_ 2 = 1, _κ_ 1 = 1 and _κ_ 2 = 1. During the experiments the value of the flow rate of buffer _Q_ 2 in the equations used to simulate the control plant was increased by 10%. The responses obtained after changes of the set-point value are shown in Figs. 14 and 15. The LMPC algorithm (dash-dot lines), based on a single set of step responses, obtained near the 4th operating point, works well near this point—for the set-point change to 9. For other set-point values, the LMPC algorithm is much slower than fuzzy algorithms. Both EFMPC (solid lines) and optimization-based FMPC (dotted lines) offer much better control performance. Fuzzy algorithms generate responses very similar to each other. The output variable _pH_ reaches the set-point values much faster in the control systems with fuzzy algorithms. There is some overshoot, although it is small. The responses obtained for different set-point values have shapes similar to each other—the influence of control plant nonlinearities on control quality is then significantly reduced, thanks to the application of control algorithms based on nonlinear models. The second output variable—the liquid level in the reactor _h_ is stabilized properly by all the algorithms. 5. Summary The proposed algorithm is computationally efficient and, at the same time, offers very good control performance. It uses the nonlinear model to derive the free response of the control plant and the approximate, easy to obtain, fuzzy model to calculate the control signal in a fast and efficient way. Thanks to such an approach, repetition of on-line optimization at each iteration of the algorithm is avoided. Despite that, the proposed algorithm offers control performance very close to that granted by the algorithms with optimization. The control signal in the proposed algorithm is generated fast. Therefore the algorithm, although it is based on a nonlinear model, can be used with relatively small sampling times. The proposed algorithm can be Fig. 11. Diagram of the pH reactor. pH 12 10 8 6 4 2 40 20 Q3 00 10 20 30 40 Q1 Fig. 12. Steady-state characteristic _pH_ ( _Q_ 1 _, Q_ 3). Fig. 13. Membership functions of the fuzzy model. used not only as a stand-alone one, but also in the control systems with NMPC algorithms, to improve the numerical properties of the latter ones. It is also possible to obtain the free response using other methods than the one exploited in the paper, for example, methods dedicated to particular types of models; the proposed approach is independent of the technique of free response generation. References Bemporad, A., Borrelli, F. and Morari, M. (2000). Piecewise linear optimal controllers for hybrid systems, _Proceedings_ _of the 2000 American Control Conference, ACC, Chicago,_ _USA_, Vol. 2, pp. 1190–1194. <u>A numerically efficient fuzzy MPC algorithm with fast generation of the control signal</u> ~~6~~ 9 11 pH 10 9 8 7 0 5 10 15 20 25 30 time (min) 14.1 h 14.05 14 13.95 13.9 0 5 10 15 20 25 30 time (min) 16.5 Q1 16 15.5 15 14.5 14 13.5 0 5 10 15 20 25 30 time (min) 18.5 Q3 18 17.5 17 16.5 16 15.5 0 5 10 15 20 25 30 time (min) Fig. 14. Responses of control systems to the change of _pH_ set-points from 7 to 8, 9 and 10: EFMPC—solid lines, optimization-based FMPC—dotted lines and LMPC—dash-dotted lines, set-point trajectory—dashed lines; left—output variables _pH_ and _h_, right—manipulated variables _Q_ 1 and _Q_ 3. Bemporad, A., Morari, M., Dua, V. and Pistikopoulos, E.N. (2002). The explicit linear quadratic regulator for constrained systems, _Automatica_ 38 (1): 3–20. Blevins, T., McMillan, G., Wojsznis, W. and Brown, M. (2003). _Advanced Control Unleashed_, ISA—The Instrumentation, Systems, and Automation Society, Research Triangle Park. Boulkaibet, I., Belarbi, K., Bououden, S., Marwala, T. and Chadli, M. (2017). A new T–S fuzzy model predictive control for nonlinear processes, _Expert_ _Systems_ _with_ _Ap-_ _plications_ 88 : 132–151. Camacho, E. and Bordons, C. (1999). _Model Predictive Control_, Springer, London. Chaber, P. and Ławry´nczuk, M. (2019). Fast analytical model predictive controllers and their implementation for STM32 ARM microcontroller, _IEEE Transactions on Industrial In-_ _formatics_ 15 (8): 4580–4590. Chen, J. and Huang, T. (2004). Applying neural networks to on-line updated PID controllers for nonlinear process control, _Journal of Process Control_ 14 (2): 211–230. Diehl, M., Bock, H., Schlöder, J.P., Findeisen, R., Nagy, Z. and Allgöwer, F. (2002). Real-time optimization and nonlinear model predictive control of processes governed by differential-algebraic equations, _Journal_ _of_ _Process_ _Control_ 12 (4): 577–585. Dominguez, L.F. and Pistikopoulos, E.N. (2010). A novel mp-NLP algorithm for explicit/multi-parametric NMPC, _IFAC Proceedings Volumes_ 43 (14): 539–544. Dougherty, D. and Cooper, D. (2003). A practical multiple model adaptive strategy for single-loop MPC, _Control En-_ _gineering Practice_ 11 (2): 141–159. Doyle, F., Ogunnaike, B. and Pearson, R. (1995). Nonlinear model-based control using second-order Volterra models, _Automatica_ 31 (5): 697–714. Essien, E., Ibrahim, H., Mehrandezh, M. and Idem, R. (2019). Adaptive neuro-fuzzy inference system (ANFIS)-based model predictive control (MPC) for carbon dioxide reforming of methane (CDRM) in a plug flow tubular reactor for hydrogen production, _Thermal Science and En-_ _gineering Progress_ 9 : 148–161. Guerra, T.-M., Kruszewski, A. and Lauber, J. (2009). Discrete Tagaki–Sugeno models for control: Where are we?, _An-_ _nual Reviews in Control_ 33 (1): 37–47. Hu, Q., Saha, P. and Rangaiah, G. (2000). Experimental evaluation of an augmented IMC for nonlinear systems, _Control Engineering Practice_ 8 (10): 1167–1176. <u>P.M. Marusak</u> 7 ~~0~~ 7 pH 6 5 4 3 0 5 10 15 20 25 30 time (min) 14.1 h 14.05 14 13.95 13.9 0 5 10 15 20 25 30 time (min) 21 Q1 20 19 18 17 16 0 5 10 15 20 25 30 time (min) 16 Q3 15 14 13 12 11 0 5 10 15 20 25 30 time (min) Fig. 15. Responses of control systems to the change of _pH_ set-points from 7 to 6, 5 and 4: EFMPC—solid lines, optimization-based FMPC—dotted lines and LMPC—dash-dotted lines; set-point trajectory—dashed lines, left—output variables _pH_ and _h_, right—manipulated variables _Q_ 1 and _Q_ 3. Johansen, T.A. (2002). On multi-parametric nonlinear programming and explicit nonlinear model predictive control, _Proceedings of the 41st IEEE Conference on Deci-_ _sion and Control, Las Vegas, USA_, Vol. 3, pp. 2768–2773. Johansen, T.A. (2004). Approximate explicit receding horizon control of constrained nonlinear systems, _Automatica_ 40 (2): 293–300. Karimi Pour, F., Puig, V. and Ocampo-Martinez, C. (2018). Multi-layer health-aware economic predictive control of a pasteurization pilot plant, _International Journal of Applied_ _Mathematics_ _and_ _Computer_ _Science_ 28 (1): 97–110, DOI: 10.2478/amcs-2018-0007. Khooban, M.H., Vafamand, N. and Niknam, T. (2016). T–S fuzzy model predictive speed control of electrical vehicles, _ISA Transactions_ 64 : 231–240. Killian, M. and Kozek, M. (2017). Optimal partitioning of a boiler-turbine unit for fuzzy model predictive control, _IFAC-PapersOnLine_ 50 (1): 2011–2016. Kong, L. and Yuan, J. (2019a). Disturbance-observer-based fuzzy model predictive control for nonlinear processes with disturbances and input constraints, _ISA_ _Transactions_ 90 : 74–88. Kong, L. and Yuan, J. (2019b). Generalized discrete-time nonlinear disturbance observer based fuzzy model predictive control for boiler-turbine systems, _ISA Transac-_ _tions_ 90 : 89–106. Kouvaritakis, B., Cannon, M. and Rossiter, J. (2002). Who needs QP for linear MPC anyway?, _Automatica_ 38 (5): 879–884. Krishna, D., Suryanarayana, K., Aparna, G. and Padma Sree, R. (2012). Tuning of PID controllers for continuous stirred tank reactors, _Indian Chemical Engineer_ 54 (3): 157–179. Ławry´nczuk, M. (2014). _Computationally_ _Efficient Model_ _Pre-_ _dictive_ _Control_ _Algorithms:_ _A_ _Neural_ _Network_ _Approach_, Springer, Heidelberg. Ławry´nczuk, M. (2015). Nonlinear state-space predictive control with on-line linearisation and state estimation, _In-_ _ternational Journal of Applied Mathematics and Computer_ _Science_ 25 (4): 833–847, DOI: 10.1515/amcs-2015-0060. Ławry´nczuk, M. (2020). Nonlinear model predictive control for processes with complex dynamics: A parameterisation approach using Laguerre functions, _International_ _Jour-_ _nal_ _of_ _Applied_ _Mathematics_ _and_ _Computer_ _Science_ 30 (1): 35–46, DOI: 10.34768/amcs-2020-0003. Ławry´nczuk, M., Marusak, P. and Tatjewski, P. (2008). Cooperation of model predictive control with steady-state <u>A numerically efficient fuzzy MPC algorithm with fast generation of the control signal</u> ~~7~~ 1 economic optimisation, _Control_ _and_ _Cybernetics_ 37 (1): 133–158. Maciejowski, J. (2002). _Predictive_ _Control_ _with_ _Constraints_, Prentice Hall, Harlow. Marusak, P. (2009a). Advantages of an easy to design fuzzy predictive algorithm in control systems of nonlinear chemical reactors, _Applied_ _Soft_ _Computing_ 9 (3): 1111–1125. Marusak, P. (2009b). Efficient model predictive control algorithm with fuzzy approximations of nonlinear models, _in_ M. Kolehmainen _et_ _al._ (Eds), _Adaptive_ _and_ _Natural_ _Computing Algorithms, ICANNGA 2009_, Lecture Notes in Computer Science, Vol. 5495, Springer, Berlin/Heidelberg, pp. 448–457. Marusak, P. (2010). A mechanism of output constraint handling for analytical fuzzy controllers, _in_ N. García-Pedrajas _et_ _al._ (Eds), _Trends_ _in_ _Applied_ _Intelligent_ _Systems,_ _IEA/AIE_ _2010_, Lecture Notes in Computer Science, Vol. 6097, Springer, Berlin/Heidelberg, pp. 222–227. Marusak, P. and Tatjewski, P. (2002). Stability analysis of nonlinear control systems with unconstrained fuzzy predictive controllers, _Archives_ _of_ _Control_ _Sciences_ 12 (3): 267–288. Mayne, D., Rawlings, J., Rao, C. and Scokaert, P. (2000). Constrained model predictive control: Stability and optimality, _Automatica_ 36 (6): 789–814. Morari, M. and Lee, J. (1999). Model predictive control: Past, present and future, _Computers_ _and_ _Chemical Engineering_ 23 (4): 667–682. Nebeluk, R. and Marusak, P. (2020). Efficient MPC algorithms with variable trajectories of parameters weighting predicted control errors, _Archives of Control Sci-_ _ences_ 30 (2): 325–363. Pistikopoulos, E.N., Dua, V., Bozinis, N.A., Bemporad, A. and Morari, M. (2000). On-line optimization via off-line parametric optimization tools, _Computers_ _and_ _Chemical_ _Engineering_ 24 (2): 183–188. Rossiter, J. (2003). _Model-Based Predictive Control_, CRC Press, Boca Raton. Schäfer, A., Kühl, P., Diehl, M., Schlöder, J. and Bock, H. G. (2007). Fast reduced multiple shooting methods for nonlinear model predictive control, _Chemi-_ _cal_ _Engineering_ _and_ _Processing:_ _Process_ _Intensification_ 46 (11): 1200–1214. Shen, D., Lim, C.-C. and Shi, P. (2020). Robust fuzzy model predictive control for energy management systems in fuel cell vehicles, _Control Engineering Practice_ 98 : 104364. Tatjewski, P. (2007). _Advanced Control of Industrial Processes;_ _Structures and Algorithms_, Springer Verlag, London. Tatjewski, P. (2014). Disturbance modeling and state estimation for offset-free predictive control with state-spaced process models, _International_ _Journal_ _of_ _Applied_ _Mathemat-_ _ics_ _and_ _Computer_ _Science_ 24 (2): 313–323, DOI: 10.2478/amcs-2014-0023. Tatjewski, P. (2017). Offset-free nonlinear model predictive control with state-space process models, _Archives of Con-_ _trol Sciences_ 27 (4): 595–615. Wojtulewicz, A. and Ławry´nczuk, M. (2018a). Computationally efficient implementation of dynamic matrix control algorithm for very fast processes using programmable logic controller, _23rd_ _International_ _Conference_ _on_ _Meth-_ _ods_ _and_ _Models_ _in_ _Automation_ _and_ _Robotics_ _(MMAR),_ _Mi˛edzyzdroje, Poland_, pp. 579–584. Wojtulewicz, A. and Ławry´nczuk, M. (2018b). Implementation of multiple-input multiple-output dynamic matrix control algorithm for fast processes using field programmable gate array, _IFAC-PapersOnLine_ 51 (6): 324–329. Wu, X., Shen, J., Li, Y. and Lee, K.Y. (2015). Fuzzy modeling and predictive control of superheater steam temperature for power plant, _ISA Transactions_ 56 : 241–251. Zavala, V.M., Laird, C.D. and Biegler, L.T. (2008). A fast moving horizon estimation algorithm based on nonlinear programming sensitivity, _Journal_ _of_ _Process_ _Control_ 18 (9): 876–884. Piotr M. Marusak was born in Warsaw, Poland, in 1974. He received his MSc degree in computer science and his PhD degree in automatic control from the Warsaw University of Technology in 1997 and 2003, respectively. He is with the Institute of Control and Computation Engineering of the Warsaw University of Technology. His main research interests include predictive control algorithms of nonlinear systems, the application of these algorithms in fault-tolerant control systems, the cooperation of the predictive control algorithms with set-point optimization, process modeling and simulation, and fuzzy control. Received: 31 December 2019 Revised: 23 June 2020 Re-revised: 4 October 2020 Accepted: 5 October 2020

섹션 본문 95문단 · 32,160자

(제목 없음)

1Model predictive control (MPC) algorithms are widely used in practical applications.They are usually formulated as optimization problems.If a model used for prediction is linear (or linearized on-line), then the optimization problem is a standard, i.e., quadratic, one.Otherwise, it is a nonlinear, in general, nonconvex optimization problem.In the latter case, numerical problems may occur during solving this problem, and the time needed to calculate control signals cannot be determined.Therefore, approaches based on linear or linearized models are preferred in practical applications.A novel, fuzzy, numerically efficient MPC algorithm is proposed in the paper.It can offer better performance than the algorithms based on linear models, and very close to that of the algorithms based on nonlinear optimization.Its main advantage is the short time needed to calculate the control value at each sampling instant compared with optimization-based numerical algorithms; it is a combination of analytical and numerical versions of MPC algorithms.The efficiency of the proposed approach is demonstrated using control systems of two nonlinear control plants: the first one is a chemical CSTR reactor with a van de Vusse reaction, and the second one is a pH reactor.

Introduction

2MPC algorithms offer good control quality resulting from the way they are formulated.Therefore, they can be successfully used in control systems of processes with difficult dynamics and constraints, and of MIMO processes.This is because during the generation of the control signals a model of the control plant is used to predict the behavior of the control system (see, e.g., Camacho and Bordons, 1999;Karimi Pour et al., 2018;Maciejowski, 2002;Rossiter, 2003;Tatjewski, 2007;2017).

3Standard formulations of the MPC algorithms are based on linear control plant models (see, e.g., Camacho and Bordons, 1999;Tatjewski, 2014).However, the operation of the control system of a nonlinear control plant may be usually improved using the MPC algorithm based on a nonlinear model.It is especially important if the MPC algorithm should operate well at different operating points as in control system structures with steady-state set-point optimization (see, e.g., Blevins et al., 2003;Ławryńczuk et al., 2008;Tatjewski, 2007).

4If a nonlinear process model is used for prediction, then the optimization problem solved at each iteration by the algorithm may be in general a nonconvex, nonlinear optimization problem-hard to solve and with unpredictable time needed to find the solution; such algorithms will be called NMPC.One of the solutions to cope with the complexity of the optimization task is to allow a slightly suboptimal solution.This idea was proposed, in the case of MPC algorithms based on linear models, by Kouvaritakis et al. (2002).In the case of NPMC algorithms, fast NMPC algorithms were designed in which the solution is generated faster than in the standard approach also at the expense of suboptimality (see, e.g., Diehl et al., 2002;Schäfer et al., 2007;Zavala et al., 2008).Another approach, described, e.g., by Dominguez and Pistikopoulos (2010) or Johansen (2002;2004), is the explicit one, in which most calculations are done off-line.Furthermore, this approach is optimal in the case when a linear model is used (Bemporad et al., 2000;2002;Pistikopoulos et al., 2000).Unfortunately, an important disadvantage of the approach is that the complexity of the controller grows significantly with the number of inequality constraints included in the problem.

5When a fuzzy Takagi-Sugeno model is used in the MPC algorithm, then obviously nonlinear optimization can be applied.The structure of the fuzzy model can be, however, exploited to formulate algorithms which are easier to solve than the standard NMPC.The first group of such algorithms includes classical fuzzy Takagi-Sugeno controllers composed of a few linear controllers which are switched in a fuzzy way (see, e.g., Killian and Kozek, 2017;Marusak and Tatjewski, 2002).Other algorithms, exploiting the structure of fuzzy Takagi-Sugeno models, are based on linear matrix inequalities (LMIs).An interesting review of algorithms using this technique is given by Guerra et al. (2009), and recently proposed algorithms can be found in the works of Khooban et al. (2016), Kong and Yuan (2019a;2019b), Shen et al. (2020) or Wu et al. (2015).

6In order to avoid the complexity of NMPC, often on-line linearization at each algorithm iteration is used (see, e.g., Boulkaibet et al., 2017;Essien et al., 2019;Ławryńczuk, 2014;2015;2020;Marusak, 2009a;2009b;Morari and Lee, 1999;Tatjewski, 2007).After a linear approximation of the nonlinear model is obtained, a prediction linear to decision variables is acquired.Therefore, the optimization problem solved at each iteration of the algorithm is a quadratic one.The prediction can be based on the classical linearization or it can exploit the structure of the model the algorithm is based on.Examples of algorithms using linearization of the fuzzy Takagi-Sugeno model, in which both the free response and the dynamic matrix are obtained using the linearized model, are given by Boulkaibet et al. (2017) and Marusak (2009a).Algorithms in which the free response is calculated using the nonlinear model and the model obtained after linearization is used to obtain the dynamic matrix can be found in the works of Essien et al. (2019) and Marusak (2009b).

7The computational efficiency of MPC algorithms is important when they are implemented in micro-controllers, FPGAs or PLCs.The computational power of these devices achieved such a level that they allow to implement analytical versions of MPC algorithms.An implementation of the DMC algorithm runing on an FPGA and on a PLC was described recently by Wojtulewicz and Ławryńczuk (2018b;2018a); implementation of the GPC controller for the STM32 ARM micro-controller is detailed by Chaber and Ławryńczuk (2019).Both DMC and GPC algorithms are based on linear models.However, in many cases control performance can be improved after using an MPC algorithm based on a nonlinear (e.g., fuzzy) model.Therefore, fast MPC algorithms based on fuzzy models are desirable.The present paper addresses this issue.

8The approach proposed in this work consists in using two models in the algorithm: a nonlinear model and its (easy to obtain) fuzzy approximation.The algorithm is a combination of analytical and numerical versions of MPC algorithms.Thanks to such an approach, the time needed to calculate the control value at each sampling instant is much smaller compared with numerical algorithms.However, thanks to skillful use of nonlinear models, the algorithm offers almost the same performance as that with nonlinear optimization.

9The next section contains a description of MPC algorithms.In Section 3 the proposed approach based on fuzzy and nonlinear models is detailed.Example results illustrating the efficacy of the proposed approach are presented in Section 4. The paper is summarized in the last section.

Model predictive control algorithms

10Model predictive control (MPC) algorithms derive future values of manipulated variables predicting the behavior of the control plant many sampling instants ahead.The values of manipulated variables are calculated in such a way that the prediction fulfills assumed criteria.Usually, the minimization of a performance index is demanded subject to the constraints put on values of manipulated and of output variables (Camacho and Bordons, 1999;Maciejowski, 2002;Rossiter, 2003;Tatjewski, 2007): (1) subject to the constraints

11where y j k+i|k is the value of the j-th output for the (k + i)-th sampling instant predicted at the k-th sampling instant using a control plant model, y j k+i|k are elements of the reference trajectory for the j-th output, Δu m k+i|k are future changes in manipulated variables, κ j ≥ 0 and λ m ≥ 0 are weighting coefficients for the predicted control errors of the j-th output and for the changes in the m-th manipulated variable, respectively; p and s denote prediction and control horizons, respectively; n y , n u denote a number of output and manipulated variables, 4) an optimal vector of changes in the manipulated variables is obtained.From this vector, the Δu m k|k elements, corresponding to the current sampling instant, are applied in the control system.The optimization problem (1)-( 4) is solved at each sampling instant.

12The way the predicted values of output variables y j k+i|k are derived depends on the dynamic control plant model the predictive algorithm is based on.If a nonlinear process model is used, then the optimization problem (1)-( 4) is, in general, a nonconvex nonlinear optimization problem instead of a linear-quadratic one.In such an algorithm, different kinds of process models can be used but they are exploited in a similar way; therefore an algorithm of this kind will be later referred to, in general, as nonlinear MPC (NMPC).In the NMPC algorithm the computational burden needed to solve such a problem can be prohibitive, making practical implementation of the predictive algorithm difficult and unreliable.On the other hand, if the linear model is used, then the problem (1)-( 4) is a standard quadratic programming one.Unfortunately, using the algorithm based on a linear plant model for the nonlinear plant may be insufficient if control at a wide range of set-points is needed.A possible solution to these difficulties could be to use algorithms based on an on-line linearization approach; see, e.g., Tatjewski (2007), a survey paper by Mayne et al. (2000) and the references therein.

13The performance index (1) can be expresssed by

14where y = y 1 k , y 2 k , . . ., y ny k T and every vector y j k = y j k+1|k , . . ., y j k+p|k is of length p, κ = κ 1 , . . ., κ ny • I, every vector κ j = [κ j , . . ., κ j ] is of length p (and the matrix

2.1.

15MPC algorithms based on linear models (LMPC).If the prediction is obtained using a linear process model, then the optimization problem (1)-( 4) is a standard quadratic programming one (Camacho and Bordons, 1999;Maciejowski, 2002;Rossiter, 2003;Tatjewski, 2007).This is because the superposition principle applies and the vector of predicted output values y can be described by the following formula:

16where

17is called a free response of the control plant, because it contains future values of output variables calculated assuming that the control signals do not change in the prediction horizon; A is called the dynamic matrix, composed of the step response coefficients.It can be shown that the dynamic matrix has the same form in different types of LMPC algorithms using different types of linear models (Tatjewski, 2007).After applying the prediction (6), the performance index (5) can be transformed to

18The performance index (7) depends quadratically on decision variables Δu; if it is minimized without taking constraints into consideration, then the following analytical solution is obtained:

19where the matrix

20can be calculated only once, off-line, because the elements of the dynamic matrix remain constant.If only control changes for the current iteration are of interest, then (8) can be simplified:

21where K (m−1)•s+1 is the ((m − 1) • s + 1)-th row of the matrix K.

Efficient fuzzy MPC algorithm

22Application of the LMPC algorithm to a nonlinear process may result in unsatisfactory control performance, especially if operation at different operating points is demanded.However, a skillful usage of a fuzzy model for prediction allows improving the control quality of highly nonlinear processes.An algorithm which offers control quality comparable with the one guaranteed by the NMPC algorithm is the FMPC algorithm, in which the free response is calculated using a nonlinear process model.This FMPC algorithm is detailed by Marusak (2009b) and is a numerical, optimization-based one.

23The algorithm proposed in this section is a combination of analytical LMPC, described in Section 2.1, and of the FMPC algorithm by Marusak (2009b).Thanks to such an approach it generates the control signal fast and, at the same time, offers control quality close to the one guaranteed by NMPC algorithms.This is because in the proposed numerically efficient FMPC (EFMPC) algorithm solving the optimization problem in each iteration is avoided; the control action is generated in a much simpler way.

24In the EFMPC algorithm two models are used.The original, nonlinear one is used to calculate the free response, like in the FMPC algorithm, whereas the fuzzy model, with step responses used as local models, is employed in a skillful generation of the control law.The proposed EFMPC algorithm will be now described.

25Suppose that one has a nonlinear process model which generates the output values

26where

27T is the vector of the measured values of the output variables at the

Generation of the free response.

28The model ( 11) is then employed to obtain the free response, like in the work of Marusak (2009b), for the whole prediction horizon, iteratively, i.e.,

29• First, the process model is used to obtain y k+1|k (formula ( 11)).• Then the values y k+1|k are used as the output values for the (k + 1)-th sampling instant, to obtain the output values for the next sampling instant y k+2|k .Moreover, the assumption that the control signal does not change (the free response is calculated) is utilized:

30• thus, in general, in the i-th step, using the values y k+1|k , . . ., y k+i−1|k and assuming that the control signal does not change, one obtains

31• Then the free response is calculated taking into consideration the estimated disturbances (containing also the influence of modeling errors).The final formula describing the elements of the free response is then as follows:

32where y k+i|k = y 1 k+i|k , . . ., y ny k+i|k T and d k is the DMC-type disturbance model, i.e., it is assumed the same for all instants in the prediction horizon and

3.2.

33Formulation of the control law.In order to simplify the algorithm and make the calculation of the control signal faster, the latter part of the algorithm is done in a way described below.Assume that a Takagi-Sugeno fuzzy model composed of local models in the form of step responses was obtained:

34where y j k is the j-th output variable value at the k-th sampling instant, u m k is the m-th manipulated variable value at the k-th sampling instant, B f,j 1 , . . ., B f,j i , C f,m 1 , . . ., C f,m i are fuzzy sets, a j,m,f i are the coefficients of step responses in the f -th local model, j = 1, . . ., n y , m = 1, . . ., n u , f = 1, . . ., l; here l is the number of rules.

35The design process of such a model is rather simple.It is sufficient to collect a few sets of step responses (around a few operating points).Then, using expert knowledge, the premises can be formulated and, subsequently, they can be tuned using, e.g., a fuzzy neural network.

36A numerically efficient fuzzy MPC algorithm with fast generation of the control signal 63 Now, for each local model a dynamic matrix is obtained:

37(18) Next, for each dynamic matrix A f the appropriate matrix K f is calculated using the formula (cf.( 9))

38Each matrix K f can be calculated off-line.Thus, the following fuzzy controller can be obtained (compare the local controllers with (8)):

39If only control changes for the current iteration are of interest, then (20) can be simplified:

40where K f (m−1)•s+1 are the ((m − 1) • s + 1)-th rows of the matrices K f .The output of the fuzzy controller ( 21) is given by

41where w f is the normalized firing strength of the f -th rule, obtained using fuzzy reasoning.

Taking constraints into consideration.

42In order to take control constraints into consideration in the proposed algorithm, the control projection onto the constraint set can be applied (see, e.g., Tatjewski, 2007).The mechanism consists in application of the following rules of Δu m k|k modification, leading to the fulfillment of the constraints on control changes:

43• for lower bound constraints:

44-if Δu m k|k < Δu m min , then Δu m k|k = Δu m min , • for upper bound constraints:

45-if Δu m k|k > Δu m max , then Δu m k|k = Δu m max ; and leading to fulfillment of the constraints on control values:

46• for lower bound constraints:

47-if

48• for upper bound constraints:

49-if

50Using this mechanism it is also possible to take constraints on predicted output values into consideration; for details see the work of Marusak (2010).

Properties of the algorithm.

51The diagram of the algorithm is depicted in Fig. 1.Many actions, also the most computationally demanding calculation of the matrices K f (using ( 19)), are done off-line; these include the following:

52I. Development of the fuzzy model ( 16).

53II. Construction of the dynamic matrices A f from (17), for each of the local models from (16).

54III. Calculation of the matrices K f using (19), for each dynamic matrix obtained in the previous step.

55IV. Construction of the fuzzy controller (21) using appropriate elements of the K f matrices.

56Thanks to the proposed approach, in each iteration of the EFDMC algorithm (in each sampling instant) only the following actions should be done (see Fig. 1):

571.The nonlinear control plant model is used to generate the free response ( 14) of the control plant.

582. For each fuzzy rule from the model ( 16) the value of w f , the normalized firing strength, is calculated.

593. The obtained free response y, the firing strengths w f and the appropriate rows of the matrices K f are used in the control law (22) to calculate the control signals.No optimization routines are used.

60The proposed algorithm usually gives better results than the standard LMPC one and generates results very close to those obtained with a numerical, optimization-based FMPC algorithm, in which the free response is generated the same way.However, it needs much fewer computations to obtain the control values than its counterpart, which uses quadratic optimization.

61The proposed algorithm, like other algorithms based on linearization, is an approximate one compared with P.M. Marusak an NMPC algorithm.However, in the example control systems it will be demonstrated that both algorithms can offer comparable results.Moreover, the algorithm can be used not only as a stand-alone one, but also as support for NMPC algorithms to improve their numerical properties.In the latter case the numerically efficient algorithm can be employed to generate the starting control trajectory for a nonlinear optimization routine, using (20).Next, the NMPC algorithm tries to improve the initial trajectory.If it manages to do so during one sampling instant, then the newly derived control action is applied to the process.If it fails to improve the approximate solution, then the control signal generated by the proposed algorithm can be used, as it offers performance very close to the optimal one, anyway.

Remark 1.

62The model given by ( 16) is obtained from the model (11).The membership functions can be chosen by a designer after analyzing the shape of the steady-state characteristic of the process.It is done in the examples detailed in the next section.Such an approach is relatively simple and allows obtaining the EFMPC controller offering better control performance than the LMPC one, fast.However, parameters of the membership functions can be also tuned using optimization.

Remark 2.

63The premises of the obtained controller (21) can be changed if needed to improve the control system performance.This can be done either by using a trial-and-error method or by optimizing the parameters of the membership functions.In the case of the local controllers the main tuning parameters are κ j and λ m .An increase in λ m in relation to κ j increases robustness of the controller but, at the same time, slows it down.In the MIMO case, if one needs to improve stabilization of the j-th output, then κ j should be increased.More advanced methods of tuning allow varying the values of κ j and λ m at different instants of the prediction horizon.Such an approach allows obtaining interesting results but demands significant effort during the tuning process; for details, see the work of Nebeluk and Marusak (2020).

4.1.

64SISO control plant.The control plant under consideration is an isothermal CSTR in which a van de Vusse reaction is carried out (Fig. 2).The steady-state characteristic of the control plant is shown in Fig. 3.

65The process model of the reactor contains two composition balance equations (Doyle et al., 1995):

66A numerically efficient fuzzy MPC algorithm with fast generation of the control signal 65 where C A , C B are the concentrations of components A and B, respectively, F is the inlet flow rate (equal to the outlet flow rate; it is assumed that it is constrainted, and F min = 0 l/h, F max = 60 l/h), V is the volume in which the reaction takes place (it is assumed constant and V = 1 l), C Af is the concentration of component A in the inlet flow stream (it is assumed that C Af = 10 mol/l).The values of the parameters are

67The output variable is the concentration C B of substance B, the manipulated variable is the inlet flow rate F of the raw substance, C Af concentration is the disturbance variable.

68The fuzzy model is composed of three step responses, with membership functions shown in Fig. 4. The step responses were obtained in a vicinity of the following operating points (Marusak, 2009a):

691. C B0 = 0.91 mol/l, C A0 = 2.18 mol/l, F = 20 l/h; 2. C B0 = 1.12 mol/l, C A0 = 3 mol/l, F = 34.3l/h; 3. C B0 = 1.22 mol/l, C A0 = 3.66 mol/l, F = 50 l/h.Operation of the proposed EFMPC algorithm will be compared with that of three other MPC algorithms: an NMPC one with nonlinear optimization, an LMPC one with a linear model and the optimization-based FMPC by Marusak (2009b).The sampling time was assumed equal to T s = 3.6 s; tuning parameters of all three algorithms were as follows: prediction horizon p = 70, control horizon s = 35, λ 1 = 0.001 and κ 1 = 1.Responses generated with the predictive algorithms will be also compared with the ones obtained with the PID controller proposed by Krishna et al. (2012) (called SA-PID) and considered the best there.

70The responses obtained after changes in the set-point value are shown in Figs. 5 and 6.In the case when the set-point was changed to C B = 1.25 (Fig. 5), the responses obtained in the control system with the proposed EFMPC algorithm (solid lines) are almost the same as those generated with the optimization-based FMPC algorithm (dotted lines).Despite significant simplification of calculations, the obtained responses are practically the same.The responses obtained with FMPC algorithms are faster than those obtained with the NMPC algorithm (dashed lines).All the algorithms based on nonlinear models outperform the standard LMPC algorithm (dash-dotted lines), which works very slow-the control time is much longer than in the case of other algorithms.The PID controller is the slowest among all tested algorithms.In all cases there is no overshoot.

71The responses obtained after the change in the set-point value to C B = 0.8 are shown in Fig. 6.In this experiment the responses obtained in the control system with the EFMPC algorithm (solid lines) are also very close to those obtained with optimization-based FMPC (dotted lines).Moreover, they are also similar to the responses generated with the NMPC algorithm (dashed lines).In all three cases there is practically no overshoot; this time the NMPC algorithm is slightly faster than its fuzzy counterparts.All the algorithms based on nonlinear models outperform the standard LMPC (dotted lines) and PID (dashed lines with points) algorithms.The LMPC algorithm generates significant overshoot and control time is longer than in the case of other algorithms.In this experiment it is the worst among all tested algorithms.It was also tested how the algorithms respond to the disturbance change by 10% from C Af0 = 10 mol/l to C Af1 = 11 mol/l (Fig. 7).The responses obtained P.M. Marusak in control systems with the EFMPC (solid lines) and FMPC (dotted lines) algorithms are almost the same and very similar to these obtained with the NMPC algorithm (dashed lines).The LMPC and PID algorithms (dash-dot lines and dashed lines with points, respectively) compensate the disturbance faster than MPC algorithms based on nonlinear models when operating near C B = 1.12, but slower when operating near C B = 1.25.In the latter case the maximal control error generated with the LMPC algorithm is lower than in the case when MPC algorithms based on nonlinear models are used.Near both operating points the maximal control error is the smallest when the PID controller is used in the control system.There was also an experiment conducted to show the effectiveness in the constraint handling mechanism.The algorithms were tuned to work faster at the expense of a more aggressive control action (λ decreased to 0.0001); see Fig. 8.The responses obtained in control systems with the EFMPC (solid lines) and FMPC (dotted lines) algorithms are almost the same.The difference can be noticed in control signal between the 1st and 2nd minute of the experiment; the output responses are almost the same (the difference is barely perceptible).

72For comparison, also the responses obtained in a control system with the EFMPC algorithm in the unconstrained case (dashed lines) are shown.In such a case the rise time is faster, but at the expense of small overshooting.There were also experiments conducted with changes of the parameters of the control plant-reaction rate constants k i (i = 1, 2, 3).The responses obtained after a decrease by 10% are shown in Fig. 9 and the ones obtained after an increase by 10% are shown in Fig. 10.The changes in reaction rate constants significantly influence the behavior of the control plant.Despite that, in all cases the control system is stable.Moreover, in most cases the obtained responses are good.In some cases, the set-point value C B = 1.25 cannot be achieved due to the upper bound of the control signal, but in these cases the output signal stabilizes on the value which is as close to the set-point as possible.

MIMO control plant.

73The next control plant considered is a pH reactor (Fig. 11).The process model is given by the set of the following equations A numerically efficient fuzzy MPC algorithm with fast generation of the control signal ( Chen and Huang, 2004;Dougherty and Cooper, 2003;Hu et al., 2000;Marusak, 2009a):

74where Q 1 is the flow rate of acid (HNO 3 ), Q 2 is the flow rate of buffer (NaHCO 3 ), Q 3 is the flow rate of base (NaOH), Q 4 is the gravitational outflow of the product, h is the level of the liquid in the reactor, pH indicates the composition of the product.The values of the parameters in the pH reactor model are as follows:

75Moreover, there is a delay of pH measurement, which is equal to T d = 30 s.The control task is thus difficult because of the delay and high nonlinearity of the control plant; the steady-state characteristic pH(Q 1 , Q 3 ) is shown in Fig. 12.

76It is assumed that the manipulated variables are the flow rates: of acid-Q 1 and of base-Q 3 ; the controlled variables are: the level of the liquid in the reactor-h and the composition of the product-pH.It is assumed that the liquid level should be stabilized on the fixed value h 0 = 14 cm.

77The fuzzy model by Marusak (2009a) is used; it is composed of five sets of step responses, with membership functions shown in Fig. 13.The step responses were obtained in vicinity of the following operating points:

781. h 0 = 14 cm, pH 0 = 4, Q 10 = 19.48ml s , Q 30 = 12.71 ml s ;

79P.M. Marusak 2. h 0 = 14 cm, pH 0 = 5, Q 10 = 18.89 ml s , Q 30 = 13.30ml s ; 3. h 0 = 14 cm, pH 0 = 6.5, Q 10 = 17.29 ml s , Q 30 = 14.90 ml s ; 4. h 0 = 14 cm, pH 0 = 8, Q 10 = 16.14 ml s , Q 30 = 16.05 ml s ; 5. h 0 = 14 cm, pH 0 = 10, Q 10 = 14.51 ml s , Q 30 = 17.68 ml s .

80Operation of the proposed EFMPC algorithm will be compared with that of optimization-based FMPC and of LMPC.The sampling time was assumed equal to T s = 10 s; tuning parameters of all three algorithms are assumed the same as in the work of Marusak (2009a): prediction horizon p = 100, control horizon s = 50, λ 1 = 1, λ 2 = 1, κ 1 = 1 and κ 2 = 1.During the experiments the value of the flow rate of buffer Q 2 in the equations used to simulate the control plant was increased by 10%.The responses obtained after changes of the set-point value are shown in Figs. 14 and 15.The LMPC algorithm (dash-dot lines), based on a single set of step responses, obtained near the 4th operating point, works well near this point-for the set-point change to 9. For other set-point values, the LMPC algorithm is much slower than fuzzy algorithms.Both EFMPC (solid lines) and optimization-based FMPC (dotted lines) offer much better control performance.Fuzzy algorithms generate responses very similar to each other.

81The output variable pH reaches the set-point values much faster in the control systems with fuzzy algorithms.There is some overshoot, although it is small.The responses obtained for different set-point values have shapes similar to each other-the influence of control plant nonlinearities on control quality is then significantly reduced, thanks to the application of control algorithms based on nonlinear models.The second output variable-the liquid level in the reactor h is stabilized properly by all the algorithms.

Summary

82The proposed algorithm is computationally efficient and, at the same time, offers very good control performance.It uses the nonlinear model to derive the free response of the control plant and the approximate, easy to obtain, fuzzy model to calculate the control signal in a fast and efficient way.Thanks to such an approach, repetition of on-line optimization at each iteration of the algorithm is avoided.Despite that, the proposed algorithm offers control performance very close to that granted by the algorithms with optimization.

83The control signal in the proposed algorithm is generated fast.Therefore the algorithm, although it is based on a nonlinear model, can be used with relatively small sampling times.The proposed algorithm can be used not only as a stand-alone one, but also in the control systems with NMPC algorithms, to improve the numerical properties of the latter ones.It is also possible to obtain the free response using other methods than the one exploited in the paper, for example, methods dedicated to particular types of models; the proposed approach is independent of the technique of free response generation.(2002).On multi-parametric nonlinear programming and explicit nonlinear model predictive control, Proceedings of the 41st IEEE Conference on Decision and Control, Las Vegas, USA, Vol. 3, pp. 2768-2773. Johansen, T.A. (2004).Approximate explicit receding horizon control of constrained nonlinear systems, Automatica 40(2): 293-300.

84the vector of the values of manipulated variables at the (k − i)-th sampling instant; let us also denote the outputs of the model at the (k + i)-th sampling instant as y k+i|k = y 1 k+i|k , . . ., y ny k+i|k T , while n a , n b determine how many past output and control values are used by the model.

Fig. 1 .

85Fig. 1.Diagram of the EFMPC algorithm.

Fig. 2 .

86Fig. 2. Diagram of the isothermal CSTR with a van de Vusse reaction.

Fig. 4 .Fig. 5 .

87Fig. 4. Membership functions of the fuzzy model.

Fig. 6 .

88Fig. 6.Responses of control systems to the change of the set-point value to CB = 0.8; EFMPC-solid lines, optimization-based FMPC-dotted lines, NMPCdashed lines, LMPC-dash-dotted lines and PIDdashed lines with points.

Fig. 7 .

89Fig. 7. Responses of control systems to the change in the disturbance by 10% to C Af1 = 11 mol/l: EFMPCsolid lines, optimization-based FMPC-dotted lines, NMPC-dashed lines, LMPC-dash-dotted lines and PID-dashed lines with points.

Fig. 8 .Fig. 9 .

90Fig. 8. Responses of control systems to the change in the setpoint value to CB = 1.25, λ = 0.0001: EFMPC-solid lines, optimization-based FMPC-dotted lines, EFMPC and no constraints-dashed lines.

Fig. 10 .

91Fig. 10.Responses obtained in the control system for k1 = 55 (solid line), k2 = 110 (dotted line) and k3 = 11 (dashed line).

Fig. 11 .

92Fig. 11.Diagram of the pH reactor.

93Fig. 12. Steady-state characteristic pH(Q1, Q3).

Fig. 13 .

94Fig. 13.Membership functions of the fuzzy model.

Fig. 14 .Fig. 15 .

95Fig. 14.Responses of control systems to the change of pH set-points from 7 to 8, 9 and 10: EFMPC-solid lines, optimization-based FMPC-dotted lines and LMPC-dash-dotted lines, set-point trajectory-dashed lines; left-output variables pH and h, right-manipulated variables Q1 and Q3.

참고문헌 45건

  1. Stability analysis of nonlinear control systems with unconstrained fuzzy predictive controllers Archives of Control Sciences · De Gruyter Open · 2002
  2. On multi-parametric nonlinear programming and explicit nonlinear model predictive control 2003 10.1109/cdc.2002.1184260
  3. Computationally Efficient Model Predictive Control Algorithms: A Neural Network Approach Springer eBooks · Springer Nature · 2014
  4. A Mechanism of Output Constraint Handling for Analytical Fuzzy Controllers Lecture notes in computer science · Springer Science+Business Media · 2010 10.1007/978-3-642-13025-0_24
  5. Adaptive neuro-fuzzy inference system (ANFIS) – based model predictive control (MPC) for carbon dioxide reforming of methane (CDRM) in a plug flow tubular reactor for hydrogen production Thermal Science and Engineering Progress · Elsevier BV · 2018 10.1016/j.tsep.2018.11.010
  6. Efficient Model Predictive Control Algorithm with Fuzzy Approximations of Nonlinear Models Lecture notes in computer science · Springer Science+Business Media · 2009 10.1007/978-3-642-04921-7_46
  7. Disturbance modeling and state estimation for offset-free predictive control with state-space process models International Journal of Applied Mathematics and Computer Science · De Gruyter Open · 2014 10.2478/amcs-2014-0023
  8. Constrained model predictive control: Stability and optimality Automatica · Elsevier BV · 2000 10.1016/s0005-1098(99)00214-9
  9. Approximate explicit receding horizon control of constrained nonlinear systems Automatica · Elsevier BV · 2003 10.1016/j.automatica.2003.09.021
  10. The explicit linear quadratic regulator for constrained systems Automatica · Elsevier BV · 2002 10.1016/s0005-1098(01)00174-1
  11. Fuzzy modeling and predictive control of superheater steam temperature for power plant ISA Transactions · Elsevier BV · 2014 10.1016/j.isatra.2014.11.018
  12. A Novel mp-NLP Algorithm for Explicit/Multi-parametric NMPC IFAC Proceedings Volumes · Elsevier BV · 2010 10.3182/20100901-3-it-2016.00073
  13. Model predictive control: past, present and future Computers & Chemical Engineering · Elsevier BV · 1999 10.1016/s0098-1354(98)00301-9
  14. Tuning of PID Controllers for Continuous Stirred Tank Reactors Indian Chemical Engineer · Taylor & Francis · 2012 10.1080/00194506.2012.766005
  15. Applying neural networks to on-line updated PID controllers for nonlinear process control Journal of Process Control · Elsevier BV · 2003 10.1016/s0959-1524(03)00039-8
  16. Who needs QP for linear MPC anyway? Automatica · Elsevier BV · 2002 10.1016/s0005-1098(01)00263-1
  17. Experimental evaluation of an augmented IMC for nonlinear systems Control Engineering Practice · Elsevier BV · 2000 10.1016/s0967-0661(00)00041-1
  18. Piecewise linear optimal controllers for hybrid systems 2000 10.1109/acc.2000.876688
  19. Fast reduced multiple shooting methods for nonlinear model predictive control Chemical Engineering and Processing - Process Intensification · Elsevier BV · 2007 10.1016/j.cep.2006.06.024
  20. Discrete Tagaki–Sugeno models for control: Where are we? Annual Reviews in Control · Elsevier BV · 2009 10.1016/j.arcontrol.2009.01.004
  21. Nonlinear model-based control using second-order Volterra models Automatica · Elsevier BV · 1995 10.1016/0005-1098(94)00150-h
  22. Advantages of an easy to design fuzzy predictive algorithm in control systems of nonlinear chemical reactors Applied Soft Computing · Elsevier BV · 2009 10.1016/j.asoc.2009.02.013
  23. Real-time optimization and nonlinear model predictive control of processes governed by differential-algebraic equations Journal of Process Control · Elsevier BV · 2002 10.1016/s0959-1524(01)00023-3
  24. A fast moving horizon estimation algorithm based on nonlinear programming sensitivity Journal of Process Control · Elsevier BV · 2008 10.1016/j.jprocont.2008.06.003
  25. Cooperation of model predictive control with steady-state economic optimisation Control and Cybernetics · 2008
  26. A practical multiple model adaptive strategy for single-loop MPC Control Engineering Practice · Elsevier BV · 2002 10.1016/s0967-0661(02)00106-5
  27. On-line optimization via off-line parametric optimization tools Computers & Chemical Engineering · Elsevier BV · 2000 10.1016/s0098-1354(00)00510-x
  28. Predictive control with constraints Automatica · Elsevier BV · 2003 10.1016/s0005-1098(03)00056-6
  29. T–S fuzzy model predictive speed control of electrical vehicles ISA Transactions · Elsevier BV · 2016 10.1016/j.isatra.2016.04.019
  30. Nonlinear State–Space Predictive Control with On–Line Linearisation and State Estimation International Journal of Applied Mathematics and Computer Science · De Gruyter Open · 2015 10.1515/amcs-2015-0060
  31. A new T-S fuzzy model predictive control for nonlinear processes Expert Systems with Applications · Elsevier BV · 2017 10.1016/j.eswa.2017.06.039
  32. Optimal partitioning of a boiler-turbine unit for Fuzzy model predictive control IFAC-PapersOnLine · Elsevier BV · 2017 10.1016/j.ifacol.2017.08.193
  33. Offset-free nonlinear Model Predictive Control with state-space process models Archives of Control Sciences · De Gruyter Open · 2017 10.1515/acsc-2017-0035
  34. Multi-layer health-aware economic predictive control of a pasteurization pilot plant International Journal of Applied Mathematics and Computer Science · De Gruyter Open · 2018 10.2478/amcs-2018-0007
  35. Implementation of Multiple-Input Multiple-Output Dynamic Matrix Control Algorithm for Fast Processes Using Field Programmable Gate Array IFAC-PapersOnLine · Elsevier BV · 2018 10.1016/j.ifacol.2018.07.174
  36. Computationally Efficient Implementation of Dynamic Matrix Control Algorithm for Very Fast Processes Using Programmable Logic Controller 2018 10.1109/mmar.2018.8486132
  37. Fast Analytical Model Predictive Controllers and Their Implementation for STM32 ARM Microcontroller IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2019 10.1109/tii.2019.2893122
  38. Disturbance-observer-based fuzzy model predictive control for nonlinear processes with disturbances and input constraints ISA Transactions · Elsevier BV · 2019 10.1016/j.isatra.2018.12.041
  39. Generalized Discrete-time nonlinear disturbance observer based fuzzy model predictive control for boiler–turbine systems ISA Transactions · Elsevier BV · 2019 10.1016/j.isatra.2019.01.003
  40. Robust fuzzy model predictive control for energy management systems in fuel cell vehicles Control Engineering Practice · Elsevier BV · 2020 10.1016/j.conengprac.2020.104364
  41. Nonlinear model predictive control for processes with complex dynamics: A parameterisation approach using Laguerre functions International Journal of Applied Mathematics and Computer Science · De Gruyter Open · 2020 10.34768/amcs-2020-0003
  42. Efficient MPC algorithms with variable trajectories of parameters weighting predicted control errors Archives of Control Sciences · De Gruyter Open · 2020 10.24425/acs.2020.133502
  43. Model-Based Predictive Control CRC Press eBooks · Informa · 2017 10.1201/9781315272610
  44. Model Predictive Control Advanced textbooks in control and signal processing · 1999 10.1007/978-1-4471-3398-8
  45. Advanced Control of Industrial Processes: Structures and Algorithms 2006