Menu

#18 getFittestChromosomes(int) returns incorrect values

next JGAP version
closed-fixed
Klaus
9
2006-01-31
2006-01-31
Fanguad
No

After the first time it is called,
getFittestChromosomes(int) returns incorrect values.
Specifically, the list is one shorter than expected.
It performs properly the first time it is called
(unless getFittestChromosome() has been called)

Test case included.

Discussion

  • Fanguad

    Fanguad - 2006-01-31

    JGAP_TestCase.java

     
  • Klaus

    Klaus - 2006-01-31

    Logged In: YES
    user_id=722855

    You are right, great work to also include such an
    impressive test case! Many thanx for that :-)

    I fixed the bug and checked in the changes (classes and
    Population, PopulationTest) to the CVS. Maybe you could
    have a look at it whether it fixes the bug as I expect.

     
  • Klaus

    Klaus - 2006-01-31
    • labels: --> coding error
    • milestone: --> next JGAP version
    • priority: 5 --> 9
    • assigned_to: nobody --> klausikm
    • status: open --> open-fixed
     
  • Klaus

    Klaus - 2006-01-31
    • status: open-fixed --> closed-fixed
     
  • Fanguad

    Fanguad - 2006-02-01

    Logged In: YES
    user_id=717728

    I've pulled the latest CVS version down, and I don't see the
    changes. It might just be sourceforge's CVS servers being
    slow, so I'll try again later.

     
  • Klaus

    Klaus - 2006-02-01

    Logged In: YES
    user_id=722855

    The CVS is not reflecting the current state, as I have
    seen. If you access the CVS via WinCVS (or similar) and not
    via the Web interface, the newest version for class
    Population is 1.31 (and not 1.30 as with the Web
    interface). Version 1.31 contains the change made. Similar
    for PopulationTest

     

Log in to post a comment.

MongoDB Logo MongoDB