Genetic algorithms
Posted
by daniels
on Stack Overflow
See other posts from Stack Overflow
or by daniels
Published on 2010-02-01T20:28:04Z
Indexed on
2010/03/08
18:21 UTC
Read the original article
Hit count: 869
I'm trying to implement a genetic algorithm that will calculate the minimum of the Rastrigin functon and I'm having some issues.
I need to represent the chromosome as a binary string and as the Rastrigin's function takes a list of numbers as a parameter, how can decode the chromosome to a list of numbers?
Also the Rastrigin's wants the elements in the list to be -5.12<=x(i)<=5.12 what happens if when i generate the chromosome it will produce number not in that interval?
I'm new to this so help and explanation that will aid me in understanding will be highly appreciated.
Thanks.
© Stack Overflow or respective owner