[Paradiseo-help] [paradiseo-Bugs][3469] Bug in deterministic tournament

paradiseo-bugs at gforge.inria.fr paradiseo-bugs at gforge.inria.fr
Ven 22 Juin 12:38:35 CEST 2007


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

>Status: Closed
Priority: 3
Submitted By: Nobody (None)
Assigned to: Arnaud Liefooghe (liefooga)
Summary: Bug in deterministic tournament 
Resolution: Fixed
Group: 1.0-alpha
Category: ParadisEO-ix86-1.0-alpha


Initial Comment:
The deterministic tournament in version 1.0-alpha selects the worst individual instead of the best.



In file moeoSelectors.h, function mo_deterministic_tournament, competitor replaces best if best is better than competitor. The test should be:



        // compare the two individuals by using the comparator

        if (_comparator(*competitor, *best))



            // competitor "better" than best

            best=competitor;



instead of:



         // compare the two individuals by using the comparator

         if (_comparator(*best,*competitor))

 

             // best "better" than competitor

             best=competitor;





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

Comment By: Arnaud Liefooghe (liefooga)
Date: 22/06/2007 12:37

Message:
This will be corrected in the next version

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

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





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