protected void starveByFitness(int limit){
  calculateFitnessAndSortPopulation();
  for (int i=population.size() - 1; i >= limit; i--) {
    population.remove(i);
  }
}

protected void starveByFitness ( int limit ) { calculateFitnessAndSortPopulation ( ) ; for ( int i = population . size ( ) - 1 ; i >= limit ; i -- ) { population . remove ( i ) ; } }
this method can be used to kick out the worst chromosomes in the current population until the given limit is reached again .
