|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Population<T>
Population is a collection of Indiaviduals. Population is mutable. It is passed around so that various genetic operations can change it. In general, changing a passed argument would be a bad programming practice but it suits our purpose, reflects what we want to do and saves a lot of CPU time by not creating a copy of the population at every generation. The process of selection and replication remains with Population. An EvolutionResult can be obtained from Population at any time that stores the snapshot of the population at that time.
Method Summary | |
---|---|
EvolutionResult<T> |
getEvolutionResult()
get the result of the evolution |
int |
getGenerationNumber()
|
List<Individual<T>> |
getIndividuals()
required to change and manipulate the population |
void |
nextGeneration()
this performs selection and replication so that this population is at the next generation once this method completes |
Method Detail |
---|
List<Individual<T>> getIndividuals()
EvolutionResult<T> getEvolutionResult()
int getGenerationNumber()
void nextGeneration() throws AmibaException
AmibaException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |