From ef7a850a8f2f81ccaa07f25d9b7ad602e84d88c9 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Sun, 16 Feb 2014 22:41:46 +0000 Subject: Light refactoring, a good amount of testing done, added some new functions. --- src/jcgp/fitness/TruthTableEvaluator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/jcgp/fitness') diff --git a/src/jcgp/fitness/TruthTableEvaluator.java b/src/jcgp/fitness/TruthTableEvaluator.java index 2281b3f..4adf435 100644 --- a/src/jcgp/fitness/TruthTableEvaluator.java +++ b/src/jcgp/fitness/TruthTableEvaluator.java @@ -22,7 +22,9 @@ public class TruthTableEvaluator implements FitnessFunction { } } population.getChromosome(i).setFitness(fitness); - System.out.println("active nodes: " + population.getChromosome(i).getActiveNodes().size()); + if (Parameters.getDebug()) { + System.out.println("active nodes: " + population.getChromosome(i).getActiveNodes().size()); + } } } } -- cgit v1.2.3