getFittestChromosomes(int) returns incorrect values
Brought to you by:
klausikm
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.
JGAP_TestCase.java
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.
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.
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