From 584fbb101f46d9368d6e644a0d29020ec1a268c2 Mon Sep 17 00:00:00 2001 From: liefooga Date: Thu, 26 Jun 2008 13:37:50 +0000 Subject: [PATCH] all Ctors tested git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1211 331e1502-861f-0410-8da2-ba01fb791d7f --- trunk/paradiseo-moeo/test/t-moeoNSGAII.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/trunk/paradiseo-moeo/test/t-moeoNSGAII.cpp b/trunk/paradiseo-moeo/test/t-moeoNSGAII.cpp index c62d51800..d1139468e 100644 --- a/trunk/paradiseo-moeo/test/t-moeoNSGAII.cpp +++ b/trunk/paradiseo-moeo/test/t-moeoNSGAII.cpp @@ -88,15 +88,23 @@ int main() std::cout << "[moeoNSGAII]" << std::endl; TestEval eval; + eoPopLoopEval 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 genOp(xover); + eoSGATransform < Solution > transform(xover, 0.1, mutation, 0.1); + eoGenContinue continuator(10); // build NSGA-II moeoNSGAII < Solution > algo(20, eval, xover, 1.0, mutation, 1.0); + moeoNSGAII < Solution > algo2(continuator, eval, genOp); + moeoNSGAII < Solution > algo3(continuator, popEval, genOp); + moeoNSGAII < Solution > algo4(continuator, eval, transform); + moeoNSGAII < Solution > algo5(continuator, popEval, transform); // run the algo algo(pop);