Professional Documents
Culture Documents
Abstract
This paper proposes a method for learning
multilayer neural network (NN) based on a
genetic
algorithms
(GAs)
technique.
Evolutionary techniques based on the algorithms
are studied and the model-reference adaptive
control (MRAC) scheme for different plants are
employed. The neuro-controller, trains the
network to minimize the error between the
output of the plant and the output of model
reference. Comparison between the proposed
neuro-controller with a classical genetically
tuned proportional, derivative, and integral (PID)
controller is made, where the later is used as
feedback controller based on model- reference.
The comparison is based on the speed of
convergence, tracking ability of the desired
model reference and robustness to output
disturbances. It is concluded based on simulation
results that the proposed neuro-controller is
better than the PID controller in both robustness
and tracking ability.
Keywords:
Nonlinear
System Identification;
Networks;
Model
Reference;
Programming; PID Controller.
Neural
Genetic
1. Introduction
Neural networks have broad applicability in
real world problems such as in pattern
recognition, diagnostic, optimization, system
identification and robotics. They have already
been successfully applied in many industries, as
they are well suited for prediction [1]. Basically
there are three major needs for this work. Firstly,
the need to deal with increasingly complex
systems. Secondly, the need to accomplish
increasingly demanding design requirements.
Lastly, the need to attain these requirements with
less precise advanced knowledge of the plant and
its environment. The increasing emphasis on
Copyrighthttp://ee.eng.usm.my
91
FITNESS=
(4)
objective function
is a constant chosen to avoid division by zero.
Step4: Place in descending order, all
chromosomes in the current population (the first
one is fittest).
Step5: Select individuals using hybrid selection
method (Roulette Wheel plus deterministic
selection), the real coded genetic operators of
mutation and crossover (single point).
Step6: Stop if a maximum number of
generations of GAs are achieved, otherwise
increment the generations by one and go to
Step3.
The following flowchart illustrates the proposed
genetic learning scheme.
2
NP
MSE = [ y p ( k ) ym ( k )] (for SISO plants)
K 1
Np
(1)
2
N [ y ( k ) y ( k )] [ y ( k ) y ( k )]
m1
p2
m2
MSE= P p1
K 1
NP
(2)
y p (k): is the output of the plant at sample k .
y m (k): is the output of the model reference at
sample k.
N P : is the number of the training patterns.
Since GA maximizes its fitness function, it is
necessary therefore to map the objective function
(MSE) to a fitness function. The most commonly
used objective-to-fitness transformation is of the
form [6]:
FTNESS=
3. Simulation Results
[otherwise]
(3)
Copyrighthttp://ee.eng.usm.my
92
(a)
(c)
Example 1: [7].
A stable nonlinear single input single output
plant has the following difference equation:
y p (k )
(5)
y p ( k 1)
u (k )
2
1 y p (k )
It is controlled using NN to follow the modelreference which is described by the difference
equation:
y m (k 1) 0.6 * y m (k ) u (k )
(d)
Fig 2: The MRAC of Example 1 :(a) Modelreference and Plant Output (b) Control Signal (c)
Output Error (d) Best MSE.
(6)
Example2: [8].
0.2 * sin( 50 )
r ( k ) 0.2
0.2
0 k 50
50 k 75
(7)
y p ( k 1)
75 k 100
(8)
Copyrighthttp://ee.eng.usm.my
0.9 * y p ( k ) u ( k )
2
1 y p (k )
94
(a)
(a)
(b)
(b)
(c)
(c)
Fig 4: The MRAC of Example 1 when applied
with 20% external disturbance (a) ModelReference and Plant Output (b) Control Signal
(c) Output Error.
The robustness has been tested by applying
bounded external disturbances. The disturbance
is 20% of the selected testing input. This is a
changing step through the first step and for the
20-30 k samples interval. An external bounded
disturbance of 20% is applied to the output of
controlled plant. The same value of disturbance
is applied to the plant output through the second
step change and for the interval of 7080 k
samples. Fig 4(a) and Fig 5(a) show the response
of plant and model reference output for Example
1 and Example 2 respectively. From Fig 4(b) and
Fig 5(b), it is shown that neuro-controllers are
robust and have the ability to deal with the
unexpected environment changes with very good
accuracy. The modeling error is approximately
zero as shown in Fig 4(c) and 5(c).
(d)
Fig 3: The MRAC of Example 2. (a) ModelReference and Plant Output; (b) Control Signal.
(c) Output Error (d) Best MSE.
Copyrighthttp://ee.eng.usm.my
95
a 0 a1 z
1 z
a2 z
(12)
where
(a)
a 0= k p+ k d
a 1=k p 2 k d + k
a2=kdki
k p = proportional gain
T i = integral time
T d = derivative time
K i = integral gain and kd = derivative gain
(b)
(c)
Fig 5: The MRAC of Example 2 with 20%
External Disturbance (a) Model-Reference and
Plant Output (b) Control Signal (c) Output Error.
5. PID Controller
The general form of discrete PID controller is
given by.
u.( k ) k p (e f ( k )
T
TS k 1
e f d (e f ( k ) e f ( k 1))) (9)
Ti m 0
Ti
u (k 1) k p e f (k 1)
Ts
k 1
Td
Ti
m0
Ti
e f (m 1)
(e f (k 1) e f (k 2)
(10)
Subtracting Equation (10) from Equation (9)
produce the recursive form. This gives:
u (k)-u (k-1) =a0 ef (k)+a1 ef (k-1)+a2 ef (k-2) (11)
Copyrighthttp://ee.eng.usm.my
96
(a)
(c)
(b)
(d)
Fig 7. The MRAC of Example 2 (a) ModelReference and Plant Output (b) Control Signal
(c) Output Error (d) Best MSE.
Example
NO.
(c)
(d)
Fig 6. The MRAC of Example 1 (a) ModelReference and Plant Output (b) Control Signal
(c) Output Error (d) Best MSE.
Output
of
The
Plant/
Output
of The
ModelReferen
ce
Control
Signal
Output
Error
Final
value of
MSE
After
3000
generati
ons
Referen
ce
Input
Example
1
Fig(6a)
Fig(6b)
Fig(6c)
9.20E-02
Change
Step
Example
2
Fig(7a)
Fig(7b)
Fig(7c)
1.60E-01
Change
Step
Genetica
lly
Tuned
Kp
Ki
Kd
5.32
-2.88
-0.125
- 1.19
0.8
-0.125
(a)
(b)
Copyrighthttp://ee.eng.usm.my
97
Output The
Plant/
Output of
The Model
Reference
Example
1
Example
2
(a)
(b)
Referen
ce
Input
Genetically
Tuned
Kp
Ki
Kd
Control
Signal
Output
Error
Fig(8a)
Fig(8b)
Fig(8c)
Chang
Step
5.44
-2.76
- 3.82
Fig(9 a)
Fig(9b)
Fig(9c)
Chang
Step
1.43
0.78
-0.133
(c)
Fig 8. The MRAC of Example 1 with 20%
external disturbance: (a) Model-Reference and
plant Output (b) Control Signal (c) Output Error.
(a)
Performan
ce
Control
Scheme
Steady
state
Error
NNs
Controller
Steady
State
Error
Approxima
tely
Zero
PID
Controller
Existence
of
Error
MSE After
3000
Generation
Robustness
To Output
Disturbanc
e
Speed of
Convergen
ce
Less
Better
Faster
Higher
worse
Slower
(b)
7. Conclusion
The comparative study has been made
between NNs and classical PID by applying both
to control different plants. The simulation results
are used to evaluate these controllers. Neural
(c)
Copyrighthttp://ee.eng.usm.my
98
References
[1] G.Lightbody, Prof. G.W. Irwin, January
1995 Direct neural Model reference adaptive
control, in: IEE Proc.-Control Theory Appl.,
Vol. 142, No. I
[2] Stephen Yurkovich, Kevin M. Passino,
1999.A aboratory Course on Fuzzy Control,
in: IEEE Transactions on ucation.Vol.42,
NO.1.
[3] Melanie Mitchell, 1998. An Introduction to
Genetic Algorithms, MIT Press.
[4] Kumpati S. Narendra, Cheng Xiang, 2000.
Adaptive Control of Discrete-Time Systems
Using Multiple Models, in: IEEE
Transactions on Automatic Control, Vol. 45,
NO. 9.
[5] M.S. Ahmed, LA. Tasadduq, 1994, Neuralnet Controller for nonlinear plants: design
approach through linearization, in: IEE
Proc.-Control Theory Appl., Vol. 141, No.
5. September
[6] D.T. Pham and D.Karaboga, 1994, Intelligent
Systems Research Laboratory University of
Wales College of Cardiff Cardiff CF2 1XH
United Kingdom, Design of an Adaptive
Fuzzy Logic Controller, in: IEEE.
[7] Jose I. Canelon, Leang S. Shieh *, Nicolaos
B. Karayiannis, 2005, a new approach for
neural control of nonlinear discrete dynamic
systems, in: sciences direct Information
Sciences 174177196.
Copyrighthttp://ee.eng.usm.my
99