added test for printing population

This commit is contained in:
maartenkeijzer 2001-03-23 12:24:39 +00:00
commit a1508b75a2

View file

@ -156,13 +156,15 @@ void main_function()
eoInitFixedLength<Chrom> init(16, gen);
eoPop<Chrom> pop(100, init);
apply<Chrom>(eval, pop);
sga(pop);
pop.sort();
cout << "Population " << pop << endl;
cout << "\nBest: " << pop[0].fitness() << '\n';
/*