public class GenerationCount extends Object implements TerminationCondition
| Constructor and Description |
|---|
GenerationCount(int generationCount) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldTerminate(PopulationData<?> populationData)
The condition is queried via this method to determine whether or not evolution
should finish at the current point.
|
public GenerationCount(int generationCount)
generationCount - The maximum number of generations that the
evolutionary algorithm will permit before terminating.public boolean shouldTerminate(PopulationData<?> populationData)
shouldTerminate in interface TerminationConditionpopulationData - Information about the current state of evolution. This may
be used to determine whether evolution should continue or not.