com.rapidminer.tools.math.optimization.ec.es
Class RankSelection

java.lang.Object
  extended by com.rapidminer.tools.math.optimization.ec.es.RankSelection
All Implemented Interfaces:
PopulationOperator

public class RankSelection
extends java.lang.Object
implements PopulationOperator

Selects a given fixed number of individuals by subdividing a roulette wheel in sections of size proportional to the individuals' rank based on their fitness values. Optionally keep the best individual. Since the individuals are sorted accordingly to their rank this selection operator needs m log m time for population size m.

Author:
Ingo Mierswa

Constructor Summary
RankSelection(int popSize, boolean keepBest, java.util.Random random)
           
 
Method Summary
 void operate(Population population)
           
 boolean performOperation(int generation)
          The default implementation returns true for every generation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RankSelection

public RankSelection(int popSize,
                     boolean keepBest,
                     java.util.Random random)
Method Detail

performOperation

public boolean performOperation(int generation)
The default implementation returns true for every generation.


operate

public void operate(Population population)
Specified by:
operate in interface PopulationOperator


Copyright © 2001-2009 by Rapid-I