public class ZeroFitnessStoppingCondition extends StoppingConditionImpl
| Constructor and Description |
|---|
ZeroFitnessStoppingCondition() |
| Modifier and Type | Method and Description |
|---|---|
void |
forceCurrentValue(long value)
Force a specific amount of used up budget.
|
long |
getCurrentValue()
How much of the budget have we used up
|
long |
getLimit()
Get upper limit of resources
Mainly used for toString()
|
boolean |
isFinished()
isFinished
|
void |
iteration(GeneticAlgorithm<?> algorithm)
Called after each iteration of the search
|
void |
reset()
Reset everything
|
void |
setFinished()
setFinished
|
void |
setLimit(long limit)
Set new upper limit of resources
|
fitnessEvaluation, getType, getValueString, modification, searchFinished, searchStarted, toStringpublic void iteration(GeneticAlgorithm<?> algorithm)
iteration in interface SearchListeneriteration in class StoppingConditionImplalgorithm - a GeneticAlgorithm object.public boolean isFinished()
isFinished
Returns true if best individual has fitness <= 0.0public void reset()
public void setLimit(long limit)
limit - a long.public long getLimit()
public long getCurrentValue()
public void setFinished()
setFinished
public void forceCurrentValue(long value)
value - The new amount of used up budget for this StoppingConditionCopyright © 2010–2017 EvoSuite. All rights reserved.