aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/fitness/TruthTableEvaluator.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jcgp/fitness/TruthTableEvaluator.java')
-rw-r--r--src/jcgp/fitness/TruthTableEvaluator.java4
1 files changed, 3 insertions, 1 deletions
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());
+ }
}
}
}