aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/JCGP.java
diff options
context:
space:
mode:
authorEduardo Pedroni <ep625@york.ac.uk>2014-05-04 19:23:52 +0100
committerEduardo Pedroni <ep625@york.ac.uk>2014-05-04 19:23:52 +0100
commitaa9e74e7f67789f6353fc26e02ee8e68e40609a2 (patch)
tree3ad4ed8a0717a9983775a38b0cc8d9a10c01302a /src/jcgp/JCGP.java
parentc4fc7e307caf03c93c4203aff8960ffcb3ca8737 (diff)
Added more comments, minor refactorings
Diffstat (limited to 'src/jcgp/JCGP.java')
-rw-r--r--src/jcgp/JCGP.java2
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);