From afd7bdb03d6a904ae5820493fdfffd5946d46a0f Mon Sep 17 00:00:00 2001 From: jhumeau Date: Wed, 28 May 2008 13:32:46 +0000 Subject: [PATCH] Replace old archive by moeoUnboundedArchive. git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1198 331e1502-861f-0410-8da2-ba01fb791d7f --- trunk/paradiseo-moeo/tutorial/Lesson1/Sch1.cpp | 4 ++-- trunk/paradiseo-moeo/tutorial/Lesson2/FlowShopEA.cpp | 2 +- trunk/paradiseo-moeo/tutorial/Lesson3/FlowShopEA2.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/trunk/paradiseo-moeo/tutorial/Lesson1/Sch1.cpp b/trunk/paradiseo-moeo/tutorial/Lesson1/Sch1.cpp index f774f6f6b..a158a383c 100644 --- a/trunk/paradiseo-moeo/tutorial/Lesson1/Sch1.cpp +++ b/trunk/paradiseo-moeo/tutorial/Lesson1/Sch1.cpp @@ -128,8 +128,8 @@ int main (int argc, char *argv[]) nsgaII (pop); // extract first front of the final population using an moeoArchive (this is the output of nsgaII) - moeoArchive < Sch1 > arch; - arch.update (pop); + moeoUnboundedArchive < Sch1 > arch; + arch(pop); // printing of the final archive cout << "Final Archive" << endl; diff --git a/trunk/paradiseo-moeo/tutorial/Lesson2/FlowShopEA.cpp b/trunk/paradiseo-moeo/tutorial/Lesson2/FlowShopEA.cpp index d3e364520..af267f778 100644 --- a/trunk/paradiseo-moeo/tutorial/Lesson2/FlowShopEA.cpp +++ b/trunk/paradiseo-moeo/tutorial/Lesson2/FlowShopEA.cpp @@ -87,7 +87,7 @@ int main(int argc, char* argv[]) // initialization of the population eoPop& pop = do_make_pop(parser, state, init); // definition of the archive - moeoArchive arch; + moeoUnboundedArchive arch; // stopping criteria unsigned int maxGen = parser.createParam((unsigned int)(100), "maxGen", "Maximum number of gen.",'G',"Stopping criterion").value(); eoGenContinue term(maxGen); diff --git a/trunk/paradiseo-moeo/tutorial/Lesson3/FlowShopEA2.cpp b/trunk/paradiseo-moeo/tutorial/Lesson3/FlowShopEA2.cpp index bb1d0f09b..1752bab4f 100644 --- a/trunk/paradiseo-moeo/tutorial/Lesson3/FlowShopEA2.cpp +++ b/trunk/paradiseo-moeo/tutorial/Lesson3/FlowShopEA2.cpp @@ -87,7 +87,7 @@ int main(int argc, char* argv[]) // initialization of the population eoPop& pop = do_make_pop(parser, state, init); // definition of the archive - moeoArchive arch; + moeoUnboundedArchive arch; // stopping criteria eoContinue& term = do_make_continue_moeo(parser, state, eval); // output