private static Population<DoubleGene, Double> population(final int min, final int max) { return IntStream.rangeClosed(min, max) .mapToDouble(i -> (double) i) .mapToObj(FitnessThresholdLimitTest::phenotype) .collect(Population.toPopulation()); }