public final class MaxGenerationsWithoutImprovementTerminator extends Object implements Predicate<RankedCandidates>
true
when a specified number of generations has since the last change in the fitness of candidates.Constructor and Description |
---|
MaxGenerationsWithoutImprovementTerminator(int maxGenerationsWithoutImprovement)
Constructs a new
Predicate that will return true once the given number of consecutive generations have been run without improvement. |
public MaxGenerationsWithoutImprovementTerminator(int maxGenerationsWithoutImprovement)
Predicate
that will return true
once the given number of consecutive generations have been run without improvement.public boolean test(RankedCandidates t)
test
in interface Predicate<RankedCandidates>
OakGP Genetic Programming Framework