From 2343cc0e456e0306711c0a7218d3027f17cffee7 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Fri, 31 Jan 2014 16:45:45 +0000 Subject: 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. --- src/jcgp/fitness/TestFitFunction.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/jcgp/fitness') 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); } } -- cgit v1.2.3