org.encog.ml.ea.population
public interface Population extends Serializable, MLMethod
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear all genomes from this population.
|
Species |
createSpecies()
Create a species.
|
Species |
determineBestSpecies()
Determine which species has the top genome.
|
List<Genome> |
flatten()
Flatten the species into a single list of genomes.
|
Genome |
getBestGenome() |
GenomeFactory |
getGenomeFactory() |
int |
getMaxIndividualSize() |
int |
getPopulationSize() |
List<Species> |
getSpecies() |
void |
purgeInvalidGenomes()
Purge any invalid genomes.
|
void |
setBestGenome(Genome bestGenome)
Set the best genome.
|
void |
setGenomeFactory(GenomeFactory factory)
Set the gnome factory.
|
void |
setPopulationSize(int populationSize)
Set the max population size.
|
int |
size() |
void clear()
Species createSpecies()
Species determineBestSpecies()
List<Genome> flatten()
Genome getBestGenome()
GenomeFactory getGenomeFactory()
int getMaxIndividualSize()
int getPopulationSize()
void setBestGenome(Genome bestGenome)
bestGenome
- The best genome.void setGenomeFactory(GenomeFactory factory)
factory
- The genome factory.void setPopulationSize(int populationSize)
populationSize
- The max population size.int size()
void purgeInvalidGenomes()
Copyright © 2014. All Rights Reserved.