From 1fd678821cf133c7c431daea687f3467bb0be2dd Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Tue, 4 Feb 2014 16:20:33 +0000 Subject: Added fitness evaluation mechanism, though it might not be a very good design. Tests will be done to verify that. --- src/jcgp/population/Population.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/jcgp/population/Population.java') diff --git a/src/jcgp/population/Population.java b/src/jcgp/population/Population.java index 55f756a..e171a2f 100644 --- a/src/jcgp/population/Population.java +++ b/src/jcgp/population/Population.java @@ -43,6 +43,8 @@ public class Population implements Iterable { @Override public void remove() { // not allowed + // since this would shift everything back one position, increment index + index++; } }; -- cgit v1.2.3