Skip to content

Commit

Permalink
Accept usage of "System.out" in examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilles Sadowski committed Feb 7, 2022
1 parent 663caaa commit 0d6c6e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ public void optimize(int dimension,
// best chromosome from the final population
final Chromosome bestFinal = finalPopulation.getFittestChromosome();

//CHECKSTYLE: stop all
System.out.println("best=" + bestFinal.toString());
//CHECKSTYLE: resume all
}

private static Population getInitialPopulation(int dimension, int populationSize, double elitismRate) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ public void optimize(List<City> cities,
@SuppressWarnings("unchecked")
final RandomKey<City> bestFinal = (RandomKey<City>) finalPopulation.getFittestChromosome();

//CHECKSTYLE: stop all
System.out.println("best=" + bestFinal.toString());
//CHECKSTYLE: resume all
}

private static Population getInitialPopulation(List<City> cities, int populationSize, double elitismRate) {
Expand Down

0 comments on commit 0d6c6e6

Please sign in to comment.