Class MaxGenerationNumber

    • Constructor Detail

      • MaxGenerationNumber

        public MaxGenerationNumber​(IConfiguration conf,
                                   org.opt4j.core.optimizer.Population population,
                                   org.opt4j.core.optimizer.Archive archive)
    • Method Detail

      • evaluateImpl

        public void evaluateImpl​(int iteration,
                                 long currentTime)
        The implementation of the Evaluation logic is placed here. Implements the Maximum Number of Generation Criterion. If the number of the evaluated iterations reaches the supplied limit, the criterion suggest that the optimization should be stopped.
        Specified by:
        evaluateImpl in class AbstractTerminationCriterion
        Parameters:
        iteration - - The number of the current iteration
        currentTime - - The current time