Added a frequency parameter to eoPopStat (dump pop every N gen)
This commit is contained in:
parent
73157edba6
commit
45f61a0e0b
1 changed files with 4 additions and 3 deletions
|
|
@ -296,9 +296,10 @@ void main_function(int argc, char **argv)
|
||||||
monitor.add(SecondStat);
|
monitor.add(SecondStat);
|
||||||
monitor.add(fdcStat);
|
monitor.add(fdcStat);
|
||||||
|
|
||||||
// test de eoPopStat and/or eoSortedPopStat
|
// test de eoPopStat and/or eoSortedPopStat.
|
||||||
// eoSortedPopStat<Indi> popStat("Dump of whole population");
|
// Dumps the whole pop every 10 gen.
|
||||||
eoPopStat<Indi> popStat("Dump of whole population");
|
// eoSortedPopStat<Indi> popStat(10, "Dump of whole population");
|
||||||
|
eoPopStat<Indi> popStat(10, "Dump of whole population");
|
||||||
checkpoint.add(popStat);
|
checkpoint.add(popStat);
|
||||||
monitor.add(popStat);
|
monitor.add(popStat);
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue