Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Genetic Algorithms in Matlab Simulink

464 views
Skip to first unread message

Keong

unread,
Jul 29, 2002, 5:32:21 AM7/29/02
to
I have modelled a Fuzzy Logic Controlled system in Matlab Simulink. I
am currently working to use Genetic Algorithm to tune the Fuzzy Logic
Membership Functions. Can anybody help me how to integrate Genetic
Algorithm into Simulink?

rocky

unread,
Jul 29, 2002, 6:59:55 AM7/29/02
to


I have a m-function block in my mfc simulink model. In this
m-function I applied Genetic Algorithm to get the control signal on
line.
But the simulating speed is very slow.
who can help me? thanks in advance.
sorry for my poor english

Joe Foran

unread,
Jul 31, 2002, 3:51:56 PM7/31/02
to
I am doing a very similar project for my Master's dissertation.
The approach I took was to write an S-Function block to implement the GA.
In the S-Function the number of discrete states is equal to the (number of
individuals plus one(representing best up till now for elitist method)
multilied by (num of var +1(for fitness)) plus two (current generation,
current chromosome).
Firstly the population is initialised (either randomly or by loading in a
saved initial population). Then for each individual the parameters are
output to be evaluated. The fitness is read in and written to the state
corresponing to that individual. When all individuals have been evaluated,
the selection crossover and mutation functions are called, and the next
generation begins.
It is important that the sample time for this block is set to equal the time
it takes to evaluate an individual. This can be done by setting ts when
initializing the block.
Hope this helps,
Joe

"Keong" <ywo...@yahoo.com> wrote in message
news:eeb04...@WebX.raydaftYaTP...

0 new messages