Modification Lesson4 of PSO

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@739 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
canape 2007-10-23 13:15:09 +00:00
commit 0aa45121a7

View file

@ -115,12 +115,14 @@ int main (int __argc, char *__argv[])
eoSyncEasyPSO < Indi > psa(checkpoint, eval, velocity, flight);
psa (pop);
pop.sort ();
std::cout << "Final population :\n" << pop << std::endl;
#else
//Parallel algorithm
peoPSO < Indi > psa(checkpoint, eval, velocity, flight);
psa(pop);
peo :: run();
peo :: finalize();
if(getNodeRank()==1)
std::cout << "Final population :\n" << pop << std::endl;
#endif
std::cout << "Final population :\n" << pop << std::endl;
}