Class Terminations
java.lang.Object
net.bmahe.genetics4j.core.termination.Terminations
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Comparable<T>>
Termination<T> and
(Termination<T>... terminations) static <T extends Comparable<T>>
Termination<T> ofFitnessAtLeast
(T threshold) static <T extends Comparable<T>>
Termination<T> ofFitnessAtMost
(T threshold) static <T extends Comparable<T>>
Termination<T> ofMaxGeneration
(long maxGeneration) static <T extends Comparable<T>>
Termination<T> static <T extends Comparable<T>>
Termination<T> ofStableFitness
(int stableGenerationsCount) Will terminate if the fitness does not improve over a specified number of generationsstatic <T extends Comparable<T>>
Termination<T> or
(Termination<T>... terminations)
-
Constructor Details
-
Terminations
public Terminations()
-
-
Method Details
-
ofMaxGeneration
-
ofMaxTime
-
and
@SafeVarargs public static <T extends Comparable<T>> Termination<T> and(Termination<T>... terminations) -
or
@SafeVarargs public static <T extends Comparable<T>> Termination<T> or(Termination<T>... terminations) -
ofFitnessAtLeast
-
ofFitnessAtMost
-
ofStableFitness
Will terminate if the fitness does not improve over a specified number of generations- Type Parameters:
T
-- Parameters:
stableGenerationsCount
-- Returns:
-