Proceedings of the American Control Conference San Diego, California June 1999
Robust Discrete-Time Fuzzy Control of Composite Nonlinear Systems
by Tuning Consequent Membership Functions
Wei-Song Lin' and Chih-Hsin Tsai
Institute of Electrical Engineering, National Taiwan University, Taiwan, R.O.C.
Fax: 886-2-23638247 Tel: 886-2-23635251 ext. 413
E-mail weisong@cc.ee.ntu.edu.tw
Abstract
A discrete-time fuzzy controller is proposed to achieve the robust tracking control of composite multivariable nonlinear systems. The control strategy is to decouple the subsystems and to facilitate the robust property by fine-tuning the consequent membership functions of the fuzzy controllers. An on-line tuning mechanism enables the discrete-time fuzzy system to effectively deal with the equivalent uncertainty resulted by function approximation error, disturbance, measurement noise or effect of interconnection among subsystems. Using Lyapunov stability theory, the tracking error residual set of the overall system with the proposed controller has been proved to be uniform ultimate bounded. Simulation results of a two-link robot control demonstrate the effectiveness and robustness of the design.
1. Introduction
Recently, increasing emphasis has been put on the issues of stability, robustness, and convergence performance of the fuzzy control systems [3]. Using Lyapunov-based learning algorithms, stable adaptive fuzzy controllers have been achieved to ensure stability of the control loop and well-defined behavior of the plant output [4][5][6][7]. Except for single variable systems, the works in [5], [6], and [7] have further investigated stable adaptive multivariable fuzzy control schemes with the fuzzy basis functions either in continuous-time or discrete-time domain. Despite the success of adaptive fuzzy control based on fuzzy basis functions allows the inclusion of a priori knowledge about the plant control. The rules in the form of "IF situation THEN the value of some nonlinear function" are inherent of the plant dynamic rather than the familiar expressions of human expert knowledge. As an improvement, this paper develops a robust fuzzy controller with fuzzy rules in the form of "IF situation THEN the control input". This form of rules not only preserves the superior advantage of the fuzzy systems but also has direct translation from linguistic rules provided by a human expert. Furthermore, since the theory of function approximation using multi-layer fuzzy system has been employed, we come to the second level of endeavor: guaranteeing the robustness of the control against function approximation error, disturbance, measurement noise and effect of interconnection among subsystems.
At this venue, this paper proposes to use two adaptation mechanisms to achieve the goal of robust design. Firstly a parameter adaptation scheme which is widely used in adaptive fuzzyheural control laws [1][4][5] is adopted to adapt the parameters of the multi-layer fuzzy systems. Then a fine-tuning mechanism of the consequent membership functions of the fuzzy part is proposed and applied to considerably reduce the tracking error residual set. This design obtains robustness in the sense that the fine-tuning mechanism can automatically adapt the controller to react to the effect of equivalent uncertainties of the unknown plant dynamics. The overall adaptation scheme has been proved to be able to guarantee the tracking error residual set to be uniform ultimate bounded.
2. The control problem
Consider an mn"-order nonlinear composite discrete-time system in the controllable canonical form
y ( k + n ) = f ( x ( k ) ) + G ( x ( k ) ) u ( k ) + z ( x ( k ) , u ( k ) , k )
Z(k) = x ( k ) + n , ( k ) (1)
j ( k ) = y ( k ) + n , ( k )
where y
,
7
ER"
,
andx ,
X
ER""
denote the output, measured output, state and measured state vectors, respectively,x = [ y , ( k ) ;.., y p ( k ) , Y , ( k + l ) , . . . , Y ~ ( k + I ) , . . . , Y , ( k + n - 11,
....ym( k+n-l)]';
f ER"',
G=Blockdiug [g,(k)]~R" are unknown smooth functions satisfying the mild assumptionI
g,
( x ( k ) ) l lg,, > 0 , Vx
, withg,,
being an unknown lower bound. This assumption implies thatg,
is strictly either positive or negative for all x.
Hereafter, without loss of generality, it is assumed thatg,
is strictly positive. u ( k ) E R" is the system input; =(x(k),u(k),
k ) ER"
denotes the unknown interaction among the subsystems and the time-varying disturbance. The exogenous signals nx andn,
are assumed to have the properties of standard smoothness and boundedness. Let y ,(k)
ER"
and ~ ( k ) E R"denote the reference output and input, respectively. The aim of control is to make (1) track a linear reference model of the following form
y,
( k
+
n)
=( k )
+
A;y,&,
( k
+
1)+..
.+
A ; y , ( k + n - l ) + v ( k ) (2) where the constant matrices A, = [d,,,A2;..,AW]
ER",
j = l , . . . , n are selected so that (2) is asymptotically stable, and the tracking error represented by e = [ e l , . - . , e , , , ] r
n-1)-y,(k+n-1)]~ will ultimately be attenuated to residual tracking error set.
e,
=[L,(k)-Y,(k),y,(k+l)-
y , ( k + l ) ; . . , Y , ( k +3. Design of the robust fuzzy controller
Fig. 1 shows the configuration of the proposed robust with
small
fuzzy control system with fine-tuning on the consequent membership functions. Fig. 2 shows the proposed synaptic connection topology of the I+" fuzzy system of the multi-layer fuzzy system.
Considering the request of numerical input and output of the fuzzy system, a particular class of fuzzy system with the singleton fuzzified, algebraic product T-norm, the sup star compositional operator [4] and the local mean-of-maximum [I] method is used. The basic components of the multi-layer fuzzy system and its fine-
tuning mechanism will be discussed and formulated in the following paragraph.
Fuzzy Rule Base: A multivariable system can be controlled by the following N + I linguistic rules
RI: IF
2
is A' THEN U isB'
f o r j = l ,..., N + l The components of the fuzzy set vectors A' andB'
are linguistic terms characterized by the fuzzy membership functionsp,:(X,)=exp(-(X, - m : ) * / U : ) k = l , . . . , m n (3) and (l+((c,' - u , ) / u L , ) z ) - ' , ij-U,
s c ;
(1 +((U, - c;) / U R J 2 ) - l , ij-U, > c:,
i = l , . - . , m PB! (U,) = (4) where { a : , mi } and {U,, uRj,
c,' } are referred to the premise and consequence parameters, respectively.Rule Credit Assignment: Denote
w /
>
1 (orwi
<
1 )as
a reward (or a punishment) ffered to the J"' rule, then the consequentmembership functions (4) can be reshaped into
( 5 ) (1 +(o,'(c; - u , ) / u L j ) z ) - ' , i j - U , IC,/ (l+(w,'(u, - c , ' ) / u R , ) ~ ) - l ,
ifu,
> c ; 0,; ~ / ( A ' ( x o ) , ~ , ' ( ~ , ) ){
Pg,, ( U , ) =and the recommendation fuzzy output of each rule becomes
=i""
.;,(xu), foru, =F,' (6) otherwisewhere
..."
is the multiplication operation,I
is the implication function PI,P'
(XI
=ns,
pUa:(9
x
) denotes the given input and the matching degree, respectively,z i
denotes the location of the singleton implication fuzzy set and is defined asc,'
=the centroid
of the
set { u i : pz! (U,) 2pi(?)}
(7) Using ( 5 ) . (7) can be resolved into-
(8)
-
c,' = C<J - U , & P J
J-1";
where a , = ( a , - a , ) / 2 .
Fine-tuning mechanism: Physically, the parameter
aLRi
represents the difference between the left and right spreads of the consequent membership functions. In traditional fuzzy logic control system, ULi is set to be equivalent toaRi
or the consequent membership is just in singleton form [4]. In this paper, this term is employed as a robust control component and a robust adaptive law for it is proposed in the next section.Analytical formulation of the multi-layer
firzzv
system: Using the center average defuzzification, the output response of the fuzzy controller isIn the rule base, the (N+/)"' rule is chosen to be of Takagi- Sugeno type and its consequent fuzzy set vector
g"'
is singleton with support represented as the form of the synthesis input(10) On the other hand,-the curvature control parameter, of its antecedent membership functions is assumed to approach to
c ' ( k ) = / l : y ( k )
+
;l:y(/c +
~)+...+il:y(k+
n - I)+
v ( k )infinity so that this rule will be fired whatever X is. The credit assignment takes place in rules RJ, j = l ,..., N, but assigned to be 1
for
RN+'.
Accordingly, using (8) and (IO), the analytical formulation of the multi-layer fuzzy system in equation (9) resolves intoA 1
U =
G-'(-
f
+
C'-
uZppm) (1 1)where,
d
=Block diug[wf(k
+
I ) p ' ( k ) ] m x m ,u,(k
+
1) andp ' ( k ) are (N+l)X 1 column vectors composed of
w:
(k + 1 )and PJ
( k )
>f
=[PT(k
+ l)P(k)lm 1P,
( k
+ 1) andP ( k )
areNX 1 column vectors composed of
d ( k
+
l ) c / ( k+
1)
and , u J ( k ) ,a , ( k + l )
E R m , a n dpu
=E~=,,U'J-ER.When U , =
0
the control law (1 1) is not well-defined. To avoid this situation, we project0
=[P:,w:,...,p~,u~]'
into an estimated feasible regionhi,
={alp,
I
I
p,
M ~ , 0<
u,
I o , , ~ , } by properly adapting the parameter values.
4. Learning algorithm and performance analysis
* T * T T
Let
B*
=[ f l : T , ~ ; T , . - . , p n ,
,mm ] and define the parameters of the best function approximation to be8. E M ,
P:
=arg
mWsup1.f
-P1PIl
(12)
0: = arg
min[sup(
g,-
mir,u'[
1
m, EM.Then (1) can be rewritten in terms of the measured output
v(
k)and expressed as
y ( k +n) = f ( x )
+
C ( x ) u + z ( x , u , k ) +ny(k+
n)(13)
where
f'(X)
=[P,*Tp(X)]m
,6'(X)
= Block diag= j * ( ~ ) + < ,
+ ( ~ ( ~ ) + ~ , ) u + z ( x , u , k ) + n ~ ( k + n )r
4 T P ' ( 3 1 m x m and5,
= f ( x )-
[P:'P(x)l,-
[a:'APc., nr )Im(14)
c8
= Block diug[gj(x)-
w ; ' p ' ( x )-
w:TAp'(x,nx)]mxmand
44%
nr
1
=P ( 3
-A x )
(15)
n,
1
= P'(X) - P'(X)are measure of sensitivity of the nominal model
z(x, U , k) = n,
=
0
with respect to the measurement noise n,.
By (1 1) and (2), subtracting d u and adding-f
+
c'
-
u L p ,
to the right hand side of (13), we obtain the following error equation y ( k + n ) - y , ( k + n ) =
-;l:(y(
k ) - y , ( k ) ) - . . . - ~ ~ , ( y ( k + n - 1)- (16) yA,(k+
n - 1)) -G(z)u + 5-
a L p m ore(k
+
1) = A e ( k )-
~ + ~ ( k ) i j ( k
+
I)-
(17) Ba,( k
+w,
( E ( k ) ) + B a k )A, =
In the following paragraph, the parameter adaptation scheme and the fine-tuning mechanism of the consequent membership functions are proposed.
Parameter adaptation scheme: Inspired by previous work in discrete-time adaptive control [ 2 ] , we first propose the parameter adaptation law for am
=
0 as~ ( k
+
1) =~ ( k )
+
r , + ( k ) B ' P e ( k
+
1) -a1(8(k)
-
6 , )
( 2 0 ) wherer,
is a diagonal matrix with positive diagonal elements,P =Block diag
[e,.
. . ,pn,] is a symmetric positive-definite matrix satisfying the Lyapunov equation A T P+
PA = -Q,
with the design parameters Q > 0, and 0<
0 ,<
1 usually referred to asleakage. Note that the adaptive control law depends on the tracking error
e ( k
+
1)
, which is not available at discrete-timek
.
Using a priori estimate
i ( k
+
1) ofe(k
+
1)
can solve this difficulty, and thise^(k
+
1)
can be calculated from available information at discrete-time k . Following the same argument of [ 2 ] , the a priori estimate is suggested to bee^(k
+
1)
=[ I
+
~ 4 ~ r , ~ 4 ~ ' ~ ] - ' e ( k ) .Fine-tuning mechanism for consequent membership functions: The parameter am is chosen as
a,($)
= $ ( e ) $ , where9
ER"
is an auxiliary adjustable parameter and9'
=Block diag[9:
] m x m ,q,l =
tmh(
b , ' e e , W + l ) P m) ,
& is a small positive constant. Using the following assumption:Assumption 2: There exists the smallest non-negative parameter vector 9' 2 0 such that for all
X
E !Rrnfl andk
21
E
I<
Is
~ + P L R ( W ) ( 2 1 ) Let M, = ( 9 : O < 8, I 8, M a } be the bound of 9 . We proposethe following fine-tuning mechanism for the consequent membership functions
~ ( k
+
1) =$ ( k )
+
r , q d P e ( k+
1)
-
cr,($(k)
-
9,) ( 2 2 ) 0 0 1 0 " ' -0- ...f
0 0 0 " ' 01
-
0 0 1 " ' 0 , &] ... 0-a,,
-a8, -a,3
...
-a,"
1 0 " ' plumwhere
r,
is a diagonal matrix with positive diagonal elements,p =
(obm,
and O < c , <1 is chosen small but positive constant Theorem 1: Suppose that the desired trajectory y , ( k ) and the initial condition be bounded in a compact setS .
Consider the nonlinear composite system (I), with the multi-layer fuzzy controller (1 1) and the parameter adaptation provided by either Algorithm 1 ) using the adaptation law ( 2 0 ) without tuning consequent membership functions i.e., am=
0 ; orAlgorithm 2 ) using the adaptation law ( 2 0 ) with the fine-tuning mechanism (22).
Then, the tracking error e ( k ) and the parameters
0
and8
are UUB, and the practical bounds are given by= {e(k),B(k):inm,(Q)lle(k)ll' + ~ , ~ m m ( ~ ~ i )5 ~
D,}
~ ~ ( ~ ) ~ ~ z(23) where
for the case of algorithm 1; and
(26) ,-I
for the case of algorithm 2 , provided the Assumption 1 and 2 hold for algorithm 1 and 2, respectively.
ProoJ Omitted due to limitation of space.
Remark I : In algorithm 1, which shuts down the fine-tuning mechanism (i.e.,
a,
=
0
), the size of tracking error residual set will depend on2
which varies with the control effort, effect of interconnection among subsystems, measurement noise and disturbance. But this does not happen in algorithm 2 that obtains some degree of "adaptability" by the fine-tuning mechanism,a m p , , which deals with different values of
6 .
5.
Simulation
The equations of motion of the arm can be expressed in matrix form as follows:
(m, + m,)$ + m,r; + 2m,rir,cz + J , m,r; + m ~ r , r , c , ] [
"1
+m,r;
+
m,r,r,c, m,r; + J , q2~ ~ 2 ~) g 2 ~ 1 2
(44) where m i ,
m,,
J , , J , ,
rI = 0.51,, andr,
= 0.51, are the mass, the moment of inertia, the half length of link 1 and 2, and c, =cos(q,), si, =sin(q, + q , ) , etc.. The combined effects of friction and the external torque disturbance ared,
=2.0sin(qI)
+
2.5sin(q2)
+
OSsin(t)
d2
=5.0sin(ql)
+
4.0sin(q2)
+
0.4sin(t)
(45)In the control experiments described below, the kinematics and inertial parameters of the arm are chosen as m, = 0.5kg,
ni2 = 6.25kg1 J , = J , = 5 . 0 k g . m ,
I ,
=2.0m,
1, = 1.6m1 respectively. The excessive ratio between m, andm,
is to emphasize the load effect. As shown in Fig. 3, the trajectory to be followed by the I* joint is given by two decoupled linear systems4 , ! , , ( k + 2 ) = n , , 4 , , , ( k ) + n , 2 4 , , , ( k + 1 ) + v , ( k ) , i = 42 (46) The model parameters are chosen as follows: A t , = A,2 = -1.0,
A > ,
= = -1.0 and the driving inputs to the reference modelsare sinusoidal functions v I ( k ) = a sin(0.8d) , and v 2 ( k ) = 1.5zcos(lzk). The initial conditions are set to be q l ( 0 ) = - 1 . 5 7 r u d , q 2 ( 0 ) = O r u d , q , ( O ) = radlsec, and
4,
(0) = 0 radlsec, The simulations have been done by using a fourth order Runge-Kutta algorithm with an integration step of 0.005 sec., and the sampling interval for the controller is set to 0.02 sec. The design parameters are given byQ
= 10Z4x4,r,
=Block diag [ 5 . 0 1 8 , x 8 1 , 1 0 4 ~ 8 , x 8 1 , l ~ . ~ ~ 8 , x 8 1 ~
~ ~ 4 ~ 8 , x 8 , 1 ~
r~
=Block diag [O.Ol, 0.021, ol =
o,
= l o 4 , and E =0.1. The elements inp,
and U , are chosen randomly in the interval (-10, I O ) and (0.01, 2), respectively. The membership functions of stateq1 ( k - 1 ) , q1
( k )
, ql( k
- 1) , andql
( k ) (represented by generic variable X k ) for M =3‘
=81
regular rule partitions are defined as {NB, ZE, PB} where NB:Ai
(x,) = exp(-4(xk+
1.8)’),
ZE:A : ( x , ) = exp(-4x:), PB: A L ( x , ) = exp(-4(xk - 1.8)‘).
as
A. Tracking performance using algorithms 1 and 2
Fig. 4 shows the tracking performance using algorithm 1 (i.e. without the fine-tuning mechanism). Fig. 5 shows the tracking performance of using algorithm 2 (i.e. with the fine-tuning mechanism). The dashed and solid lines correspond to the desired and the controlled angular trajectories of the robot-arm, respectively.
B. Tracking with measurement noise
This simulation investigates the tracking control of the multi- layer fuzzy system with algorithm 2 when measurement noises being involved. The noise are assumed to be white with uniform distribution within [-0.01, 0.011 (rad). The effects of noise of different sensors are assumed to be independent of each other. The results of control are depicted in Fig. 6.
C. Tracking under re-initialization error and load variation In this simulation, the performance of the proposed controller is investigated for re-initialization error and load variation. The re- initialization error is set to within an admissible deviation level,
q1 ( 0 ) -
q l , ,
( 0 ) = -0.05 , andq, (0)
-
q,,
( 0 ) = 0.05 , and rn, of the robot is changed from 6.25 to 10.0kg
at the begging of the third second. The simulation results (plotted in Fig. 7) show that the design is robust to initial state error and load variation.6. Conclusion
A novel multi-layer fuzzy controller for robust discrete-time tracking control of composite multivariable nonlinear systems has been proposed. The fuzzy system with rule credit assignment and fine-tuning mechanism serves two purposes. First, unlike previous works of adaptive fuzzy controller, the form of rules preserves the superior advantage of the
fuzzy
system. Second, by on-line tuning the consequent membership functions, the multi-layer fuzzy controller achieves some degree of robust properties and considerably reduces the tracking error residual set. The tuning mechanism can automatically adapt the hzzy controller to react to the effect of the equivalent uncertainty in unknown plant dynamics. The performance of the algorithms with and without tuning consequent membership function has been investigated and compared by an example of a two-link robot control, and the overall design has been proved theoretically to be able to guarantee uniform ultimate boundedness.Acknowledgement
The financial support for this research from the National Science Council of Taiwan, R.O.C. under NSC 88-2212-E-002-070 is gratefully acknowledged.
References
[l] H. R. Berenji and P. S. Khefkar, “Learning and tuning fuzzy logic controllers through reinforcements,” 1EEE Trans. Neural Networks, vol. 3, pp. 725-740, 1992.
[2] M. Kamoun, A. Titli and M.B.A. Kamoun, “Robust decentralized model reference adaptive control of discrete- time interconnected systems,” Int. J. Systems Sci., vol. 23, no. [3] T. A. Johansen, “Fuzzy model based control: Stability, robustness, and performance issues,” IEEE Trans. Fuzzy Systems, vol. 2, pp.221-234, 1994.
[4] L. X. Wang, Adaptive Fuzzy Systems and Control: Design and Stability Analysis NJ. Prentice-Hall, 1994.
[5] R. Ordonez, J. T. Spooner and K. M. Passino, “Stable multi- input multi-output adaptive fuzzy control,” Proceedings ofthe IEEE Conference on Decision and Control, vol. 1, pp.6 10-61 5,
1996.
[6] T. K. Yin and C.S.G. Lee, “Fuzzy model-reference adaptive control,” IEEE Trans. Systems, Man, and Cybernet., vol. 25, no. 12, pp.1606-1615, 1995.
[7] S. Jagannathan, “Adaptive fuzzy logic control of feedback linearizable discrete-time nonlinears systems,” Proceedings of the 1996 IEEE International Symposium on intelligent Control, 11, pp. 1841-1856, 1992.
vol. 1, pp.133-138, 1996.
treckino error o r i o i n t L
0 . 0 1 0
0 006
0 0 0 2
LL
1
rule creciit assignmentFig. 2. The synaptic connection topology of the fuzzy system.
I tracking =:ror of loin1 - -
..oat/
, , .1
4 0 e o 8 0 1 (.os) z o .* eo0 0 0Fig. 3. Reference output ofjoint
I
and2.-0 0 0 2 -0 006 -
-
0 000 - 0 002 - 0 0 5 0 0 040 0 030 0 0 2 0 O O l O 0 0 0 0 -0 - O 006 Oo4 0 01
2 0 4 0 6 0 8 0 t (.or)Fig. 4. Tracking performance of using algorithm 1 (without fine- tuning mechanism).
E
0 0 0 0 -0 0 0 2 0 004 -0 006 2 0 4 0 8 0 8 0 0 0 t ( s e c ) t r e r .ne e r r o r o ' l o l n t +7
0 000 0 0 0 2 - 0:'i-l
0 ooe 004 0 0 2 0 I ( s e c ) 4 0 e o e o tracking e r r o r o f j o i n t-
- --
-
- --
Ooet
0 004 0 0 0 2 0 0 0 2-
- 0 0 0 2 -B
:racking error of joint
-
--
Fig. 7. Tracking performance of using algorithm 2 with re- initialization error and a load change.
Fig. 5. -Tracking performance of using algorithm 2 (with fine-