From 45f61a0e0b82fbd7209a9d185e5044445fd05eb3 Mon Sep 17 00:00:00 2001 From: evomarc Date: Fri, 25 May 2001 16:27:59 +0000 Subject: [PATCH] Added a frequency parameter to eoPopStat (dump pop every N gen) --- eo/tutorial/Lesson3/exercise3.1.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/eo/tutorial/Lesson3/exercise3.1.cpp b/eo/tutorial/Lesson3/exercise3.1.cpp index 9e401959c..2030ac878 100644 --- a/eo/tutorial/Lesson3/exercise3.1.cpp +++ b/eo/tutorial/Lesson3/exercise3.1.cpp @@ -296,9 +296,10 @@ void main_function(int argc, char **argv) monitor.add(SecondStat); monitor.add(fdcStat); - // test de eoPopStat and/or eoSortedPopStat - // eoSortedPopStat popStat("Dump of whole population"); - eoPopStat popStat("Dump of whole population"); + // test de eoPopStat and/or eoSortedPopStat. + // Dumps the whole pop every 10 gen. + // eoSortedPopStat popStat(10, "Dump of whole population"); + eoPopStat popStat(10, "Dump of whole population"); checkpoint.add(popStat); monitor.add(popStat);