Class MaxGenerationsStop

java.lang.Object
dealib.components.stoppingcriteria.MaxGenerationsStop
All Implemented Interfaces:
StoppingCriterion

public class MaxGenerationsStop extends Object implements StoppingCriterion
MaxGenerationsStop is a class implementing a stopping criterion based on the number of generations performed over the interface Selector.
Since:
1.0
Version:
1.0
Author:
Alicia Vazquez Ramos
  • Constructor Details

    • MaxGenerationsStop

      public MaxGenerationsStop(Execution exe)
      Constructor.
      Parameters:
      exe - Configurarion of the current execution.
  • Method Details

    • stops

      public boolean stops()
      Executes a stopping criterion based on the number of generations performed.
      Specified by:
      stops in interface StoppingCriterion
      Returns:
      TRUE if the stopping criterion is satisfied, FALSE otherwise.
    • toString

      public String toString()
      Gets a string representing the visualization by console of the Stopping Criterion.
      Overrides:
      toString in class Object
      Returns:
      the condition of the Stopping Criterion.