Академический Документы
Профессиональный Документы
Культура Документы
and
Elitism corresponds to keeping the best members of the cilindrical metal box
population to the next generation to guarantee that
there is a continuous maximization of the fitness
function.
GA optimisation is especially useful when there is no
deterministic solution for the problem or the range of
Heating
solutions is too wide for an exhaustive search and local Element
Delay -
Direct
Model yhat(k+1)
Delay
Fig. 4. Internal Model Control structure with detail of the implementation of inverse and direct model.
Adapting Internal Model Control Structure to use recover, while with these changes IMC works properly
Neural Networks Models. as can be seen in section 7.
The need for NNs arises when dealing with non-linear
systems for which the linear controllers and models do 5. Proportional Integral Differential
not satisfy and the use of structures provided by Controller Optimisation
classical control theory seems a straightforward The optimisation of the Proportional Integral
strategy. Differential (PID) controller was done through the use
Some of structures adopted from classical control can of a genetic algorithm that uses a NN model of the
be used directly with NN models, but IMC needs some plant. For each individual in the population used in the
refinements to work properly [12]. genetic search a control loop is implemented using the
The good match between forward and inverse models, parameters for the PID and the model of the plant.
referred above translates to having the forward model Provided a reference for the control loop, the fitness of
outputs feedback to the input of the inverse and direct the solution is the Mean Square Error obtained between
model instead of the outputs of the plant. This means the output and the reference. The fittest solution is the
that the inverse model will implement the following one with the lower fitness value.
equation: The algorithm implemented includes Crossover,
Mutation and Elitism but several changes were
r (k + 1), yhat (k ),..., yhat (k n y + 1) introduced.
u(k ) = g Using a small population, a strong elitism of 25% is
u (k t d ),..., u (k n u t d + 1) assumed, crossover of one site splicing is performed.
and all the members are subjected to mutation except with multiple iterations. Care was taken to avoid phase
the elites. distortion and to choose appropriate cut-off frequency.
The lag space was analysed searching for correlations
r(k+1) and two regressors of output and input were used.
NN Model y(k+1)
PID Several architectures of the NN were tested and the best
+ - u(k) of the Plant results were obtained using four neurons on the hidden
layer of the direct model and five neurons on the hidden
layer of inverse model, both models have a linear
e(k+1)
output neuron.
In figures 6 and 7 the response of forward and inverse
Fig. 5. Control loop implemented during the genetic models to the test sets is presented.
optimisation of the PID controller.
Output (solid) and one-step ahead prediction (dashed)
The mutation operator is a binary mask generated 3
-2
Improvements Introduced in the Algorithm 0 500 1000 1500
Two changes were introduced in the algorithm in order time (samples)
Prediction error (y-yhat)
to improve the convergence. The first one regards the 0.1
is terminated. -2
It is worth to note that the integral gain ki in the several -4
0 500 1000 1500
optimisations performed is always zero or a very small
time (samples)
value. This can have a physical interpretation: because Prediction error (u-uhat)
6
of the integral behaviour of the kiln, the integral action
4
is not needed.
2
20
detuned model is obtained. This detuned model is better
than the model obtained directly from the noisy data 10
1.5
7. The Real Time Control Action 1
In this stage the solutions prepared to control the 0.5
temperature loop are tested using the plant and the 0
results are collected. 0 20 40 60 80 100
time x30s
120 140 160 180 200
10 8. Conclusions
0
The use of Neural Networks is crucial to both solutions
implemented: Internal Model Control is implemented
-10
0 20 40 60 80 100
Control Signal
120 140 160 180 200 using forward and inverse models of the plant and the
2
Proportional Integral Differential controller is
1.5
optimised using a Neural Network model of the plant.
1
This last solution could not be implemented directly
0.5
using the plant because the temperature could go
0
0 20 40 60 80 100
time x30s
120 140 160 180 200 outside the safe operating range.
From the results shown in table 1 it can be concluded
Fig. 8. Best performance obtained with PID Control. that the PID optimisation is dependent on the training
signal which is in fact the reference used for the
optimisation. On the contrary NN performance is quite
Comparing the results presented in table 1 there are
independent of the training signal, requiring only that
some facts that are worth to point out: Ki is always zero
the signal used has enough information about the
or very small, which confirms the integral
system and refers to the operating range of the plant as
characteristic of the kiln, the PID optimisation is
much as possible.
dependent of the reference used during the optimisation
Comparing the results obtained from the two control
process.
In table 2 a comparison between the results obtained strategies presented in table 2 it can be seen that IMC
with the PID and the IMC is summarized. shows more difficulties in the initial phase where the
NN controller needs past information about inputs and
outputs that is not available, but after this stage
performs better than the PID controller.
Both situations show the utility of FNN in modelling
and control.
EXPERIENCE RANGE OF PARAMETER TRAINING SET POINT MSE
NUMBER PARAMETERS VALUE SIGNAL TYPE .
Table 1. Control essays with the plant for different PID optimizations. The NNID signal is the signal used for
training the Neural Network and MSE is the Mean Squared Error.
References [11] F.M.Dias and A.M.Mota, Direct Inverse Control
[1] G. Cybenko, Approximation by Superposition of a of a Kiln, Proceedings of the 4th Portuguese
Sigmoidal Function, Proceedings of Mathematics of Conference on Automatic Control, Guimares, 2000.
Control, Signals and Systems, 2 pp.492-499,1989. [12] G. Lightbody and G. W. Irwin, Nonlinear Control
[2] J.-S. Yang and M. L. West, A Case Study of PID Structures Based on Embedded Neural System
Controller tuning by Genetic Algorithm, Proceedings Models, IEEE transactions on Neural Networks, vol.8,
of the IASTED International Conference on Modelling no.3, 1997.
Identification and Control, Innsbruck, 2001. [13] K. J. Hunt, D. Sbarbaro, R. Zbikowski and P. J.
[3]J. Holland, Adaptation in Natural and Artificial Gawthrop, Neural Networks for Control Systems-A
Systems, University of Michigan Press, Ann Arbor, Survey, Automatica, vol.28, n6, pp1083-1112, 1992
MI, 1975; MIT Press, Cambridge, MA, 1992 [14] K. J. Hunt and D. Sbarbaro, Neural Networks for
[4] G. Bartlett, Genie a first GA, published in Nonlinear Internal Model Control, IEE Proceedings-
Practical Handbook of Genetic Algorithms, D, vol.138, no.5, pp.431-438, 1991.
Applications, edited by Lance Chambers, Volume I,
pp31-56, CRC Press, 1995.
[5] J.-S. R. Jang, C.-T. Sun and E. Mizutani, Neuro-
Fuzzy and Soft Computing, Prentice Hall 1997.
[6] S. T. Welstead, Neural Network and Fuzzy Logic
Applications in C/C++, Wiley, 1994.
[7] M. Nrgaard, System Identification and Control
with Neural Networks. PhD Thesis, Department of
Automation, Technical University of Denmark, 1996.
[8] M. Nrgaard,Neural Network System Identification
Toolbox for MATLAB, Technical Report, Technical
University of Denmark, 1996.
[9] M. Nrgaard, Neural Network Control Toolbox for
MATLAB, Technical Report, Technical University of
Denmark, 1996.
[10] O. Srensen, Neural Networks in Control
Applications PhD Thesis, Department of Control
Engineering, Institute of Electronic Systems, Aalborg
University, Denmark, 1994.