diff options
author | Eduardo Pedroni <ep625@york.ac.uk> | 2014-01-31 16:45:45 +0000 |
---|---|---|
committer | Eduardo Pedroni <ep625@york.ac.uk> | 2014-01-31 16:45:45 +0000 |
commit | 2343cc0e456e0306711c0a7218d3027f17cffee7 (patch) | |
tree | efb26576ff4a283a87bd4b56deb9aba175924cfe /src/jcgp/fitness | |
parent | a02f1fff03ab58416da812597e67a0c7e21fdbd5 (diff) |
Added lots of utility methods for initialisation and mutation; the foundation is laid down and probably works, now it's time to test it and implement the standard CGP modules.
Diffstat (limited to 'src/jcgp/fitness')
-rw-r--r-- | src/jcgp/fitness/TestFitFunction.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jcgp/fitness/TestFitFunction.java b/src/jcgp/fitness/TestFitFunction.java index fea9f2d..00ee833 100644 --- a/src/jcgp/fitness/TestFitFunction.java +++ b/src/jcgp/fitness/TestFitFunction.java @@ -9,6 +9,8 @@ public class TestFitFunction implements FitnessFunction { public void evaluatePopulation(Population population) { for (Chromosome c : population) { + int i = c.getOutput(0).calculate(); + System.out.println(i); c.setFitness(1); } } |