Class AbstractStoppingCriterion

    • Constructor Detail

      • AbstractStoppingCriterion

        public AbstractStoppingCriterion()
    • Method Detail

      • start

        public abstract void start()
        Gets called when the genetic algorithm starts.
      • check

        protected void check​(AbstractGeneticAlgorithm genetic)
        Hook method for checking the algorithm before attempting the actual stop check.
        Default implementation only ensures that an algorithm was provided.
        Parameters:
        genetic - the algorithm to check
      • doCheckStopping

        protected abstract boolean doCheckStopping​(AbstractGeneticAlgorithm genetic)
        Performs the actual check of the stopping criterion.
        Parameters:
        genetic - the algorithm
        Returns:
        true if to stop
      • checkStopping

        public boolean checkStopping​(AbstractGeneticAlgorithm genetic)
        Performs the check of the stopping criterion.
        Parameters:
        genetic - the algorithm
        Returns:
        true if to stop