Abstract
This study leverages a second-order discrete-time Nonlinear AutoRegressive Exogenous (NARX)-Laguerre model to develop a nonlinear predictive proportional–integral–derivative (PID) control approach. The proposed technique employs the model predictive control (MPC) framework to dynamically adjust the PID controller parameters. This work is motivated by the limitations of conventional PID controllers in handling nonlinear dynamics and system constraints, which are frequently encountered in real-world applications. In addition, the challenge of control signal saturation is addressed, with a practical solution introduced to improve system performance. The effectiveness of this advanced PID control strategy is demonstrated through its application to a continuous stirred tank reactor (CSTR).
Introduction
Advancements in system control theory have yielded a myriad of controllers and methods for application in real systems. Among these, proportional–integral–derivative (PID) controllers have stood out for their simplicity and effectiveness across a wide range of industrial systems (Huang et al., 2004; Ikuro et al., 2013; O’Dwyer, 2009; So, 2024). The popularity of PID controllers arises from their ability to provide satisfactory performance for systems with reduced-order structures.
However, real-world systems often exhibit nonlinear behavior and are subject to operational constraints, which can significantly degrade the performance of conventional PID controllers. In such cases, fixed-parameter PID control is insufficient to ensure robust performance and constraint handling. These limitations motivate the integration of predictive strategies into the PID framework to enhance its adaptability and efficiency in complex scenarios.
The optimization of a PID controller involves fine-tuning its parameters, a process crucial for achieving desired control outcomes. Various analytical and numerical methods have been employed for PID parameter setting (Meric and Serdar, 2015; Na, 2001; Zhao et al., 2023). While these controllers are commonly embraced for their simplicity and effectiveness, their deficiency in predictive capabilities restricts their applicability to intricate systems characterized by complex dynamics. Consequently, there is a drive to incorporate predictive elements into the PID control structure (Na, 2001; Wang et al., 2017).
In this context, our methodology is influenced by model predictive control (MPC), wherein the adjustment of PID controller parameters is conceptualized as a minimization problem. The goal is to focus on minimizing the squared deviation between the reference signal and the predicted output within a specified prediction horizon. MPC is a well-established real-time control strategy that iteratively computes the optimal control actions by solving an optimization problem over a predefined future horizon, while accounting for specific process constraints (Dewei and Yugeng, 2011; Mbarek et al., 2015; Michael et al., 2015; Salhy et al., 2013). The strategy can be adapted to diverse system configurations through explicitly using a model to formulate control laws. The literature presents various MPC extensions, including multi-input-multi-output (MIMO) MPC (Abdelwahed et al., 2017; Mbarek et al., 2015; Wibowo and Saad, 2017), nonlinear model predictive control (NMPC) (Grancharova and Johansen, 2012; Nikolakopolou and Braatz, 2023; Xiang et al., 2006), and MIMO nonlinear MPC (Lopez-Sanz et al., 2017).
Within the context of NMPC, the NARX model (Nonlinear AutoRegressive Exogenous model) is a common choice for constructing nonlinear controllers, as noted in (Napoli and Piroddi, 2010; Nikolakopolou and Braatz, 2023; Xiang et al., 2006). The enhanced precision and increased availability of experimental data in engineering have spurred the development of detailed mathematical models for deeper insights into system behavior. However, representing nonlinear processes with the NARX model poses difficulties, primarily due to its high parameter count, which not only complicates the NMPC algorithm but may also exceed the allowable computation time within the sampling periods of some nonlinear systems.
Recent advancements suggest a new approach to tackle the limitations in representing complex dynamic linear systems. This involves utilizing Laguerre bases to reduce the parameter complexity of various models, including ARX (Njima and Garna, 2020), bilinear models (Dai et al., 2021; Garna et al., 2014), MIMO ARX (Mbarek et al., 2015), and multiple models (Hajer et al., 2020; Sameh et al., 2018). The method focuses on projecting model parameters onto independent Laguerre orthonormal bases to streamline the parameter set. In the nonlinear context, Benabdelwahed et al. propose reducing the NARX model’s complexity by developing it on five distinct Laguerre orthonormal bases (Benabdelwahed et al., 2018). This model, called the NARX-Laguerre model, incorporates five poles, and their optimal configuration plays a key role in significantly decreasing the number of parameters.
Moreover, the integration of the NARX-Laguerre model within the MPC framework provides distinct advantages. Compared to the traditional NARX model, the NARX-Laguerre model reduces the parameter complexity by projecting nonlinearities onto Laguerre bases, resulting in a more compact and computationally efficient parameter set. This simplification significantly reduces the computational burden and enhances real-time feasibility, especially in systems with fast dynamics or limited computational resources. In addition, the NARX-Laguerre model retains the ability to accurately capture nonlinear system behaviors, which is critical for effective PID control in complex systems, offering both stability and predictive power.
While MPC brings a wealth of predictive advantages, the marriage of its predictive strengths with the stability and robustness of PID control creates a formidable synergy. The advantages of PID simplicity, stability, and effectiveness are strategically combined with the predictive prowess of MPC. This hybridization retains the reliability of PID while imbuing it with the foresight to preemptively address potential deviations from optimal system performance.
The main contribution presented in this paper is the synthesis of a predictive control strategy for nonlinear systems, specifically building upon the foundations of the PID controller. The predictive element is derived from the implementation of NMPC, formulated using NARX-Laguerre model. In this approach, the adjustment of PID parameters is integrated into the optimization process for determining the optimal control sequence. The optimization of the Laguerre poles, critical parameters of this model, is achieved through the application of the Genetic Algorithm (GA). To validate the effectiveness of the proposed control methodology, comprehensive testing is conducted using the continuous stirred tank reactor (CSTR) benchmark. The paper is structured as follows: section “Second-order NARX-Laguerre model” introduces the NARX-Laguerre model, a simplified version of the NARX model with reduced parameterization, presented in a recursive format. A GA is employed to fine-tune the five Laguerre poles. Section “PID controller based on NARX-Laguerre model” describes the development of a predictor that uses both future control actions and predicted outputs over the predictive horizon. The NMPC approach utilizing the NARX-Laguerre model and incorporating system constraints, is then synthesized. Finally, the performance of the proposed NARX-Laguerre model and its NMPC application is demonstrated using a CSTR benchmark case study.
Second-order NARX-Laguerre model
Definition
Introduced by Benabdelwahed et al. (2018), the NARX-Laguerre model is derived by projecting the coefficients of NARX model onto a set of five distinct Laguerre bases
This model is marked by fewer parameters compared to the classical model and defined by the following expression:
where
Recursive representation of the NARX-Laguerre model
Recursively, the filtered input and output of the NARX-Laguerre model can be expressed through the following relations:
where the matrices
Then, the following recursive expressions are formulated:
where
and ⊗ is the Kronecker product. The NARX-Laguerre model satisfies the following recursive vector representation:
NARX-Laguerre model can be written in the following linear-in-parameter form:
where
and
with
Pole optimization using GA
Due to its straightforwardness and efficiency, the GA is commonly employed as an optimization technique. This approach revolves around minimizing or maximizing a criterion known as “fitness” to attain the desired optimal variables. To identify the optimum values of the Laguerre poles, we opt for the application of GAs, focusing on minimizing the normalized mean square error (NMSE) defined by:
where
* Initialization: During this phase, an “initial population” of elements that will be optimized is formed using randomly generated values.
* Rating: The likelihood of minimizing the “fitness” function assigned to each element or group of elements is calculated.
* Selection: Elements from the population are selected based on their computed probabilities in the preceding phase.
* Cross over: Using two elements randomly chosen from the population named “parents,” the genetic recombination yields two new elements referred to as “children.”
* Mutation: The “children” experience a modification in this stage. The purpose of the mutation is to avert the algorithm from converging to a local extremum.
PID controller based on NARX-Laguerre model
Methodology
To enhance the control law, the NMPC approach is utilized, accounting for the system’s future behavior as predicted by an accurate mathematical model. This technique is incorporated into the design of a PID controller. The control scheme is depicted in Figure 1.

Block diagram of PID NMPC controller.
A PID controller computes the control law
where
Cost function
The method used for control calculation relies on the quadratic norm, as presented in Maraoui et al. (2019). The primary goal is to minimize the squared error between the predicted outputs ŷ and the reference setpoints r. It is assumed that the reference values are available for both the current time step k and throughout the prediction horizon. The quadratic criterion is formulated in equation (13):
where
The cost function,
j-step ahead predictor
According to equation (7),
where
The j-step ahead predictor of the NARX-Laguerre model, denoted as
Such that
The j-step ahead predictor is detailed in Ben Abdelwahed and Bouzrara (2024).
Matrix form
In matrix form, the criterion (13) can be written as follows:
where
K is defined as follows:
The desired control signal
where the vectors
such that
Constraints
Minimizing
Based on relation (23), the constraints on
which gives:
and
Hence, the constraints on the commands and the increments of commands can be written in the following matrix form:
with:
Thus, the future control
Application of the enhanced PID controller to the benchmark CSTR
Description of the benchmark
The CSTR is a chemical reactor that uses an irreversible and exothermic process to transform a reactant A into a product B (Assala et al., 1997). The process, illustrated in Figure 2, is cooled by a single coolant stream.

CSTR process.
The two handled inputs of the benchmark are as follows:
The process flow rate q.
The coolant flow rate
The two outputs are as follows:
The effluent concentration
The temperature T.
The CSTR is described by the following equations (32) and (33), with parameters outlined in Table 1:
Steady-state operating data.
Identification phase
By fixing one of its two inputs, the CSTR is considered as a single input single output (SISO) system. the coolant flow rate is fixed
The input signal is divided into two intervals as shown in Figure 3:

Input: feed flow rate.
The GA is used to optimize the five Laguerre poles. A crossover probability of

Validation.
Application of the proposed PID-NMPC
This section presents the application of the nonlinear predictive control algorithm, based on the NARX-Laguerre model with reduced parametric complexity, to regulate the concentration in the CSTR benchmark, also represented by the NARX-Laguerre model. The key reasons for the superior performance of our proposed approach are first the limitations of the PID controller (PID controllers are simple but lack predictive capabilities, leading to suboptimal performance in systems with strong nonlinearities), second, weaknesses of the NMPC (despite the NMPC provides optimal control by solving future states, its computational complexity can lead to slower responses in real-time applications), and finally, the PID-NMPC combines fast response of PID (for immediate disturbances) with the predictive optimization. The hybrid structure compensates for model uncertainties by leveraging PID’s robustness while maintaining optimality via NMPC.
The simulation settings are fixed in the following way:
Figure 5 shows the control signal that complies with the constraints specified in relation (34). In Figure 6, we present both the reference trajectory and the output from the CSTR benchmark. The figure clearly illustrates the agreement between the two outputs, demonstrating the efficacity of the enhanced PID control algorithm proposed in this paper.

Control signal.

Validation.
Figure 8 illustrates that the PID NMPC controller achieves better performance than both the PID and NMPC controllers.
Results and discussion
Figure 5 demonstrates that the predicted control signal adheres to the proposed constraints, ensuring the system operates within the desired limits. Figure 6 illustrates that the concentration effectively tracks the setpoint, confirming the robustness of the control strategy. Figure 7 reveals that the optimization criterion exhibits two peaks during the setpoint changes, indicating the system’s dynamic response to transitions. Figure 8 highlights the efficiency of the predictive PID NARX-Laguerre control compared to classical PID and NMPC based on NARX-Laguerre, particularly in terms of response time and tracking quality. In addition, Table 2 summarizes the advantages of the proposed control method over the other two, showcasing superior performance in terms of peak overshoot and settling time. These results collectively validate the effectiveness of the proposed predictive PID NARX-Laguerre control strategy.

Minimization criterion.

Controllers.
Transient performance analysis.
Conclusion
This paper introduces a novel approach to predictive PID control for nonlinear systems, using the NARX-Laguerre model, which provides the benefit of lower parametric complexity. The NARX-Laguerre model is initially presented, along with its recursive form. To identify the model, the GA is applied to set the five Laguerre poles in their optimal values, and the RLS method is used for determining the Fourier coefficients. Then, the proposed PID NMPC framework based on this model is developed. The effectiveness of the proposed PID NMPC algorithm is validated through extensive testing on the CSTR benchmark, demonstrating its efficiency in nonlinear control applications. While the results are promising, some limitations should be acknowledged. The current approach assumes a static offline-identified model, which may not be suitable for highly time-varying or noisy systems. In addition, the computational cost of genetic optimization could hinder real-time adaptation in fast processes. Future work could explore adaptive or online identification of the NARX-Laguerre model, as well as more efficient optimization techniques to enhance real-time feasibility.
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) received no financial support for the research, authorship, and/or publication of this article.
Data availability
Data sharing is not applicable to this article, as no data sets were generated or analyzed during the current study.
