if (generation == 1 || generation % 10 == 0) {
System.out.println("Generation " + generation + ": " + fittestChromosome.toString());
}
generation++;
double fitness = fittestChromosome.fitness();
if (Precision.equals(fitness, 0.0, 1e-6)) {
return true;
} else {
return false;
}