Class TerminatedByNumberOfGenerations
java.lang.Object
se.liu.ida.hefquin.engine.queryproc.impl.poptimizer.evolutionaryAlgorithm.TerminationCriterionBase
se.liu.ida.hefquin.engine.queryproc.impl.poptimizer.evolutionaryAlgorithm.TerminatedByNumberOfGenerations
- 
Field Summary
FieldsFields inherited from class se.liu.ida.hefquin.engine.queryproc.impl.poptimizer.evolutionaryAlgorithm.TerminationCriterionBase
nrGenerations - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic TerminationCriterionFactorygetFactory(int generationThreshold) booleanreadyToTerminate(Generation currentGeneration, List<Generation> previousGenerations) Returns true if the generation number exceeds the thresholdMethods inherited from class se.liu.ida.hefquin.engine.queryproc.impl.poptimizer.evolutionaryAlgorithm.TerminationCriterionBase
calcFactorial, countNumOfOps 
- 
Field Details
- 
generationThreshold
protected final int generationThreshold 
 - 
 - 
Constructor Details
- 
TerminatedByNumberOfGenerations
 
 - 
 - 
Method Details
- 
getFactory
 - 
readyToTerminate
Returns true if the generation number exceeds the threshold- Parameters:
 currentGeneration- the current generation for which the termination criterion is testpreviousGenerations- a list of all previous generations, in the order in which they have been created
 
 -