org.dbe.eve.ga.impl
Class SimpleBreeder
java.lang.Object
org.dbe.eve.ga.impl.SimpleBreeder
public class SimpleBreeder
- extends java.lang.Object
- Author:
- Claudius
SimpleBreeder - this Simplebreeder breeds a population
The individuals of the population habe to be evaluated.
How does the breeding work here?
- Lets take 10
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TOURNAMENT_SELECTION_SIZE
final int TOURNAMENT_SELECTION_SIZE
- See Also:
- Constant Field Values
CROSSOVER_RATIO
final float CROSSOVER_RATIO
- See Also:
- Constant Field Values
MUTATION_PROP
final float MUTATION_PROP
- See Also:
- Constant Field Values
SimpleBreeder
public SimpleBreeder()
SimpleBreeder
public SimpleBreeder(ServicePool pool)
getPopulation
public SimplePopulation getPopulation()
- Returns:
- Returns the population.
setPopulation
public void setPopulation(SimplePopulation population)
- Parameters:
population
- The population to set.
breed
public SimplePopulation breed()
breed
public SimplePopulation breed(SimplePopulation population)
- Parameters:
population
- that is the breeding source
- Returns:
- SimplePopulation The New population, that contains the breeded offsprings