Abstract
This paper presents mathematical models of the simplest fuzzy PID controller of Mamdani type. This controller is called the “simplest” as it employs minimum number of fuzzy sets (two on each input variable and four on output variable) while satisfying the control rule base that contains four rules relating all six input fuzzy sets to all four output fuzzy sets. L - type, Γ - type and Π - type membership functions are considered in fuzzification process of input and output variables. Controller modeling is done via algebraic product AND operator-maximum OR operator-Larsen product inference method-Centre of Sums (CoS) defuzzification process combination. The new model obtained in this manner turns out to be nonlinear, and its properties are studied. Since digital controllers are implemented on the digital processors, the computational and memory requirements of the fuzzy controller and conventional (nonfuzzy) controller are compared. Stability analysis of closed loop systems containing the fuzzy controller models is done using the small gain theorem.
Keywords
Introduction
Conventional (linear) PID controllers are the most widely used controllers in industry (Kumar et al. [28]) due to their ease of implementation and well known tuning methods. However, they generally do not ensure satisfactory performance for nonlinear systems, higher order linear systems and time - delay systems. To overcome this limitation, various kinds of nonlinear PID controllers such as auto tuned and adaptive PID controllers have been developed. In these cases of nonlinear PID controllers usually its analytical structure Lot of trials are required to choose fuzzy sets and control rules and are subject to experience of human control expert. Analysis and precise understanding of the controller is not possible.
In this context, finding analytical structure Analysis and design can be done with the helpof various time-tested nonlinear control methods, thereby minimizing trial and error effort. The structure can be easily implemented on various digital platforms like Field Programmable Gate Arrays (FPGAs), digital computers, microcontrollers etc. at lower price. They can be applied to safety critical industries such as nuclear power plants as stability of the overall control system is guaranteed.
Let us now take a look at the historical developments in fuzzy control technology. The superiority of fuzzy PID controller over conventional PID controller was validated with experimental studies by Lim [3]. Fuzzy rules for tuning of PID controllers for better performance without system identification was presented in Baras and Patel [4]. It has been shown by Mizumoto [5] that PID controllers can be realized by product-sum-gravity method and simplified fuzzy reasoning method. Analytical structure for a fuzzy PID controller and its Bounded Input Bounded Output (BIBO) stability analysis have been studied in Misir et al. [6]. A systematic and hierarchical approach to the design of a hybrid fuzzy-PID controller through the application of a learning - based algorithm was described in Homaifar et al. [7]. The stability of fuzzy controllers is analyzed with the help of passivity theorem by Sio and Lee [8]. Mann et al. [9] investigated different fuzzy PID controller structures. By expressing the fuzzy rules in different forms, each PID structure was distinctly identified. It was shown by Hayashi et al. [10] that nonlinear PID controller, based on conventional PID controller, could be easily realized by applying the simplified indirect fuzzy inference method. Fuzzy PI and fuzzy PD controllers have been combined in parallel to get a fuzzy PID controller by Kim and Oh [11]. A fuzzy gain scheduling scheme that allows for the online replacement and subsequent improvement of existing conventional PID control performance has been developed by Blanchett et al. [12]. Some practical recommendations for replacing control by a human operator with a fuzzy controller, and for choosing the structure and parameters of this fuzzy controller were given in Reznik et al. [13]. Tao and Taur [14] proposed a flexible complexity reduced design approach for PID-like fuzzy controllers. Analytical structures of various fuzzy controllers were presented in the book Ying [15]. Stability analysis, design and real time implementation of some of the developed analytical structures were nicely discussed in this book.
Several forms of decomposed PID fuzzy logic controllers have been tested and compared in Golob [16]. A function-based evaluation approach has been proposed in Hu et al. [17] for a systematic study of fuzzy PID controllers. Analytical structures of fuzzy PID controllers were obtained by Du et al. [19] using triangular membership functions for the input variables, singletons for the output variable, linear control rules and center of area defuzzification. Using the analytical structures it is proved that the fuzzy PID controller is the sum of a global three-dimensional multi-level relay and a local nonlinear controller. When the number of fuzzy sets tends to infinity, the local nonlinear controller will disappear, and the degree of nonlinearity of the fuzzy PID controller becomes zero. Structural analysis of fuzzy controllers with nonlinear input fuzzy sets in relation to nonlinear PID control with variable gains was done by Haj - Ali and Ying [20]. Mann and Gosine [21] proposed a novel algorithm to produce an analytical solution for three-input fuzzy PID systems. They provided an efficient solution algorithm to produce the general fuzzy output solution using a minimum number of nonlinear expressions. Mohan and Sinha [22] have shown that algebraic product triangular norm - bounded sum triangular co - norm - Larsen product inference method - CoS defuzzification method combination leads to a linear fuzzy PID controller. Mohan and Sinha [23] have shown that the analytical structures of fuzzy PID controllers derived via minimum triangular norm are not suitable for control. Mathematical models of fuzzy controllers with arbitrary number of inputs were presented by Du et al. [24]. They investigated BIBO global stability as well as local stability and presented a systematic design procedure for regulating nonlinear plants. Mohan and Sinha [25] introduced an analytical structure for fuzzy PID controller by employing algebraic product triangular norm, bounded sum triangular co - norm, minimum inference method and CoS defuzzification method. They also have derived conditions for stability using the Small Gain theorem. Analytical structures of fuzzy PID controllers and their applications were presented by Edara et al. [26]. An error based on-line rule weight adjustment method for fuzzy PID controller was proposed by Karasakal et al. [27]. Mohan and Neethu [29] have presented a new nonlinear fuzzy PID controller model by using algebraic product triangular norm, bounded sum triangular co - norm, Larsen product inference method and CoS defuzzification. Design procedure for function based fuzzy PD and fuzzy I control in parallel was outlined by Dadam and Eldukhri [30]. Das et al. [31] proposed a novel fractional order fuzzy PID controller and its optimal time-domain tuning. Stabililty analysis of parallel fuzzy P plus fuzzy I plus fuzzy D control systems was done with the help of mathematical models of the controllers (Vineet et al. [32]). Karasakal et al. [33] proposed a method of online tuning of fuzzy PID controllers via rule weighting based on normalized acceleration. Gharghory and Kamal [34] proposed modified PSO for optimal tuning of fuzzy PID controller. Zhang et al. [35] proposed a nonlinear fuzzy PID control algorithm, whose membership function is adjustable. Appling this function to fuzzy control will increase system’s tunability. Effectiveness and feasibility of this function are verified in the simulation and experimental results. Savran and Kahraman [36] proposed a fuzzy model based adaptive PID controller design for nonlinear and uncertain processes. Fereidouni et al. [37] proposed a new adaptive configuration of PID type fuzzy logic controller. Gil et al. [38] proposed a performance driven approach for tuning of fuzzy PID controllers for multi - input multi - output systems.
In the literature very few models of three input fuzzy PID controllers of Mamdani type are available. As the mathematical models of fuzzy logic controller are useful in the analysis, design and implementation, in this paper an attempt is made to derive a nonlinear three - input fuzzy PID controller using L-type, Γ-type and Π-type membership functions for input and output variables, algebraic product AND operator, maximum OR operator, Larsen product inference and CoS defuzzification. We study and compare the computational aspects of the proposed fuzzy controller and the fuzzy PID controller derived via bounded sum OR operator (Mohan and Neethu [29]). We also establish a sufficient condition for BIBO stability of a closed loop control system containing one of these fuzzy PID controller models. The paper is organized as follows: The next section deals with fundamental components of a typical fuzzy PID controller. Section 3 presents mathematical models of two classes of fuzzy PID controllers. Properties of the models are discussed in Section 4. In Section 5 computational aspects of fuzzy PID controller models are discussed. In Section 6 BIBO stability analysis of feedback systems involving the simplest fuzzy PID controller is presented. In Section 7 illustrative examples showing computation of gains of nonlinear plants are provided. Section 8 concludes the paper.
Principal components of a typical fuzzy PID controller
The block diagram of a typical computer controlled system is shown in Fig. 1. For brevity we drop T in kT in the following expressions.
The incremental control effort generated by a discrete-time PID controller is given by:
The inputs are fuzzified by L - type and Γ - type membership functions, shown in Fig. 4, whose mathematical description is given by
Similarly, the mathematical descriptions of the other membership functions on two scaled inputs Δe s (k) and Δ2e s (k) can be defined. Notice that μ N e (e s (k)) + μ P e (e s (k)) =1, ∀ e s (k). This is true for the other two inputs also. The membership functions (ΔU−2, ΔU−1, ΔU+1 and ΔU+2) of the scaled output fuzzy sets are shown in Fig. 5, where Δu s (k) = SΔu · Δu(k).The interval [-B B] represents the universe of discourse of the scaled output. The value of parameter A should lie in . When the value of A = 0 the trapezoidal membership functions ΔU−1 and ΔU+1 become triangular membership functions.
Total eight (23) rules are required as there are two fuzzy sets defined on each of the three input variables. The following is the standard rule base followed in Mohan and Sinha [22]
R1 : IF e s (k) is N e AND Δe s (k) is NΔe AND Δ2e s (k) is NΔ2e THEN Δu s (k) is ΔU−2
R2 : IF e s (k) is N e AND Δe s (k) is NΔe AND Δ2e s (k) is PΔ2e THEN Δu s (k) is ΔU−1
R3 : IF e s (k) is N e AND Δe s (k) is PΔe AND Δ2e s (k) is NΔ2e THEN Δu s (k) is ΔU−1
R4 : IF e s (k) is P e AND Δe s (k) is NΔe AND Δ2e s (k) is NΔ2e THEN Δu s (k) is ΔU−1
R5 : IF e s (k) is N e AND Δe s (k) is PΔe AND Δ2e s (k) is PΔ2e THEN Δu s (k) is ΔU+1
R6 : IF e s (k) is P e AND Δe s (k) is NΔe AND Δ2e s (k) is PΔ2e THEN Δu s (k) is ΔU+1
R7 : IF e s (k) is P e AND Δe s (k) is PΔe AND Δ2e s (k) is NΔ2e THEN Δu s (k) is ΔU+1
R8 : IF e s (k) is P e AND Δe s (k) is PΔe AND Δ2e s (k) is PΔ2e THEN Δu s (k) is ΔU+2
Notice that rules R2, R3 and R4 fire the same output fuzzy set ΔU−1. Therefore, the above researchers used the fuzzy OR operator (s - norm) on the THEN (consequent) parts of rules R2, R3 and R4. Similarly fuzzy OR operator (s - norm) is used on the THEN (consequent) parts of rules R5, R6 and R7. Absolutely nothing wrong in this approach! In practice it is always desirable to have less number of rules. This is possible by clubbing the rules R2, R3 and R4 together into a single rule and R5, R6 and R7 together into a single rule. So, the modified rule base containing only four rules is as follows:
R1 : IF e s (k) is N e AND Δe s (k) is NΔe AND Δ2e s (k) is NΔ2e THEN Δu s (k) is ΔU−2
R2 : IF (e s (k) is N e AND Δe s (k) is NΔe AND Δ2e s (k) is PΔ2e) OR (e s (k) is N e AND Δe s (k) is PΔe AND Δ2e s (k) is NΔ2e) OR (e s (k) is P e AND Δe s (k) is NΔe AND Δ2e s (k) is NΔ2e) THEN Δu s (k) is ΔU−1
R3 : IF (e s (k) is N e AND Δe s (k) is PΔe AND Δ2e s (k) is PΔ2e) OR (e s (k) is P e AND Δe s (k) is NΔe AND Δ2e s (k) is PΔ2e) OR (e s (k) is P e AND Δe s (k) is PΔe AND Δ2e s (k) is NΔ2e) THEN Δu s (k) is ΔU+1
R4 : IF e s (k) is P e AND Δe s (k) is PΔe AND Δ2e s (k) is PΔ2e THEN Δu s (k) is ΔU+2
Notice that the IF (premise) part of rules R2 and R3 contain three parts and are combined by the fuzzy OR operator.
Algebraic product t - norm is considered to perform the AND operation in the rule base, and is defined as
Maximum t-co-norm is considered to perform the OR operation in the rule base, and is defined as:
We consider all possible combinations of three input variables in a 3D space. A point, say (x l , y l , z l ), in a 3D space can always be distinctly shown by taking its projections on the xy, yz and zx planes. So, as shown in Fig. 6, twenty input combinations are considered in each input plane (e s (k) Δe s (k), Δe s (k) Δ2e s (k) and Δ2e s (k) e s (k)) so that the input point (e s (k), Δe s (k), Δ2e s (k)) can be uniquely located in the 3D cell (subspace) represented by the triplet (n a , n b , n c ) where n a , n b , n c = 1, 2, 3,. . . , 20. For example, the triplet (9, 11, 20) represents the 3D cell with 9 from (a), 11 from (b), and 20 from (c) of Fig. 6. A cell is said to be valid if and only if the relations between e s (k) and Δe s (k), and Δe s (k) and Δ2e s (k) produce the relation between Δ2e s (k) and e s (k). For example, the cell (13, 14, 16) is a valid cell because the relations |Δe s (k) | ≥ e s (k) (valid in 13 of Fig. 6(a)) and |Δ2e s (k) | ≥ |Δe s (k) | (valid in 14 of Fig. 6(b)) will produce the relation |Δ2e s (k) | ≥ e s (k) which is valid in 16 of Fig. 6(c). The control rules R1 to R4 are used to evaluate appropriate control law in each valid cell (n a , n b , n c ). Let the outcomes of premise part of rules R1, R2, R3 and R4 be μ−2, μ−1, μ+1 and μ+2 respectively. By using the algebraic product triangular norm and the maximum triangular co - norm, the values of μ−2, μ−1, μ+1 and μ+2 are found in each valid cell and are shown in Table 1.
Inference engine
Larsen product inference method is used here. The expression of μ−2 is used to modify the reference output fuzzy set ΔU−2 in rule R1. Similarly, the expressions of μ−1, μ+1, μ+2 are used to modify ΔU−1, ΔU+1 and ΔU+2, respectively. The reference membership functions and inferred membership functions (, , and ) obtained after employing Larsen product inference are shown in Fig. 5 with hatching.
Defuzzification module
Defuzzification is done here using the well known Centre of Sums (CoS) method (Drainkov et al., [2]). According to this method, the crisp value of scaled control output is given by
=
=
=
=
=
=
=
=
We have the following two classes of controllers:
The models obtained in Mohan and Neethu [29] are presented here with the notation followed in this paper for the sake of completeness.
For simplicity let h1 = h e , h2 = hΔe, h3 = hΔ2e, x1 = e s (k), x2 = Δe s (k), and x3 = Δ2e s (k). Then upon substituting the values of μ−2, μ−1, μ+1 and μ+2, defined in Table 1, in and in Equation (5), we have the following expressions for class 1 controller:
Properties of the simplest fuzzy PID controllers
Fuzzy controllers presented in the previous section possess certain interesting properties which are discussed here. The control surface generated by Δu
s
(k) is continuous at any point in the 3D input space. This can be verified by calculating the data of Δu
s
(k) at various points in the 3 - dimensional input space. The magnitude of incremental control effort increases monotonically as the distance of the input point increases from the origin of 3D input space. Fuzzy PID controllers are different nonlinear controllers. This is evident from the expressions of Δu
s
(k) in Section 3. Fuzzy PID controllers are variable structure controllers as their structures are different in different input cells. The minimum incremental control effort,given by , occurs at (e
s
(k), Δe
s
(k), Δ2e
s
(k)) = (−h
e
, −hΔe, −hΔ2e). See Case 2 of Section 3. The incremental control effort is zero at the origin of 3D input space. The maximum incremental control effort, given by , occurs at (e
s
(k), Δe
s
(k), Δ2e
s
(k)) = (h
e
, hΔe, hΔ2e). See Case 2 of Section 3.
Computational aspects of the simplest fuzzy PID controllers
Conventional PID controllers are still widely used in industries because they provide control output quickly. The computational delay introduced by them in the loop is almost insignificant. In fact, it is the smallest when compared with any other control scheme. It can be seen from the mathematical model of PID controllers (Equation 2) that they require only two mathematical operations (additions). But conventional PID controllers do not work satisfactorily for nonlinear, higher order and time - delay systems. Nonlinear controllers like fuzzy controllers will provide better performance for such systems. As the mathematical models of different classes of the simplest fuzzy PID controllers are available, we can find the number of mathematical operations and memory locations required during their implementation. The number of such mathematical operations and memory locations required for class 1 fuzzy controller is explained here first.
The expression for class 1 fuzzy controller in cell (13, 14, 16) is
We call the operations required for computation of Nc1, Nc2,....Nc12, Dc1, Dc2, Dc3 and Dc4 as off - line operations because, once they are computed they can be stored in memory locations so that these stored values can be used at every kth instant. Hence the total number of mathematical operations and memory locations required during the implementation of class 1 fuzzy controller to compute Δu s (k) at kth instant are 53 and 16, respectively. Similarly the mathematical operations and memory locations required during the implementation of class 2 controller in cell (13, 14, 16) are 39 and 10, respectively. Thus, as far as computational aspects are concerned, class 2 controller is better than class 1 controller.
From the mathematical models of class 1 fuzzy controller in different cells, it can be observed that the computational and memory burden on digital controller is the same when all the three inputs lie in the inner cuboid (Case d in Table 1) and is the highest when compared to that in Cases a, b, and c. This is true even for class 2 fuzzy controller. As we are comparing the computational and memory burdens on digital computer during the implementation of different classes of fuzzy controllers it is good enough to consider the cell (13, 14, 16) where the computational effort is maximum. The number of mathematical operations required to compute e s (k) and Δe s (k), and Δ2e s (k) using e(k), e(k − 1), e(k − 2), S e , SΔe and SΔ2e is the same for both the classes of simplest fuzzy PID controllers, and hence they are not counted here in the relative assessment.
BIBO stability analysis of feedback systems containing the simplest fuzzy PID controller
Using the Small Gain theorem [1] we establish the sufficient condition for BIBO stability of feedback systems that contain the class 1 PID controller. Consider the feedback system shown in Fig. 7. According to the small gain theorem, if γ1 (G1), the gain of G1, and γ2 (G2), the gain of G2, have a product smaller than unity, then any bounded - input pair (u1, u2) produces a bounded - output pair (y1, y2). We consider the general case wherein the process G2 under control is nonlinear, denoted by N. If the plant is continuous - time plant, then we discretize it and use in digital computer simulation. Hence, by defining r(k) = u1(k), u(k − 1) = u2(k), Δu(k) = y1(k) = G1e1(k), y(k) = y2(k) = Ne2(k), e(k) = e1(k) and u(k) = e2(k) in Fig. 7, we obtain an equivalent closed - loop system as shown in Fig. 1. Let
M e = = ; S e · M e = h e = h1
MΔe = = ≤ 2M e ; SΔe · MΔe = hΔe = h2
MΔ2e = = ≤ 2MΔe or 4M e ; SΔ2e · MΔ2e = hΔ2e = h3
From the mathematical model of class 1 fuzzy controller in the cell (13, 14, 16) we get
∥Δu(k)∥ = ∥y1(k)∥ = ∥G1e1(k)∥ = ≤
where Q = S e SΔee1(k) {e1(k) − e1(k − 1)}] SΔ2e {e1(k) −2e1(k − 1) + e1(k − 2)}
and R = 18B [3h1h2h3 +(h3S e e1(k) + h1SΔ2e {e1(k) −e1(k − 1) + e1(k − 2)}) SΔe {e1(k) − e1(k − 1)} − h2S e SΔ2ee1(k) {e1(k) −2e1(k − 1) + e1(k − 2)} +2h2(h3S e e1(k) − h1SΔ2e {e1(k) −2e1(k − 1) + e1(k − 2)})]
Considering the other class of controller as a subsystem instead of class 1 controller, the expression obtained for γ1 is the same as in Equation (6). Next, we have
At origin, ∥Δu(k)∥ = 0. This implies that γ1 = 0. Since γ1 = 0 and γ2 = ∥N∥, to ensure γ1γ2 < 1, ∥N∥ < ∞ follows. So, the sufficient condition for the nonlinear fuzzy PID control system to be BIBO stable can be stated as follows:
the given nonlinear process N has a bounded norm, i.e., ‖N‖ < ∞, and the parameters S
e
, SΔe, SΔ2e, h1, h2, h3, A,B and SΔuof fuzzy PID controller should satisfy the inequality.
Here we consider couple of examples and show how to compute γ2 = ∥N∥ using Theorem 5.1 in [18].
By choosing the Lyapunov function , we have where c1 and c2 are positive constants in Equation (5.6) of [18].
Since , c3 = 1 where c3 is a positive constant in Equation (5.7) of [18].
Moreover, since , c4 = 1 where c4 is a positive constant in Equation (5.8) of [18].
Now |f(x, u) − f(x, 0) | = | − x − x3 + u + x + x3| = |u| and |h(x, u) | = |x|. Hence, from Equations (5.9) and (5.10) of [18] we have L = 1, η 1 = 1 and η 2 = 0 where L, η 1 and η 2 are nonnegative constants. Therefore .
Using V as a Lyapunov function candidate for the unforced system, we have
= and positive definite V. Thus, V satisfies Equations (5.6)–(5.8) in [18] with c1 = 0.6909, c2 = 1.809, c3 = 0.5 and c4 = 3.618. The functions f1, f2, and h satisfy Equations (5.9) and (5.10) in [18] globally with L = η1 = 1 and η2 = 0.
Hence, = 18.9461
Since finding V to a nonlinear system is not easy, finding γ2 = ∥ N ∥ is also equally difficult, in general.
Conclusions
In this paper, a new mathematical model for a fuzzy PID controller has been derived using L-type, Γ-type and Π-type fuzzy membership functions, algebraic product triangular norm, maximum triangularco - norm, Larsen product inference method, and CoS defuzzification method. The model obtained is shown to be nonlinear. Sufficient conditions for a closed loop system with fuzzy PID controller in the loop to be BIBO stable are established. We believe that this work helps in replacing the conventional PID controllers by fuzzy controllers for better performance.
