/** * @param data Statistics about the state of the current generation * @return final statistics of the generation of solutions */ public static String populationUpdates(PopulationData<? extends String> data) { String time = getElapsedTime(data.getElapsedTime()); // converting the time to H:M:SS:Mil EvolutionStalker.output = data; return "Gen: " + data.getGenerationNumber() + " |" + "fitness: " + data.getBestCandidate() + " |" + "pop size" + data.getPopulationSize() + " | " + "Time" + time + "|" + "Time (Millisec)" + data.getElapsedTime(); }