Next Article in Journal
Automated Modal Analysis Using Stochastic Subspace Identification and Field Monitoring Data
Previous Article in Journal
Experimental Evaluation of Pet Food Waste as Biomass Fuel: Corrosion, Emissions, and Energy Potential
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Control of Nonlinear Systems Using Fuzzy Techniques Based on Incremental State Models of the Variable Type Employing the “Extremum Seeking” Optimizer

by
Basil Mohammed Al-Hadithi
1,2 and
Gilberth André Loja Acuña
2,*
1
Intelligent Control Group, Universidad Politécnica de Madrid, Centre for Automation and Robotics UPM—CSIC, C/J. Gutierrez Abascal, 2, 28006 Madrid, Spain
2
Department of Electrical, Electronics, Control Engineering and Applied Physics, School of Industrial Design and Engineering, Universidad Politécnica de Madrid, C/Ronda de Valencia, 3, 28012 Madrid, Spain
*
Author to whom correspondence should be addressed.
Appl. Sci. 2025, 15(14), 7791; https://doi.org/10.3390/app15147791
Submission received: 17 June 2025 / Revised: 7 July 2025 / Accepted: 8 July 2025 / Published: 11 July 2025

Abstract

This work presents the design of a control algorithm based on an augmented incremental state-space model, emphasizing its compatibility with Takagi–Sugeno (T–S) fuzzy models for nonlinear systems. The methodology integrates key components such as incremental modeling, fuzzy system identification, discrete Linear Quadratic Regulator (LQR) design, and state observer implementation. To optimize controller performance, the Extremum Seeking Control (ESC) technique is employed for the automatic tuning of LQR gains, minimizing a predefined cost function. The control strategy is formulated within a generalized framework that evolves from conventional discrete fuzzy models to a higher-order incremental-N state-space representation. The simulation results on a nonlinear multivariable thermal mixing tank system validate the effectiveness of the proposed approach under reference tracking and various disturbance scenarios, including ramp, parabolic, and higher-order polynomial signals. The main contribution of this work is that the proposed scheme achieves zero steady-state error for reference inputs and disturbances up to order N−1 by employing the incremental-N formulation. Furthermore, the system exhibits robustness against input and load disturbances, as well as measurement noise. Remarkably, the ESC algorithm maintains its effectiveness even when noise is present in the system output. Additionally, the proposed incremental-N model is applicable to fast dynamic systems, provided that the system dynamics are accurately identified and the model is discretized using a suitable sampling rate. This makes the approach particularly relevant for control applications in electrical systems, where handling high-order reference signals and disturbances is critical. The incremental formulation, thus, offers a practical and effective framework for achieving high-performance control in both slow and fast nonlinear multivariable processes.

1. Introduction

Fuzzy logic methods emerged in the mid-1960s with the foundational work presented in [1], where a fuzzy set is defined through a membership function that assigns each element a degree of membership ranging from zero to one. Subsequently, in 1973, Zadeh expanded on this concept by introducing fuzzy algorithms, which are structured sequences of instructions formulated through IF-THEN rules [2]. In the same year, the first documented industrial application of fuzzy logic was reported in [3]. This study explored the development of a “linguistic” controller for a steam engine model, aiming to analyze human interaction with adaptive control strategies. Unexpectedly, the fuzzy control approach demonstrated superior performance, significantly exceeding expectations and fostering broader interest in the application and advancement of fuzzy logic systems
The work presented in [4] compares fuzzy control methods with other nonlinear control strategies. It points out that a major drawback of fuzzy control lies in its inability to clearly define a direct link between membership functions and the system’s states, an unresolved issue. The authors also suggest that nonlinear control approaches, especially those specifically adapted to the system’s structure, often demonstrate superior performance compared to fuzzy techniques. The study presented in [5] focuses on Takagi–Sugeno–Kang (TSK) fuzzy systems, which enable the representation of general nonlinear dynamics through a compact set of rules. This work also introduces a methodology for designing fuzzy controllers capable of ensuring closed-loop stability when using TSK models. A practical implementation of fuzzy control is illustrated in [6], where a fuzzy logic controller is applied to a magnetic levitation system of a metallic sphere. The main contribution lies in the comparative analysis between the fuzzy controller and both linear (PD and PID) and nonlinear alternatives. The results reveal a superior performance of the fuzzy controller, primarily due to its effectiveness in managing the inherent nonlinearities of the system.
The research outlined in [7] introduces the well-established Takagi–Sugeno (T–S) identification method for modeling systems based on input–output data. A notable limitation of this method is its inapplicability in scenarios where membership functions exhibit pairwise overlap. To address this shortcoming, the approaches proposed in [8,9] incorporate parameter weighting to refine the values obtained through standard T–S identification, thereby mitigating the constraints of the original formulation. Furthermore, a Linear Quadratic Regulator (LQR) is employed to evaluate the performance of the proposed estimation framework. Validation through two illustrative examples confirms the robustness, simplicity, and general applicability of the algorithm developed.
The study conducted in [10] illustrates the application of modern control theory, rooted in time-domain analysis and state-space modeling, to systems with multiple inputs and outputs, including those exhibiting nonlinear behavior. In this study, the authors address the challenges posed by complex airflow dynamics, noting that few models adequately capture the dynamic distribution of indoor temperature. To improve accuracy in temperature prediction and control, a state-space model is employed and experimentally validated, yielding realistic and reliable results. Similarly, the study in [11] proposes an enhanced aeroservoelastic modeling framework for gust load analysis using time-domain state-space representations. The approach effectively handles the computational complexity of gust calculations and proves advantageous for control system design. A subsystem realization methodology is introduced to construct the full aeroservoelastic model, with simulation results confirming its high predictive accuracy.
The contributions presented in [12,13] demonstrate further applications of the state-space modeling paradigm in control design. Di Ruscio [12] incorporates the model within a model predictive control framework, whereas [13] utilizes it for the regulation of a four-tank process. In the latter study, as is common in system identification tasks, the derivation of accurate models typically requires full knowledge of both input and output signals. However, when one or more inputs are partially unknown, the identification process becomes significantly more challenging or even infeasible. To address this limitation, the methodology proposed in [14] introduces an iterative estimation procedure capable of reconstructing the system state trajectory and inferring the unknown input signal based solely on output measurements. This technique effectively mitigates one of the primary obstacles associated with conventional identification approaches.
The control strategy outlined in [15] leverages the incremental state-space model to achieve zero steady-state error in response to step-type reference signals. This formulation is further employed in [16] for the optimal multivariable control of a wind turbine system. The evaluation involves the application of Linear Quadratic Regulator (LQR) controllers to a nonlinear wind turbine model, with simulation results indicating favorable transient performance and complete steady-state error rejection, even in the presence of external disturbances, nonlinearities, and model inaccuracies. The work in [17] reinforces the suitability of the incremental modeling approach for addressing the intrinsic nonlinearity and uncertainty of the plant. Additional findings in [18] demonstrate that incremental control strategies can effectively resolve continuous-time nonlinear control problems without requiring a comprehensive global model of the system.
The foundational work in [19] demonstrates that the state vector of a linear system can be reconstructed by monitoring the system’s inputs and outputs. This study introduces the concept of a state observer, which enables estimation of the system’s internal states when direct measurement is impractical—a common scenario in real-world control applications. The relevance of this methodology is further substantiated in [20,21], where state observers are employed to estimate the system states and facilitate the design of optimal state-feedback controllers. Simulation analyses presented in both references validate the proposed approaches, highlighting their ability to ensure global stability and accurate state estimation.
The comparative study conducted in [22] analyzes the performance of three advanced state observers: high-gain, sliding mode, and extended state observers developed to address the inherent limitations of classical observer designs. The results indicate that the extended state observer outperforms the others in terms of robustness to dynamic uncertainties, sensor noise, and external disturbances. A similar evaluation is presented in [23], where the Luenberger estimator, Kalman filter, and sliding mode observer are assessed for estimating the speed of a DC motor. The findings underscore that observer performance is highly dependent on the specific characteristics of the system, with each method exhibiting distinct advantages under different operational conditions.
The Linear Quadratic Regulator (LQR) has been widely adopted in state-space control for both continuous- and discrete-time systems due to its inherent robustness and optimal performance characteristics. Wong [24] employs the LQR to demonstrate its ability to ensure system stability under predefined conditions, even in the presence of actuator faults and significant external disturbances. A complementary study is presented in [25], where the LQR is integrated into a fuzzy control architecture. In this case, the nonlinear system is linearized using the Lyapunov linearization technique and modeled through the Takagi–Sugeno (T–S) fuzzy framework. This representation enables the implementation of an LQR controller within each locally linearized region. The simulation results confirm that the combined approach yields quasi-optimal system performance, underscoring the effectiveness of embedding LQR within fuzzy modeling structures.
The investigation performed in [26] presents a comparative evaluation of the Linear Quadratic Regulator (LQR) and the Proportional-Derivative (PD) controller, applied to the attitude control of a quadrotor, a system characterized by nonlinear dynamics. MATLAB 2014 based simulations are employed to assess key performance indicators, including settling time and overshoot percentage. The results indicate that the LQR, despite being a linear control strategy, is capable of delivering satisfactory performance in controlling the nonlinear system, thus validating its applicability in such contexts.
The work presented in [27] introduces an enhancement to the Linear Quadratic Regulator (LQR) through the inclusion of an integral feedback component aimed at improving steady-state accuracy. This modification achieves a notable reduction in steady-state error—from over 40 cm to less than 1 cm—demonstrating the effectiveness of integral action as an extension to the LQR for applications demanding high precision. A comparable methodology is explored in [28], where an optimal control scheme based on the LQR is designed for the position and attitude regulation of a quadcopter UAV. In this case, integral compensation is selectively implemented for vertical position control. The simulation outcomes confirm that the proposed control structure successfully eliminates steady-state error in altitude regulation.
The methodology applied in [29] presents a comparative evaluation of a state feedback controller (SFC), designed using a linearized model and a Linear Quadratic Regulator (LQR), against a conventional PID controller. The findings indicate that, with appropriate parameter tuning, the SFC markedly improves the dynamic performance of the system. Specifically, it achieves a reduction in steady-state error and delivers an enhanced transient response, thereby offering a more robust control solution compared to the traditional PID approach.
Extremum Seeking Control (ESC), initially introduced in [30], constitutes an adaptive control strategy that enables a system to converge toward the optimum of a measured performance index without requiring a priori knowledge of the plant model. The method operates by iteratively minimizing a cost function through the adjustment of specific optimization parameters. A significant resurgence of interest in ESC was driven by the contribution in [31], where a formal proof of convergence was established for the standard ESC scheme utilizing periodic perturbations in the context of nonlinear systems.
The application of Extremum Seeking Control (ESC) for PID tuning is explored in [32], where ESC is utilized to minimize a cost function and, thereby, identify the optimal parameters of a PID controller. The comparative analysis reveals that ESC achieves superior performance—specifically, a reduced settling time—relative to traditional tuning techniques such as Ziegler–Nichols (ZN), Internal Model Control (IMC), and Iterative Feedback Tuning (IFT). A related contribution is presented in [33], which proposes a novel PI controller design method grounded in ESC principles. This approach is formulated to address real-time optimization tasks, thereby illustrating the adaptability of ESC for dynamic control environments.
As discussed in [34], enhancing process performance typically involves the application of real-time optimization (RTO) or model-based control techniques. Although these strategies can be effective, they often entail considerable computational overhead, and model-based controllers are notably susceptible to disturbances not accounted for in the model. In contrast, Extremum Seeking Control (ESC) offers a model-free alternative that circumvents these issues but is constrained by slow convergence rates. To address this limitation, the integration of automatic optimization control is proposed as a means to reduce computational complexity. The case study involving an ammonia reactor illustrates that the combined use of ESC and automatic optimization enables effective compensation for unmeasured disturbances and plant-model discrepancies, thus improving overall system robustness.
The methodology presented in this work aims to ensure zero steady-state error in response to various reference and disturbance signals, including step, ramp, and second-order polynomial (parabolic) inputs. The proposed control scheme combines the incremental state and incremental-N state modeling frameworks with the Takagi–Sugeno (T–S) fuzzy representation to address nonlinear system dynamics. To improve the controller tuning process, Extremum Seeking Control (ESC) is integrated into the design. The effectiveness of the approach is validated through a case study involving a thermal tank system, selected due to its inherent nonlinear behavior and multivariable characteristics.
The structure of the paper is as follows: Section 2, Section 3 and Section 4 introduce the incremental state-space model, its fuzzy extension via Takagi–Sugeno rules, and a nonlinear parameter identification method. Section 5 and Section 6 address discrete LQR control and state estimation. Section 7 and Section 8 detail the construction of incremental-2 and generalized incremental-N models, including their fuzzy formulations. Section 9 presents the Extremum Seeking Control (ESC) algorithm for automatic LQR tuning. Section 10 applies the proposed fuzzy control strategy to a nonlinear thermal mixing tank, evaluating its performance and robustness across various reference signals and disturbance scenarios.

2. Incremental State Model

It is well established that discrete-time models are suitable for identifying continuous-time systems with multiple delays through the use of difference equations, as such models permit the integration of delays directly into the state formulation. In this context, the incremental state-space model offers distinct advantages over its non-incremental counterpart. Specifically, it simplifies the computation of the reference state, since a zero incremental state can be directly associated with a desired output, effectively eliminating the need for explicit reference state calculation. Additionally, the incremental formulation inherently introduces an integrative effect into the control law, thereby enabling zero steady-state error in response to constant references or disturbances [15].
We use a discrete-time multivariable system with p inputs, u p , and q outputs, y q , where q p [35]:
y i ( k + 1 ) = a i 0 + a i 1 y i ( k ) + + a i n i y i ( k n i + 1 ) + + j = 1 p ( b i j 1 u j ( k ) + b i j 2 u j ( k 1 ) + + b i j n i u j ( k n i + 1 ) )
The system has been identified using the least squares method with affine terms; therefore, some of the parameters a i n i , b i j 1 , …, b i p n i are non-zero. For each output, the difference equations can be transformed into a discrete-time state-space model with affine terms:
    x i ( k ) n i T e x t w i l l b e i n v i s i b l e x i ( k + 1 ) = a i 0 · a i 1 a i 0 · a i 2 a i 0 · a i n i + a i 1 1 0 a i 2 0 0 1 a i n i 0 0 x i ( k ) + b i 11 b i 21 b i p 1 b i 12 b i 21 b i p 2 b i 1 n i b i 1 n i b i p n i u 1 ( k ) u 2 ( k ) u p ( k ) y i ( k ) = a i 0 + 1 0 0 x i ( k ) I n v i s i b l e
In matrix notation,
x i ( k + 1 ) = a x i + A i x i ( k ) + B i u ( k ) y i ( k ) = a i 0 + C i x i ( k )
where a x i ( n i × 1 ) , A i ( n i × n i ) , B i ( n i × p ) y C i ( 1 × n i ) . By grouping the entire multivariable system, the following is obtained:
x 1 ( k + 1 ) x 2 ( k + 1 ) x q ( k + 1 ) = a x 1 a x 2 a x q + A 1 0 0 0 A 2 0 0 0 A q x 1 ( k ) x 2 ( k ) x q ( k ) + B 1 B 2 B q u 1 ( k ) u 2 ( k ) u p ( k ) y 1 ( k ) y 2 ( k ) y q ( k ) = a 10 a 20 a q 0 + C 1 0 0 0 C 2 0 0 0 C q x 1 ( k ) x 2 ( k ) x q ( k )
This can be represented as follows:
x ( k + 1 ) = a x + A x ( k ) + B u ( k ) y ( k ) = a y + C x ( k )
a x ( n × 1 ) , A ( n × n ) , B ( n × p ) , a y ( q × 1 ) y C ( q × n ) , where n = n 1 + n 2 + + n q . Equation (5) will be referred to as the discrete-time state-space model, which has been obtained through input-output identification; therefore, it is controllable and observable. If Equation (5) is applied for a previous sample, the following is obtained:
x ( k ) = a x + A x ( k 1 ) + B u ( k 1 ) y ( k 1 ) = a y + C x ( k 1 )
Subtracting (6) from (5) yields
x ( k + 1 ) x ( k ) = A ( x ( k ) x ( k 1 ) ) + B ( u ( k ) u ( k 1 ) ) y ( k ) y ( k 1 ) = C ( x ( k ) x ( k 1 ) )
The incremental state Δ x and the manipulated input Δ y are defined as follows:
Δ x ( k ) = x ( k ) x ( k 1 ) Δ y ( k ) = u ( k ) u ( k 1 )
Substituting (8) into (7) yields
Δ x ( k + 1 ) = A Δ x ( k ) + B Δ u ( k ) y ( k ) = y ( k 1 ) + C Δ x ( k )
In this formulation, p new states are introduced, achieving the following:
y ( k + 1 ) = y ( k ) + C Δ x ( k + 1 ) = y ( k ) + C ( A Δ x ( k ) + B Δ u ( k ) )
Thus, the new incremental state model can be expressed as follows:
y ( k + 1 ) Δ x ( k + 1 ) = I C A 0 A y ( k ) Δ x ( k ) + C B B Δ u ( k ) y ( k ) = I 0 + y ( k ) Δ x ( k )
Thus, a new extended incremental state vector, x a ( k ) ( q + n ) , is defined:
x a ( k ) = y ( k ) Δ x ( k )
The incremental state model in matrix notation is:
x a ( k + 1 ) = A a x a ( k ) + B a Δ u ( k ) y ( k ) = C a x a ( k )
where A a ( ( q + n ) × ( q + n ) ) , B a ( ( q + n ) × p ) y C a ( q × ( q + n ) ) .

3. Fuzzy Incremental State Model

Nonlinear systems can be modeled using the T–S fuzzy model, based on a set of measurable system variables z 1 ( k ) , z 2 ( k ) , z m ( k ) . If r 1 , r 2 , r m are chosen as fuzzy sets for these variables, the system can be defined through IF-THEN rules as follows [15]:
S ( i 1 i m ) : If   z 1 ( k ) is   M 1 i 1 and   and   z m ( k ) is   M m i m , then   y i ( k + 1 ) =         a i 0 ( i 1 i m ) + a i 1 ( i 1 i m ) y i ( k ) + a i 2 ( i 1 i m ) y i ( k 1 ) + + a i n i ( i 1 i m ) y i ( k n i + 1 ) + j = 1 p ( b i j 1 ( i 1 i m ) u j ( k ) + b i j 2 ( i 1 i m ) u j ( k 1 ) + + b i j n i ( i 1 i m ) u j ( k n i + 1 ) )
where j is the index of each fuzzy variable, and i m is the index of each fuzzy rule associated with that fuzzy variable. Starting from the result obtained in Equation (11), the fuzzy incremental state model can be derived:
S ( i 1 i m ) : If   z 1 ( k ) is   M 1 i 1 and   and   z m ( k ) is   M m i m , then      y ( k + 1 ) Δ x ( k + 1 ) = I C A ( i 1 i m ) 0 A ( i 1 i m ) y ( k ) Δ x ( k ) + C B ( i 1 i m ) B ( i 1 i m ) Δ u ( k ) y ( k ) = I 0 + y ( k ) Δ x ( k )
where A ( i 1 i m ) n × n , B ( i 1 i m ) n × p y C q × n . Moreover, its matrix form can be expressed as follows:
S ( i 1 i m ) : If   z 1 ( k )   is   M 1 i 1   and   and   z m ( k ) is   M m i m   , then                             x a ( k + 1 ) = A a ( i 1 i m ) x a ( k ) + B a ( i 1 i m ) Δ u ( k )                                     y ( k ) = C a x a ( k )
where A a ( i 1 i m ) ( ( q + n ) × ( q + n ) ) , B a ( ( q + n ) × p ) y C a ( q × ( q + n ) ) .

4. Identification T–S

A noteworthy method for the identification of T–S fuzzy models is presented in [7], where the estimation of a nonlinear system’s parameters is carried out through the minimization of a quadratic cost index. It is important to highlight that this method fails when the membership functions of the fuzzy rules are defined as triangular and pairwise overlapping. This failure arises because the T–S matrix is not of full rank and, consequently, is not invertible. Nevertheless, [9,36] propose a generalized T–S model identification approach based on parameter weighting, which successfully overcomes this limitation. Starting from (14), the fuzzy estimation of each output can be represented as follows:
y ^ i ( k + 1 ) = i 1 = 1 r 1 i m = 1 r m β ( i 1 i m ) z ( i 1 i m ) ( k ) a i 0 ( i 1 i m ) + a i 1 ( i 1 i m ) y i ( k ) + + a i n i ( i 1 i m ) y i ( k n i + 1 ) + j = 1 p b i j 1 ( i 1 i m ) u j ( k ) + + b i j n i ( i 1 i m ) u j ( k n i + 1 )
where
β ( i 1 i m ) z ( i 1 i m ) ( k ) = j = 1 m μ j i j ( z j ( k ) ) i 1 = 1 r 1 i m = 1 r m j = 1 m μ j i j ( z j ( k ) )
with μ j i j ( z j ) being the membership function corresponding to the fuzzy set M j i j . In order to apply the parameter weighting method, an initial estimation of the linearized model is required:
P 0 = a i 0 0 a i n i 0 b i 11 0 b i 1 n i 0 b i p 1 0 b i p n i 0
The initial estimation can be obtained by applying the classical least squares method to the system’s dataset. This initial estimation (19) serves as the reference parameters for all T–S subsystems. Subsequently, the fuzzy system parameters can be determined by minimizing
J = k = 1 n s y ( k ) y ^ ( k ) 2 + γ 2 i 1 = 1 r 1 i m = 1 r m j = 0 n p j 0 p j ( i 1 i m ) 2 = Y X P 2 + γ 2 p 0 P 2 = Y γ p 0 X γ I P 2 = Y a X a P 2
where
Y = y 1 y 2 y s t
P 0 = a i 0 ( 1 1 ) a i n i ( 1 1 ) b i 11 ( 1 1 ) b i 1 n i ( 1 1 ) b i p 1 ( 1 1 ) b i p n i ( 1 1 ) t
X =
β 1 ( 1 1 ) β 1 ( 1 1 ) y 1 ( k ) 1 β 1 ( 1 1 ) u j ( k n i + 1 ) 1 β 1 ( r 1 r m ) β 1 ( r 1 r m ) u j ( k n i + 1 ) 1 β s ( 1 1 ) β s ( 1 1 ) y 1 ( k ) s β s ( 1 1 ) u j ( k n i + 1 ) s β s ( r 1 r m ) β s ( r 1 r m ) u j ( k n i + 1 ) s
and
p 0 = P 0 P 0 P 0 t r 1 · r 2 r m
It can be observed that Y corresponds to the output data, P to the parameters of the fuzzy model, and X to the fuzzy input/output data. In this case, the factor γ represents the degree of confidence in the initially estimated parameters. By applying the method presented in [9,36], the matrix X a is ensured to be full rank, even if the membership functions of the fuzzy rules are defined as triangular and pairwise overlapping. If the matrix is full rank, then P can be calculated as follows:
J = Y a X a P 2 = ( Y a X a P ) t ( Y a X a P ) J = 2 ( Y a X a P ) t X a = 0 X a t ( Y a X a P ) = X a t Y a X a t X a P = 0 P = ( X a t X a ) 1 X a t Y a

5. Optimal Controller

Any method based on state feedback can be employed to compute the control coefficients. Nevertheless, such methods may lead to systems where the control action exceeds the allowable limits (saturation). Therefore, the optimal selection is the one that achieves a balance between dynamic response speed and control effort. The LQR fulfills these criteria. Its application to linear systems is demonstrated in [37,38,39]. To extend its use to nonlinear systems, a cost function must be minimized within each fuzzy subsystem. The use of the discrete LQR [40,41] is proposed, given its simplicity in controller design and its applicability to different state-space models. The objective is to minimize the cost function j. To achieve this, appropriate tuning of the weighting matrices Q and R, as well as knowledge of both the extended state reference and the extended state itself, x a r and x a , is required.
j = k = 0 ( x a ( k ) x a r ) t Q ( x a ( k ) x a r ) + Δ u ( k ) t R Δ u ( k )
where Q ( ( q + n ) × ( q + n ) ) and R ( p × p ) are positive definite symmetric matrices. Thus, if the control objective is to achieve a steady-state output y r , in the incremental model this is equivalent to reaching the extended reference state [16]. In other words,
x a = y r Δ x r = y r 0
It should be noted that the extended reference state naturally arises without the need for further calculation, as steady-state operation corresponds to a null incremental state. The controller is subsequently described as follows:
Δ u ( k ) = K ( x a r x a ( k ) ) = K y K x y r 0 y ( k ) Δ x ( k ) = K y K x y r y ( k ) Δ x ( k )
where K ( p × ( q + n ) ) , K y ( p × q ) y K x ( p × n ) , and the control action is:
u ( k ) = u ( k 1 ) + Δ u ( k )
The Equation (25) is obtained from (8). It should be noted that the control action is calculated incrementally (24), which is equivalent to applying an integral action. Furthermore, if the feedback system is stable and steady-state is achieved, the following condition holds:
lim k Δ u ( k ) = 0 , lim k Δ x ( k ) = 0
and, thus,
lim k Δ K y ( y r y ( k ) ) = 0
Then, if K y is of rank q, it is verified that lim k y ( k ) = y r . Therefore, the controlled system has a steady-state error equal to zero. Since the goal is to apply the LQR to each of the systems defined in the incremental T–S state-space model, the controller would be defined as follows:
S ( i 1 i m ) : If   z 1 ( k )   is   M 1 i 1   and     and   z m ( k )   is   M m i m ,   then Δ u ( k ) = K ( i 1 i m ) ( ( x a r x a ( k ) ) )
whose control action is (25).

6. State Observer

For this case, the incremental state Δ x ( k ) is not accessible. For this reason, a state observer is required. The incremental state can be estimated using the following expression [35]:
Δ x e ( k ) = x e ( k ) x e ( k 1 )
Furthermore, it is possible to use an incremental state observer, which is described below [15]:
Δ x e ( k + 1 ) = A Δ x e ( k ) + B Δ u ( k ) + H y ( k ) y ( k 1 ) C Δ x e ( k )
where H ( n × q ) . The error estimate would be:
ϵ ( k + 1 ) = Δ x ( k + 1 ) Δ x e ( k + 1 ) = A Δ x ( k ) + B Δ u ( k ) ( A Δ x e ( k ) + B Δ u ( k ) + T h i s H y ( k ) y ( k 1 ) C Δ x e ( k ) )
From Equations (5), (6) and (8), we obtain:
y ( k ) y ( k 1 ) = a y + C x ( k ) a y C x ( k 1 ) = C ( x ( k ) x ( k 1 ) ) = C Δ x ( k )
Then, Equation (29) would be:
ϵ ( k + 1 ) = ( A H C ) ϵ ( k )
The method to calculate H has been described in [15] and is obtained as follows:
H = A C t
Finally, the observer of the incremental state extended vector is obtained:
x a e ( k ) = y ( k ) Δ x e ( k )
If we want to apply the T–S incremental state model, we need a fuzzy state observer that is defined as:
S ( i 1 i m ) : If   z 1 ( k )   is   M 1 i 1 and     and   z m ( k ) is   M m i m , then   Δ x e ( k + 1 ) = A ( i 1 i m ) Δ x e ( k ) + B ( i 1 i m ) Δ u ( k ) + H ( i 1 i m ) y ( k ) y ( k 1 ) C Δ x e ( k )
H ( i 1 i m ) is calculated in the same way as Equation (31):
S ( i 1 i m ) : If z 1 ( k )   is   M 1 i 1 and   and   z m ( k ) is   M m i m , then   H ( i 1 i m ) = A ( i 1 i m ) C t

7. Incremental-2 State Model

As seen in Section 2, it is straightforward to obtain the incremental state model using Equation (11). For this reason, the question arises as to what would happen if this equation were applied again to previously calculated incremental state matrices. By doing so, a new state model is obtained, which we will refer to as the incremental-2 state model. This model naturally allows for the introduction of a second integrator into the control algorithm. If we apply the process described by Equation (11) to the previously obtained incremental model, namely, Equation (13), we obtain the following:
y ( k + 1 ) Δ x a ( k + 1 ) = I C a A a 0 A a y ( k ) Δ x a ( k ) + C a B a B a Δ 2 u ( k ) y ( k ) = I 0 y ( k ) Δ x a ( k )
where A a ( ( q + n ) × ( q + n ) ) , B a ( ( q + n ) × p ) y C a ( q × ( q + n ) ) . In matrix form, it would be
x a 2 ( k + 1 ) = A a 2 x a 2 ( k ) + B a 2 Δ 2 u ( k ) y ( k ) = C a 2 x a 2 ( k )
where A a 2 ( ( 2 q + n ) × ( 2 q + n ) ) , B a 2 ( ( 2 q + n ) × p ) and C a 2 ( q × ( 2 q + n ) ) , thus obtaining the new extended vector of incremental-2 state, x a 2 ( k ) ( 2 q + n ) :
x a 2 ( k ) = y ( k ) Δ x a ( k ) = y ( k ) Δ y ( k ) Δ 2 x ( k )
The feedback matrix of the incremental-2 state can be designed using the discrete LQR method, which requires for its calculation the state matrices A a 2 and B a 2 , as well as the matrices Q ( ( 2 q + n ) × ( 2 q + n ) ) y R ( p × p ) . Following the process described in Section 3, and since the objective of the control is to achieve a steady-state output y r , the extended reference state of the incremental-2 model would be defined as
x a 2 r ( k ) = y r Δ y r Δ 2 x r = y r Δ y r 0
and the controller is described as follows:
Δ 2 u ( k ) = K ( x a 2 r x a 2 ( k ) ) = K y K Δ y K x y r Δ y r 0 y ( k ) Δ y ( k ) Δ 2 x ( k ) = K y K Δ y K x y r y ( k ) Δ y r Δ y ( k ) Δ 2 x ( k )
where K ( p × ( 2 q + n ) ) , K y ( p × q ) , K Δ y ( p × q ) and K x ( p × n ) , and the control action is
Δ u ( k ) = Δ u ( k 1 ) + Δ 2 u ( k ) u ( k ) = u ( k 1 ) + Δ u ( k )
If the feedback system is stable and steady state is approached, the following is true:
lim k Δ 2 u ( k ) = 0 , lim k Δ 2 x ( k ) = 0
and, thus,
lim k K y ( y r y ( k ) ) = 0 , lim k K Δ y ( Δ y r Δ y ( k ) ) = 0
So, if K y and K Δ y are of rank q, it is verified that
lim k y ( k ) = y r , lim k Δ y ( k ) = Δ y r
Therefore, the controlled system has a steady-state error equal to zero in response to step-type inputs and disturbances, and even to ramp-type inputs. It is important to highlight that the control action (40) has been calculated in an incremental-2 form, which is equivalent to applying a double integral control action. Similarly to the incremental model, for the incremental-2 model, it is necessary to use a state observer, since Δ 2 x ( k ) is not accessible. Based on Equation (27), the incremental-2 state can be estimated as follows:
Δ 2 x e ( k ) Δ x e ( k ) Δ x e ( k 1 )
With Equations (41) and (28), the observer can be described as
Δ 2 x e ( k + 1 ) = A Δ 2 x e ( k ) + B Δ 2 u ( k ) + H Δ y ( k ) Δ y ( k 1 ) C Δ 2 x e ( k )
where H ( n × q ) is calculated in the same way as in Equation (31).Thus, the observer of the extended vector of the incremental-2 state would be
x a 2 e ( k ) = y ( k ) Δ x a e ( k ) = y ( k ) Δ y ( k ) Δ 2 x e ( k )

8. Fuzzy Incremental-N State Model

An iterative algorithm has been proposed to obtain an incremental-N state model that introduces N integrators and can achieve zero steady-state error in response to polynomial-type inputs and disturbances of order N-1. To do this, the extended state matrices are initialized by assigning them to the traditional discrete-state matrices:
A a N = A B a N = B C a N = C
Using a loop, the extended state matrices are recalculated N times:
f o r s i = 1 : N A a N = I C a N A a N 0 A a N B a N = C a N B a N B a N C a N = I 0 e n d
In this way, the incremental-N state model would be defined:
y ( k + 1 ) Δ x a N 1 ( k + 1 ) = I C a N 1 A a N 1 0 A a N 1 y ( k ) Δ x a N 1 ( k ) + C a N 1 B a N 1 B a N 1 Δ N u ( k ) y ( k ) = I 0 y ( k ) Δ x a N 1 ( k )
In matrix form,
x a N ( k + 1 ) = A a N x a N ( k ) + B a N Δ N u ( k ) y ( k ) = C a N x a N ( k )
where A a N ( ( N q + n ) × ( N q + n ) ) , B a N ( ( N q + n ) × p ) , and C a N ( q × ( N q + n ) ) , thus obtaining the new extended vector of incremental-N state, x a N ( k ) ( N q + n ) . This would be
x a N ( k ) = y ( k ) Δ y ( k ) Δ 2 y ( k ) Δ ( N 1 ) y ( k ) Δ N x ( k )
and the reference state is
x a N r = y r Δ y r Δ 2 y r Δ ( N 1 ) y r 0
The controller and control action for the incremental-N would be defined:
Δ N u ( k ) = K ( x a N r x a N ( k ) ) Δ ( N 1 ) u ( k ) = Δ ( N 1 ) u ( k 1 ) + Δ N u ( k ) Δ ( N 2 ) u ( k ) = Δ ( N 2 ) u ( k 1 ) + Δ ( N 1 ) u ( k ) t x t Δ u ( k ) = Δ u ( k 1 ) + Δ 2 u ( k ) u ( k ) = u ( k 1 ) + Δ u ( k )
where the incremental-N state feedback matrix K can be obtained, for example, using the discrete LQR method, whose calculation will use the state matrices A a N and B a N obtained through the recursive algorithm of Equation (45), along with the matrices Q ( ( N q + n ) × ( N q + n ) ) and R ( p × p ) . For the incremental-N model, as with the previous incremental models, a state observer is required since Δ N x ( k ) is not accessible. Following the approach of Equations (27) and (41), we can estimate the incremental-N state as follows:
Δ N x e ( k ) = Δ ( N 1 ) x e ( k ) Δ ( N 1 ) x e ( k 1 )
Following the approach of the Equations (42) and (51), the observer can be described as
Δ N x e ( k + 1 ) = A Δ N x e ( k ) + B Δ N u ( k ) +   H Δ ( N 1 ) y ( k ) Δ ( N 1 ) y ( k 1 ) C Δ N x e ( k )
where H ( n × q ) is calculated in the same way as in the Equation (31). Thus, the observer of the extended incremental-N state vector is defined:
x a N e ( k ) = y ( k ) Δ y ( k ) Δ 2 y ( k ) Δ ( N 1 ) y ( k ) Δ N x e ( k )
Since the goal is to achieve fuzzy control using the incremental-N state model, the method to be used is explained below. First, after completing the linear identification and T–S identification, the nonlinear system is modeled using the incremental-N T–S state model. Starting from Equation (46), we obtain
S ( i 1 i m ) : If   z 1 ( k ) is   M 1 i 1 and     and   z m ( k ) is   M m i m , then   y ( k + 1 ) Δ x a N 1 ( k + 1 ) = I C a N 1 A a N 1 ( i 1 i m ) 0 A a N 1 ( i 1 i m ) y ( k ) Δ x a N 1 ( k ) + C a N 1 B a N 1 ( i 1 i m ) B a N 1 ( i 1 i m ) Δ N u ( k ) y ( k ) = I 0 y ( k ) Δ x a N 1 ( k )
From this, we can express its matrix form using the T–S fuzzy model, taking Equation (47) as a reference:
S ( i 1 i m ) : If   z 1 ( k ) is   M 1 i 1 and   and   z m ( k ) is   M m i m ,   then x a N ( k + 1 ) = A a N ( i 1 i m ) x a N ( k ) + B a N ( i 1 i m ) Δ N u ( k ) y ( k ) = C a N x a N ( k )
where A a N ( i 1 i m ) ( ( N q + n ) × ( N q + n ) ) , B a N ( i 1 i m ) ( ( N q + n ) × p ) and C a N ( q × ( N q + n ) ) , and they are calculated using the iterative method presented in Equations (44) and (45). Then, a discrete LQR controller is used, the calculation of which will use the state matrices A a N and B a N , as well as the matrices Q ( ( N q + n ) × ( N q + n ) ) and R ( p × p ) . For this reason, to obtain the controller and the control action, we start from Equation (50), to which the T–S fuzzy model is applied. In this way, the following is obtained:
S ( i 1 i m ) : If   z 1 ( k )   is   M 1 i 1   and and   z m ( k ) is   M m i m ,   then T e x t w i l l b e i n v i b l e i n v Δ N u ( k ) = K ( i 1 i m ) ( x a N r x a N ( k ) ) Δ ( N 1 ) u ( k ) = Δ ( N 1 ) u ( k 1 ) + Δ N u ( k ) Δ ( N 2 ) u ( k ) = Δ ( N 2 ) u ( k 1 ) + Δ ( N 1 ) u ( k ) t x t Δ u ( k ) = Δ u ( k 1 ) + Δ 2 u ( k ) u ( k ) = u ( k 1 ) + Δ u ( k )
Finally, a fuzzy state observer is used because the state Δ N x ( k ) is not accessible. This observer is obtained by applying the T–S fuzzy model to Equation (52):
S ( i 1 i m ) : If   z 1 ( k )   is   M 1 i 1   and   and   z m ( k ) is   M m i m ,   then Δ N x e ( k + 1 ) = A ( i 1 i m ) Δ N x e ( k ) + B ( i 1 i m ) Δ N u ( k ) +   H ( i 1 i m ) Δ ( N 1 ) y ( k ) Δ ( N 1 ) y ( k 1 ) C Δ N x e ( k )
where H ( i 1 i m ) is calculated using the Equation (34).

9. Extremum Seeking Control

Extremum Seeking Control (ESC) is utilized for the design of certain controllers, offering the significant advantage of enabling optimization based on a cost function without requiring explicit knowledge of the system model. In this approach, the system is treated as a black box, and its performance is optimized solely through evaluations of the cost function. This methodology is particularly advantageous for systems characterized by complex or poorly understood dynamics. In the present work, ESC is employed to optimize the weighting matrices Q and R of a discrete Linear Quadratic Regulator (LQR), with the aim of minimizing a specified cost function to enhance both the transient and steady-state performance of the controlled system.
J ( θ ) = 1 T 0 T e 2 ( t , θ ) d t
where θ = θ 1 θ 2 θ N q + n + p = R 1 R p Q 1 Q 2 Q N q + n , e = y r y ( k ) , and T is the simulation time. Remember that Q ( ( N q + n ) × ( N q + n ) ) and R ( p × p ) are diagonal matrices:
Q = Q 1 0 0 0 Q 2 0 0 0 Q N q + n y R = R 1 0 0 0 R 2 0 0 0 R p
Furthermore, as explained in [31], it is necessary to know the values of h, ω , α , and γ :
ω = ω 1 ω 2 ω N q + n + p α = α 1 α 2 α N q + n + p γ = γ 1 γ 2 γ N q + n + p
where 0 < h < 1 , ω i = a i π and 0 < a < 1 . The values for α i and γ i are appropriately selected, as they, together with the cost function, influence the stability and convergence of the method. These values are used in the equations presented in [32]:
ζ ( k ) = h ζ ( k 1 ) + J ( θ ( k 1 ) ) θ i ^ ( k + 1 ) = θ i ^ ( k ) γ i α i c o s ( ω i ( k ) ) [ J ( θ ( k ) ) ( 1 + h ) ζ ( k ) ] θ i ( k + 1 ) = θ i ^ ( k + 1 ) + α i c o s ( ω i ( k + 1 ) )
The steps to implement Extremum Seeking Control are as follows:
  • Define a cost function J ( θ ) .
  • Specify the initial parameters θ .
  • Select the optimizer parameters h, ω , α and γ .
  • Solve the optimizer equations.
  • Obtain the state feedback matrix K using the Q and R matrices provided by the optimizer.
  • Return to step 4 until the optimal values Q and R are found.
  • Verify whether the obtained result corresponds to a global minimum; if not, return to step 3.
It is worth noting that another advantage of this method is that it eliminates the need for manual tuning of the Q and R matrices, ensuring that they are appropriately selected by optimizing the cost function.

10. Thermal Mixing Tank System

In this section, the application of fuzzy control based on the incremental-N state model is illustrated through the thermal mixing tank case study [15,35,36]. The purpose is to evaluate the system’s performance and verify the achievement of zero steady-state error in response to step, ramp, and subsequent input and disturbance signals. The thermal mixing tank system, depicted in (Figure 1), is a multivariable and nonlinear system comprising a tank, two inlet valves (for hot and cold fluids), and an outlet pipe. The primary control objective is to regulate the outlet flow rate Q s and the outlet temperature T s to their respective setpoints, under the assumption that the outlet temperature is equal to the temperature within the tank.
The system inputs are two valves: One transports a hot fluid at a constant temperature T 1 with a variable flow rate Q 1 , and the other transports a cold fluid at a constant temperature T 2 with a variable flow rate Q 2 . Both flow rates serve as the manipulated variables of the system, controlled through their respective motorized valves, whose dynamic model is given by
Q 1 = K 1 1 + τ 1 s U 1 ( s ) Q 2 = K 2 1 + τ 2 s U 2 ( s )
Additionally, it is assumed that there are heat losses proportional to the temperature difference between the interior T s and the exterior T e of the tank, which act as a disturbance to the system. Thus, the dynamic model is given by
Q 1 + Q 2 Q s = A d h d t
T 1 Q 1 + T 2 Q 2 T s Q s + k p ( T s T e ) = A d T s h d t
Q s = α h
Substituting (64) into (62),
Q 1 + Q 2 α h = A d h d t
Rewriting (63),
T 1 Q 1 + T 2 Q 2 T s Q s + k p ( T s T e ) = A d T s h d t = A T s d h d t + A h d T s d t
And substituting (62) into (66),
T 1 Q 1 + T 2 Q 2 T s Q s + k p ( T s T e ) = T s ( Q 1 + Q 2 Q s ) + A h d T s d t Q 1 ( T 1 T s ) + Q 2 ( T 2 T s ) + k p ( T s T e ) = A h d T s d t
The model can also be expressed in function of Q s , starting from (64):
Q s = α h h = 1 α 2 Q s 2 d h d t = 2 α 2 Q s d Q s d t
Thus, the complete model would be
d Q 1 ( t ) d t = K 1 τ 1 u 1 ( t ) 1 τ 1 Q 1 ( t ) d Q 2 ( t ) d t = K 2 τ 2 u 2 ( t ) 1 τ 2 Q 2 ( t ) d h d t = 1 A ( Q 1 + Q 2 α h ) d Q s d t = α 2 2 Q s d h d t d T s d t = 1 A h ( Q 1 ( T 1 T s ) + Q 2 ( T 2 T s ) + k p ( T s T e ) )
where the parameters of the thermal mixing tank system are shown in Table 1. Similarly, Table 2 describes the values of the nominal operating point of the system. In (69), it can be seen that Q s is of order 2 and that T s is of order 3.
The open-loop simulation of the system was carried out using the Simulink tool from Matlab, with a sampling time of 0.5 s and a total simulation time of 50,000 s. The effect of actuator saturation was explicitly addressed in the simulation framework by constraining the control inputs during the design phase. Specifically, the maximum flow rate for each actuator was limited to 4 (m3/s). Once the system data were obtained, a linear identification was performed using the classical least squares method to estimate an initial set of parameters ( P 0 ) for both the outlet flow rate and the outlet temperature. This identification process is as follows:
Q s ( k + 1 ) = 0.00007 + 1.8547 Q s ( k ) 0.8607 Q s ( k 1 ) + 0.0033 U 1 ( k ) + 0.0024 U 1 ( k 1 ) + 0.0038 U 2 ( k ) + 0.0021 U 2 ( k 1 ) T s ( k + 1 ) = 0.1838 + 2.4484 T s ( k ) 1.9892 T s ( k 1 ) + 0.5373 T s ( k 2 ) + 0.1116 U 1 ( k ) + 0.0016 U 1 ( k 1 ) 0.0748 U 1 ( k 2 ) 0.1375 U 2 ( k ) + 0.0018 U 2 ( k 1 ) + 0.0952 U 2 ( k 2 )
The next step is to apply the identification of the T–S fuzzy model. To this end, three fuzzy sets are selected between 1 and 7 (m3/s) for the flow rate, and another three between 20 and 80 (°C) for the temperature. Both membership functions are shown in Figure 2.
In this way, the fuzzy model is constructed using a set of 9 rules:
S ( 1 , 1 ) : If   Q s ( k )   is   M 1 1   and   T s ( k )   is   M 2 1 ,   then Q s ( k + 1 ) = 0.0014 + 1.7893 Q s ( k ) 0.8034 Q s ( k 1 ) + 0.0070 U 1 ( k ) + 0.0055 U 1 ( k 1 ) + 0.0093 U 2 ( k ) + 0.0038 U 2 ( k 1 ) T s ( k + 1 ) = 0.1472 + 2.3728 T s ( k ) 1.9048 T s ( k 1 ) + 0.5288 T s ( k 2 ) + 0.5247 U 1 ( k ) 0.0016 U 1 ( k 1 ) 0.3395 U 1 ( k 2 ) 0.1233 U 2 ( k ) + 0.0015 U 2 ( k 1 ) + 0.0547 U 2 ( k 2 )                                    S ( 3 , 3 ) : If   Q s ( k )   is   M 1 3   and   T s ( k )   is   M 2 3 ,   then Q s ( k + 1 ) = 0.0060 + 1.8593 Q s ( k ) 0.8635 Q s ( k 1 ) + 0.0026 U 1 ( k ) + 0.0011 U 1 ( k 1 ) + 0.0037 U 2 ( k ) + 0.0009 U 2 ( k 1 ) T s ( k + 1 ) = 0.1894 + 2.4450 T s ( k ) 1.9931 T s ( k 1 ) + 0.5449 T s ( k 2 ) + 0.1043 U 1 ( k ) + 0.0009 U 1 ( k 1 ) 0.0584 U 1 ( k 2 ) 0.1893 U 2 ( k ) + 0.0109 U 2 ( k 1 ) + 0.1097 U 2 ( k 2 )
The next step is to model the nonlinear system using the incremental state T–S model. This is achieved by applying Equation (15) presented in Section 3:
                 S ( 1 , 1 ) : If   Q s ( k ) is   M 1 1 and   T s ( k ) is   M 2 1 ,   then y ( k + 1 ) Δ x ( k + 1 ) = I C A ( 1 , 1 ) 0 A ( 1 , 1 ) y ( k ) Δ x ( k ) + C B ( 1 , 1 ) B ( 1 , 1 ) Δ u ( k ) y ( k ) = I 0 + y ( k ) Δ x ( k )                         
                 S ( 3 , 3 ) : If   Q s ( k ) is   M 1 3 and   T s ( k ) is   M 2 3 ,   then y ( k + 1 ) Δ x ( k + 1 ) = I C A ( 3 , 3 ) 0 A ( 3 , 3 ) y ( k ) Δ x ( k ) + C B ( 3 , 3 ) B ( 3 , 3 ) Δ u ( k ) y ( k ) = I 0 + y ( k ) Δ x ( k )
where A ( 1 , 1 ) , B ( 1 , 1 ) , …, A ( 3 , 3 ) , B ( 3 , 3 ) and C are calculated using Equations (2)–(4). So,
A ( 1 , 1 ) = 1.7893 1 0 0 0 0.8034 0 0 0 0 0 0 2.3728 1 0 0 0 1.9048 0 1 0 0 0.5288 0 0 , B ( 1 , 1 ) = 0.0070 0.0093 0.0055 0.0038 0.5247 0.1233 0.0016 0.0015 0.3395 0.0547
T e x t w i l l b e i n
A ( 3 , 3 ) = 1.8593 1 0 0 0 0.8635 0 0 0 0 0 0 2.4450 1 0 0 0 1.9931 0 1 0 0 0.5449 0 0 , B ( 3 , 3 ) = 0.0026 0.0037 0.0011 0.0009 0.1043 0.1893 0.0009 0.0109 0.0584 0.1097
C = 1 0 0 0 0 0 0 1 0 0
In the same way, the matrix notation of the T–S incremental state model is obtained using Equation (16), thus obtaining
S ( 1 , 1 ) : If   Q s ( k )   is   M 1 1   and   T s ( k )   is   M 2 1 ,   then x a ( k + 1 ) = A a ( 1 , 1 ) x a ( k ) + B a ( 1 , 1 ) Δ u ( k ) y ( k ) = C a x a ( k ) T x t S ( 3 , 3 ) : If   Q s ( k )   is   M 1 3   and   T s ( k )   is   M 2 3 ,   then x a ( k + 1 ) = A a ( 3 , 3 ) x a ( k ) + B a ( 3 , 3 ) Δ u ( k ) y ( k ) = C a x a ( k )
where:
A a ( 1 , 1 ) = 1 0 1.7893 1 0 0 0 0 1 0 0 2.3728 1 0 0 0 1.7893 1 0 0 0 0 0 0.8034 0 0 0 0 0 0 0 0 2.3728 1 0 0 0 0 0 1.9048 0 1 0 0 0 0 0.5288 0 0 , B a ( 1 , 1 ) = 0.0070 0.0093 0.5247 0.1233 0.0070 0.0093 0.0055 0.0038 0.5247 0.1233 0.0016 0.0015 0.3395 0.0547
T e x t w i l l b e i n
A a ( 3 , 3 ) = 1 0 1.8593 1 0 0 0 0 1 0 0 2.4450 1 0 0 0 1.8593 1 0 0 0 0 0 0.8635 0 0 0 0 0 0 0 0 2.4450 1 0 0 0 0 0 1.9931 0 1 0 0 0 0 0.5449 0 0 , B a ( 3 , 3 ) = 0.0026 0.0037 0.1043 0.1893 0.0026 0.0037 0.0011 0.0009 0.1043 0.1893 0.0009 0.0109 0.0584 0.1097
C a = 1 0 0 0 0 0 0 0 1 0 0 0 0 0
Once the model is obtained, the feedback matrix K for all the fuzzy rules. To do this, the matrices Q and R are used, which are defined as follows:
Q = 0.001 d i a g ( 0.5 0.2 1 1 1 1 1 ) R = d i a g ( 1 1 )
And so, the controller for each fuzzy rule is defined as
         S ( 1 , 1 ) : If   Q s ( k )   is   M 1 1   and   T s ( k )   is   M 2 1 ,   then         Δ u ( k ) = K ( 1 , 1 ) ( x a r x a ( k ) ) = 0.0064 0.0122 0.3929 0.3932 0.5190 0.0211 0.0037 1.3570 1.3638 0.2250 y r y ( k ) Δ x ( k ) T e x t w i l l b e i n v i s i b l e T e x t w i l l b e i n v i b l e e e e e e e e e e e e e e e e e e e e e e e e
         S ( 3 , 3 ) : If   Q s ( k )   is   M 1 3   and   T s ( k )   is   M 2 3 ,   then         Δ u ( k ) = K ( 3 , 3 ) ( x a r x a ( k ) ) = 0.0185 0.0073 3.4214 3.4035 0.7041 0.0122 0.0110 2.1886 2.1747 0.9201 y r y ( k ) Δ x ( k )
Finally, remembering that the state Δ x ( k ) , we must calculate the matrix H of the state observer for each fuzzy rule using Equation (34) of Section 6:
S ( 1 , 1 ) : If   Q s ( k )   is   M 1 1   and   T s ( k )   is   M 2 1 ,   then T e x t w i l l b e i n v i b l e e e e e e e e H ( 1 , 1 ) = A ( 1 , 1 ) C t = 1.7893 0 0.8034 0 0 2.3728 0 1.9048 0 0.5288 T e x t w i l l b e i n v T e x t w i l l b e i n v i s i b l e T e x t w i l l b e i n v i b l e e e e e e e e e e e e e e e
S ( 3 , 3 ) : If   Q s ( k )   is   M 1 3   and   T s ( k )   is   M 2 3 ,   then T e x t w i l l b e i n v i b l e e e e e e e H ( 1 , 1 ) = A ( 1 , 1 ) C t = 1.8593 0 0.8635 0 0 2.4450 0 1.9931 0 0.5449 T e x t w i l l b e i n v
Based on the results obtained, a fuzzy controller using the incremental state model was successfully implemented for the thermal mixing tank system. To evaluate the performance of the fuzzy controller on the nonlinear system, changes were applied to the reference inputs of Q s and T s , as well as disturbances affecting both variables. Figure 3 show the responses of Q s and T s to step changes: One step input is applied to Q s at 10 s and another to T s at 150 s, along with step-type disturbances. The disturbance affecting Q s occurs at 250 s with an amplitude of 0.5 (m3⁄s), while the disturbance affecting T s occurs at 350 s with an amplitude of 5 (°C). Moreover, in Figure 4, it can be observed that the system can withstand excessive changes in the reference input, which confirms its correct operation even in regions far from its nominal operating point.
It can be observed that a zero steady-state error has been achieved in response to step-type inputs and disturbances for a nonlinear system using a fuzzy control based on the incremental state model. However, the Q and R values are not optimal; in other words, a better response can still be obtained. A clear example would be to make the system faster while ensuring that the overshoot peaks are not excessively high. To obtain these optimal values, the ESC (Extremum Seeking Control) explained in Section 9 is used, which aims to minimize the cost function shown in Equation (58), corresponding to the MSE (Mean Squared Error).
As illustrated in the Figure 5, the ESC algorithm iteratively updates the controller parameters θ ( k ) based on the current value of the cost function J ( θ ( k ) ) . At each iteration, the algorithm evaluates J ( θ ( k ) ) using the updated parameters and subsequently adjusts θ ( k ) to minimize the cost. This procedure is repeated until convergence is achieved, i.e., when J ( θ ( k ) ) reaches a local minimum, thereby yielding an optimal parameter configuration.
This optimization is achieved by periodically perturbing the system, usually using a sinusoidal wave, and then estimating the gradient J ( θ ( k ) ) . The gradient is computed by first filtering the discrete-time signal J ( θ ( k ) ) using a high-pass filter to remove the DC component. Next, the signal is demodulated by multiplying it with a discrete sinusoidal wave of the same frequency as the perturbation signal. Finally, the result is integrated using a step size γ to obtain a new estimate of the parameter θ ^ . It is worth noting that the integrator acts as a low-pass filter.
For the case of the thermal mixing tank system, the following cost function will be used:
J ( θ ) = 1 T 0 T e Q s 2 ( t , θ ) d t + 0.01 0 T e T s 2 ( t , θ ) d t
where θ = R 1 R 2 Q 1 Q 2 Q 3 Q 7 and the scaling factor 0.01 is introduced to ensure that the output flow rate error ( e Q s ) and the output temperature error ( e T s ) contribute comparably to the cost function. In general, the magnitude of the temperature signal is approximately 10 times larger than that of the flow rate. As the cost function involves squared errors, this discrepancy is further amplified—potentially causing the temperature error to contribute up to 100 times more than the flow rate error. To address this imbalance, a weight of 0.01 is applied to the temperature term, effectively normalizing both error contributions to a similar scale. Therefore, the chosen scaling factor is not arbitrary; it ensures that both variables influence the optimization criterion in a balanced manner, despite their differing physical units and dynamic ranges. Once the cost function is defined, the initial values for the Q and R matrices are selected:
Q = 0.001 d i a g ( 0.1 0.1 1 1 1 1 1 ) R = d i a g ( 1 1 )
The value of 0.001 was chosen through iterative testing because if it were larger, it caused failures in the controller; on the other hand, if it was too small, a good response was not obtained. Since R is the weighting matrix for the control action of the system and its variables have the same weight, R 1 will change in the same way as R 2 . Similarly, for the Q matrix, only the values of Q 1 , Q 2 and Q 3 are varied, since multiple simulations have shown that variations in the remaining terms do not significantly affect the performance of the control system. In fact, it has been verified that the values from Q 3 to Q 7 can be set identically without degrading control quality. Thus, the configuration is as follows:
Q i n i t i a l = R 1 Q 1 Q 2 Q 3 = 1 10 4 10 4 10 3
This simplifies the simulation run time and makes it less complicated to select appropriate values for ω , α and γ . It should be noted that α i and γ i influence the stability and convergence of the method, and that ω i = a i π where 0 < a < 1 . The optimizer values are obtained through an iterative search to ensure that the method is stable and able to converge. These values are
h = 0.6 ω = 2.8274 2.5447 2.2902 2.0612 α = 0 2 × 10 4 0.8 × 10 5 10 5 γ = 10 10 10 10
where a value of a = 0.9 was chosen to calculate ω i . It can also be seen that α 1 = 0 , since it is intended to keep R 1 = R 2 = 1 so that their values remain unchanged throughout the entire iteration. This serves as a reference and allows the focus to be placed solely on the Q matrix. It is worth noting that it has been verified that the optimization is not affected if the value of R 1 remains constant.
Since the goal is to obtain the values that optimize the cost function, it is recommended to apply ESC globally. That is, the system should be subjected to large variations in the reference input for both output flow rate and output temperature across its entire operating range. Table 3 shows the selected points, establishing the path from point 1 to point 11 and then returning back to point 1.
Figure 6 shows the convergence of J ( θ ) and the values obtained for the Q matrix. It can be observed that the value of Q 1 continues to increase; however, the value obtained at iteration number 500 is taken, since J ( θ ) no longer decreases. The resulting Q and R values are as follows:
Q = 0.001 d i a g ( 7.5 0.18 0.22 0.22 0.22 0.22 0.22 ) T e x t w i l R = d i a g ( 1 1 )
The feedback matrix K is obtained for each fuzzy rule, which is defined as
S ( 1 , 1 ) : If   Q s ( k )   is   M 1 1   and   T s ( k )   is   M 2 1 ,   then T e x t w i l l b e i n v i b l e e e e e e e K ( 1 , 1 ) = 0.0307 0.0113 1.4218 0.4782 0.0778 0.0046 4.1532 0.2984 T e x t w i l l b e i n v i s i b l e T e x t w i l l b e i n v i b l e e e e e e e e e e e e e e e e e e e e e e e e S ( 3 , 3 ) : If   Q s ( k )   is   M 1 3   and   T s ( k )   is   M 2 3 ,   then T e x t w i l l b e i n v i b l e e e e e e e K ( 3 , 3 ) = 0.0674 0.0076 9.0385 0.7719 0.0504 0.0100 6.2131 0.8202
Figure 7 and Figure 8 show the responses of flow rate and output temperature to excessive step-type input throughout the operating range of the nonlinear system, comparing the system when ESC is not used with the values obtained for the matrices Q and R using Global ESC.
As shown in Figure 7, by using Global ESC, a better response is obtained in the output flow rate. It is faster and exhibits a smaller amplitude in the peaks that occur when there is an abrupt temperature change and the flow rate remains constant. On the other hand, in Figure 8, it can be seen that using ESC slightly increases the peaks in the temperature response when it remains constant and the system is subjected to an abrupt change in the flow rate. However, a faster response is achieved. This can be better understood by looking at Table 4, which shows the cost function J ( θ ) and the RMSE (Root Mean Square Error) value for Q s and T s , comparing the method used to obtain the matrices Q and R.
This confirms that the application of ESC leads to an improved and faster response under excessive step inputs. Moreover, this method simplifies the determination of the optimal values for the matrices Q and R.

11. Responses for the Incremental-N

In a similar manner, this procedure can be applied to the incremental-N approach in order to analyze the system’s behavior at each incremental stage under reference changes and output disturbances, as well as input disturbances and measurement noise.

11.1. Step-Type Reference and Output Disturbance

The results are presented for the system subjected to step-type reference and disturbance inputs. A simulation time of 3500 s was used for all cases. The step input for the output flow rate ( Q s ) occurs at 710 s, and for the output temperature ( T s ), it occurs at 1200 s. The disturbance for Q s has an amplitude of 0.5 (m3⁄s) and occurs at 1800 s. For T s , the disturbance has an amplitude of 5 (°C) and occurs at 2800 s.
Figure 9 presents the output flow rate and temperature responses using the traditional discrete-state model (incremental-0). In both cases, it can be seen that the system fails to achieve zero steady-state error. From Figure 10, Figure 11, Figure 12, Figure 13 and Figure 14, the responses obtained using incremental-1 through incremental-5 are shown. It is demonstrated that all of them achieve zero steady-state error in response to step-type references and disturbances (at the output). The difference among the incrementals lies in the response speed: As the incremental number increases, the response becomes slower. To better understand this behavior, Table 5 presents the IAE and ISE values for the output flow rate and temperature for all incrementals.

11.2. Ramp-Type Reference and Output Disturbance

Ramp-type references and disturbances are also commonly used in the field of control, whether to smoothly start a motor or to reach a certain value in a less abrupt manner. Below are the results obtained when the system is subjected to ramp-type reference signals and output disturbances. A simulation time of 5000 s was used for all cases.
The ramp-type reference for the flow rate begins at 710 s and ends at 1110 s, with a slope of 0.005 (m3/s2). For temperature, the ramp starts at 1410 s and ends at 1810 s, with a slope of 0.025 (°C/s). In both cases, the final value reached is maintained until the end of the simulation.
The ramp-type disturbance for the flow rate starts at 2300 s and ends at 2900 s, with a slope of 0.000833 (m3/s2). For temperature, the ramp begins at 3500 s and ends at 4300 s, with a slope of 0.00625 (°C/s). In both cases, the final value reached is maintained until the end of the simulation.
Figure 15 presents the results using incremental-1. This incremental does not achieve zero steady-state error in response to ramp-type references and output disturbances. It can be observed that the response attempts to follow the ramp but consistently exhibits an error. In contrast, when using incremental-2, zero steady-state error is achieved in response to ramp-type references and output disturbances (see Figure 16). The same behavior is observed with incremental-3 (see Figure 17) and beyond.

11.3. Second-Order Type Reference and Output Disturbance

In order to verify the performance of incremental-3, the system is subjected to second-order output references and disturbances. The results are presented for a simulation that spans 5000 s.
The second-order reference for the flow rate starts at 710 s and ends at 885 s, ranging from 4 (m3⁄s) to 6 (m3 ⁄s). For temperature, it ranges from 50 (°C) to 60 (°C), starting at 1410 s and ending at 1585 s. In both cases, the final value is maintained until the end of the simulation.
The second-order output disturbances for the flow rate begin at 2400 s and end at 3000 s, ranging from 0 (m3⁄s) to 0.5 (m3⁄s). For temperature, the disturbance ranges from 0 (°C) to 5 (°C), starting at 3400 s and ending at 4200 s. In both cases, the final value is maintained until the end of the simulation.
Figure 18 presents the results obtained using incremental-2. This incremental does not achieve zero steady-state error in response to second-order output references and disturbances. The response attempts to follow the parabolic input but consistently exhibits an error.
In contrast, when using incremental-3, zero steady-state error is achieved for second-order output references and disturbances (see Figure 19). It can be observed that the response successfully follows the parabolic trajectory in both the flow rate and the output temperature.

11.4. Third-Order Type Reference and Output Disturbance

Similarly, the performance of the incremental-4 will be evaluated by subjecting the system to third-order reference inputs and output disturbances. The results are presented for a simulation time of 5000 s.
The third-order input for the flow rate starts at 710 s and ends at 885 s, increasing from 4 (m3⁄s) to 6 (m3⁄s). In the case of temperature, it rises from 50 (°C) to 60 (°C), starting at 1410 s and ending at 1585 s. In both cases, the final value reached is maintained until the end of the simulation.
The third-order output disturbances for the flow rate begin at 2400 s and end at 3000 s, ranging from 0 (m3⁄s) to 0.5 (m3⁄s). For temperature, the disturbance goes from 0 (°C) to 5 (°C), starting at 3400 s and ending at 4200 s. In both cases, the final value is held constant until the simulation ends.
Figure 20 presents the results obtained using the incremental-4 approach. This incremental achieves zero steady-state error in response to third-order references and output disturbances. The system output successfully follows the reference in both flow rate and temperature.

11.5. Fourth-Order Type Reference and Output Disturbance

Finally, the performance of incremental-5 is evaluated by subjecting the system to fourth-order reference inputs and output disturbances. The simulation spans a duration of 6000 s.
The fourth-order input for the flow rate starts at 710 s and ends at 985 s, increasing from 4 (m3⁄s) to 6 (m3⁄s). In the case of temperature, it rises from 50 (°C) to 60 (°C), starting at 1610 s and ending at 1810 s. In both cases, the final value reached is maintained until the end of the simulation.
The fourth-order output disturbances for flow begin at 3000 s and end at 3600 s, ranging from 0 (m3⁄s) to 0.5 (m3⁄s). For temperature, the disturbance ranges from 0 (°C) to 5 (°C), starting at 4000 s and ending at 4800 s. In both cases, the final value reached is maintained until the end of the simulation. Figure 21 presents the results obtained using incremental-5. This incremental achieves zero steady-state error in response to fourth-order output references and disturbances. The system’s response accurately follows the reference in both output flow and temperature.

11.6. Input Disturbances

Disturbances can occur not only at the output of the system but also at the input. Therefore, it is important to analyze all possible disturbances that the system may experience.
The system will be analyzed starting from the point where it reaches the state [ Q s = 6 (m3⁄s), T s = 60 (°C)]. Once this state is reached, disturbances will begin to be applied to the motorized valve signals U 1 and U 2 . The step-type input disturbances for U 1 and U 2 occur at 1800 and 2800 s, respectively, each with an amplitude of 0.1 . For the remaining disturbances (ramp, second-order, third-order, and fourth-order), the U 1 signal starts at 1800 s and ends at 2200 s, while U 2 starts at 2800 s and ends at 3200 s. All disturbances have an amplitude of 0.1 . The simulation time for incrementals-1, 2, and 3 is 3600 s.
Figure 22 shows the responses of Q s and T s . It can be observed that under a step-type input disturbance, the system exhibits zero steady-state error. However, as the order of the disturbance increases, the error also increases. Similarly, Figure 23 shows the responses of incremental-2, which exhibit zero steady-state error under a ramp-type disturbance. Conversely, as with incremental-1, the error increases as the order of the disturbance increases. Figure 24 displays the system’s response using incremental-3. In this way, zero steady-state error is achieved for disturbances of order N-1 when using incremental-N.

11.7. Load Disturbances

Load disturbances occur when changes affect the system’s behavior by modifying one of its parameters, such as the discharge coefficient of the outlet flow rate Q s ( α ) , or the temperature of one of the inlet flow rates ( T 1 or T 2 ). The following section details these possible load disturbances and shows how the system responds to them:
  • Variation in the parameter ( α )
In this study, a value of ( α ) equal to 1 was used. In this scenario, this parameter will be disturbed such that at second 200 it decreases to a value of 0.1 . This simulates a step-type disturbance, which, in real terms, would represent an object obstructing the outlet duct. For this case, the incremental-1 state model will be used, and the system will start from the point [ Q s = 6 (m3⁄s), T s = 60 (°C)].
Figure 25 shows how the outlet flow rate decreases due to the obstruction, causing the system to fully open both inlet flow rates and the temperature to approach 50 (°C). As time progresses, the flow rate increases, and the temperature also rises until reaching the desired value with zero steady-state error.
  • Variation in the inlet flow temperatures ( T 1 and T 2 )
Another type of load disturbance that may occur is a variation in the temperature of one of the inlet flows. For example, a malfunction in the boiler that heats the flow Q 1 could cause its temperature to change from 90 (°C) to 60 (°C). This disturbance begins at 600 s and ends at 1200 s. It simulates a ramp-type disturbance, which, in practice, represents a gradual temperature decrease due to the failure. For this case, the incremental-2 state model will be used, starting from the point where the system reaches [ Q s = 2 (m3⁄s), T s = 40 (°C)] (See Figure 26).

11.8. Noise

In this section, the system will be subjected to noise in both Q s and T s in order to analyze its behavior.
Figure 27 shows the responses of incremental-0 to step-type references for Q s and T s , along with output noise of N ( 0 , 10 3 ) and N ( 0 , 10 2 ), respectively, where the first term is the mean of the distribution and the second is the variance. Also, Figure 27 illustrates the system’s behavior for incremental-1 under the same inputs and noise.
It is clearly observed that Incremental-1 fails under the same noise conditions. This is because, as more incrementals are added, the noise is amplified due to the difference between the current and previous samples, which accumulates and becomes larger for the next incremental. On the other hand, if the output noise is N ( 0 , 10 4 ) for Q s and N ( 0 , 10 3 ) for T s (10 times lower than in the previous case), a better response is obtained (see Figure 28).
Figure 29 shows the response of incremental-2 to ramp-type references for Q s and T s , as well as output noise of N ( 0 , 10 5 ) and N ( 0 , 10 4 ), respectively. Also, Figure 29 shows the response of incremental-3 to second-order references for Q s and T s , along with output noise of N ( 0 , 2 × 10 7 ) and N ( 0 , 2 × 10 6 ), respectively.
Meanwhile, Figure 30 shows the response of incremental-4 to successive third-order references for Q s and T s , along with output noise of N ( 0 , 9 × 10 10 ) and N ( 0 , 9 × 10 9 ), respectively. Also, Figure 30 presents the response of incremental-5 to successive fourth-order inputs for Q s and T s , along with output noise of N ( 0 , 3 × 10 12 ) and N ( 0 , 3 × 10 11 ), respectively.
It can be observed that as the number of incrementals increases, the noise variance must be reduced to prevent the system from failing drastically. Additionally, the noise has a greater effect on the output temperature.

11.9. ESC Affected by Noise

As previously shown, when noise is applied to the incremental state model, the system remains stable, although it becomes more sensitive as the number of incrementals increases. To test the ESC under more realistic conditions, it is proposed to use the ESC method with the added challenge of output noise. For the simulation, the same parameters from the ESC described in Section 10 were used, with a simulation time of 2200 s and excessive step-type inputs. In other words, a Global ESC will be calculated while the system is affected by output noise, which follows a distribution of N ( 0 , 10 4 ) for Q s and N ( 0 , 10 3 ) for T s .
Figure 31 and Figure 32 show good system performance under noise, even when subjected to excessive step-type inputs, demonstrating a certain degree of robustness of the fuzzy LQR controller when using the incremental-1 state model. Table 6 shows that the values of J ( θ ) and the RMSE of Q s and T s are similar in both cases. Additionally, the values of the Q matrix parameters are quite similar (see Table 7).

11.10. Computational Burden and Real-Time Feasibility

The proposed control architecture achieves an effective compromise between control performance, adaptability, and computational feasibility by integrating incremental-N modeling, Takagi–Sugeno fuzzy systems, discrete LQR design, and Extremum Seeking Control (ESC). While PID controllers are widely adopted due to their simplicity and low computational demand, they exhibit significant limitations when applied to multivariable, nonlinear, or strongly coupled systems, such as the thermal mixing tank addressed in this study. Additionally, the tuning process for PID gains in such contexts is often heuristic and lacks robustness.
Model Predictive Control (MPC) offers a more sophisticated alternative by explicitly handling system constraints and nonlinearities through online optimization. However, this advantage comes at the cost of high computational complexity, as MPC requires solving an optimization problem at every sampling instant. Consequently, its real-time implementation becomes impractical for fast dynamic systems or platforms with limited processing capabilities.
In contrast, the methodology proposed in this work exploits the structure of the incremental-N model to manage high-order reference signals and disturbances with improved steady-state accuracy. The fuzzy state-space framework allows for an efficient representation of the system’s nonlinear dynamics, while the LQR formulation ensures stable and optimal multivariable control. Furthermore, ESC is employed exclusively as an offline optimization tool to tune the LQR weighting matrices, thereby avoiding any real-time computational overhead. Thus, the proposed approach combines the simplicity and efficiency of LQR with the adaptive tuning capabilities of ESC and the modeling flexibility of fuzzy systems, resulting in a control scheme that is both computationally efficient and well-suited for real-time applications. It offers a viable alternative to PID and MPC, particularly in scenarios where nonlinearities, multivariable interactions, and high-order dynamics must be addressed without incurring excessive computational cost.

12. Conclusions

This paper proposes the incremental-N state model for the modeling and control of nonlinear multivariable systems using Takagi–Sugeno (T–S) fuzzy models. The proposed approach ensures zero steady-state error in response to input and disturbance signals of order N-1.Furthermore, the use of the incremental-N model eliminates affine terms and addresses the challenge of computing the target state, a difficulty commonly encountered with traditional discrete-time state-space models. Moreover, the proposed approach has shown strong resilience to various adverse conditions, including disturbances at the input and load levels, as well as measurement noise. Importantly, the ESC algorithm preserves its tuning effectiveness even under noisy output conditions, highlighting the robustness and practical applicability of the overall control scheme.
A discrete Linear Quadratic Regulator (LQR) controller was designed based on the fuzzy model, requiring real-time information of the state of the system. As a result, the role of state observers is critical, since any estimation error directly impacts control performance. An optimal observer was developed to estimate the incremental-N state, given that not all states of the system are directly measurable.
The proposed control strategy was evaluated using a thermal mixing tank system as a benchmark. The simulation results confirm the achievement of zero steady-state error under reference and disturbance signals of order N-1 for incremental orders ranging from 1 to 5, while also demonstrating robust performance. However, increasing the incremental order results in slower and more oscillatory system responses, attributed to the additional integrators, which, in discrete time, correspond to poles located at 1 + 0 i in the Z-plane.
Extremum Seeking Control (ESC) was employed to optimize the Q and R weighting matrices of the discrete LQR controller. This approach significantly streamlines the tuning process, substantially reduces the design effort and computation time, and enables the identification of optimal controller parameters.

Author Contributions

Conceptualization, B.M.A.-H.; Methodology, B.M.A.-H. and G.A.L.A.; Software, G.A.L.A.; Validation, B.M.A.-H. and G.A.L.A.; Formal analysis, B.M.A.-H. and G.A.L.A.; Investigation, B.M.A.-H. and G.A.L.A.; Writing—original draft, B.M.A.-H. and G.A.L.A.; Supervision, B.M.A.-H.; Project administration, B.M.A.-H. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Zadeh, L.A. Fuzzy sets. Inf. Control 1965, 8, 338–353. [Google Scholar] [CrossRef]
  2. Zadeh, L.A. Outline of a New Approach to the Analysis of Complex Systems and Decision Processes. IEEE Trans. Syst. Man Cybern. 1973, SMC-3, 28–44. [Google Scholar] [CrossRef]
  3. Mamdani, E.; Assilian, S. An experiment in linguistic synthesis with a fuzzy logic controller. Int. J. Man-Mach. Stud. 1975, 7, 1–13. [Google Scholar] [CrossRef]
  4. Sala, A.; Ariño, C. Reduciendo distancias entre el control borroso y el control no lineal: Luces y sombras. Rev. Iberoam. Autom. Inform Ind. RIAI 2009, 6, 26–35. [Google Scholar] [CrossRef]
  5. Piña, A.J.B. Síntesis de Sistemas de Control Borroso Estables por Diseño; Universidad de Huelva: Huelva, Spain, 2009. [Google Scholar]
  6. Ollervides, J.; Santibáñez, V.; Llama, M.; Dzul, A. Aplicación de Control Borroso a un Sistema de Suspensión Magnética: Comparación Experimental. Rev. Iberoam. Autom. Inform Ind. RIAI 2010, 7, 63–71. [Google Scholar] [CrossRef]
  7. Takagi, T.; Sugeno, M. Fuzzy identification of systems and its applications to modeling and control. IEEE Trans. Syst. Man Cybern. 1985, 15, 116–132. [Google Scholar] [CrossRef]
  8. Jimenez, A.; Al-Hadithi, B.; Matia, F. An Optimal T-S Model for the Estimation and Identification of Nonlinear Functions. WSEAS Trans. Syst. Control 2008, 3, 897–906. [Google Scholar]
  9. Al-Hadithi, B.M.; Jiménez, A.; Matía, F. A new approach to fuzzy estimation of Takagi–Sugeno model and its applications to optimal control for nonlinear systems. Appl. Soft Comput. 2012, 12, 280–290. [Google Scholar] [CrossRef]
  10. Peng, X.; van Paassen, A. A state space model for predicting and controlling the temperature responses of indoor air zones. Energy Build. 1998, 28, 197–203. [Google Scholar] [CrossRef]
  11. Yue, C.; Zhao, Y. An improved aeroservoelastic modeling approach for state-space gust analysis. J. Fluids Struct. 2020, 99, 103148. [Google Scholar] [CrossRef]
  12. Di Ruscio, D.; Foss, B. On State Space Model Based Predictive Control. IFAC Proc. Vol. 1998, 31, 301–306. [Google Scholar] [CrossRef]
  13. Gatzke, E.P.; Meadows, E.S.; Wang, C.; Doyle, F.J. Model based control of a four-tank system. Comput. Chem. Eng. 2000, 24, 1503–1509. [Google Scholar] [CrossRef]
  14. Yu, C.; Chen, J.; Li, S.; Verhaegen, M. Identification of affinely parameterized state–space models with unknown inputs. Automatica 2020, 122, 109271. [Google Scholar] [CrossRef]
  15. Al-Hadithi, B.M.; Jiménez, A.; Perez-Oria, J. New incremental Takagi–Sugeno state model for optimal control of multivariable nonlinear time delay systems. Eng. Appl. Artif. Intell. 2015, 45, 259–268. [Google Scholar] [CrossRef]
  16. Adánez, J.M.; Al-Hadithi, B.M.; Jiménez, A. Wind Turbine Multivariable Optimal Control Based on Incremental State Model. Asian J. Control 2018, 20, 2075–2087. [Google Scholar] [CrossRef]
  17. Sun, B.; van Kampen, E.J. Incremental Model-Based Global Dual Heuristic Programming for Flight Control. IFAC-PapersOnLine 2019, 52, 7–12. [Google Scholar] [CrossRef]
  18. Zhou, Y.; van Kampen, E.J.; Chu, Q. Incremental model based online heuristic dynamic programming for nonlinear adaptive tracking control with partial observability. Aerosp. Sci. Technol. 2020, 105, 106013. [Google Scholar] [CrossRef]
  19. Luenberger, D.G. Observing the State of a Linear System. IEEE Trans. Mil. Electron. 1964, 8, 74–80. [Google Scholar] [CrossRef]
  20. Okongwu, E.H.; Wilson, W.J.; Anderson, J.H. Optimal State Feedback Control of a Microalternator Using an Observer. IEEE Trans. Power Appar. Syst. 1978, PAS-97, 594–602. [Google Scholar] [CrossRef]
  21. Jones, L.; Lang, J. A state observer for the permanent-magnet synchronous motor. IEEE Trans. Ind. Electron. 1989, 36, 374–382. [Google Scholar] [CrossRef]
  22. Wang, W.; Gao, Z. A comparison study of advanced state observer design techniques. In Proceedings of the 2003 American Control Conference, Denver, CO, USA, 4–6 June 2003; Volume 6, pp. 4754–4759. [Google Scholar]
  23. Florián, A. Comparación de desempeño de observadores de estado en sistemas lineales con aplicación a un motor de corriente continua. Rev. Cintex 2018, 23, 51–59. [Google Scholar] [CrossRef]
  24. Wong, P.K.; Stein, G.; Athans, M. Structural Reliability and Robustness Properties of Optimal Linear-Quadratic Multivariable Regulators. IFAC Proc. Vol. 1978, 11, 1797–1805. [Google Scholar] [CrossRef]
  25. Palm, R.; Rehfuess, U. Fuzzy controllers as gain scheduling approximators. Fuzzy Sets Syst. 1997, 85, 233–246. [Google Scholar] [CrossRef]
  26. Amirah, I.N.; Zainah, M.Z.; Pebrianti, D.; Bayuaji, L. Attitude Control of Quadrotor. ARPN J. Eng. Appl. Sci. 2015, 10, 1726–1731. [Google Scholar]
  27. Everett, M. LQR with Integral Feedback on a Parrot Minidrone; MIT: Cambridge, MA, USA, 2015. [Google Scholar]
  28. Ahmad, F.; Kumar, P.; Bhandari, A.; Patil, P.P. Simulation of the Quadcopter Dynamics with LQR based Control. Mater. Today Proc. 2020, 24, 326–332. [Google Scholar] [CrossRef]
  29. Omeje, C.O.; Salau, A.O.; Eya, C.U. Dynamics analysis of permanent magnet synchronous motor speed control with enhanced state feedback controller using a linear quadratic regulator. Heliyon 2024, 10, e26018. [Google Scholar] [CrossRef]
  30. Leblanc, M. Sur l’electrification des chemins de fer au moyen de courants alternatifs de frequence elevee. Rev. Gen. l’Electricite 1922, 12, 275–277. [Google Scholar]
  31. Krstić, M.; Wang, H.H. Stability of extremum seeking feedback for general nonlinear dynamic systems. Automatica 2000, 36, 595–601. [Google Scholar] [CrossRef]
  32. Killingsworth, N.; Krstic, M. PID tuning using extremum seeking: Online, model-free performance optimization. IEEE Control Syst. Mag. 2006, 26, 70–79. [Google Scholar]
  33. Guay, M.; Dochain, D. A proportional integral extremum-seeking control approach. IFAC Proc. Vol. 2014, 47, 377–382. [Google Scholar] [CrossRef]
  34. Straus, J.; Krishnamoorthy, D.; Skogestad, S. On combining self-optimizing control and extremum-seeking control—Applied to an ammonia reactor case study. J. Process Control 2019, 78, 78–87. [Google Scholar] [CrossRef]
  35. García-Villaraco, J.M.A. Nuevas Técnicas para Ampliar el Paradigma Metodológico en el Contexto del Control Borroso; UPM: Serdang, Malaysia, 2019. [Google Scholar]
  36. Al-Hadithi, B.M.; Barragán, A.J.; Andújar, J.M.; Jiménez, A. Chattering-free fuzzy variable structure control for multivariable nonlinear systems. Appl. Soft Comput. 2016, 39, 165–187. [Google Scholar] [CrossRef]
  37. Bryson, A.; Ho, Y.C.; Siouris, G. Applied Optimal Control: Optimization, Estimation, and Control. Syst. Man Cybern. IEEE Trans. 1979, 9, 366–367. [Google Scholar] [CrossRef]
  38. Athans, M.; Falb, P.L. Optimal Control: An Introduction to the Theory and Its Applications; Dover Publications: Mineola, NY, USA, 2006. [Google Scholar]
  39. Anderson, B.D.O.; Moore, J.B. Optimal Control: Linear Quadratic Methods; Dover Publications: Mineola, NY, USA, 2007. [Google Scholar]
  40. Lewis, F.L.; Xie, L.; Popa, D. Optimal and Robust Estimation: With an Introduction to Stochastic Control Theory; CRC Press: Bocca Raton, FL, USA, 2007. [Google Scholar]
  41. Åström, K.; Wittenmark, B. Computer Controlled System Theory and Design; Prentice Hall: Upper Saddle River, NJ, USA, 1984; Volume 31. [Google Scholar]
Figure 1. Thermal mixing tank.
Figure 1. Thermal mixing tank.
Applsci 15 07791 g001
Figure 2. Membership functions for Q s and T s .
Figure 2. Membership functions for Q s and T s .
Applsci 15 07791 g002
Figure 3. Response of outlet flow rate Q s and outlet temperature T s to reference signals and disturbances, both of the step type, using an incremental-1 control.
Figure 3. Response of outlet flow rate Q s and outlet temperature T s to reference signals and disturbances, both of the step type, using an incremental-1 control.
Applsci 15 07791 g003
Figure 4. Response of Q s and T s to excessive step changes in reference signal using incremental-1 control.
Figure 4. Response of Q s and T s to excessive step changes in reference signal using incremental-1 control.
Applsci 15 07791 g004
Figure 5. Block diagram of the system.
Figure 5. Block diagram of the system.
Applsci 15 07791 g005
Figure 6. Convergence of the cost function and values for the matrix Q.
Figure 6. Convergence of the cost function and values for the matrix Q.
Applsci 15 07791 g006
Figure 7. Comparison of the response of Q s response to excessive step-type reference signals without Global ESC and with Global ESC using an incremental-1 control.
Figure 7. Comparison of the response of Q s response to excessive step-type reference signals without Global ESC and with Global ESC using an incremental-1 control.
Applsci 15 07791 g007
Figure 8. Comparison of the response of T s response to excessive step-type reference signals without Global ESC and with Global ESC using an incremental-1 control.
Figure 8. Comparison of the response of T s response to excessive step-type reference signals without Global ESC and with Global ESC using an incremental-1 control.
Applsci 15 07791 g008
Figure 9. Response of Q s and T s to step-type references and output disturbances for incremental-0.
Figure 9. Response of Q s and T s to step-type references and output disturbances for incremental-0.
Applsci 15 07791 g009
Figure 10. Response of Q s and T s to step-type references and output disturbances for incremental-1.
Figure 10. Response of Q s and T s to step-type references and output disturbances for incremental-1.
Applsci 15 07791 g010
Figure 11. Response of Q s and T s to step-type references and output disturbances for incremental-2.
Figure 11. Response of Q s and T s to step-type references and output disturbances for incremental-2.
Applsci 15 07791 g011
Figure 12. Response of Q s and T s to step-type references and output disturbances for incremental-3.
Figure 12. Response of Q s and T s to step-type references and output disturbances for incremental-3.
Applsci 15 07791 g012
Figure 13. Response of Q s and T s to step-type references and output disturbances for incremental-4.
Figure 13. Response of Q s and T s to step-type references and output disturbances for incremental-4.
Applsci 15 07791 g013
Figure 14. Response of Q s and T s to step-type references and output disturbances for incremental-5.
Figure 14. Response of Q s and T s to step-type references and output disturbances for incremental-5.
Applsci 15 07791 g014
Figure 15. Response of Q s and T s to ramp-type references and output disturbances for incremental-1: (a) ramp-type reference, (b) output disturbances.
Figure 15. Response of Q s and T s to ramp-type references and output disturbances for incremental-1: (a) ramp-type reference, (b) output disturbances.
Applsci 15 07791 g015
Figure 16. Response of Q s and T s to ramp-type references and output disturbances for incremental-2: (a) ramp-type reference, (b) output disturbances.
Figure 16. Response of Q s and T s to ramp-type references and output disturbances for incremental-2: (a) ramp-type reference, (b) output disturbances.
Applsci 15 07791 g016
Figure 17. Response of Q s and T s to ramp-type references and output disturbances for incremental-3: (a) ramp-type reference, (b) output disturbances.
Figure 17. Response of Q s and T s to ramp-type references and output disturbances for incremental-3: (a) ramp-type reference, (b) output disturbances.
Applsci 15 07791 g017
Figure 18. Response of Q s and T s to second-order type references and output disturbances for incremental-2: (a) second-order type reference, (b) output disturbances.
Figure 18. Response of Q s and T s to second-order type references and output disturbances for incremental-2: (a) second-order type reference, (b) output disturbances.
Applsci 15 07791 g018
Figure 19. Response of Q s and T s to second-order type references and output disturbances for incremental-3: (a) second-order type reference, (b) output disturbances.
Figure 19. Response of Q s and T s to second-order type references and output disturbances for incremental-3: (a) second-order type reference, (b) output disturbances.
Applsci 15 07791 g019
Figure 20. Response of Q s and T s to third-order type references and output disturbances for incremental-4: (a) third-order type reference, (b) output disturbances.
Figure 20. Response of Q s and T s to third-order type references and output disturbances for incremental-4: (a) third-order type reference, (b) output disturbances.
Applsci 15 07791 g020
Figure 21. Response of Q s and T s to fourth-order type references and output disturbances for incremental-5: (a) fourth-order type reference, (b) output disturbances.
Figure 21. Response of Q s and T s to fourth-order type references and output disturbances for incremental-5: (a) fourth-order type reference, (b) output disturbances.
Applsci 15 07791 g021
Figure 22. Response of Q s and T s to input disturbances for Incremental-1.
Figure 22. Response of Q s and T s to input disturbances for Incremental-1.
Applsci 15 07791 g022
Figure 23. Response of Q s and T s to input disturbances for Incremental-2.
Figure 23. Response of Q s and T s to input disturbances for Incremental-2.
Applsci 15 07791 g023
Figure 24. Response of Q s and T s to input disturbances for Incremental-3.
Figure 24. Response of Q s and T s to input disturbances for Incremental-3.
Applsci 15 07791 g024
Figure 25. Responses of Q s and T s to variations in the parameter ( α ) using Incremental-1.
Figure 25. Responses of Q s and T s to variations in the parameter ( α ) using Incremental-1.
Applsci 15 07791 g025
Figure 26. Responses of Q s and T s to variations in the parameter T 1 using Incremental-2.
Figure 26. Responses of Q s and T s to variations in the parameter T 1 using Incremental-2.
Applsci 15 07791 g026
Figure 27. Responses of Q s and T s subjected to step-type references and noise effects for Incremental-0 and Incremental-1: (a) incremental-0, (b) incremental-1.
Figure 27. Responses of Q s and T s subjected to step-type references and noise effects for Incremental-0 and Incremental-1: (a) incremental-0, (b) incremental-1.
Applsci 15 07791 g027
Figure 28. Responses of Q s and T s subjected to step-type references and noise effects (reduced variance) for Incremental-1.
Figure 28. Responses of Q s and T s subjected to step-type references and noise effects (reduced variance) for Incremental-1.
Applsci 15 07791 g028
Figure 29. Responses of Q s and T s subjected to references and noise effects for Incremental-2 and Incremental-3: (a) ramp-type references for Incremental-2, (b) second-order references for Incremental-3.
Figure 29. Responses of Q s and T s subjected to references and noise effects for Incremental-2 and Incremental-3: (a) ramp-type references for Incremental-2, (b) second-order references for Incremental-3.
Applsci 15 07791 g029
Figure 30. Responses of Q s and T s subjected to references and noise effects for Incremental-4 and Incremental-5: (a) third-order references for Incremental-4, (b) fourth-order references for Incremental-5.
Figure 30. Responses of Q s and T s subjected to references and noise effects for Incremental-4 and Incremental-5: (a) third-order references for Incremental-4, (b) fourth-order references for Incremental-5.
Applsci 15 07791 g030
Figure 31. Comparison of the response of Q s to excessive step-type reference signals using the Global ESC with and without noise for Incremental-1.
Figure 31. Comparison of the response of Q s to excessive step-type reference signals using the Global ESC with and without noise for Incremental-1.
Applsci 15 07791 g031
Figure 32. Comparison of the response of T s to excessive step-type reference signals using the Global ESC with and without noise for Incremental-1.
Figure 32. Comparison of the response of T s to excessive step-type reference signals using the Global ESC with and without noise for Incremental-1.
Applsci 15 07791 g032
Table 1. Mix tank system parameters.
Table 1. Mix tank system parameters.
ParameterSymbolValue
Steady state gain of inlet flow rate Q 1 K 1 1 (m3/s)
Inlet flow time constant Q 1 τ 1 5
Steady state gain of inlet flow rate Q 2 K 2 1 (m3/s)
Inlet flow time constant Q 2 τ 2 4
Mixing tank horizontal section areaA1 (m2)
Temperature of inlet flow Q 1 T 1 90 (°C)
Temperature of inlet flow Q 2 T 2 10 (°C)
Mixing tank outside temperature T e 15 (°C)
Thermal loss coefficient k p 0.01 (m3/s)
Discharge coefficient of outlet flow Q s α 1 (m2.5/s)
Table 2. System nominal operating point values.
Table 2. System nominal operating point values.
ParameterValue
Motorized valve input signal U 1 2
Motorized valve input signal U 2 2
Outlet flow rate Q s 4 (m3/s)
Outlet temperature T s 50 (°C)
Table 3. Points selected for the optimization of the ESC.
Table 3. Points selected for the optimization of the ESC.
Point Q s T s
14 (m3/s)50 (°C)
27 (m3/s)50 (°C)
31 (m3/s)50 (°C)
41 (m3/s)80 (°C)
54 (m3/s)80 (°C)
64 (m3/s)20 (°C)
71 (m3/s)20 (°C)
81 (m3/s)50 (°C)
95.5 (m3/s)50 (°C)
105.5 (m3/s)65 (°C)
115.5 (m3/s)35 (°C)
Table 4. Value of J ( θ ) and RMSE of Q s and T s using the matrix values obtained without Global ESC and with Global ESC.
Table 4. Value of J ( θ ) and RMSE of Q s and T s using the matrix values obtained without Global ESC and with Global ESC.
Method for Obtaining Q and R Matrices J ( θ ) RMSE ( Q s )RMSE ( T s )
Without Global ESC1.66601.13556.1335
With Global ESC1.06910.83736.0641
Table 5. IAE and ISE values of Q s and T s for all incrementals under step-type references and output disturbances.
Table 5. IAE and ISE values of Q s and T s for all incrementals under step-type references and output disturbances.
IncrementalIAE ( Q s )IAE ( Q s )ISE ( Q s )ISE ( T s )
0457.441532115.731628
139.3418642.11075
249.2436658.922075
3132.37754163.444530
4154.481328197.147446
1344.143118401.7316,094
Table 6. Value of J ( θ ) and RMSE of Q s and T s for Incremental-1.
Table 6. Value of J ( θ ) and RMSE of Q s and T s for Incremental-1.
Method for Obtaining Q and R Matrices J ( θ ) RMSE ( Q s )RMSE ( T s )
Global ESC with noise1.08300.84856.0797
Global ESC without noise1.06910.83736.0641
Table 7. Values of the Q matrix parameters for the ESC With and Without Noise.
Table 7. Values of the Q matrix parameters for the ESC With and Without Noise.
Parameter of Q MatrixGlobal ESC with NoiseGlobal ESC Without Noise
Q 1 0.00750.0075
Q 2 0.173 ×  10 3 0.179 ×  10 3
Q 3 , …, Q 7 0.209 ×  10 3 0.222 ×  10 3
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Al-Hadithi, B.M.; Loja Acuña, G.A. Control of Nonlinear Systems Using Fuzzy Techniques Based on Incremental State Models of the Variable Type Employing the “Extremum Seeking” Optimizer. Appl. Sci. 2025, 15, 7791. https://doi.org/10.3390/app15147791

AMA Style

Al-Hadithi BM, Loja Acuña GA. Control of Nonlinear Systems Using Fuzzy Techniques Based on Incremental State Models of the Variable Type Employing the “Extremum Seeking” Optimizer. Applied Sciences. 2025; 15(14):7791. https://doi.org/10.3390/app15147791

Chicago/Turabian Style

Al-Hadithi, Basil Mohammed, and Gilberth André Loja Acuña. 2025. "Control of Nonlinear Systems Using Fuzzy Techniques Based on Incremental State Models of the Variable Type Employing the “Extremum Seeking” Optimizer" Applied Sciences 15, no. 14: 7791. https://doi.org/10.3390/app15147791

APA Style

Al-Hadithi, B. M., & Loja Acuña, G. A. (2025). Control of Nonlinear Systems Using Fuzzy Techniques Based on Incremental State Models of the Variable Type Employing the “Extremum Seeking” Optimizer. Applied Sciences, 15(14), 7791. https://doi.org/10.3390/app15147791

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop