update and new stuffs
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@203 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
ad029622a0
commit
8f5ccd0d12
9 changed files with 158 additions and 239 deletions
|
|
@ -93,7 +93,12 @@ public:
|
|||
evalFitness (_parents);
|
||||
evalDiversity (_parents);
|
||||
// sorts the whole population according to the comparator
|
||||
std::sort (_parents.begin (), _parents.end (), comparator);
|
||||
|
||||
/*************************************************************************/
|
||||
moeoFitnessThenDiversityComparator < MOEOT > comp;
|
||||
std::sort (_parents.begin (), _parents.end (), comp);
|
||||
/*************************************************************************/
|
||||
|
||||
// finally, resize this global population
|
||||
_parents.resize (sz);
|
||||
// and clear the offspring population
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue