Class DefaultPlannerBenchmarkFactory

java.lang.Object
org.optaplanner.benchmark.api.PlannerBenchmarkFactory
org.optaplanner.benchmark.impl.DefaultPlannerBenchmarkFactory

public class DefaultPlannerBenchmarkFactory extends PlannerBenchmarkFactory
See Also:
  • Field Details

    • VALID_NAME_PATTERN

      public static final Pattern VALID_NAME_PATTERN
    • plannerBenchmarkConfig

      protected final PlannerBenchmarkConfig plannerBenchmarkConfig
  • Constructor Details

    • DefaultPlannerBenchmarkFactory

      public DefaultPlannerBenchmarkFactory(PlannerBenchmarkConfig plannerBenchmarkConfig)
  • Method Details

    • buildPlannerBenchmark

      public PlannerBenchmark buildPlannerBenchmark()
      Description copied from class: PlannerBenchmarkFactory
      Creates a new PlannerBenchmark instance.
      Specified by:
      buildPlannerBenchmark in class PlannerBenchmarkFactory
      Returns:
      never null
    • buildPlannerBenchmark

      @SafeVarargs public final <Solution_> PlannerBenchmark buildPlannerBenchmark(Solution_... problems)
      Description copied from class: PlannerBenchmarkFactory
      Creates a new PlannerBenchmark instance for datasets that are already in memory.
      Specified by:
      buildPlannerBenchmark in class PlannerBenchmarkFactory
      Type Parameters:
      Solution_ - the solution type, the class with the PlanningSolution annotation
      Parameters:
      problems - never null, can be none
      Returns:
      never null
    • validate

      protected void validate()
    • generateSolverBenchmarkConfigNames

      protected void generateSolverBenchmarkConfigNames()
    • buildEffectiveSolverBenchmarkConfigList

      protected List<SolverBenchmarkConfig> buildEffectiveSolverBenchmarkConfigList()
    • resolveParallelBenchmarkCount

      protected int resolveParallelBenchmarkCount()
    • resolveParallelBenchmarkCountAutomatically

      protected int resolveParallelBenchmarkCountAutomatically(int availableProcessorCount)
    • calculateWarmUpTimeMillisSpentLimit

      protected Long calculateWarmUpTimeMillisSpentLimit()