public interface LocalSearchObjective<T extends Chromosome>
| Modifier and Type | Method and Description |
|---|---|
void |
addFitnessFunction(FitnessFunction<? extends Chromosome> fitness) |
List<FitnessFunction<? extends Chromosome>> |
getFitnessFunctions()
Returns a list with all the fitness functions stored in this local search
objective
|
int |
hasChanged(T chromosome)
Returns true if the individual has changed since local search started
|
boolean |
hasImproved(T chromosome)
Returns true if the individual has improved due to the applied local
search
|
boolean |
hasNotWorsened(T chromosome)
Returns true if the individual has not worsened due to the applied local
search
|
boolean |
isDone()
true if the objective was achieved
|
boolean |
isMaximizationObjective()
Returns true if all the fitness functions are maximising functions
(Observe that it is not possible to store simoustaneously maximising and
minimising fitness functions)
|
boolean isDone()
boolean isMaximizationObjective()
boolean hasImproved(T chromosome)
chromosome - a Chromosome object.boolean hasNotWorsened(T chromosome)
chromosome - a Chromosome object.int hasChanged(T chromosome)
chromosome - a Chromosome object.void addFitnessFunction(FitnessFunction<? extends Chromosome> fitness)
List<FitnessFunction<? extends Chromosome>> getFitnessFunctions()
FitnessFunction object.Copyright © 2010–2017 EvoSuite. All rights reserved.