Modification of the display for lesson1,2,3 in peo

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@744 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
canape 2007-10-24 11:34:24 +00:00
commit 7fa4e0220f
3 changed files with 14 additions and 2 deletions

View file

@ -103,5 +103,8 @@ int main( int __argc, char** __argv ) {
peo :: finalize( );
// shutting down the ParadisEO-PEO environment
if(getNodeRank()==1)
std::cout<<"\n\nPopulation :\n"<<population;
return 0;
}

View file

@ -50,8 +50,8 @@
#include <peo>
#define POP_SIZE 2
#define NUM_GEN 2
#define POP_SIZE 10
#define NUM_GEN 100
#define CROSS_RATE 1.0
#define MUT_RATE 0.01
@ -133,6 +133,9 @@ int main( int __argc, char** __argv ) {
peo :: run( );
peo :: finalize( );
if(getNodeRank()==1)
std::cout<<"\n\nPopulation :\n"<<population;
// shutting down the ParadisEO-PEO environment

View file

@ -182,6 +182,12 @@ int main( int __argc, char** __argv ) {
peo :: run( );
peo :: finalize( );
if(getNodeRank()==1)
{
std::cout << "Population 1 :\n" << population << std::endl;
std::cout << "Population 2 :\n" << population2 << std::endl;
}
// shutting down the ParadisEO-PEO environment
return 0;