aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/fitness
diff options
context:
space:
mode:
Diffstat (limited to 'src/jcgp/fitness')
-rw-r--r--src/jcgp/fitness/TestFitFunction.java2
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);
}
}