Class ProblemBenchmarkResult<Solution_>
java.lang.Object
org.optaplanner.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) booleanextractPureSubSingleStatisticList(SingleStatisticType singleStatisticType) findScoreLevelLabel(int scoreLevel) getName()intbooleanbooleanbooleaninthashCode()booleanhasProblemStatisticType(ProblemStatisticType problemStatisticType) booleanvoidmakeDirs()voidregisterScale(long registeringEntityCount, long registeringVariableCount, long registeringMaximumValueCount, long registeringProblemScale) HACK to avoid loading the problem just to extract its problemScale.voidvoidsetPlannerBenchmarkResult(PlannerBenchmarkResult plannerBenchmarkResult) voidsetProblemProvider(ProblemProvider<Solution_> problemProvider) voidsetProblemStatisticList(List<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
-
isWriteOutputSolutionEnabled
public boolean isWriteOutputSolutionEnabled() -
setWriteOutputSolutionEnabled
public void setWriteOutputSolutionEnabled(boolean writeOutputSolutionEnabled) -
getProblemStatisticList
-
setProblemStatisticList
-
getSingleBenchmarkResultList
-
setSingleBenchmarkResultList
-
getEntityCount
-
getVariableCount
-
getMaximumValueCount
-
getProblemScale
-
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<PureSubSingleStatistic> extractPureSubSingleStatisticList(SingleStatisticType singleStatisticType) -
getProblemReportDirectoryName
-
getProblemReportDirectory
-
makeDirs
public void makeDirs() -
getTotalSubSingleCount
public int getTotalSubSingleCount() -
readProblem
-
writeSolution
-
accumulateResults
-
registerScale
public void registerScale(long registeringEntityCount, long registeringVariableCount, long registeringMaximumValueCount, long registeringProblemScale) HACK to avoid loading the problem just to extract its problemScale. Called multiple times, for everySingleBenchmarkResultof thisProblemBenchmarkResult.- Parameters:
registeringEntityCount->= 0registeringVariableCount->= 0registeringProblemScale->= 0
-
equals
-
hashCode
public int hashCode() -
createMergeMap
protected static <Solution_> Map<ProblemBenchmarkResult,ProblemBenchmarkResult> createMergeMap(PlannerBenchmarkResult newPlannerBenchmarkResult, List<SingleBenchmarkResult> singleBenchmarkResultList) -
toString
-