Class Context.Configurator

java.lang.Object
es.urjc.etsii.grafo.util.Context.Configurator
Enclosing class:
Context

public static class Context.Configurator extends Object
  • Constructor Details

    • Configurator

      public Configurator()
  • Method Details

    • setRandom

      public static void setRandom(RandomGenerator.JumpableGenerator jumpableGenerator)
    • setSolverConfig

      public static void setSolverConfig(SolverConfig config)
    • getSolverConfig

      public static SolverConfig getSolverConfig()
    • setBlockConfig

      public static void setBlockConfig(BlockConfig config)
    • getBlockConfig

      public static BlockConfig getBlockConfig()
    • setValidator

      public static <S extends Solution<S, I>, I extends Instance> void setValidator(SolutionValidator<S,I> validator)
    • resetRandom

      public static void resetRandom(SolverConfig config, int iteration)
      Initialize or reset random only for the current thread
      Parameters:
      config - solver config
      iteration - current iteration, used to calculate a seed
    • resetRandom

      public static void resetRandom(RandomType randomType, long seed)
      Initialize or reset random only for the current thread
      Parameters:
      randomType - random type
      seed - seed
    • setObjectives

      public static void setObjectives(Objective<?,?,?> objective)
    • setObjectives

      public static <S extends Solution<S, I>, I extends Instance> void setObjectives(boolean multiObjective, Objective<?,S,I>[] objectives)
    • getAndResetTimeEvents

      public static List<TimeStatsEvent> getAndResetTimeEvents()
    • setRefResultManager

      public static void setRefResultManager(ReferenceResultManager referenceResultManager)
    • getRefResultManager

      public static ReferenceResultManager getRefResultManager()
    • getTrackedSolutions

      public static <S extends Solution<S, I>, I extends Instance> Iterable<S> getTrackedSolutions()
    • enableValidation

      public static void enableValidation()
      Enables validations for the current thread. Enabled by default.
    • disableValidation

      public static void disableValidation()
      Disables validations for the current thread. By default all validations are run.
    • isValidationEnabled

      public static boolean isValidationEnabled()