|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orbital.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 Pair
s 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_ROBIN
public void setPopulation(Population pop)
GeneticAlgorithm
setPopulation
in class GeneticAlgorithm
public int getConcurrenceComparisons()
getConcurrenceType()
public boolean isCorrect()
ProbabilisticAlgorithm
isCorrect
in interface ProbabilisticAlgorithm
isCorrect
in class GeneticAlgorithm
public void evolve()
GeneticAlgorithm
evolve
in class IncrementalGeneticAlgorithm
GeneticAlgorithm.selection
,
Genome.recombine(Gene[],int,double)
,
PopulationImpl.getMaximumRecombination()
,
PopulationImpl.getMaximumMutation()
public java.lang.String toString()
toString
in class GeneticAlgorithm
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |