From a1508b75a28e3d7c0c6175d6168665b853c6e929 Mon Sep 17 00:00:00 2001 From: maartenkeijzer Date: Fri, 23 Mar 2001 12:24:39 +0000 Subject: [PATCH] added test for printing population --- eo/test/t-eobin.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eo/test/t-eobin.cpp b/eo/test/t-eobin.cpp index cdc29c09..75c7d325 100644 --- a/eo/test/t-eobin.cpp +++ b/eo/test/t-eobin.cpp @@ -156,13 +156,15 @@ void main_function() eoInitFixedLength init(16, gen); eoPop pop(100, init); - + apply(eval, pop); - + sga(pop); pop.sort(); + cout << "Population " << pop << endl; + cout << "\nBest: " << pop[0].fitness() << '\n'; /*