Class ProblemBenchmarkResult<Solution_>
java.lang.Object
ai.timefold.solver.benchmark.impl.result.ProblemBenchmarkResult<Solution_>
Represents 1 problem instance (data set) benchmarked on multiple
Solver configurations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccumulateResults(BenchmarkReport benchmarkReport) protected static <Solution_>
Map<ProblemBenchmarkResult, ProblemBenchmarkResult> createMergeMap(PlannerBenchmarkResult newPlannerBenchmarkResult, List<SingleBenchmarkResult> singleBenchmarkResultList) booleanList<ai.timefold.solver.benchmark.impl.statistic.PureSubSingleStatistic> extractPureSubSingleStatisticList(SingleStatisticType singleStatisticType) findScoreLevelLabel(int scoreLevel) getName()ai.timefold.solver.benchmark.impl.loader.ProblemProvider<Solution_> Returns the fixed-point long of the problem scale logList<ai.timefold.solver.benchmark.impl.statistic.ProblemStatistic> intbooleanbooleanbooleaninthashCode()booleanhasProblemStatisticType(ProblemStatisticType problemStatisticType) booleanvoidmakeDirs()voidregisterProblemSizeStatistics(ai.timefold.solver.core.api.solver.ProblemSizeStatistics problemSizeStatistics) HACK to avoid loading the problem just to extract its problemScale.voidvoidsetPlannerBenchmarkResult(PlannerBenchmarkResult plannerBenchmarkResult) voidsetProblemProvider(ai.timefold.solver.benchmark.impl.loader.ProblemProvider<Solution_> problemProvider) voidsetProblemStatisticList(List<ai.timefold.solver.benchmark.impl.statistic.ProblemStatistic> problemStatisticList) voidsetSingleBenchmarkResultList(List<SingleBenchmarkResult> singleBenchmarkResultList) voidsetWriteOutputSolutionEnabled(boolean writeOutputSolutionEnabled) toString()voidwriteSolution(SubSingleBenchmarkResult subSingleBenchmarkResult, Solution_ solution)
-
Constructor Details
-
ProblemBenchmarkResult
-
-
Method Details
-
getPlannerBenchmarkResult
-
setPlannerBenchmarkResult
-
getName
- Returns:
- never null, filename safe
-
setName
-
getProblemProvider
-
setProblemProvider
public void setProblemProvider(ai.timefold.solver.benchmark.impl.loader.ProblemProvider<Solution_> problemProvider) -
isWriteOutputSolutionEnabled
public boolean isWriteOutputSolutionEnabled() -
setWriteOutputSolutionEnabled
public void setWriteOutputSolutionEnabled(boolean writeOutputSolutionEnabled) -
getProblemStatisticList
-
setProblemStatisticList
public void setProblemStatisticList(List<ai.timefold.solver.benchmark.impl.statistic.ProblemStatistic> problemStatisticList) -
getSingleBenchmarkResultList
-
setSingleBenchmarkResultList
-
getEntityCount
-
getVariableCount
-
getMaximumValueCount
-
getFormattedProblemScale
-
getProblemScale
Returns the fixed-point long of the problem scale log -
getInputSolutionLoadingTimeMillisSpent
-
getMaximumSubSingleCount
-
getAverageUsedMemoryAfterInputSolution
-
getFailureCount
-
getWinningSingleBenchmarkResult
-
getWorstSingleBenchmarkResult
-
getWorstScoreCalculationSpeed
-
getAnchorId
-
findScoreLevelLabel
-
getBenchmarkReportDirectory
-
hasAnyFailure
public boolean hasAnyFailure() -
hasAnySuccess
public boolean hasAnySuccess() -
hasAnyStatistic
public boolean hasAnyStatistic() -
hasProblemStatisticType
-
extractSingleStatisticTypeList
-
extractPureSubSingleStatisticList
public List<ai.timefold.solver.benchmark.impl.statistic.PureSubSingleStatistic> extractPureSubSingleStatisticList(SingleStatisticType singleStatisticType) -
getProblemReportDirectoryName
-
getProblemReportDirectory
-
makeDirs
public void makeDirs() -
getTotalSubSingleCount
public int getTotalSubSingleCount() -
readProblem
-
writeSolution
-
accumulateResults
-
registerProblemSizeStatistics
public void registerProblemSizeStatistics(ai.timefold.solver.core.api.solver.ProblemSizeStatistics problemSizeStatistics) HACK to avoid loading the problem just to extract its problemScale. Called multiple times, for everySingleBenchmarkResultof thisProblemBenchmarkResult.- Parameters:
problemSizeStatistics- never null
-
equals
-
hashCode
-
createMergeMap
protected static <Solution_> Map<ProblemBenchmarkResult, ProblemBenchmarkResult> createMergeMap(PlannerBenchmarkResult newPlannerBenchmarkResult, List<SingleBenchmarkResult> singleBenchmarkResultList) -
toString
-