correct island model
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@734 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
f8cd064fab
commit
d08a13581f
1 changed files with 0 additions and 4 deletions
|
|
@ -63,13 +63,9 @@ class peoPSOReplacement : public eoReplacement<POT>
|
|||
}
|
||||
if(_dest[ind].best() < _source[0].best())
|
||||
{
|
||||
_dest[ind].fitness(_source[0].best());
|
||||
_dest[ind].best(_source[0].best());
|
||||
for(unsigned j=0;j<_dest[ind].size();j++)
|
||||
{
|
||||
_dest[ind][j]=_source[0].bestPositions[j];
|
||||
_dest[ind].bestPositions[j]=_source[0].bestPositions[j];
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue