Addition of the function PSO : Parallel evaluation
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@650 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
2cef623c31
commit
43fbde1096
9 changed files with 161 additions and 23 deletions
|
|
@ -22,8 +22,8 @@
|
|||
#include <peo>
|
||||
|
||||
|
||||
#define POP_SIZE 10
|
||||
#define NUM_GEN 100
|
||||
#define POP_SIZE 2
|
||||
#define NUM_GEN 2
|
||||
#define CROSS_RATE 1.0
|
||||
#define MUT_RATE 0.01
|
||||
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
// by default, parallel evaluation of the population is performed;
|
||||
// for parallel fitness evaluation, uncomment the following line
|
||||
|
||||
// #define PARALLEL_FIT_EVALUATION
|
||||
#define PARALLEL_FIT_EVALUATION
|
||||
|
||||
|
||||
int main( int __argc, char** __argv ) {
|
||||
|
|
@ -105,6 +105,7 @@ int main( int __argc, char** __argv ) {
|
|||
|
||||
peo :: run( );
|
||||
peo :: finalize( );
|
||||
|
||||
// shutting down the ParadisEO-PEO environment
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue