diff options
Diffstat (limited to 'src/jcgp/JCGP.java')
-rw-r--r-- | src/jcgp/JCGP.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jcgp/JCGP.java b/src/jcgp/JCGP.java index aa3b647..213dd06 100644 --- a/src/jcgp/JCGP.java +++ b/src/jcgp/JCGP.java @@ -477,13 +477,13 @@ public class JCGP { * */ public void reset() { - finished = false; statistics = new StatisticsLogger(); resources.setArity(problem.getFunctionSet().getMaxArity()); if (resources.arity() < 1) { resources.println("[CGP] Error: arity is smaller than 1. Check that at least one function is enabled"); return; } + finished = false; population = new Population(resources); resetStatisticsValues(); resources.setCurrentGeneration(1); |