Package org.optaplanner.benchmark.impl
Class DefaultPlannerBenchmarkFactory
java.lang.Object
org.optaplanner.benchmark.api.PlannerBenchmarkFactory
org.optaplanner.benchmark.impl.DefaultPlannerBenchmarkFactory
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDefaultPlannerBenchmarkFactory
(PlannerBenchmarkConfig plannerBenchmarkConfig) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<SolverBenchmarkConfig>
Creates a newPlannerBenchmark
instance.final <Solution_>
PlannerBenchmarkbuildPlannerBenchmark
(Solution_... problems) Creates a newPlannerBenchmark
instance for datasets that are already in memory.protected Long
protected void
protected int
protected int
resolveParallelBenchmarkCountAutomatically
(int availableProcessorCount) protected void
validate()
Methods inherited from class org.optaplanner.benchmark.api.PlannerBenchmarkFactory
buildPlannerBenchmark, create, createFromFreemarkerXmlFile, createFromFreemarkerXmlFile, createFromFreemarkerXmlFile, createFromFreemarkerXmlFile, createFromFreemarkerXmlResource, createFromFreemarkerXmlResource, createFromFreemarkerXmlResource, createFromFreemarkerXmlResource, createFromSolverConfigXmlResource, createFromSolverConfigXmlResource, createFromSolverConfigXmlResource, createFromSolverConfigXmlResource, createFromXmlFile, createFromXmlFile, createFromXmlResource, createFromXmlResource
-
Field Details
-
VALID_NAME_PATTERN
-
plannerBenchmarkConfig
-
-
Constructor Details
-
DefaultPlannerBenchmarkFactory
-
-
Method Details
-
buildPlannerBenchmark
Description copied from class:PlannerBenchmarkFactory
Creates a newPlannerBenchmark
instance.- Specified by:
buildPlannerBenchmark
in classPlannerBenchmarkFactory
- Returns:
- never null
-
buildPlannerBenchmark
Description copied from class:PlannerBenchmarkFactory
Creates a newPlannerBenchmark
instance for datasets that are already in memory.- Specified by:
buildPlannerBenchmark
in classPlannerBenchmarkFactory
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotation- Parameters:
problems
- never null, can be none- Returns:
- never null
-
validate
protected void validate() -
generateSolverBenchmarkConfigNames
protected void generateSolverBenchmarkConfigNames() -
buildEffectiveSolverBenchmarkConfigList
-
resolveParallelBenchmarkCount
protected int resolveParallelBenchmarkCount() -
resolveParallelBenchmarkCountAutomatically
protected int resolveParallelBenchmarkCountAutomatically(int availableProcessorCount) -
calculateWarmUpTimeMillisSpentLimit
-