Class AbstractTerminationCriterion

    • Field Detail

      • evaluationResult

        protected boolean evaluationResult
      • outputInformation

        protected Tree outputInformation
      • population

        protected org.opt4j.core.optimizer.Population population
      • archive

        protected org.opt4j.core.optimizer.Archive archive
      • suggestedStop

        protected Node suggestedStop
      • outputNeedsUpdate

        protected boolean outputNeedsUpdate
    • Constructor Detail

      • AbstractTerminationCriterion

        protected AbstractTerminationCriterion​(IConfiguration conf,
                                               org.opt4j.core.optimizer.Population population,
                                               org.opt4j.core.optimizer.Archive archive)
        Initializes the termination criteria by supplying it with the configuration object and other needed resources.
        Parameters:
        conf - - The configuration object.
        population - - The current Population
        archive - - A reference to the archive
        Throws:
        RuntimeException - if the configuration object is not fully initialized.
    • Method Detail

      • getEvaluationResult

        public final boolean getEvaluationResult()
        Returns the result of the last evaluation.
        Specified by:
        getEvaluationResult in interface ITerminationCriterion
        Returns:
        true - Optimization should be terminated. else - Optimization should continue.
      • evaluate

        public final void evaluate​(int iteration,
                                   long currentTime)
        Evaluates this termination criteria.
        Specified by:
        evaluate in interface ITerminationCriterion
        Parameters:
        iteration - - The number of the current iteration
        currentTime - - The current time
      • evaluateImpl

        protected abstract void evaluateImpl​(int iteration,
                                             long currentTime)
        The implementation of the Evaluation logic is placed here.
        Parameters:
        iteration - - The number of the current iteration
        currentTime - - The current time
      • updateOutputInformation

        public abstract void updateOutputInformation()