public class RelativeSuiteLengthBloatControl extends Object implements BloatControlFunction, SearchListener
RelativeSuiteLengthBloatControl class.
| Modifier and Type | Field and Description |
|---|---|
protected double |
best_fitness |
protected int |
current_max
Longest individual in current generation
|
| Constructor and Description |
|---|
RelativeSuiteLengthBloatControl() |
| Modifier and Type | Method and Description |
|---|---|
void |
fitnessEvaluation(Chromosome result)
Called after every single fitness evaluation
|
boolean |
isTooLong(Chromosome chromosome)
isTooLong
|
void |
iteration(GeneticAlgorithm<?> algorithm)
Called after each iteration of the search
|
void |
modification(Chromosome individual)
Called before a chromosome is mutated
|
void |
searchFinished(GeneticAlgorithm<?> algorithm)
Called after the last iteration
|
void |
searchStarted(GeneticAlgorithm<?> algorithm)
Called when a new search is started
|
protected int current_max
protected double best_fitness
public boolean isTooLong(Chromosome chromosome)
isTooLong
Reject individuals that are larger than twice the length of the current best individualisTooLong in interface BloatControlFunctionchromosome - a Chromosome object.public void iteration(GeneticAlgorithm<?> algorithm)
iteration in interface SearchListeneralgorithm - a GeneticAlgorithm object.public void searchFinished(GeneticAlgorithm<?> algorithm)
searchFinished in interface SearchListeneralgorithm - a GeneticAlgorithm object.public void searchStarted(GeneticAlgorithm<?> algorithm)
searchStarted in interface SearchListeneralgorithm - a GeneticAlgorithm object.public void fitnessEvaluation(Chromosome result)
fitnessEvaluation in interface SearchListenerresult - a Chromosome object.public void modification(Chromosome individual)
modification in interface SearchListenerindividual - a Chromosome object.Copyright © 2010–2017 EvoSuite. All rights reserved.