Observer based robust H∞ fuzzy tracking control: application to an activated sludge process
- Published
- Accepted
- Received
- Academic Editor
- Qichun Zhang
- Subject Areas
- Artificial Intelligence, Autonomous Systems
- Keywords
- Fuzzy observer, PDC control, Takagi–Sugeno models, Activated sludge process
- Copyright
- © 2021 Khallouq et al.
- Licence
- This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, reproduction and adaptation in any medium and for any purpose provided that it is properly attributed. For attribution, the original author(s), title, publication source (PeerJ Computer Science) and either DOI or URL of the article must be cited.
- Cite this article
- 2021. Observer based robust H∞ fuzzy tracking control: application to an activated sludge process. PeerJ Computer Science 7:e458 https://doi.org/10.7717/peerj-cs.458
Abstract
The design of an observer-based robust tracking controller is investigated and successfully applied to control an Activated Sludge Process (ASP) in this study. To this end, the Takagi–Sugeno (TS) fuzzy modeling is used to describe the dynamics of a nonlinear system with disturbance. Since the states of the system are not fully available, a fuzzy observer is designed. Based on the observed states and a reference state model, a reduced fuzzy controller for trajectory tracking purposes is then proposed. While the controller and the observer are developed, the design goal is to achieve the convergence and a guaranteed H∞ performance. By using Lyapunov and H∞ theories, sufficient conditions for synthesis of a fuzzy observer and a fuzzy controller for TS fuzzy systems are derived. Using some special manipulations, these conditions are reformulated in terms of linear matrix inequalities (LMIs) problem. Finally, the robust and effective tracking performance of the proposed controller is tested through simulations to control the dissolved oxygen and the substrate concentrations in an activated sludge process.
Introduction
In the last few years the Takagi-Sugeno (TS) fuzzy modelling, which is a multi-modelling approach, has been emerged as a powerful tool, providing a consistent and efficient approach to handle problems related to modelling and control of nonlinear systems especially wastewater treatment plants (WWTP). These processes are classified as complex systems due to their non-linear dynamics, large uncertainties and the lack of measurements. Hence, it has become a topic of substantial interest exposed to several studies using the TS fuzzy approach. For example, in Carlos-Hernandez, Beteau & Sanchez (2006) an application for an anaerobic digestion process has been proposed, where a linearization study involving various representative operating points is first carried out to obtain the TS model then a TS fuzzy observer is designed and experimentally validated. Nagy Kiss et al. (2011) proposed a proportional integral observer for uncertain TS fuzzy systems affected by unknown inputs using L2-gain to minimize the effect of the unknown input. The method has been applied on a reduced model of the Activated Sludge Model No. 1 (ASM1). Belchior, Araújo & Landeck (2012) proposed the regulation of the dissolved oxygen concentration in WWTP through the implementation of an adaptive fuzzy controller. The study by Aouaouda et al. (2012) deals with a fault tolerant control problem of an activated sludge process where an uncertain TS model is considered for the states and faults estimation and used into a robust tracking control scheme using the L2-gain. Recently in Li et al. (2020), the control of the dissolved oxygen is presented using a fuzzy predictive model and where the membership functions of the fuzzy model are obtained based on the fuzzy C-means cluster algorithm.
In parallel, besides stabilization problem, tracking control designs are also important issues for practical applications. There are very successful studies dealing with the output/state tracking control design based on the TS fuzzy approach. In Lin et al. (2007) an observer based output tracking control is investigated for TS fuzzy systems with time-delay. Nachidi, Hajjaji & Bosche (2011) studied the problem of robust output tracking control of TS fuzzy uncertain discrete-time systems and its application in a DC–DC converters. An adaptive fuzzy control is proposed in Bououden, Chadli & Karimi (2015) for uncertain system subject to a pre-treatment of wastewater modeled using the TS approach. A TS fuzzy tracking control problem with respect to input saturation is addressed in Yu, Lam & Chan (2018) using an output feedback controller. In Abyad, Karama & Khallouq (2020), an output tracking control problem applied to a fermentation process has been scrutinized by considering the question of asymmetrical constraints on the control inputs. There are also relevant studies for the state tracking control even though its design is more general and more difficult than the design of the output tracking control. For example, in Senthilkumar & Mahanta (2009), a TS fuzzy guaranteed cost controller for trajectory tracking in nonlinear systems is investigated. A fuzzy state feedback law is used to build the controller whose performance is evaluated using a quadratic cost function. By using observers to deal with the absence of full-state information, a robust TS fuzzy observer-based tracking controller is addressed in Chang & Wu (2012) where the H∞ performance is considered to mitigate the tracking error. In our previous study (Khallouq, Karama & Abyad, 2020), a robust observer based tracking controller using a reference model is developed where the controller and the observer gains are obtained simultaneously in one single step by solving a set of linear matrix inequalities and where the tracking problem concerns all the state variables.
It is evident that a high number of state variables leads to high order controllers. In fact, a big problem needs to be solved for high order systems which increases numerical computations. Proceeding from the fact that for many realistic applications, it is not necessary to control all state variables. In addition, other difficulties may arise when the system is disturbed the existence of disturbance may deteriorate the performances of the system and can be a source of instability. Therefore, it is more appropriate to develop methodology which involves a low dimensional design for systems with disturbance. Motivated by the discussion above, the presented work is an extension of Khallouq, Karama & Abyad (2020). We propose to design a reduced order observer based state tracking controller in which only the key state variables has been considered and where the TS fuzzy model has been extended to deal with nonlinear systems with disturbance. Since the system states are not fully accessible to measurement a TS fuzzy observer is used to reconstruct all of them. Because of the nonlinear feature of the bioprocesses dynamics and the usually large uncertainty of some parameters, mainly the kinetic terms and the unknown inputs, the implementation of extended different versions of observers are very promising and have proved to be very successful in several applications e.g., Kalman filter to deal with Gaussian disturbances (Zeng et al., 2016; Silva et al., 2019) observer based on H∞ technique (Katebi, 2001), the minimum entropy filtering method for non-Gaussian disturbances cases (Zhang, Chen & Yu, 2017). The main contribution of this article can be outlined as follows: we propose to split the TS system into two subsystems, one of which involves the part of the state variables to be controlled. Then we reformulate the problem of a robust observer based state tracking control design. The controller is then expressed by a feedback law, which is based on the classical structure of the Parallel Distributed Compensation (PDC) concept, involving the error between the estimate of the controlled state and the state of a reference model. Finally we establish sufficient conditions to guarantee tracking performance for the part to be controlled and stabilization for the remainder part. Unlike Khallouq, Karama & Abyad (2020), here the observer’s synthesis is achieved separately from the controller synthesis. Whether for the controller or the observer, the used schemes produce a disturbance term. A performance criterion H∞ is used in each problem. Based on H∞ and Lyapunov theory, conditions are developed to ensure convergence and attenuate respectively the tracking error and the estimation error as small as possible. The results are formulated in terms of (LMIs). Finally, the efficiency and the robustness of both the tracking control and estimation schemes are demonstrated via simulations on an activated sludge treatment process and are tested under a variety of operating conditions and simulated perturbations.
The paper is organised as follow: First, the modelling of the activated sludge process is described, followed by the design of an Observer-Based Fuzzy Robust Tracking Controller then the design of a robust TS fuzzy observer and end with an application of the proposed method to an activated sludge process.
The activated sludge process model
The activated sludge schematized in Fig. 1 is used as a biological purification in waste-water treatment, consisting essentially of flocculating microorganisms, mixed with dissolved oxygen and waste-water. Thus, the microorganisms come into contact with the organic pollutants presents in the wastewater, as well as with dissolved oxygen, and are kept in suspension. Based on the natural metabolism, These microorganisms convert the organic matter into new cells, carbon dioxide and water. The process of the purification is done into tow tanks called aerator and settler. The energy required by the process is provided by the dissolved oxygen. Subsequently, carbon dioxide is released in return. The mathematical model that represents the process is given using the mass balance around the aerator and the settler as follows (Nejjari et al., 1999):
(1) where
-
X(t), S(t), Co(t) and Xr(t) are respectively the biomass, the substrate, the dissolved oxygen and the recycled biomass concentrations.
-
μ(.) corresponds to the biomass specific growth rate. It is assumed to follow the following model:
μmax is the maximum specific growth rate, Kc is the saturation constant and Ks is the affinity constant.
-
D and KLa represent respectively the dilution rate and the aeration flow rate.
-
Sin and Coin are the influent substrate and the dissolved oxygen concentrations.
-
Y is a constant yield coefficient, K0 is a constant and Cs is the maximum concentration of the dissolved oxygen concentration.
-
qr and β represent respectively the ratio of recycled flow and the ratio of waste flow to influent flow.
For this model the states, the inputs and the output vectors are given respectively by:
(2)
Observer based fuzzy robust tracking controller design
Problem formulation and preliminaries
The TS fuzzy approach consists in transcribing the dynamic of a nonlinear process into a finite weighted sum of linear models. There exist three approaches in the literature to obtain the TS fuzzy model (Tanaka & Wang, 2003b): the black box identification, the linearization technique and non-linearity sector method. We are interested in the third method which gives an accurate TS fuzzy model description of nonlinear model without information loss.
Let consider the following nonlinear disturbed system:
(3) where x(t)∈ Rn is the state vector, u(t)∈ Rm is the input vector, d(t)∈ Rl is the disturbance, y(t)∈ Rq is the output vector and C a matrix ∈ Rq × n Consider a TS fuzzy model. The system (3) can be approximated or represented (according to the number nr of sub-models) by the Takagi–Sugeno structure:
(4) where Ai∈ Rn× n, Bi∈ Rn× m and G∈ Rn,l. z∈ Rp denotes the so-called decision variables (premise variables) that can be available when it depends on measurable variable such as u(t) or y(t) i.e., z = z(u(t),y(t)) or unavailable when it depends on non-measured system state x(t) i.e., z = z(x(t)). The weighting functions hi (z) called the membership functions satisfy the convex sum property expressed in the following equations:
The weighing functions hi(z) are generally nonlinear and depend on the premise variables z. Let us consider the following partition of the system (4) with the corresponding matrices , , and where x2(t) corresponds to the part of the state vector to be controlled and x1(t) corresponds to the remaining state variables.
The dynamical model can be rewritten as follows:
(5a)
(5b)
Consider a linear reference model given by the following equation:
(6) where is the reference state which should be tracked by the system (5b). Ar is a stable matrix and r(t) is a bounded input reference.
Our goal is to synthesize a control law based on the state estimation capable to reduce the error between the reference trajectory and the state x2(t). The Parallel Distributed Compensation concept can be used to design a fuzzy controller where the main idea consists to design a local controller for each sub-model based on local control rule, which shares with the fuzzy model the same fuzzy sets.
The controller we choose in this paper is expressed by an observer-based law with reference model as follows:
(7) where is the estimation of x2(t) and the Ki’s represent the local feedback gains that should be determined.
Stability conditions
Before starting the stability analysis, some useful lemmas are recalled.
Lemma 1 (Guerra et al., 2006) For any matrices X,Y of appropriate dimensions and for any positive scalar η the following inequality holds:
(8)
Lemma 2 (Guerra et al., 2006) Considering π (as in inequality (9)) < 0 a matrix X and a scalar λ, the following inequality holds:
(9)
Using (7) into (5), the closed loop system can then be rewritten as follows:
(10) where
Let us define by the tracking error and the state estimation error and consider the augmented state: . Using (10), the dynamical model of the augmented system is given by:
(11) which can be rewritten as:
(12) where
(13)
The term ξ(t) is acting like a disturbance affecting the augmented state xa(t). Thus to attenuate its effect, we propose the use of the H∞ technique applied to System (12). The weighted H∞ performance to minimize can be presented as follows:
(14) where Q is a positive definite matrix and γ is a prescribed positive scalar that defines the attenuation level of the disturbance ξ(t).
To realize Condition (14), one has to use a Lyapunov function for System (12) given by:
(15)
To achieve the performance (14) and ensure the stability of augmented System (12), the following condition must be realized:
(16)
The following result can be announced:
Lemma 3 If there exist positive definite matrices P, Q1 and Q2, and positive scalars α1,α2, γ1 and γ2, the augmented system in (12) is asymptotically stable, such that the following conditions are satisfied:
(17)
(18)
The H∞ performmance criteria (14) is guaranteed where the scalar γ and the matrix Q are given by and Q = Q1 + Q2
Proof:
Using (12), the derivative of the Lyapunov function (16) is:
(19) Denote by J the expression:
(20) by setting Q = Q1 + Q2 and γ2 = γ1 + γ2 and using (19), J can be written as the sum of two terms:
(21)
Using the Lemma 1 on the crossed terms yields:
(22) (22) into (21) leads to the following inequality:
(23)
This implies that (16) is satisfied if the following sufficient conditions hold:
(24)
(25)
This ends the lemma proof.
The main result
To determine the controller gains Ki, we present new conditions in terms of LMIs. These conditions are developed through the use of separation Lemma 2, the introduction of some slack variables and other calculations leading to the following results.
Theorem 1 There exists an observer based controller (7) for the system (12) guaranteeing the H∞ performance criteria (14) if there exists positive matrices , matrices Yi, i = 1,2,…,nr, positive matrices and and prescribed positive scalars α1, α2, α3, α4, γ1 and γ2 such that α1 < γ1 and α2 < γ2 and that the following conditions hold: for i = 1,…,nr
(26) for
(27) where
and * stands for the symmetric term of the corresponding off-diagonal term.
Solving LMIs (26) and (27) the controller gains Ki, the attenuation level γ and the matrix Q are given by: and Q = Q1 + Q2 where and
Proof:
For the proof of the theorem 1, we will start from the sufficient conditions given in the Lemma 3. Let us consider the first condition (17). Multiplying it post and prior by P −1 and using Schur lemma, the following inequality is obtained:
(28)
By choosing matrices P and Q1 as follows: and and Replacing by their expressions in (13), (28) becomes:
(29)
where
Multiplying (29) left and right respectively by and its transpose yields to:
(30)
Using Lemma 2 we have:
(31) and Schur complement yields to:
(32)
Using the following variable change and Yi = KiX2, the conditions (26) of the theorem is fulfilled.
To carry out the second LMI of the theorem 1, we proceed in the same way with the second sufficient condition of Lemma 3. Multiplying (18) post and prior with P −1 and using the Schur lemma, the following inequality is obtained:
(33) By choosing the matrix and replacing Dij and aij by their expression in (13), (33) becomes:
(34)
Multiplying (34) left and right respectively by: and its transpose we get:
(35) using Lemma 2 we have:
(36) and Schur complements yiels to:
(37)
Using the following variable change and Yi = KiX2, the conditions (27) of the theorem is fulfilled. This achieves the proof of the theorem.
A Robust TS fuzzy observer design
In order to estimate both the state variables and the disturbance the following augmented state vector is considered . From the TS system (4) we have:
(38)
With:
and
Let consider the following fuzzy Luenberger observer (Tanaka & Wang, 2003a) for the system (38):
(39) where the represent the local observer gains. Note that this observer considers that the premise variables are unknown.
The dynamical model of the estimation error is then given by:
(40) where is acting as disturbance. To attenuate its effect, the following H∞ performance is used:
(41) where R is a positive definite matrix and ν is the attenuation level of the disturbances .
Theorem 2 Prescribing the attenuation level ν, an observer (39) for the system (46) satisfying the H∞ performance criterion (41) exist if there exists a symmetric and positive matrix , a matrix R > 0 and Zi, i = 1,2,…,r and a positive scalar η such that the following LMIs are feasible
(42)
(43)
Solving LMIs 42, the observer gains are given by: . The scalar verifying the H∞ norm for the observer is given by:
Proof: See Appendix A.
Application to an Activated Sludge Process
This article addresses the problem of controlling an activated sludge treatment process using the TS approach developed above. The dissolved oxygen concentration in the ASP is an important parameter in the process control that has a considerable effect on the treatment effectiveness and economical cost. The reduction of organic substrate concentration is also crucially important and presents one of the main issues in the treatment process. It helps keeping a hight effluent quality. The control objective is to force the substrate and the dissolved oxygen concentrations S(t) and Co(t) to track the states of a given reference model Sref(t) and under the following conditions:
-
The dilution rate D(t) and the aeration flow rate KLa(t) are the control variables.
-
The dissolved oxygen concentration Co(t) is available.
-
Biomass, substrate and recycled biomass concentrations X(t), S(t) and Xr(t) are not available online.
The TS fuzzy model design
To simulate more realistic conditions, the model (1) is rewrited in the form of a disturbed system. It is assumed that the concentration of the influent substrate is varying during a day instead of considering a constant value. The variation δ Sin(t) around the daily average Sin acts as a disturbance.
To build the TS model, the classical transformation of the non-linearity sector method is used. The following non linearities (the premise variables) are considered:
(44)
The nonlinear model of the Activated Sludge process described by Eq. (1) can be written in the form:
(45) where the state, input and output vectors are
and the obtained matrices have the general form:
6 premise variables are considered. Therefore, the model (45) can be represented by nr = 26 = 64 TS submodels, which is rewritten as follows:
(46)
The Ai’s and Bi’s corresponding matrices and the hi(z)’s membership functions are obtained from A(z1,z2,z3,z4,z5) and B(z2,z3,z4,z6) and (44), for more explanation on the method to obtain them the reader can refer to (Nagy et al., 2010)
Observer based controller synthesis and simulation results
The following partition are chosen with the corresponding vectors: , and . For simulation, the matrix is used to generate the trajectories of the reference state and the simulation parameters of Table 1 are considered. To test the robustness of the proposed method, a sinusoidal variation of the influent substrate and changes in the kinetic parameters will be introduced during the simulation.
Y | qr | β | K0 | Cs | Sin | Coin | μmax | Ks | Kc |
---|---|---|---|---|---|---|---|---|---|
0.65 | 0.6 | 0.2 | 0.5 | 10 | 200 | 0.5 | 0.15 | 100 | 2 |
[mg/l] | [mg/l] | [mg/l] | [h−1] | [mg/l] | [mg/l] |
Remark 1 The LMIs in the theorem 1 and 2 are solved using matlab with the YALMIP toolbox can be downloaded from https://yalmip.github.io/.
• The resolution of the LMIs in theorem 1 for the parameters α1 = 0.4, α2 = 0.4, α3 = 300, α4 = 295, γ1 = 0.4 and γ2 = 0.4 leads to:
The attenuation level is given by: , bellow are given some of the controller gains:
-
The resolution of the LMIs in in theorem 2 for an attenuation level ν = 1.0681 and η = 1.1408 leads to:
-
bellow are given some of the observer gains:
To test the robustness of the proposed method, two type of disturbances are introduced during the simulation as follows:
-
A variation of sinusoidal form (with a period of one day and amplitude of 5% of the daily average value Sin = 200 g/l) in the influent substrate;
-
Two changes over a period of two days in two kinetic parameters respectively μmax (10%) at t = 10 days, and Kc (10%) at t = 50 days
The goal of the proposed control strategy is to follow the output references as closely as possible. This is well illustrated in Fig. 2 where a comparison is given between the true simulated value, the estimated and the corresponding reference trajectory respectively for the dissolved oxygen concentration Co and the substrate S. The results show the ability of the obtained control law to track the reference trajectories of the controlled variables after a short transient response despite the changes of the set-points. The perturbations of substrate and dissolved oxygen regulation due to considered disturbances are favorably rejected by the controller especially for the dissolved oxygen.
Figure 3 shows the manipulated variables respectively the dilution rate D and the air flow rate Kla. Their dynamics change whenever the reference model changes and the control objective is clearly reached.
Figure 4 represents respectively the reconstructed biomass and recycled biomass . As indicated previously, these two variables are not considered in the tracking problem. Nevertheless, it can be seen in these results that the estimated values of theses states variables are in excellent agreement with their corresponding true simulated values. Despite perturbation in the influent substrate and changes in kinetic parameters, the estimates are smooth and reliable.
Conclusion
In this article, an observer based robust fuzzy tracking controller has been first developed then applied to a strongly nonlinear process with a biological nature. The nonlinear system is equivalently represented by a TS multi-model. Considering that the states are not fully accessible, the stability analysis and design of TS fuzzy system via an observer-based tracking controller satisfying the H∞ performance requirement has been investigated. Controller and observer gains are obtained by solving a set of LMIs. These theoretical points has been then applied to an activated sludge process where the only measured variable available online is the concentration of dissolved oxygen, which is the most realistic and economical choice. The tracking problem of reference trajectories of two state variables (the dissolved oxygen and the substrate) making use of two manipulated variables (the dilution rate and the aeration flow rate) has been addressed. The numerical simulation results illustrate the effectiveness of the proposed method and show good state estimation and tracking performances. Extension of the proposed approach to fault tolerant control is the focus of our future work, we investigate a TS fuzzy Proportional Integral observer-based fault-tolerant control subject to actuators and sensors fault of TS fuzzy positive systems with saturation on the inputs.
Proof of theorem 2
Let consider the following Lyapunov function:
(47)
To achieve the performance (41) and ensure the stability of system (40), the following condition must be realized:
(48)
Let consider the derivative of the Lyapunov function V(ēo):
(49)
Using Lemma 1 leads to:
(50)
(51)
Consequently (48) will be achieved if the following condition (51) holds for :
(52)
(53)
Applying Schur complement to (52) we get:
(54)
By using the variable change Zi = PoLi, the BMIs (bilinear matrix inequalities) (53) are transformed into the LMIs given by (42). This achieves the proof of Theorem 1.