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:
parent
6fd9843fa0
commit
7fa4e0220f
3 changed files with 14 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue