peoEvalFuncPSO corrected
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@791 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
adb6419766
commit
27e8f9db0d
6 changed files with 6 additions and 6 deletions
Binary file not shown.
|
|
@ -98,7 +98,7 @@ int main (int __argc, char *__argv[])
|
|||
*/
|
||||
|
||||
// For a parallel evaluation
|
||||
peoEvalFuncPSO<Indi, double, const Indi& > plainEval(f);
|
||||
peoEvalFunc<Indi, double, const Indi& > plainEval(f);
|
||||
peoParaPopEval< Indi > eval(plainEval);
|
||||
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -78,7 +78,7 @@ int main (int __argc, char *__argv[])
|
|||
|
||||
// First algorithm
|
||||
/*****************************************************************************************/
|
||||
peoEvalFuncPSO<Indi, double, const Indi& > plainEval(f);
|
||||
peoEvalFunc<Indi, double, const Indi& > plainEval(f);
|
||||
peoSeqPopEval< Indi > eval(plainEval); // Here, the evaluation is sequential !
|
||||
eoUniformGenerator < double >uGen (INIT_POSITION_MIN, INIT_POSITION_MAX);
|
||||
eoInitFixedLength < Indi > random (VEC_SIZE, uGen);
|
||||
|
|
@ -106,7 +106,7 @@ int main (int __argc, char *__argv[])
|
|||
|
||||
// Second algorithm (on the same model but with others names)
|
||||
/*****************************************************************************************/
|
||||
peoEvalFuncPSO<Indi, double, const Indi& > plainEval2(f);
|
||||
peoEvalFunc<Indi, double, const Indi& > plainEval2(f);
|
||||
peoSeqPopEval< Indi > eval2(plainEval2);
|
||||
eoUniformGenerator < double >uGen2 (INIT_POSITION_MIN, INIT_POSITION_MAX);
|
||||
eoInitFixedLength < Indi > random2 (VEC_SIZE, uGen2);
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -69,7 +69,7 @@ int main (int __argc, char *__argv[])
|
|||
const unsigned int MIG_FREQ = 10;
|
||||
rng.reseed (time(0));
|
||||
RingTopology topologyMig;
|
||||
peoEvalFuncPSO<Indi, double, const Indi& > plainEval(f);
|
||||
peoEvalFunc<Indi, double, const Indi& > plainEval(f);
|
||||
peoParaPopEval< Indi > eval(plainEval);
|
||||
eoUniformGenerator < double >uGen (INIT_POSITION_MIN, INIT_POSITION_MAX);
|
||||
eoInitFixedLength < Indi > random (VEC_SIZE, uGen);
|
||||
|
|
@ -90,7 +90,7 @@ int main (int __argc, char *__argv[])
|
|||
peoPSOSelect<Indi> mig_selec(topology);
|
||||
eoSelectNumber< Indi > mig_select(mig_selec);
|
||||
peoPSOReplacement<Indi> mig_replace;
|
||||
peoEvalFuncPSO<Indi, double, const Indi& > plainEval2(f);
|
||||
peoEvalFunc<Indi, double, const Indi& > plainEval2(f);
|
||||
peoParaPopEval< Indi > eval2(plainEval2);
|
||||
eoUniformGenerator < double >uGen2 (INIT_POSITION_MIN, INIT_POSITION_MAX);
|
||||
eoInitFixedLength < Indi > random2 (VEC_SIZE, uGen2);
|
||||
|
|
@ -111,7 +111,7 @@ int main (int __argc, char *__argv[])
|
|||
peoPSOSelect<Indi> mig_selec2(topology2);
|
||||
eoSelectNumber< Indi > mig_select2(mig_selec2);
|
||||
peoPSOReplacement<Indi> mig_replace2;
|
||||
peoEvalFuncPSO<Indi, double, const Indi& > plainEval3(f);
|
||||
peoEvalFunc<Indi, double, const Indi& > plainEval3(f);
|
||||
peoParaPopEval< Indi > eval3(plainEval3);
|
||||
eoUniformGenerator < double >uGen3 (INIT_POSITION_MIN, INIT_POSITION_MAX);
|
||||
eoInitFixedLength < Indi > random3 (VEC_SIZE, uGen3);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue