|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--evSOLve.JEvolution.JEvolution
A quite general implementation of an Evolutionary Algorithm.
Constructor Summary | |
JEvolution()
The minimal constructor, all GA parameters are set to default values. |
Method Summary | |
void |
addChromosome(Chromosome chromosome)
Add a JEvolution native or a custom Chromosome to the Genotype. |
void |
doEvolve()
The evolutionary cycle. |
boolean |
getChromosomeShuffling()
Get status of Chromosome shuffling. |
java.lang.Object |
getJEvolutionReporter()
Access statistics. |
int |
getNumberOfGenerations()
Gives number of generations. |
int |
getNumberOfRuns()
Access number of evolutionary runs. |
int |
getPopulationSize()
Gives population size. |
void |
setChromosomeShuffling(boolean on)
Switches Chromosome shuffling on/off. |
void |
setNumberOfGenerations(int numberOfGenerations)
Changes number of generations. |
void |
setNumberOfRuns(int numberOfRuns)
Change number of evolutionary runs. |
void |
setPhenotype(Phenotype phenotype)
Set the Phenotype with all the problem-specific code. |
void |
setPopulationSize(int populationSize)
Changes population size. |
void |
setSelection(Selection selection)
Set Selection type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JEvolution()
Method Detail |
public void doEvolve()
public void addChromosome(Chromosome chromosome)
chromosome
- JEvolution native or costum ChromosomePhenotype.doOntogeny(java.util.Vector)
,
setChromosomeShuffling(boolean)
public void setPhenotype(Phenotype phenotype)
phenotype
- Fitness code provided by user.public void setSelection(Selection selection)
selection
- native or custom selection methodpublic int getNumberOfRuns()
public void setNumberOfRuns(int numberOfRuns) throws JEvolutionException
numberOfRuns
- The number of runs.public int getPopulationSize()
public void setPopulationSize(int populationSize) throws JEvolutionException
populationSize
- number of individualsJEvolutionException
- invalid sizepublic int getNumberOfGenerations()
public void setNumberOfGenerations(int numberOfGenerations) throws JEvolutionException
numberOfGenerations
- generations per runJEvolutionException
- meaningless numberpublic boolean getChromosomeShuffling()
public void setChromosomeShuffling(boolean on)
on
- turns it on/offaddChromosome(evSOLve.JEvolution.Chromosome)
public java.lang.Object getJEvolutionReporter()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |