int iteration = 1;
double lastSolution = Double.MAX_VALUE;
StringBuilder builder = new StringBuilder();
while (sameSolutionCount < MAX_SAME_SOLUTION && iteration<1000) {
genetic.iteration();
double thisSolution = genetic.getLastError();
builder.setLength(0);
builder.append("Iteration: ");