Documente Academic
Documente Profesional
Documente Cultură
Tuning of rule
Tuning of rule
-
-
base of fuzzy controller
base of fuzzy controller
s.t
s.t
. the
. the
C.L. system behaves like reference model.
C.L. system behaves like reference model.
s
s
lecture)
lecture)
Similar to fuzzy controller design
Similar to fuzzy controller design
Knowledge
Knowledge
-
-
base modifier
base modifier
: Function to modify fuzzy
: Function to modify fuzzy
controller
controller
s rule
s rule
-
-
base to affect the needed changes in
base to affect the needed changes in
the plant inputs. (last lecture)
the plant inputs. (last lecture)
Fall 2008 MECH523 : Intelligent Control 4
Knowledge
Knowledge
-
-
base modifier (review)
base modifier (review)
If fuzzy controller
If fuzzy controller
had
had
generated control input
generated control input
then
then
y
ye e
(kT
(kT
)
)
would have been
would have been
zero.
zero.
u=5 (
u=5 (
m/s
m/s
): velocity in x
): velocity in x
-
-
direction (constant)
direction (constant)
g
ge e
= 1/
= 1/
(since the error
(since the error
e(kT
e(kT
) can never be over
) can never be over
180 deg.)
180 deg.)
g
gc c
= 100
= 100
(since ship does not move much faster
(since ship does not move much faster
than 0.01
than 0.01
rad
rad
/sec (by simulations).)
/sec (by simulations).)
g
ge e
= 8
= 8
(kT
(kT
) between
) between
80 deg.)
80 deg.)
Design of reference model
Design of reference model
Fall 2008 MECH523 : Intelligent Control 11
Fuzzy inverse model
Fuzzy inverse model
MFs
MFs
: Same as in the fuzzy controller
: Same as in the fuzzy controller
i=0, j=0
i=0, j=0
If
If
e e
=0 and
=0 and
c c
=0, then y is tracking
=0, then y is tracking
y
ym m
perfectly, so
perfectly, so
you should not update the fuzzy controller. Therefore,
you should not update the fuzzy controller. Therefore,
the output of the fuzzy inverse model will be zero.
the output of the fuzzy inverse model will be zero.
i=1, j=2
i=1, j=2
If
If
e e
is positive and
is positive and
c c
is positive, then change the
is positive, then change the
input to the fuzzy controller that is generated to
input to the fuzzy controller that is generated to
produce these values of
produce these values of
e e
and
and
c c
by decreasing it.
by decreasing it.
We want to increase
We want to increase
to achieve this.
to achieve this.
Fall 2008 MECH523 : Intelligent Control 14
Simulation result: FMRLC
Simulation result: FMRLC
H
e
a
d
d
i
r
e
c
t
i
o
n
(
d
e
g
)
H
e
a
d
d
i
r
e
c
t
i
o
n
(
d
e
g
)
Time (sec) Time (sec)
Almost perfect tracking by fast learning!
Almost perfect tracking by fast learning!
Fall 2008 MECH523 : Intelligent Control 15
Simulation result: Gradient
Simulation result: Gradient
-
-
based
based
Model Reference Adaptive Control
Model Reference Adaptive Control
H
e
a
d
d
i
r
e
c
t
i
o
n
(
d
e
g
)
H
e
a
d
d
i
r
e
c
t
i
o
n
(
d
e
g
)
Time (sec) Time (sec)
Slow convergence!
Slow convergence!
Fall 2008 MECH523 : Intelligent Control 16
Simulation result:
Simulation result:
Lyapunov
Lyapunov
-
-
based
based
Model Reference Adaptive Control
Model Reference Adaptive Control
H
e
a
d
d
i
r
e
c
t
i
o
n
(
d
e
g
)
H
e
a
d
d
i
r
e
c
t
i
o
n
(
d
e
g
)
Time (sec) Time (sec)
Slow convergence! Slow convergence!
Fall 2008 MECH523 : Intelligent Control 17
Disturbance rejection
Disturbance rejection
Disturbance at rudder (deg) Disturbance at rudder (deg)
Head direction (deg) Head direction (deg)
(FMRLC) (FMRLC)
Head direction (deg) Head direction (deg)
(Gradient (Gradient- -based MRAC) based MRAC)
Head direction (deg) Head direction (deg)
( (Lyapunov Lyapunov- -based MRAC) based MRAC)
Fall 2008 MECH523 : Intelligent Control 18
Discussion
Discussion
However, in general:
However, in general:
No guarantee of closed
No guarantee of closed
-
-
loop stability
loop stability
Fall 2008 MECH523 : Intelligent Control 19
Summary
Summary
keep up
keep up
with
with
y
ym m
(kT
(kT
),
),
decrease derivative gain
decrease derivative gain
c)
c)
If
If
y(kT
y(kT
) is acceptable
) is acceptable
w.r.t
w.r.t
.
.
y
ym m
(kT
(kT
), done!
), done!
Fall 2008 MECH523 : Intelligent Control 21
Fuzzy inverse model design
Fuzzy inverse model design
Design procedure 2
Design procedure 2
for scaling gains
for scaling gains
(Assume normalized I/O universe of discourse.)
(Assume normalized I/O universe of discourse.)
Set
Set
g
gp p
=0. (Begin without learning mechanism.)
=0. (Begin without learning mechanism.)
If it works fine, FC is already well
If it works fine, FC is already well
-
-
designed.
designed.
2.
2.
Choose gains by maximal magnitudes.
Choose gains by maximal magnitudes.
3.
3.
Turn on learning mechanism by increasing
Turn on learning mechanism by increasing
g
gp p
slightly.
slightly.
(Slow update of output
(Slow update of output
MFs
MFs
in fuzzy controller.) Tune
in fuzzy controller.) Tune
the inverse model if necessary.
the inverse model if necessary.
4.
4.
Continue to increase
Continue to increase
g
gp p
, and tune the inverse model if
, and tune the inverse model if
necessary. (Increased adaptation speed, possibility of
necessary. (Increased adaptation speed, possibility of
oscillations and instability.)
oscillations and instability.)