Class TerminationCriterionBase
java.lang.Object
se.liu.ida.hefquin.engine.queryproc.impl.poptimizer.evolutionaryAlgorithm.TerminationCriterionBase
- All Implemented Interfaces:
TerminationCriterion
- Direct Known Subclasses:
TerminateByDistancePercAvg
,TerminateByDistancePercAvgDynamicG
,TerminateByDistancePercBest
,TerminateByDiversityDistBest
,TerminateByDiversityDistMax
,TerminateByDiversityRelStDev
,TerminatedByCostValue
,TerminatedByNumberOfGenerations
Base class for implementations of
TerminationCriterion
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static int
calcFactorial
(int n) protected static int
countNumOfOps
(LogicalPlan plan) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface se.liu.ida.hefquin.engine.queryproc.impl.poptimizer.evolutionaryAlgorithm.TerminationCriterion
readyToTerminate
-
Field Details
-
nrGenerations
protected int nrGenerations
-
-
Constructor Details
-
TerminationCriterionBase
public TerminationCriterionBase(int nrGenerations) -
TerminationCriterionBase
-
-
Method Details
-
countNumOfOps
-
calcFactorial
protected static int calcFactorial(int n)
-