Menu

#16 Using multiple natural selectors

next JGAP version
closed-fixed
Klaus
7
2006-01-11
2005-12-15
No

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!

Discussion

  • Sepand Ansari

    Sepand Ansari - 2005-12-15

    Corrected Genotype

     
  • Klaus

    Klaus - 2005-12-18
    • milestone: 449082 --> next JGAP version
    • priority: 5 --> 7
    • assigned_to: nobody --> klausikm
    • status: open --> open-fixed
     
  • Klaus

    Klaus - 2005-12-18

    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 :-)

     
  • Klaus

    Klaus - 2006-01-11
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB