git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1409 331e1502-861f-0410-8da2-ba01fb791d7f

This commit is contained in:
jhumeau 2009-02-06 13:06:55 +00:00
commit 0e2b5e0cd2

View file

@ -29,16 +29,23 @@ int main(int argc, char* argv[])
ExchangeMoveInit moveInit;
ExchangeMove move;
eoEvalFuncCounter<FlowShop>& eval = do_make_eval(parser, state);
eoInit<FlowShop>& init = do_make_genotype(parser, state);
// population
eoPop < FlowShop > pop;
eoTimeContinue < FlowShop > continuator(5);
eoPop<FlowShop>& pop = do_make_pop(parser, state, init);
eoTimeContinue < FlowShop > continuator(10000000);
moeoAllSolAllNeighborsExpl < ExchangeMove > explorer(moveInit,moveNext, eval);
//
moeoUnifiedDominanceBasedLS < ExchangeMove > algo(continuator, explorer);
for (unsigned int i=0; i<pop.size(); i++)
eval(pop[i]);
std::cout << "Initial Population\n";
pop.sortedPrintOn(std::cout);
std::cout << std::endl;
//
// algo(pop);
algo(pop);
std::cout << "OK c'est bon" << std::endl;
return EXIT_SUCCESS;