|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for creating GA engines which may be generational or not.
Method Summary | |
void |
evolve()
runs the evolution process on the population performing: selection, recombination & mutation and elitism |
int |
getGenerations()
returns an int whose value is the number of times the evolve() method was called after the latest poolOfMud() call. |
Genotype |
getGenotype(int i)
gets the genotype at index i in the population. |
Population |
getPopulation()
returns the whole population (probably previous generation, not from one currently evolving) |
int |
getPopulationSize()
returns the size of the population this Evolver deals with. |
void |
insertGenotype(Genotype g)
inserts this genotype into the current population. |
Genotype |
pickGenotype()
uses the evolver's selector to pick a genotype from the population (probably the previous generation, not from one currently evolving) |
void |
poolOfMud()
Creates the initial random individuals by: 1) Getting a decent randoizer 2) generating [populationSize] random BitSets of length [genotypeLength] |
void |
setPopulation(Population pop)
Sets this evolvers current generation population to this one. |
Method Detail |
public void poolOfMud()
public void evolve()
public int getPopulationSize()
public Genotype pickGenotype()
public Genotype getGenotype(int i)
public Population getPopulation()
public void insertGenotype(Genotype g)
public int getGenerations()
public void setPopulation(Population pop)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |