public interface GeneticAlgorithmSolution
Modifier and Type | Method and Description |
---|---|
GeneticAlgorithmSolution |
crossover(GeneticAlgorithmSolution mate)
Combines traits of this solution with another to create an entirely new
one.
|
GeneticAlgorithmSolution |
deepCopy()
Creates a deep copy of this solution.
|
long |
fitness()
Evaluates the fitness score of the solution based on its traits.
|
void |
mutate()
Mutates the solution somehow, ideally randomly, changing some trait(s) in
some way.
|
GeneticAlgorithmSolution crossover(GeneticAlgorithmSolution mate)
mate
- the solution with which this will combine traitsGeneticAlgorithmSolution deepCopy()
long fitness()
void mutate()