Professional Documents
Culture Documents
PROCEEDINGS
17 th
International Conference on Process Control 2009
Hotel Baník, Štrbské Pleso, Slovakia, June 9 – 12, 2009
ISBN 978-80-227-3081-5
http://www.kirp.chtf.stuba.sk/pc09
Sekaj, I.: The Use of Matlab Parallel Computing Toolbox for Genetic Algorithm-Based MIMO Controller
Design, Editors: Fikar, M., Kvasnica, M., In Proceedings of the 17th International Conference on Process
Control ’09, Štrbské Pleso, Slovakia, 277–280, 2009.
Abstract: The paper describes the use of Matlab’s Parallel Computing Toolbox for
parallel genetic algorithm-based design of a MIMO controller. Parallel genetic
algorithms (PGA) represents a stochastic optimization approach which is computed in
more co-operating and interconnected computation nodes in a parallel mode. Each node
of the PGA can be located on the same processor, on more processors or on more
computers respectively. This approach is able to solve very complex
search/optimization/design tasks, but on the other hand, it requires a high computation
power. From that reason the distribution of computation complexity to more processors
under Matlab environment is presented.
Genetic algorithm (GA) is a powerful stochastic The basic principle of the PGA is the parallel run of
optimization approach, which mimics the evolution more GA's, which are performed on isolated
in the living nature with the aim to solve practical subpopulations - nodes (Cantú-Paz, E., 1995, Sekaj,
problems. It is from its basic a parallel algorithm, I., 2004). Each subpopulation is handled using its
because it is searching the solution concurrently in a own GA. These subpopulations in defined time
group of potential solutions (a population). In case of periods (number of generations) or in some
solving complex design problems it sometimes asynchronous events exchange information between
happen, that the current solution stagnates in a local some nodes according defined interconnections. That
optimum (suboptimal solution). Furthermore the is, some individuals from some subpopulations are
computation times of solving complex problems are copied into other subpopulations. This process is
long. Such drawbacks can be eliminated using a next called migration. The migration management is
level of parallelism in - parallel GA (PGA). Such a defined in the migration architecture and migration
parallelism is able to increase the information time schedule. Various migration architectures are
diversity in the population and to redirect the depicted in Fig.1. Each circle represents a node with
solution process to the global optimum. The its own GA.
drawback of the required high computational effort
of PGA's can be eliminated by distribution of the
algorithm to more processors/computers. In Matlab
for that reason the Parallel Computing toolbox may
be used.
277
17th International Conference on Process Control 2009
June 9–12, 2009, Štrbské Pleso, Slovakia Po-We-9, 098.pdf
Consider a MIMO controller design, which is 2. Evaluation of the cost function for each
depicted in fig. 2. The control scheme consists from chromosome (simulation, performance index
the controlled system with two inputs and two evaluation).
outputs, two PID controllers and two correctors. Let 3. Parent chromosomes selection
us consider the following performance index
4. Crossover and mutation of parents
J = ∑ ( e1k + e2 k + α dy1k + α dy2 k )
N
(1) 5. Completion of the new population from the new
k =1 children and selected members of the old population.
Jump to the step 2.
where e1, e2 are control errors, dy1, dy2 are derivatives
of the controlled variables and α is a weight constant.
The use of output derivatives can damp the output 3.2 The PGA realization
oscillations.
For the PGA demonstration three subpopulations
w1 running on three PC’s have been used. They are
Reference v. 1
e1 t marked S1-Slave1, S2-Slave2 and M-Master. In the
u1
y2
e2 Output system 2
u2
w2 Control error 2
Control value 2
Reference v. 2
278
17th International Conference on Process Control 2009
June 9–12, 2009, Štrbské Pleso, Slovakia Po-We-9, 098.pdf
12000
Slave1
Slave2
10000 Master
8000
F
s
e i
s 6000
nt
F t
i
4000
2000
Fig. 4. The block scheme of distributed computing
sessions using PCT and MDCE 0
0 10 20 30 40 50
Generacie
The parallel computation can be described in Fig. 5. Cost function evolution during the
following steps: controller design procedure for all 3
subpopulations.
1. On the client PC required computation tasks are
created using PCT.
The final solution is the best individual of the
2. The job manager will provide the task population in the node Master after performing
management on particular workstations where the defined number of populations. The obtained results
Matlab MDCE must be installed. are follows:
3. After finishing of the jobs the manager will collect P1=53.899, I1=78.2064, D1=1.8854, P2=24.7023,
all responses from workstations and send it to the I2=19.4204, D2=17.2952, k1=-0.064, t11=29.235,
client. t12=89.2842, k2=-0.1227, t21=19.8595, t22=54.4186
Based on this the parallel genetic algorithm can be The appropriate time-responses are shown in fig.6
realized as follows: and fig.7.
1. Creation of the function - genetic algorithm, which
input is the initial population in form of a real matrix
3.5
w1
GA run.
2
2. On the PC client the initialization of 3 independent
populations is performed. y, 1.5
w
1
3. The parallel run of the 3 GA’s is performed until
the required number of generations is computed. 0.5
-50
-100
0 10 20 30 40 50 60 70 80 90 100
Cas [s]
279
17th International Conference on Process Control 2009
June 9–12, 2009, Štrbské Pleso, Slovakia Po-We-9, 098.pdf
6 CONCLUSIONS 7 REFERENCES
The aim of this paper was to demonstrate the Cantú-Paz, E. (1995). A summary of research on
application of parallel genetic algorithms running on parallel genetic algorithms, IlliGAL Report No.
a more computer configuration (cluster) using 95007, Illinois Genetic Algorithms Laboratory,
Parallel Computing toolbox of Matlab. The solved University of Illinois at Urbana Champaign
problem was an optimal parameter design of a
Cantú-Paz, E. (2001). Migration polices, selection
MIMO control system. Using this means it is
pressure, and parallel evolutionary algorithms, In:
possible to solve complex search/optimization tasks
Journal of heuristics 7(4), 2001, pp. 311-334.
from control engineering area like non-linear
controller design, robotics etc., but also from other Dorf, R.C. (1990). Modern Control Systems.
technical and non-technical application areas. The Addison-Wesley publishing Company, 5th edition
condition of using this approach is the possibility of
Goldberg, D.E. (1989). Genetic Algorithms in
the cost function evaluation in each point of the
Search, Optimization and Machine Learning.
searched space. This requires the existence of a
Addisson-Wesley.
computer model of the solved problem. Using the
PGA it is possible to reduce the computation time Man, K.F. Tang, K. S. Kwong, S. (2001). Genetic
from hours to minutes or form days to hours Algorithms, Concepts and Deign. Springer
respectively. Furthermore the PGA allows eliminate
Sekaj, I. (2003). Genetic Algorithm Based
the premature convergence of the solution process to
Controller Design", In: 2nd IFAC conference
a local optimum (to suboptimal solution).
Control System Design'03, Bratislava
Sekaj, I. (2004). Robust Parallel Genetic Algorithms
with Re-Initialization, In: PPSN VIII, September
ACKNOWLEDGMENTS
18-22, Birmingham
The work has been supported by the grants agency Sekaj, I. (2005). Evolučné výpočty a ich využitie v
VEGA no. 1/0544/09 and no. 1/0690/09. This praxi. Iris Bratislava
support is very gratefully acknowledged.
The Mathworks. (2006). MATLAB Distributed
Computing Engine, System Administrator’s
Guide, Natick
280