コード例 #1
0
  @Override
  public void accept(final EvolutionResult<?, C> result) {
    accept(result.getDurations());

    _killed.accept(result.getKillCount());
    _invalids.accept(result.getInvalidCount());
    _altered.accept(result.getAlterCount());

    result.getPopulation().forEach(pt -> accept(pt, result.getGeneration()));
  }
コード例 #2
0
 @Override
 void accept(final Phenotype<?, N> pt, final long generation) {
   super.accept(pt, generation);
   _fitness.accept(pt.getFitness().doubleValue());
 }