all Ctors tested
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1216 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
9f24113e1c
commit
80cf06f306
1 changed files with 10 additions and 2 deletions
|
|
@ -88,21 +88,29 @@ int main()
|
|||
std::cout << "[moeoIBEA]" << std::endl;
|
||||
|
||||
TestEval eval;
|
||||
eoPopLoopEval <Solution> popEval(eval);
|
||||
eoQuadCloneOp < Solution > xover;
|
||||
eoUniformMutation < Solution > mutation(0.05);
|
||||
|
||||
eoRealVectorBounds bounds(1, 1.0, 2.0);
|
||||
eoRealInitBounded < Solution > init(bounds);
|
||||
eoPop < Solution > pop(20, init);
|
||||
eoQuadGenOp <Solution> genOp(xover);
|
||||
eoSGATransform < Solution > transform(xover, 0.1, mutation, 0.1);
|
||||
eoGenContinue <Solution > continuator(10);
|
||||
|
||||
// indicator
|
||||
moeoAdditiveEpsilonBinaryMetric < ObjectiveVector > indicator;
|
||||
|
||||
// build IBEA
|
||||
moeoIBEA < Solution > nsgaII(20, eval, xover, 1.0, mutation, 1.0, indicator);
|
||||
moeoIBEA < Solution > algo(20, eval, xover, 1.0, mutation, 1.0, indicator);
|
||||
moeoIBEA < Solution > algo2(continuator, eval, genOp, indicator);
|
||||
moeoIBEA < Solution > algo3(continuator, popEval, genOp, indicator);
|
||||
moeoIBEA < Solution > algo4(continuator, eval, transform, indicator);
|
||||
moeoIBEA < Solution > algo5(continuator, popEval, transform, indicator);
|
||||
|
||||
// run the algo
|
||||
nsgaII(pop);
|
||||
algo(pop);
|
||||
|
||||
// final pop
|
||||
std::cout << "Final population" << std::endl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue