com.rapidminer.tools.math.optimization.ec.es
Class RankSelection
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RankSelection
public RankSelection(int popSize,
boolean keepBest,
java.util.Random random)
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