Using multiple natural selectors
Brought to you by:
klausikm
In line 595 of Genotype class, the
single_selection_size (number of chromosomes to be
selected by a specific Natural selector) is set to
m_population_size. This assingnment causes that each
natural selector selects all of the chromosomes and add
them to the population. Then instead of dividing the
population by 2 (each Natural Selector has its own
share of selecting fittest individuals) the population
is multiplied by number of natural selectors. I
replaced the line 595 with line 577 (or simply
eliminating the else statement at line 593-596 and the
code worked fine!
Corrected Genotype
Logged In: YES
user_id=722855
You are right. I will soon add a test case exposing the
bug, but already check in the modified code to the CVS.
Thanx a lot for your commitment :-)