|
Orbital library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorbital.algorithm.evolutionary.GeneticAlgorithm
orbital.algorithm.evolutionary.SteadyStateGeneticAlgorithm
public class SteadyStateGeneticAlgorithm
A steady state genetic algorithm with overlapping populations. Reproduces a given percentage of the population and replaces (if better).
Note: to make sure this algorithm is compatible with ParallelEvaluationPopulation
each new genome that arises is evaluated prior to updating the populaiton.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class orbital.algorithm.evolutionary.GeneticAlgorithm |
|---|
GeneticAlgorithm.Configuration |
| Constructor Summary | |
|---|---|
protected |
SteadyStateGeneticAlgorithm()
|
|
SteadyStateGeneticAlgorithm(int replacements)
Construct a new GeneticAlgorithm. |
| Method Summary | |
|---|---|
void |
evolve()
evolves to the next generation for this population. |
int |
getNumberOfReplacements()
Get the number of replacements to do at each generation (=< population.size()). |
double |
getPopulationGrowth()
Get the population growth factor. |
void |
setNumberOfReplacements(int replacements)
|
| Methods inherited from class orbital.algorithm.evolutionary.GeneticAlgorithm |
|---|
clone, complexity, equals, getEvaluation, getPopulation, getRandom, getSelection, hashCode, isCorrect, setEvaluation, setPopulation, setRandom, setSelection, solve, spaceComplexity, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SteadyStateGeneticAlgorithm(int replacements)
replacements - the number of replacements to do at each generation (=< population.size()).
We will perform as many reproductions such that at least replacement replacements
have occured.protected SteadyStateGeneticAlgorithm()
| Method Detail |
|---|
public int getNumberOfReplacements()
replacement replacements
have occured.
public void setNumberOfReplacements(int replacements)
public double getPopulationGrowth()
GeneticAlgorithm
getPopulationGrowth in class GeneticAlgorithmpublic void evolve()
GeneticAlgorithm
evolve in class GeneticAlgorithmGeneticAlgorithm.selection,
Genome.recombine(Gene[],int,double),
PopulationImpl.getMaximumRecombination(),
PopulationImpl.getMaximumMutation()
|
Orbital library 1.2.0: 23 Apr 2008 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||