Class GenerationCount

    • Constructor Detail

      • GenerationCount

        public GenerationCount​(int generationCount)
        Parameters:
        generationCount - The maximum number of generations that the evolutionary algorithm will permit before terminating.
    • Method Detail

      • shouldTerminate

        public boolean shouldTerminate​(PopulationData<?> populationData)
        The condition is queried via this method to determine whether or not evolution should finish at the current point.
        Specified by:
        shouldTerminate in interface TerminationCondition
        Parameters:
        populationData - Information about the current state of evolution. This may be used to determine whether evolution should continue or not.
        Returns:
        true if evolution should be terminated, false otherwise.