Interface Evolvable
- All Superinterfaces:
Comparable<Evolvable>
This interface allows any class to be evolvable by
. It is derived
from
invalid reference
org.episteme.core.mathematics.optimization.evolutionary.GeneticAlgorithm
Comparable so they classes can be efficiently sorted by
the GA. Invariably, this is done by fitness.- Author:
- James Matthews
-
Method Summary
Modifier and TypeMethodDescriptionvoidCalculate the fitness of this object.doubleReturn the fitness of this object.Mate with anotherEvolvabletype.voidmutate()Mutate the class data.voidInitialize the class to random values.Methods inherited from interface Comparable
compareTo
-
Method Details
-
randomInitialize
void randomInitialize()Initialize the class to random values. This allows for a default constructor or initializor, as well as the random initializor required for the genetic algorithm. -
mutate
void mutate()Mutate the class data. -
mate
-
calculateFitness
void calculateFitness()Calculate the fitness of this object. -
getFitness
double getFitness()Return the fitness of this object.- Returns:
- the fitness.
-