public class GeneticAlgorithm
extends java.lang.Object
A Genetic Algorithm that searches for subtle mutants using crossover and mutation.
The algorithm generates a random Population to begin with, it then enters the
generated population to a loop that crossovers and mutates the population, which generates
a new population. The process is then repeated until reaching a terminating condition.
At each generation the subtle and live mutants found by the algorithm are stored in a separate list.
CrossoverDefaultImpl,
MutationDefaultImpl,
EvaluationDefaultImpl,
Selection| Constructor and Description |
|---|
GeneticAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
int |
getSelectionSize(int populationSize) |
void |
run()
Launches the genetic algorithm
|
public void run()
Launches the genetic algorithm
The algorithm does evaluation, crossover, mutation and selection
public int getSelectionSize(int populationSize)
populationSize - of the current generation