You are on page 1of 8

ADAPTIVE FUZZY OUTPUT TRACKING CONTROL OF MIMO NONLINEAR

UNCERTAIN SYSTEMS
Document By
SANTOSH BHARADWAJ REDDY
Email: help@matlabcodes.com
Engineeringpapers.blogspot.com
More Papers and Presentations available on
above site

Abstract - A fuzzy logic controller equipped Engineering, National Institute of Technology Calicut, Kerala,
India.
with adaptive algorithm is proposed in this work
Fuzzy control methodology gives a promising way
to achieve tracking performance for a class of
to deal with the control problems of nonlinear
uncertain nonlinear single-input single-output
systems containing highly uncertain nonlinear
(SISO) systems. The extension of this method
functions. It has been shown that fuzzy logic
for a class of uncertain multiple-input-multiple-
systems can be used to approximate any
output (MIMO) nonlinear systems are suggested
nonlinear function over a compact region [4],
as the next stage. Simulation examples are given
based on this observation, many systematic fuzzy
finally to illustrate the performance of the
controller design methods have been developed to
proposed method (for the case of SISO systems
solve output tracking control problems for SISO
results are provided).
systems with unknown non linearties as well as to
I. Introduction
MIMO systems.
Fuzzy theory has recently found extensive
Adaptive fuzzy control system has been
application for a wide variety of industrial systems
developed to incorporate the expert information
and consumer products and has attracted the
systematically and the stability is guaranteed by
attention of many control researchers due to its
theoretical analyses [4], and [5]. An adaptive fuzzy
model free approach. The fuzzy control systems
system is a fuzzy logic system equipped with a
attempt to make use of the knowledge from the
training algorithm, in which the fuzzy logic system
human experts. The expert information is generally
is constructed from a collection of fuzzy IF-THEN
represented using fuzzy terms, e.g., small, large, not
rules, and the training algorithm adjusts the
very large, etc., for convenience or lack of more
parameters of the fuzzy logic system according to
precise knowledge, ease of communication, and so
input-output data. Conceptually, adaptive fuzzy
on [1-3].
systems combine linguistic information from
experts with numerical information from sensors.
* Subba Rao Puvvadi is with Department of Electrical
Engineering, NIT Calicut, India (e-mail: puvvadi290@gmail.com) Linguistic information can be directly incorporated,
**Dr. Abraham T Mathew is with the Department of Electrical since fuzzy logic systems are constructed from
Engineering, NIT Calicut, India (e-mail: atm@nitc.ac.in) This work
fuzzy IF-THEN rules.
was supported in part by the Department of Electrical

1
Stable adaptive fuzzy control schemes have The paper is organized as follows the
been introduced for SISO nonlinear systems. After formulation of problem is given in section II. Fuzzy
this the corresponding adaptive fuzzy control logic systems are briefly discussed in section III
scheme is extended to MIMO nonlinear systems. and adaptive fuzzy tracking control for the case of
The basic idea of this approach is to use the fuzzy SISO system given in the section IV. Then
logic systems to approximate the unknown nonlinear simulation example is provided in section V for
functions in systems and the adaptive controller is illustration.
designed by using Lyapunov stability theory [6] and II. Problem Formulation
[7]. Consider the following nth order SISO system
To avoid the problem of matching error ( ) ( )
x ( n ) = f x, x ,......... .x ( n −1) + g x, x ,......... .x ( n −1) u
condition, the backstepping design technique is y =x
used to design the adaptive fuzzy system. With the (1)
backstepping design technique, fuzzy systems were where f and g are unknown but bounded
mostly applied to approximate the unmatched and continuous functions and u∈ R and y∈ R are the
unknown nonlinearities, and then implement scalar input and scalar output of the system
adaptive control using the conventional control
respectively. Let x = ( x, x ,.... x ( n −1) ) T ∈R n be
technology [8]. This backstepping technique is used
the state vector of the system, which is assumed
in designing the control algorithm for the case of
to be completely available for measurement using
MIMO system.
appropriate transducers. For the system of Eq. (1)
For MIMO nonlinear systems, the control
problem is very complicated due to the couplings to be controllable, we require that g ( x ) ≠ 0 for

among various inputs and outputs [9]. It becomes, in an x in certain controllable region in the state
general very difficult to deal with the control design space.
due to the presence of uncertain parameters and The control objective is to force y to follow
unknown nonlinear functions in the input-output a given bounded reference signal ym, and θ is the
coupling matrix. It has been noticed that in parameter of the system. Let us denote the output
comparison with the vast amount of results on tracking error e and the parameter tracking error
controller design for SISO nonlinear systems in the ~
θ
control literature, there are relatively fewer results
e = ym − y
available for the class of MIMO nonlinear systems. ~ (2)
θ = θ −θ *
Based on feedback linearization, several adaptive
control schemes have been proposed for certain for some parameter estimate θ of a system and

classes of MIMO nonlinear systems. One method optimal parameter estimate θ ∗ of fuzzy logic
has been adopted and the investigation is in system. Then our design objective is to impose an
progress. adaptive fuzzy control algorithm so that following
asymptotically stable tracking

2
e ( n ) + k1e ( n −1) + .......... .... + k n e = 0 (3) compositional rule of inference. The fuzzufier

is achieved. Indirect adaptive fuzzy control algorithm maps a crisp point x = ( x, x ,....., x ( n −1) ) T into
employed to control the nonlinear SISO system in a fuzzy set in U. The defuzzifier maps a fuzzy set
Eq (1) and the algorithm is given in the chapter IV. in U to a crisp point in V.
The fuzzy logic systems with center
III. Description of fuzzy logic system average defuzzifier, product inference and
As it is mentioned the fuzzy logic systems are singleton fuzzufier in the following form

∑y ( ∏ )
universal approximations [4] from the viewpoint of M
n
human experts and can approximate nonlinear
l
i =1
µF ( xi ) l
i
y( x ) = l =1

∑( ∏ )
M (5)
continuous functions. The fuzzy logic systems in Fig. n
i =1
µF ( xi )
l
1 qualified as building blocks of adaptive controllers l =1
i

for nonlinear systems. Furthermore the fuzzy logic


where yl is the point at which µG achieves its
l

systems are constructed from the fuzzy IF-THEN


maximum value, and we assume that
rules using some specific inference, fuzzification,
and defuzzification strategies. Therefore, linguistic µG l ( y l ) = 1. µFi j ( xi ) is the membership of the
information from human experts can be directly
variable xi.
incorporated into controllers.
Eq. (5) can be written as
y( x ) = θ T ξ ( x ) (6)

θ = ( y 1 ,........, y M )
T
where is a parameter

vector, and ξ ( x ) = (ξ1 ( x ),......., ξ M ( x )) T is

a regressive vector with the regressor ξ l (x )


Fig. 1. The basic configuration of fuzzy logic system
defined as
The basic fuzzy logic system is shown in


n
Fig. 1. The fuzzy logic system performs a mapping
i =1
µ F ( xi ) l
ξ (x) =
l i

∑( ∏ )
from U∈R to V∈R. The fuzzy rule base consists of a M
n
collection of fuzzy IF-THEN rules [3] i =1
µ F ( xi ) l
i
l =1
R (l) : IF x1 is F1j, and...and, xn is Fnj, THEN y is Gj (4)
(7)
where x = ( x, x ,......... .x ( n −1) ) T ∈U and y∈V Two main reasons arise for using the fuzzy logic
are the input and output of the fuzzy logic system system by Eq. (7) as basic building block of
j j
respectively, and V is the crisp set. Fi and G are adaptive fuzzy controllers. First, the fuzzy logic
labels of fuzzy sets Ui and y, respectively, and i=1, systems in the form of Eq. (7) are proven to be
….M, V is the crisp set of output variable y. The universal approximaters, i.e., for any given real
fuzzy inference engine performs a mapping from continuous function f on the compact set U, there
fuzzy sets in U to fuzzy sets in R, based upon the exists a fuzzy logic system in the form of Eq. (7)
fuzzy IF-THEN rules in the fuzzy rule base and the

3
such that it can uniformly approximate f over U to Conventional adaptive controllers are of
arbitrary accuracy. Second, the fuzzy logic systems two types i.e. direct and indirect adaptive
of Eq. (7) form are constructed from the fuzzy IF- controllers in the similar way the adaptive fuzzy
THEN rules of Eq. (4) using some specific fuzzy control is also divided into two categories as direct
inference, fuzzification, and defuzzification and indirect adaptive fuzzy control. An adaptive
strategies. Therefore, linguistic information from a fuzzy controller, which uses fuzzy logic systems as
human expert can be directly incorporated into the controllers, is a direct adaptive fuzzy controller. A
controllers. direct adaptive fuzzy controller can incorporate
IV. Adaptive Fuzzy Controller For A SISO System fuzzy control rule directly into itself. An adaptive
Adaptive control is a useful approach in maintaining fuzzy controller, which uses fuzzy logic systems as
the consistent performance of a system in the a model of the plant, is an indirect adaptive fuzzy
presence of the uncertainties [10]. An adaptive fuzzy controller. An indirect adaptive fuzzy controller can
system is a fuzzy logic system equipped with an directly incorporate fuzzy descriptions about the
adaptive algorithm to maintain a consistent plant (in terms of fuzzy IF-THEN rules) into itself
performance under plant uncertainties. The most [5]. Indirect adaptive fuzzy control algorithms are
important advantage of adaptive fuzzy control over tried in this work to facilitate the control of
conventional adaptive control is that adaptive fuzzy uncertain nonlinear system of Eq. (1) to achieve
controllers are capable of incorporating linguistic the desired tracking performance. The design
fuzzy information from human operators, whereas procedure as given below.
conventional adaptive controllers are not [10]. This is If g ( x ) is known in Eq. (1), the direct
especially important for those systems with a high adaptive fuzzy control has attempted to directly
degree of uncertainty. For examples, in chemical approximate the following control law
processes and in aircraft industry, they are difficult to
1
control from a control theory point of view and are u = [ − f ( x ) + y m( n ) + k T e ] (8)
g(x)
often successfully controlled by human operators.
with this control law we can achieve the following
However, human operators successfully control
error dynamics of the system similarly as Eq. (3)
such complex systems without a mathematical
model in their mind but only according to a few e ( n ) + k1e ( n −1) + .............. + k n e = 0
control rules in fuzzy terms and some linguistic the results in Eq. (8) and Eq. (3) are possible only
descriptions regarding the behavior of the system while f ( x ) and g ( x ) in nonlinear system Eq.
under various conditions, which are, of course, in
(1) are well known. However f ( x ) and g (x )
fuzzy terms. They provide very important information
are unknown in our problem. Obtaining a control
about how to control the system and how the system
algorithm similar to Eq. (8) is impossible. In this
behaves. Adaptive fuzzy control provides a tool for
situation approximation by fuzzy logic systems in
making use of the fuzzy information in a systematic
section III is employed to treat this tracking control
and efficient manner for certain control systems.

4
design problem. We replace f (x ) and g (x ) in Eq. since Λc is a stable matrix, we know that there
exists a unique positive definite symmetric matrix
(8) by the fuzzy logic systems fˆ ( x θf ) and
n × n matrix P which satisfies [12]
ˆ ( x θg ) as Eq. (6) i.e.,
g
ΛTc P + PΛc = −Q (15)
fˆ ( x θ f ) = θ f ξ ( x ) = ξ T ( x )θ f
T
(9) Our design objective involves specifying

fˆ ( x θ f ) = θ f ξ ( x ) = ξ T ( x )θ f the control u and adaptive laws θf and θg


T
(10) , so
that output tracking performance is achieved.
where ξ( x ) is a vector of fuzzy bases, θf and
First, let us define the optimal parameter estimates
θg are corresponding parameters of fuzzy
θf* and θg* as follows:
systems. Consequently the following controller is
obtained θ f ∗ = arg min θ [sup x∈Ωx fˆ ( x / θ f ) − f ( x ) ]
f ∈Ω f

u=
1
gˆ ( x θ g )
[
− fˆ ( x θ f ) + y m
( n)
+kT e ] (11)
(16)

θg ∗ = arg min θg∈Ωg [sup x∈Ωx gˆ ( x / θg ) − g ( x ) ]


applying Eq. (11) to Eq. (1), after some
manipulations, we obtain the tracking error dynamic (17)
equation as where Ωf , Ωg ,and Ωx denote sets of
e ( n ) = −k T e +[ fˆ ( x / θ f ) − f ( x )] +[ gˆ ( x / θg ) − g ( x )] u
suitable bounds on θf , θg and x respectively.
(12) We assume that the parameters never exceed
or equivalently their bounds. Then the tracking error Eq. (13) will
ˆ
e = Λc e + bc [( f ( x / θ f ) − f ( x )) + ( gˆ ( x / θ g ) − g ( x ))become
u]

(13) e = Λce + bc [( fˆ ( x / θ f ) − fˆ ( x / θ f* )) + ( gˆ ( x / θg ) − gˆ ( x / θg* )) u


where (18)
 0 1 0 0 .. .. 0 0  From Eq. (9) and Eq. (10), Eq. (18) can be written
 0 0 1 0 .. .. 0 0 
  as
Λc =  .. .. .. .. .. .. .. ..  ~ ~
  e = Λc e +bc [ξ T ( x )θ f +ξ T ( x )θg u ] (19)
 0 0 0 0 .. .. 0 1  ~ ~

− k n − k n −1 .. .. .. .. .. − k1 
 where θ f = θ f −θ f* and θ g = θ g −θg* . And the

0 above system to be stable the Lyapunov function


..  V to be positive definite and its derivative should
 
bc = ..  (14) be a negative definite, let the Lyapunov function
 
..  be chosen as

1  1 T 1 ~T ~ 1 ~T ~
V = e Pe + θf θf + θg θg (20)
2 2γ 1 2γ 2

5
For this Lyapunov function to be positive definite and
its derivate to be negative definite the adaptive laws
chosen as

θ f = −γ 1ξ ( x )bc T Pe (21)

θ g = −γ 2ξ ( x )bc T Pe u (22)

Summarizing all the above points to implement an


indirect adaptive fuzzy control for a given SISO
system the following design procedure has to be Fig. 2. Inverted pendulum system
followed Consider the inverted pendulum system
as in Fig. 2. The dynamic equations of the inverted
Design procedure: pendulum system are [5]
Step 1: Select membership functions µi (x ) for x1 = θ
i =1,2,…..M and compute the fuzzy basis x1 = x2 ,
functions ξ( x ) as in Eq. (7).  mlx22 cos x1 sin x1   4 m cos 2 x1 
x 2 =  g sin x1 −  l ( − )
Step 2: Select matrix Q, γ and r.  mc + m   3 mc + m 
Step 3: Specify the coefficients ki, i = 1,2,..,n.  cos x1   4 m cos 2 x1 
+  l ( − ) u + d
Step 4: Solve the equation Eq. (15) to get matrix P.
 mc + m   3 mc + m 
Step 5:Compute the indirect adaptive fuzzy control y = x1
law as
(23)
u=
1
gˆ ( x θ g )
[− fˆ ( x θ f ) + y m
(n)
+ kT e ] where g=9.8m/s2 is the acceleration due to gravity,
mc is the mass of the cart, m is the mass of the
and the adaptive laws are implemented as in Eq.
pole, l is the half-length of the pole, u is the
(21)and Eq. (22).
applied force. The reference signal assumed to be
V. Simulation Example
a sinusoidal signal with amplitude as 1. Also we
For illustrating the above-mentioned method the
assume that mc = 10kg, m = 1kg, l =3m.the
control problem of inverted pendulum has been
external disturbance d is assumed to be a square
taken as an example.
wave of amplitude ± 0.05 and the period 2π .
The system is simulated without
considering a controller, and also by making the
system as linear taking the x1 as very small value.
The result is given in Fig. 3. A fuzzy controller is
implemented to track the output of the system and
the result is shown in Fig.4. Then an adaptive
fuzzy controller designed for this inverted

6
pendulum following the below steps and the result is
shown in Fig. 5.
Step 1:Selected the membership functions µi (x )
for i =1,2 and computed the fuzzy basis
functions ξ( x ) as in Eq. (7). Here
membership functions taken as the
Fig. 5. Output of the inverted pendulum system
Gaussian membership functions.
with adaptive fuzzy controller
Step 2:Selected Q as 10 I 2×1 ,γ 1=0.1, γ 2=0.01
First the system is simulated with out any
and r=0.08. controller the output (Fig. 3) of this system is not
Step 3: Coefficients selected as k1=2 and k2=1. following the input, and then the system is made
Step 4: Eq. (15) has solved for getting the matrix P. linear by approximating the x1 as very small
Step 5:Computed the direct adaptive fuzzy control quantity simulated the system by using the fuzzy
law as in Eq. (11) and the adaptive control controller and the result (Fig. 4) shows that the
laws as in Eq. (21) and Eq. (22). output tracking the input. But in this case if we
apply input with combining two waves it is not
following the input. The system is simulated with
the adaptive fuzzy controller in the loop. The result
(Fig. 5) shows that the output following the input
almost without any disturbance and if we apply
even a disturbance in the system output is tracking
the input. Even if we give the input as combination
of the waves the output is seen tracking the given
input.
Fig. 3. Output of the inverted pendulum system
The adaptive fuzzy control algorithm is
without any controller
applied to the MIMO system and the simulation of
the system will be done in the next stage of work.
Conclusion
Adaptive fuzzy tracking control method for
the case of SISO system has been presented and
also the method was applied to the inverted
pendulum by considering it as a nonlinear system.
The results of the inverted pendulum for two cases
linear and nonlinear model are shown. The
unknown nonlinear functions were approximated
Fig. 4. Output of the inverted pendulum system with
using fuzzy logic and result shows that output is
fuzzy controller

7
tracking the input exactly even in the presence of [9] X. P. Liu, A. Jutan, and S. Rohani, “Almost
disturbance in the system. Application of this disturbance decoupling of MIMO nonlinear
adaptive fuzzy control method to MIMO system is systems and application to chemical
the future work pending. processes,” Automatica, vol. 40, no. 3, pp.
References 465–471, 2004.
[1] C.C.Lee, “Fuzzy logic in control systems: Fuzzy [10] C. Y. Sue and Y. Stepanenko, “Adaptive
logic controller, Part I,” IEEE Trans. on syst., control of a class of nonlinear systems with
Man, and Cybern., Vol 20, No.2, pp.404- fuzzy logic,” IEEE Trans. Fuzzy Syst., vol. 2,
418,1990. no. 1, pp.285–295, Feb. 1994.
[2] C.C.Lee, “Fuzzy logic in control systems: Fuzzy [11] S. S. Ge and C. Wang, “Adaptive neural
logic controller, Part II,” IEEE Trans. on syst., control of uncertain MIMO nonlinear systems,”
Man, and Cybern., Vol 20, No.2, pp.419- IEEE Trans. Neural Networks, vol. 15, no. 3,
435,1990. pp. 674–692, May 2004.
[3] Drainkov, Hellendoorn, and Reinfrank, ”An [12] Khalil, Hassan K “Nonlinear systems,”
introduction to fuzzy control,” Narosa publishing Prentice Hall, 1996.
house, 1993.
[4] L. X. Wang and J. M. Mendel, “Fuzzy basis
functions, universal approximation, and Document By
orthogonal least squares learning,” IEEE Trans. SANTOSH BHARADWAJ REDDY
Neural Networks, vol. 3, no. 5, pp. 807–814,
Email: help@matlabcodes.com
Sep. 1992. Engineeringpapers.blogspot.com
[5] B. S. Chen, C. H. Li, and Y. C. Chang, “H
∞ More Papers and Presentations
tracking design of uncertain nonlinear SISO available on above site
systems: Adaptive fuzzy approach,” IEEE
Trans.Fuzzy Systems, vol. 4, no.1, pp. 32–43,
Feb. 1996.
[6] L. X.Wang, “Stable adaptive fuzzy control of
nonlinear systems,” IEEE Trans. Fuzzy
Systems, vol. 1,no. 2, pp. 146–155, May 1993.
[7] Kumpati S Narendra, Anuradhu K
Annaswamy,”stable adaptive systems”, Prentice
Hall, 1989.
[8] B.Cheng, X. Liu and S. C. Tong, “Adaptive fuzzy
output tracking control of MIMO nonlinear
uncertain systems,” IEEE Trans. Fuzzy systems,
vol. 15, no. 2, pp. 287–300, April 2007.

You might also like