Abstract
In this work, a novel methodology is presented to reduce the computational complexity of applying explicit solution of Model Predictive Control (MPC). The methodology is based on applying the functional principal component analysis, providing a mathematically elegant approach to reduce the complexity of rule-based systems, like piecewise affine systems, allowing the reduction of the number of consequents and combining and merging the antecedents. Thus, the application of MPC is allowed in systems with low computational requirements, such as programmable logic controllers, embedded systems, etc. The proposed design has been validated using an industrial distiller model.
Keywords
Introduction
In traditional constrained model predictive control (MPC) [1], the control problem is solved in an on-line optimisation. MPC uses a dynamic model of the process in the optimisation problem to predict the future evolution of the output over a finite horizon to define the optimal control action at each time step by minimising an objective function while satisfying the system constraints. The predicted output vector of a linear system can be expressed as
One of the characteristics of MPC controllers that makes them indisputably distinguishable from other control techniques is the ability to modify, online, the behavior of the MPC. This is done by using the weighting parameter, especially in practice, the R parameter. As mentioned above, this parameter is the weighting factor that penalizes the control increments in the computation of the objective function. The higher the value of R, the lower the control increments and the lower R, the greater the control increments that the MPC can use when tracking the set point. Hence, a user can modify the behavior of the MPC, making it more reactive or less reactive through the modification of a single parameter and without the need, in general, to compute a new controller, offline, as it happens in another type of controllers. To solve this problem, there are many available and reliable quadratic programming (QP) algorithms, e.g. active set, feasible direction, pivoting methods, etc., [1]. They all use an iterative algorithm, which means that due to the computational burden they are not suitable for every hardware platform. As such, in the past, the main drawback of MPC was that it was restricted to relatively slow response process applications with sampling times in the order of minutes.
In the last decade there has been an effort to accelerate the computation of the MPC. In [2], the implementation aspects are presented and the restriction of the horizon on limited-resource hardware such as fixed-point arithmetics is addressed. Fast model predictive control can be done on-line and off-line. On-line fast MPC is based on the formulation of MPC as a QP problem and an appropriate variable reordering to apply the interior point optimisation algorithms, the active set strategies or the first-order fast gradient methods. Faster on-line optimisation techniques are described in [3–8]. Off-line MPC or explicit MPC is based on solving the optimisation problem that is parameterised by state, i.e. parametric optimisation, to obtain a pre-computed control law as function of state. Several explicit MPC algorithms have been proposed [9–13]. In [9], an explicit form of the MPC controller has been proposed by solving a multi-parametric quadratic program (mpQP) transformed from the constrained MPC QP problem, hence on-line computation is dramatically reduced, obtaining a piecewise affine (PWA) controller. Such a function is then composed of numerous distinct affine feedback laws defined over a set of polytopic regions. For further results on explicit MPC, the reader is referred to [14] and the references therein.
The use of explicit MPC can lead to an explosion of regions when it comes to high-order models (e.g. more than 10 states). In [11], the goal-oriented reduction methodology has been proposed to obtain reduced-order models that are efficient for solving the MPC problem to obtain an explicit solution for large-scale systems with fast dynamics. An explicit MPC based on dynamic and multi-parametric programming techniques to decompose the MPC mpQP optimisation problem into a set of smaller stage optimisation subproblems and the optimal control variables for each stage as a function of the systems states has been developed in [12]. Also in [13], an explicit MPC is applied in buildings. Other examples can be found in [15, 16], where a constrained MPC problem is developed using a low range programmable logic controller (PLC). Due to the combinatorial nature of the problem, the explicit MPC synthesis is usually only tractable for low state dimensions. Computing the optimal input on-line then reduces to a mere function evaluation, which can be performed very quickly even with limited computational resources.
It is posible to solve the real-time MPC optimisation by designing a MPC control scheme based on PWA systems. However, if the PWA needs a large number of regions to obtain a good solution, the programming effort and memory capacity of the hardware platform can cause the non-applicability of this methodology. This will end up in preventing the use of predictive control for fast and/or low cost systems. There have been studies in this field, with some methods that can reduce the number of regions of PWA (with some loss of optimality). Another approach for complexity reduction of PWA systems is based on constructing a sub-optimal replacement function of substantially lower complexity [17–21]. In [22] regions are merged if they share the same expression for the control law. If the PWA function is convex (or if there exists a convex function, defined over the same regions), then the method presented in [23] can be used to reduce the required memory storage. If the original function is non-convex, butcontinuous, its lattice representation [24] can be built, again decreasing the memory consumption. In [25], the performance-lossless replacement was constructed by only considering the regions of the original function, where the control action is not saturated. This can considerably reduce the complexity as the number of unsaturated regions is usually significantly smaller compared to the total number of underlying polytopes over which the original function is defined. In [26] an exploration strategy for subdividing the parameter space, which avoids unnecessary partitioning, has been derived. In [17] a technique by relaxing the Karush-Kuhn-Tucker (KKT) conditions for optimality has been proposed. A rotation of the state space, obtaining a suboptimal control action has been presented in [27]. In [28], a method to reduce complexity has been proposed by taking into account the formulation of the optimisation problem:
These techniques, while useful, may not produce a drastic reduction in the number of rules, if an approach to online MPC performance is desired. In [36], a powerful technique, based on Functional Principal Component Analysys (FPCA) has been used to reduce complexity of Fuzzy Systems, decreasing the number of rules in a systematic way.
The main contribution of this work is the application of the reduction technique presented in [36] for PWA systems, in order to reduce complexity of explicit MPC and the use of a fuzzy system to modulate several of them, including an adjustment parameter, which will allow an online adjustment of the behaviour of the MPC to make it more or less reactive and obtain more or less rapid system responses depending on the needs of the process.
Model Predictive Control has been used in conjunction with fuzzy models under the denomination Fuzzy-MPC (FMPC), since the 90s [43–50], mainly aimed at nonlinear-process control problems. Fuzzy systems have also been used to adjust the MPC parameters setting [51]. In this work a fuzzy system is used to modulate the action of several explicit MPCs. This article is organised as follows: An introduction to PCA and FPCA is given in section 2. Section 3. presents the application of FPCA to PWA systems. The formulation of constrained MPC as PWA controller is shown in section 4. In section 5, an application is used to illustrate the proposed method. Section 6 presents a control scheme, based on the proposed design, permitting an adjustable parameter. Conclusions are given in section 7.
From the last four decades, there has been an important development of functional data analysis (FDA). The main stream of FDA is the FPCA [35, 37]. FPCA is the functional extension of the PCA, therefore before checking FPCA, we will revisit multivariate PCA, that is used to reduce the dimensionality of multivariate data.
Principal component analysis
PCA is well known in the field of multivariate statistical analysis. Using PCA, the dimensionality of the space variables is reduced. The idea behind PCA is to find the subspace where the data have a high covariance. In Figure 1 there is more variability of the data in two dimensions, therefore, three dimensions are not necessary to represent that data.

Principal components: C1 and C2.
Supposing r variables and N real samples, a real data set is represented by:
If μ
Y
= E (
To obtain the subspace with maximum variability in the data, the covariance matrix of
In order to choose the number of principal components, a criterion for choosing the eigenvalues may be the use of an index of variability, defined as follows:
The PCA works in a vector space. Working in a space of functions, the analysis will be the FPCA.
Let f1 (x) , f1 (x) , . . . , f n (x) be functions in separable Hilbert space endowed with inner product:
If each function f
i
(x) may be decomposed in:
In general, a PWA system can be formulated as:
Each region Θ
i
is defined by a polytope. Let δ
i
be functions defined as:
If N is the number of regions, the PWA system can be expressed as:
Considering each f
i
(
Matrix
A symmetric eigenvalue problem now remains to be solved. Since only one region will be active in each state vector, equation (28) will give only one of the values within
It may be that there are repeated b
ij
values, in such case, the regions associated to those values can be merged, hence reducing the number of regions, i.e. if b
ij
= b
ik
with j ≠ k, then γ
i
(x) = bi1δ1 (
Given a linear system
The above MPC optimisation problem (35) can be described in the standard QP form, [1], and as shown in [9] such an MPC QP problem can be transformed into:
To illustrate the performance of a reduced PWA system, a high purity distillation column is used as an example. The distillation process typically works around an operating point, being identifiable by a linear model. The example is be carried out using the model shown in [40], where the linear model in an operational point is defined as:

Distillation column.
Considering the reference tracking problem, i.e., the problem of driving the output (product composition) y to track a given reference signal
According to [9, 10], the number of regions obtained for the control law is 140. Applying the developed FPCA above to this application, with the same tuning parameters, only five consequents are obtained for the first manipulated variable and six for the second,
PWA Controller vs Simplified PWA controller performance for distillation column.
An important drawback of the explicit solution of the MPC is the lack of on-line tuning parameters to the designed controller. It is a weakness in terms of implementation. One possible solution is to design different PWA controllers for different settings parameters and linearly interpolating the control action of the different controllers, e.g. by the inference of a fuzzy controller having the control actions of the various PWA designed for different parameter values as inputs. The problem with this is an increase in complexity, due to the increasing number of rules. Figure 5 shows the scheme of thisstructure.
A Takagi-Sugeno fuzzy system [42] can be chosen to interpolate the different control actions for the distillation column. Only the input R is taken for fuzzyfication. If great accuracy is desired, there should be many PWA controllers programmed into the system and more values of R. As an example, three different PWA for three values of R are designed, giving the number of regions shown in Table 1 and the performance shown in Fig. 4.

PWA controllers depending on R.
Controllers structure using FPCA
Following the structure of the system proposed above (see Fig. 5), the parameter R (move suppression) can be adjusted in order to give more or less aggressiveness to the system. Figure 7 shows the performance of the controller when R takes different values between those which are given in Table 1. It is observed that the R value can be changed directly on-line, without the need to have a set of predefined controllers.

Explicit MPC with FIS structure.

Control surface depending on each PWA and R.

FMPC for distillation column depending on R.
A novel technique has been applied for PWA systems to reduce the number of consequents and to associated regions in the antecedents of the rules. The technique is based on the application of FPCA to the structure of the PWA. A tuning parameter can be included in the explicit MPC by using a PWA controller per each adjusted parameter, although, the complexity of the system increases. The application of this technique, together with the use of a fuzzy system to combine the different PWA controllers, has succeeded in designing a MPC scheme with constraints and an on-line adjustment parameter, drastically reducing the number of regions of consequents, improving programming time (down 96% the number of consequents to add into the code). The technique applied to the PWA also allows a new merge of regions (not necessarily adjacent), opening the door to future research on reducing their complexity. Another future work aims at the systematic design of the fuzzy system.
Footnotes
Acknowledgements
The authors would like to acknowledge the VI Plan of Research and Transfer of the University of Seville (VI PPIT-US) for funding this work and also the Ministry of Economy and Competitiveness of Spain for the financial support under grant DPI2016-78338-R.
