1. Introduction
Currently, there are a considerable number of industrial multivariable processes with complex nonlinear dynamic behavior [
1,
2,
3]. Therefore, multivariable control strategies are highly important and have received significant attention from the international scientific community; see, for example, [
4,
5,
6,
7,
8,
9].
The quadruple tank system (QTS) has been widely used in academia to design multi-input, multi-output (MIMO) control schemes for liquid level regulation in the presence of complex nonlinear dynamics [
10]. Classical control approaches to this problem involve linearizing the model about an operating point (OP) and using decouplers to eliminate or reduce the interaction sensitivity between inputs and outputs, in order to apply decentralized proportional-integral (PI) control [
11]. In [
12], an actuator fault-tolerant decentralized PI-controller based on the design of simplified decouplers was proposed, allowing feed-forward control, as if it were two independent single input single output (SISO) systems [
13]. The fault-tolerant part of the controller had the ability to additively compensate for the magnitude of the fault. Yet, one of the downsides of this approach was that the designed decouplers were not always physically feasible and were prone to modeling errors [
12].
In [
14], the performance of a decentralized PI controller was compared to robust control strategies such as a multivariable internal model control (IMC) and an H-infinity control (
), concluding that these control strategies yielded better performance than the decentralized PI controller. In [
15], a reconfigurable model predictive control (MPC) approach was followed, where the feasibility to compensate for the control signal was shown when an actuator (pump) failure was detected by switching its control signal to another actuator and switching to the output of an observer when a sensor fault was detected. In general, all these methods limited their overall performance to an operating point, since they worked with a linearized model of the system.
However, other authors proposed working directly with the variable structure control (VSC) of nonlinear multivariable systems. Variable structure control systems (VSCS) theory, based on the phase-plane method of the oscillatory theory, was proposed by Alexander Andronov in the 1940s [
16]. This control theory was formally presented by Stanislav Emelyanov in the 1960s and developed by Vadim Utkin [
17] and other authors afterwards. A VSCS is composed of continuous subsystems and a commutation law between these subsystems, originating discontinuous or bang–bang control efforts to stabilize or regulate the response of the processes.
Sliding mode control (SMC) is a special type of VSCS, since it introduces an error variable named a “sliding variable” to steer the trajectory of the system to a sliding manifold and maintain motion on the manifold by means of discontinuous control, regardless of disturbances or uncertainties to the process [
18]. Nonetheless, due to its inherent robustness, the SMC introduces chattering or high-frequency oscillations to the control, which is undesirable for actuators. Various chattering-suppression methods have been proposed [
19], with the equivalent control method [
17] and higher-order sliding modes (HOSM) [
20] as the most representative. Moreover, in [
21] it was proved that the first-degree SMC and HOSM were sensitive to non-Gaussian measurement noise, making it necessary to test and implement special HOSM differentiator algorithms and filters to mitigate the influence of the nonlinear noise distributions in the sliding variable for real applications.
Concerning the use the use of the SMC and HOSM algorithms for liquid level regulation of the QTS, in [
22], an SMC technique through feedback linearization was proposed, yielding better performance than the conventional PI controller. In [
23], a second-order sliding mode (SOSM) controller based on the twisting algorithm (TA) was designed to regulate the liquid levels while considerably reducing the chattering level of the control effort. Even though the SOSM and HOSM methods proved to be effective in reducing the chattering level, they did not completely suppress it in some cases.
In [
24], the active disturbance rejection control (ADRC) was introduced as an alternate approach to PID control, based on the design of a tracking differentiator, which provided the error signal, the derivative of the error signal, and a sliding mode controller (SMC). Recently, improvements were made in [
25] with regard to the ADRC based on the work provided in [
24] with promising results, although the performance of the tracking differentiator was not addressed in the presence of measurement noise.
The main contribution of this paper consists in the proposal of a robust nonlinear approach for control of liquid levels in a quadruple tank system (QTS) based on the combination of a backstepping controller and a super-twisting controller (BSSTC), implementing a multivariable sliding surface, where the error trajectories converge to the origin at any operating point of the system. Because the backstepping algorithm is dependent on the derivatives of the state variables and is sensitive to measurement noise, integral transformations of the backstepping virtual controls are carried out using modulating functions technique, making the algorithm derivative-free and immune to noise. All the modeling and control methodologies shown in this paper have been developed for a real laboratory QTS.
This paper proceeds as follows. In
Section 2, a mathematical model of the process studied is obtained using modeling techniques. The theoretical background is explained in
Section 3. The design of the MF-BSSTC controller is developed in
Section 4. The discussions of the attained results are presented in
Section 5. Lastly, a few conclusions are given in
Section 6.
2. Quadruple Tank System Modeling
The study presented in this paper is based on the QTS located at PUCP’s Advanced Control Systems Laboratory. This QTS consists of four coupled tanks, a reservoir tank, four ball valves, two proportional valves, and two pumps.
Figure 1 shows a view of this QTS, and its schematic representation is exhibited in
Figure 2.
QTS Modeling under Disturbances
The control objective is to regulate the liquid levels of tanks n°3 and n°4. The inputs to the system are the flow rates and from pumps n°1 and n°2, respectively, measured by the flow transmitters and . The measured outputs are the liquid levels , , , and of tanks n°1, n°2, n°3, and n°4, respectively, which are proportional to the voltages generated by the level transmitters , , , and . The system has two proportional valves and with aperture percentages and , respectively, two ball valves and , which generate flow towards tanks n°2 and n°4 with a split constant , and two ball valves and which generate flow towards tanks n°1 and n°3 with a split constant . Since the output flow rates of pump n°1 split between tank n°2 and tank n°4 and the output flow of pump n°2 between tank n°1 and tank n°3, the position of valves and controls the split ratio. For instance, if holds, one transmission zero out of the two transmission zeros of the system locates at the right half plane (RHP) of the root locus, generating nonminimum phase dynamics. On the other hand, if holds, both transmission zeros locate at the left half plane (LHP) of the locus, rendering the QTS with minimum phase dynamics.
In [
14], mass balances and Bernoulli’s law yield the following multivariable QTS model with disturbances:
where
represents the state variables vector,
is the tank
i liquid level in cm,
y is the measurement vector with
v as additive noise,
is the control vector,
is the cross section of tank
i in cm
,
is the cross section of the outlet hole of the tank
i in cm
,
is the diameter of the tank
i in cm,
is the maximum liquid level of tank
i, and
g is the acceleration of gravity in cm/s
. Moreover,
,
,
, and
are disturbances to the system generated by the flow losses
and
of pump n°1 and pump n°2, respectively, which are modeled as step functions, such that
. In
Table 1, the parameter values of the four-tank coupled system are presented.
3. Theoretical Background
Sliding mode control (SMC) has the ability to reject bounded matched uncertainties at the cost of introducing chattering to the control input. This could be detrimental to the performance if the mechanical systems are controlled, as is the case with QTS. In fact, one of the many methodologies available to suppress chattering is the design of super-twisting algorithm (STA) based controllers [
20], which has been extensively used in recent years for closed-loop control of the QTS.
A super-twisting controller (STC) is a type of SOSM applicable to a system, where the control appears in the first derivative of the sliding variable [
26], which has the ability to compensate for disturbances or uncertainties with only the knowledge of the measured output or sliding variable
, while suppressing or attenuating chattering. For instance, the STC could be applied to the QTS if a multivariable STC scheme was designed, considering that there should exist as many sliding surfaces as independent controls [
27], and some “hierarchy of controls” [
17] should be established.
Definition 1 (Multivariable Sliding Surface [
27])
. Let the general state-space representation of a system with multiple controls bewhere is the state variable vector of dimension n, is the control vector of dimension m, and is the output vector of dimension n, where n and m represent the number of controlled systems and the number of sliding surface coordinate functions defined as system outputs, respectively. Then, the multivariable sliding surface is represented by the simultaneous satisfaction of m smooth algebraic state restrictions, summarized in the equation , which represents the intersection manifold,For instance, the following vector of sliding surfaces was chosen for the QTS,where are the errors between the actual liquid level and the desired level , are constants, and . must be a continuously differentiable reference trajectory. If the reference trajectory is a step, then . Therefore, the simultaneous satisfaction of algebraic constraints
and
, which geometrically represents the existence of a smooth intersection manifold
S, ideally produces a desired closed-loop behavior of the system, where
x ∈
S holds in finite time [
26].
In order to satisfy the algebraic constraints shown above, a first-degree SMC and a BSSTC are designed.
Synthesis of a First-Degree Sliding Mode Controller (SMC)
In this subsection a first-degree SMC is designed using the equivalent control method proposed in [
17,
27].
Definition 2 (Equivalent Control and Ideal Sliding Dynamics [
27])
. Let the lie derivative be locally invertible, where is a vector of the sliding surfaces that satisfies . Then,orTherefore, the equivalent control is expressed aswith ideal sliding dynamics given by: The equivalent control is the smooth feedback control law, denoted by
, which ideally locally holds the state evolution in the smooth manifold
S for any initial state of the system located locally in
S [
26]. However, the closed-loop controller obtained with the equivalent control method generates a phenomena called “chattering”, as mentioned above, which can potentially wear out actuators when applied. Thus, in this paper, two second-order super-twisting controllers (2-STC) are designed through the recursive nonlinear backstepping technique to generate smooth control actions to regulate the liquid level of the selected subsystems, in order to reach the smooth intersection manifold
S at any point of operation without the need to linearize the system.
Taking the model (1) into the state-space representation introduced in (2), the matrices
and
are shown:
where
.
Let the sliding surfaces of the multivariable closed-loop control be
and
. So, the lie derivatives of
and
along the direction of vector fields
and
are computed as follows:
Then, replacing (11) and (12) in Equation (
7), the equivalent control
to ensure
in finite time is found as follows:
with the following control law:
where
is the upper saturation threshold value for the flow rate, which equates to 60% of the maximum capacity of the pump. Furthermore, this control law
takes the lower saturation threshold value of 10% of the pump capacity when it is equal to 0.
Proof. Robust closed-loop stability: Replacing Equation (
13) in model (1), the following closed-loop dynamics are obtained:
The closed-loop system (15) shows that
and
will reach the intersection manifold
S in finite time. □
4. Design of the Modulating-Function-Based Backstepping Super-Twisting Controller
Multivariable control of the QTS based on the synthesis of a controller by the equivalent control method is feasible. Nonetheless, the implementation of the first-order sliding modes in the QTS could be detrimental to the plant actuators due to the chattering and the sensitivity to the measurement noise. On the other hand, using the backstepping and modulating functions technique can in fact render the controller chattering-free and robust to nonlinear noise. In this section, a modulating-function-based backstepping super-twisting controller is designed for the first time.
The backstepping technique [
28] is a recursive back-deduced Lyapunov-based approach for systems transformable in their parametric-strict-feedback form or their pure parametric feedback form. This technique uses some of the system state variables as “virtual controls” at each step of the algorithm, implementing intermediate control laws to stabilize the system energy [
28]. The advantage of applying backstepping control (BSC) is that it avoids the cancellation of the nonlinearities that are useful for controlling the system, easing the control effort. Moreover, the BS technique provides a framework to develop adaptive laws to unknown process parameters [
29,
30] and calibrate the gains of the online sliding mode controller, to efficiently compensate for parametric uncertainties and disturbances. However, its dependence on the derivatives of the state variables limits its application in plants or processes where these derivatives are not measurable. In general, recent nonlinear SMC and BSC approaches for liquid level control of the QTS [
22,
23,
24,
25,
31,
32] have been proved to be efficient only in conditions where the derivatives of the state variables are available and in the absence of measurement noise.
Design of the backstepping super-twisting controller (BSSTC) for tank n°4. The dynamics of the QTS are reduced only by considering the dynamics of the tank n°4. In order to find a suitable STC through the backstepping technique, it is necessary to extend the dynamics of tank n°4 by adding an auxiliary input
as follows:
where
,
, and
. For the extended subsystem above, the following coordinate change is introduced:
where
,
, and
is an auxiliary input. By adding
, system (19) is already in pure parametric feedback form [
28]. The control objective is to design a continuous controller that regulates the liquid level of tank n°4 at any operating point of the plant, achieving a SOSM (
) in finite time over the sliding surface
.
Step 1. Starting with the dynamics of
in system (17), let us define the new error coordinate,
where
is a twice-continuously differentiable reference trajectory. However, if the reference trajectory
is a step function,
holds. So, the derived dynamics of the new coordinate are:
Let
be an internal control variable,
a virtual control law, and
the error between the actual control variable and the virtual control. Then, the control objective is to design the virtual control law
, such that
in finite time. In order to stabilize
, the following candidate Lyapunov function is introduced:
and its time derivative:
Replacing Equation (
21) in (23) yields:
If
, where
must hold, then
if and only if
= 0, and
is locally asymptotically stable. To this end, virtual control law
is found:
with dynamics:
where
Step 2. The dynamics of
are derived such as:
where
. Then, to make
to hold in finite time, the following candidate Lyapunov function is designed:
and its derivative:
To stabilize the energy in the system,
must be fulfilled, where
is the sliding surface, since
holds in finite time. So,
Step 3. The sliding surface,
with dynamics
where
must be designed, such that
decreases its energy in a finite time. Then, the following candidate Lyapunov function is introduced:
with time derivative:
Thus, to obtain
or
the following relationship must hold:
where
. Replacing Equations (31)–(33) in (38) yields:
Later, term
is isolated:
Then, by performing the double integration of term
, the actual control
is obtained:
The super-twisting terms
and
, where
, and
is an upper-bound of the expected disturbance to the system, are added to provide robust compensation for the disturbances to and uncertainties in the system. Replacing (40) in (41), the variable dependencies of the BSSMC control law are taken into account:
It should be noted that the same procedure is carried out to obtain the control law
. It is important to state, after obtaining the control law
, that for the classical backstepping technique only two steps would be needed to obtain an adequate control law. However, by taking an additional step in the algorithm, the control law is integrated twice, giving additional integral action for the removal of the rate of change of the error variables at the steady state, as well as giving increased robustness against the disturbances and parameter uncertainties. Since the control law
depends on unmeasurable derivatives
,
,
, and
, the state-of-the-art approach would force the implementation of differentiators, such as in [
21,
23], that would amplify the noise coming from the measured liquid levels
and
. For this, the technique of modulating functions is proposed to obtain the sliding surfaces
that do not depend on the derivatives of the state variables and are noise-free.
The modulating functions (MF) technique performs integral transformations to compute the derivative-free algebraic relations between the inputs and outputs of a system, which allows the estimation of the internal states, unknown parameters, and fault detection with the advantage of not relying on the derivatives of the state variables and filtering noise while the modulation operation is carried out. To understand the mathematical background of the MF technique, the following definitions are presented.
Definition 3 (Total Modulating Function [
33])
. Consider a sufficiently smooth function , with partial derivatives asThen, function φ is called a modulating function of order k
, if there exists , such thatA modulating function whose boundaries satisfy is called a total modulating function. Definition 4 (Modulation Functional [
34])
. The modulation functional is defined as:where h
: and represent the signal to be modulated and the modulating function, respectively, spatially defined on the n
-dimensional rectangular region and temporally on the moving time horizon of length . Moreover, if the integration concerns only the spatial or temporal variable, the inner product notations or are used, respectively. When implementing the MFs for filtering, an FIR filter with a modulating receding horizon can be realized, integrating only in the time dimension as follows:
and we define it in its matrix form
where
is an i-dimension vector of modulating gains sampled with
.
Lemma 1 (Shift of derivatives property)
. Using integration by parts, a shift of derivatives can be attained as follows:After presenting these definitions, the task is to modulate the error coordinates and , the virtual control law , and the sliding surface , such that control is resilient to noise and does not depend on the derivatives of the system’s state variables. For this, the error coordinates ,and ,are modulated over a prescribed modulation receding horizon. The nonlinearities , , , and in Equations (52) and (53) cannot be directly modulated. However, if and are replaced by measurements and , respectively, and and are known trajectories, then these nonlinear terms can be computed numerically and modulated on each iteration. Moreover, after modulating , the following modulated virtual control law is obtained:with modulated dynamics:Finally, the sliding surface is modulated as follows:with dynamics:With the modulating functions technique, all the virtual controls of have derivative-free input–output algebraic relations. Even though depends on the noise-measured state variables and , the MF technique filters noise when performing integration of these signals. Figure 3 shows the block diagram of the modulating-function-based backstepping super-twisting control system for a QTS. 5. Results and Discussion
5.1. Multivariable Sliding Mode Control of the Liquid Levels in Tanks n°3 and n°4
The control objective is to regulate the liquid levels of tank n°3 and n°4 at different operating points with a nonlinear controller. To this end, the performance of a first-degree sliding mode controller synthesized with the equivalent control method and a BSSTC were compared in the absence of measurement noise and disturbances, for a total simulation time
= 1000 s and sample time
s. The model parameters and liquid level operating points, the latter modeled as step inputs to the system, are shown in
Table 1 and
Table 2, respectively. The lower and upper saturation thresholds for the pumps control efforts were set at
and
, respectively. The design specifications of the BSSTC are shown in
Table 3.
Figure 4 shows the control system time responses of all tanks at the operating points described in
Table 2, where the liquid levels of tanks n°3 and n°4 were satisfactorily controlled by both the first-degree SMC and by the BSSTC. In addition, since the system valves were calibrated for the minimum phase response, the liquid levels in tanks n°1 and n°2 remained at safe operating points without overflow.
Figure 5 and
Figure 6 show the control system time responses of tanks n°3 and n°4 in the different time intervals, where the SMC had a faster settling time than the BSSTC. The drawback of using the SMC for this specific application is seen in
Figure 7, where the control efforts
and
of the SMC exhibited a considerable energy effort with undesirable chattering that oscillated from
to
of the pumping effort. This condition would be detrimental to the pumps actuators. On the other hand, the BSSTC did not present chattering in the absence of noise, and the energy effort was much lower than the SMC.
Figure 8 shows the errors between the actual and the desired liquid level over time, where it is noted that the error with the SMC converged faster than with the BSSTC. Moreover,
Table 4 shows the results related to the following performance indices: the integral time absolute error (ITAE), integral absolute error (IAE), and the integral square error (ISE), where the SMC obtained better scores since it had a faster convergence, without overshoot, compared to the BSSTC, which showed a slower response with overshoot in some intervals of the trajectory. This result is especially important as it shows that although the SMC obtains slightly better dynamic error scores, it does so at the expense of more energy used in the control effort and the introduction of chattering.
Although, the BSSTC would work in conditions where the derivatives of the system state variables were accessible, and there was no measurement noise, this is not the case in most industrial applications, where sensors are not available due to budget constraints or they are not physically realizable. For example, for this plant, the velocity and acceleration of the liquid level could not be directly measured.
5.2. Modulating-Function-Based Backstepping Super-Twisting Control of Liquid Levels in Tanks n°3 and n°4
For this end, the goal was to test the robustness of the modulating-function-based BSSTC against nonlinear measurement noise. Noise with a mixture of Gaussian distributions was generated for the level transmitters
,
,
, and
, according to the mixture probability
, where
is the probability for distribution
, and
and
are the standard deviations.
Table 5 shows the specifications of the Gaussian mixture model (GMM). In
Figure 9 and
Figure 10, the quantile–quantile plots (QQ plots) and sample vs. amplitude plots are shown, respectively, where it is evident that the GMM exhibited nonlinear characteristics.
In
Figure 3, the modulating function filter was synthesized with a modulation function kernel order of one and two kernel derivatives, with a polynomial waveform type, a time horizon interval of 3.00 s, and a sample time of 0.01 s. The polynommial waveforms of the kernel and its two derivatives are shown in
Figure 11. It received the measurement vector
y and the control vector
u as inputs, and sent the modulated vectors
and
to the backstepping sliding surface block. The backstepping sliding surface block generated the modulated sliding surfaces
and
. Finally, the backstepping super-twisting control yielded the modulated virtual control
and output a modulated backstepping control signal along the super-twisting terms for the plant.
For this result, the performance of the MF-BSSTC in the presence of measurement noise was tested, setting up the gains according to
Table 6.
In
Figure 12 and
Figure 13, the closed-loop time response of the QTS control system with the MF-BSSTC (green line) is plotted against the closed-loop time response of the system with measurement noise (red line). It is remarkable that the MF technique adequately filtered out the noise by modulating all the virtual controls of the backstepping algorithm, rendering it free from the derivatives of the system state variables. Nonetheless, the MF technique generated a delay of
s. The method to compensate for this delay, either a Smith predictor or any other delay-compensation technique, is outside the scope of this paper.
The controller gains were set to minimize the amplitude of the oscillations in the closed-loop response of the system. Since the MF-BSSTC was tested with non-Gaussian measurement noise, which is a mixture of two different Gaussian distributions, the MF-BSSTC effectively filtered both distributions, but a minimal amplitude variation over time was still visible when the Gaussian mixture changed from one distribution to another.
Figure 14 shows the control efforts
and
, which exhibited minimum oscillations at steady state that were caused by the varying amplitude of the filtered noise. If the gains were increased to improve the settling time and robustness of the response, then the oscillations would increase, and with this, the control effort itself would show greater oscillations. Then, the MF-BSSTC must be synthesized based on the required closed-loop behavior and in terms of a relationship between the noise filtering capability and the desired robustness of the controller.
To test the robustness of the controller in the presence of measurement noise, a disturbance
was applied to the system in the time interval
t = [700 900] s, corresponding to a loss of flow in pump n°2. Then, the MF-BSSTC gains were increased to
and
, for
, so that the controller offered more robustness.
Figure 15 shows that the controller was almost insensitive to the disturbance. Moreover, this robustness came with the chattering of the control signal
at time interval
t = [310 461] s, as shown in
Figure 16. At the mentioned time interval, there was an overestimation of the controller gains, set as fixed for the worst-case disturbance. Perhaps, this high-gain condition of the controller could be solved by adapting the gains online.
5.3. Comparison with Other Controllers
The MF-BSSTC was compared to two of the most used controllers with the QTS, the decoupled PI controller [
12] and the model predictive controller (MPC) [
15].
A disturbance at time interval t = [600 1000] s was introduced to the system, corresponding to the flow loss in pump n°2. The MF-BSSTC gains for subcontrollers n°1 and n°2 were , , , , and and , , , , and , respectively. The decoupled PI controller was synthesized using the MATLAB PID tuner app, with gains and , and and , respectively, which maximized the robust transient behavior. On the other hand, the MPC was set with a prediction horizon and a control horizon . Moreover, both linear controllers were linearized with respect to the operating point (, ).
Figure 17 shows that the MF-BSSTC had more robustness to disturbances and a faster response than the decoupled PI and MPC controllers. When disturbed, the PI controller and MPC showed strong set-point deviations from the set point, whereas the MF-BSSTC showed more insensitivity to the disturbance. As shown in
Figure 18, the control efforts of the PI and MPC were lower than 10% for all the time responses, indicating that their robustness and speed of convergence were related to this low energy consumption.
Table 7 shows that the best results related to the ITAE, IAE, and ISE criteria were obtained with the MF-BSSTC. The PI and MPC controllers obtained high ITAE and ISE values for subcontrollers
due to their underdamped responses to the disturbance. Even though they converged to the desired liquid level, their transient responses were very slow.
Regarding the mean computational cost, it was calculated based on the time it took to execute the loop controls. For instance, the mean computational efforts of the MF-BSSTC, PI, and MPC, for a total of iterations, were s, s, and s, respectively. Even though the MF-BSSTC had memory requirements related to storing measured samples during the modulating receding horizon, its computational cost was lower than that of the PI controller. In addition, the MPC achieved a lower computational cost.
6. Conclusions
In this paper, it has been proved that it is feasible to adopt a nonlinear approach to the QTS liquid level control problem, using a multivariable sliding mode controller. For this, a first-degree SMC and a BSSTC were proposed based on the design of a multivariable sliding surface through the equivalent control method and backstepping virtual controls, respectively.
The results in the absence of noise showed that the liquid level control can be attained at any operating point without the need to linearize the system over a specific operating point. Although, the first-degree SMC exhibited a faster and more robust response, it introduced chattering into the control signal that was detrimental to the actuators of the plant.
On the other hand, the BSSTC showed almost no chattering at the expense of a slower settling time. In addition, a method to make the BSSTC derivative-free and noise-immune based on the modulation of the backstepping virtual controls was proposed, demonstrating that it is possible to use the backstepping algorithm and sliding modes in the presence of non-Gaussian noise through the modulating functions technique at the expense of introducing a time delay equal to half the receding horizon used.
Finally, with respect to future work, we will try to extend the current results considering the time delay in the dynamic behavior of the QTS and the conditions in which this system operates in non-minimum phase mode, as well as leakages and actuator failures.