[Paradiseo-help] [paradiseo-Bugs][3436] Bug in moeoFastNonDominatedSortingFitnessAssignment class

paradiseo-bugs at gforge.inria.fr paradiseo-bugs at gforge.inria.fr
Ven 15 Juin 10:02:06 CEST 2007


Bugs item #3436, was opened at 14/06/2007 10:04
You can respond by visiting: 
http://gforge.inria.fr/tracker/?func=detail&atid=663&aid=3436&group_id=145

Status: Open
Priority: 3
Submitted By: Nobody (None)
>Assigned to: Arnaud Liefooghe (liefooga)
Summary: Bug in moeoFastNonDominatedSortingFitnessAssignment class 
>Resolution: Accepted
Group: 1.0-alpha
Category: ParadisEO-ix86-1.0-alpha


Initial Comment:
In class moeoFastNonDominatedSortingFitnessAssignment, a segmentation fault happens when there is exactly one individual per fitness rank.



In function mObjectives(), vector F has a size of popSize+1. The numbering begins with 1, so when there is one individual per rank, the F[counter].empty() test ends testing outside the vector.



This can be solved by beginning the rank numbering with 0, or increasing the size of vector F by 1.



----------------------------------------------------------------------

You can respond by visiting: 
http://gforge.inria.fr/tracker/?func=detail&atid=663&aid=3436&group_id=145





Plus d'informations sur la liste de diffusion Paradiseo-help