minor fixes

This commit is contained in:
kuepper 2004-09-24 11:55:09 +00:00
commit fa108bbd6b
3 changed files with 37 additions and 11 deletions

View file

@ -80,18 +80,18 @@ int main()
checkpoint.add(stats);
// GA generation
eoEasyEA<Chrom> ea(checkpoint, eval, breeder, replace );
eoEasyEA<Chrom> ea(checkpoint, eval, breeder, replace);
// evolution
try
{
{
ea(pop);
}
}
catch (std::exception& e)
{
std::cout << "exception: " << e.what() << std::endl;;
exit(EXIT_FAILURE);
}
{
std::cout << "exception: " << e.what() << std::endl;;
exit(EXIT_FAILURE);
}
std::cout << "pop" << std::endl;
for (i = 0; i < pop.size(); ++i)