|
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.IncrementalGeneticAlgorithm
orbital.algorithm.evolutionary.ConcurrenceGeneticAlgorithm
public class ConcurrenceGeneticAlgorithm
This class is a genetic algorithm that weights its members in comparison to the others.
Evaluation will be called with Pairs to weight.
Either it returns a Pair of Numbers then, or it is called with both
elements again to get their associated weight.
Experimental
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class orbital.algorithm.evolutionary.GeneticAlgorithm |
|---|
GeneticAlgorithm.Configuration |
| Field Summary | |
|---|---|
static int |
FLAT_HIERARCHY
Implemented as flat hierarchy comparison. |
static int |
HIERARCHY
|
static int |
ROUND_ROBIN
Implemented as round robin comparison. |
| Constructor Summary | |
|---|---|
ConcurrenceGeneticAlgorithm()
|
|
| Method Summary | |
|---|---|
void |
evolve()
evolves to the next generation for this population. |
int |
getConcurrenceComparisons()
Returns the number of concurrence comparisons required for current population. |
int |
getConcurrenceType()
|
boolean |
isCorrect()
Whether this algorithm is correct. |
void |
setConcurrenceType(int type)
Set the type of concurrence comparison used. |
void |
setPopulation(Population pop)
Set the Population for this GeneticAlgorithm. |
java.lang.String |
toString()
|
| Methods inherited from class orbital.algorithm.evolutionary.IncrementalGeneticAlgorithm |
|---|
getPopulationGrowth, replaceGenomes |
| Methods inherited from class orbital.algorithm.evolutionary.GeneticAlgorithm |
|---|
clone, complexity, equals, getEvaluation, getPopulation, getRandom, getSelection, hashCode, setEvaluation, setRandom, setSelection, solve, spaceComplexity |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ROUND_ROBIN
public static final int HIERARCHY
public static final int FLAT_HIERARCHY
| Constructor Detail |
|---|
public ConcurrenceGeneticAlgorithm()
| Method Detail |
|---|
public int getConcurrenceType()
public void setConcurrenceType(int type)
FLAT_HIERARCHY,
HIERARCHY,
ROUND_ROBINpublic void setPopulation(Population pop)
GeneticAlgorithm
setPopulation in class GeneticAlgorithmpublic int getConcurrenceComparisons()
getConcurrenceType()public boolean isCorrect()
ProbabilisticAlgorithm
isCorrect in interface ProbabilisticAlgorithmisCorrect in class GeneticAlgorithmpublic void evolve()
GeneticAlgorithm
evolve in class IncrementalGeneticAlgorithmGeneticAlgorithm.selection,
Genome.recombine(Gene[],int,double),
PopulationImpl.getMaximumRecombination(),
PopulationImpl.getMaximumMutation()public java.lang.String toString()
toString in class GeneticAlgorithm
|
Orbital library 1.2.0: 23 Apr 2008 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||