Class AbstractTerminationCriterion

java.lang.Object
de.uka.ipd.sdq.tcfmoop.terminationcriteria.AbstractTerminationCriterion
All Implemented Interfaces:
ITerminationCriterion
Direct Known Subclasses:
ElapsedTimeCriterion, GivenParetoFrontIsReachedCriterion, InsignificantParetoFrontChangeCriterion, InsignificantSetQualityImprovementCriterion, MaxGenerationNumber, MinimalQualityCriteriaValueCriterion, NoNewParetoOptimalCandidatesFoundCriterion, ParetoOptimalSetStabilityCriterion

public abstract class AbstractTerminationCriterion extends Object implements ITerminationCriterion
  • Field Details

    • evaluationResult

      protected boolean evaluationResult
    • outputInformation

      protected Tree outputInformation
    • population

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

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

      protected TerminationCriteriaNames name
    • suggestedStop

      protected Node suggestedStop
    • outputNeedsUpdate

      protected boolean outputNeedsUpdate
  • Constructor Details

    • 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 Details

    • 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
    • getName

      public TerminationCriteriaNames getName()
      Returns the name of the termination criteria.
      Specified by:
      getName in interface ITerminationCriterion
      Returns:
      the name of the termination criteria.
    • getOutputInformation

      public final Tree getOutputInformation()
      Returns the criteria output information.
      Specified by:
      getOutputInformation in interface ITerminationCriterion
      Returns:
      String with output information.
    • updateOutputInformation

      public abstract void updateOutputInformation()