protected void generateRandomPopulation(int population_size){
  logger.debug("Creating random population");
  for (int i=0; i < population_size; i++) {
    T individual=chromosomeFactory.getChromosome();
    for (    FitnessFunction<?> fitnessFunction : this.fitnessFunctions) {
      individual.addFitness(fitnessFunction);
    }
    population.add(individual);
    if (isFinished())     break;
  }
  logger.debug("Created " + population.size() + " individuals");
}

protected void generateRandomPopulation ( int population_size ) { logger . debug ( "Creating random population" ) ; for ( int i = 0 ; i < population_size ; i ++ ) { T individual = chromosomeFactory . getChromosome ( ) ; for ( FitnessFunction < ? > fitnessFunction : this . fitnessFunctions ) { individual . addFitness ( fitnessFunction ) ; } population . add ( individual ) ; if ( isFinished ( ) ) break ; } logger . debug ( "Created " + population . size ( ) + " individuals" ) ; }
generate random population of given size
