public final class MaxGenerationsTerminator extends Object implements Predicate<RankedCandidates>
true
when a specified number of generations has been run.
Also known as the generational predicate.
Constructor and Description |
---|
MaxGenerationsTerminator(int maxGenerations)
Constructs a new
Predicate that will return true once the specified number of generations have been run. |
public MaxGenerationsTerminator(int maxGenerations)
Predicate
that will return true
once the specified number of generations have been run.public boolean test(RankedCandidates t)
test
in interface Predicate<RankedCandidates>
OakGP Genetic Programming Framework