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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accumulateResults
(BenchmarkReport benchmarkReport) protected static <Solution_>
Map<ProblemBenchmarkResult,ProblemBenchmarkResult> createMergeMap
(PlannerBenchmarkResult newPlannerBenchmarkResult, List<SingleBenchmarkResult> singleBenchmarkResultList) boolean
extractPureSubSingleStatisticList
(SingleStatisticType singleStatisticType) findScoreLevelLabel
(int scoreLevel) getName()
int
boolean
boolean
boolean
int
hashCode()
boolean
hasProblemStatisticType
(ProblemStatisticType problemStatisticType) boolean
void
makeDirs()
void
registerScale
(long registeringEntityCount, long registeringVariableCount, long registeringMaximumValueCount, long registeringProblemScale) HACK to avoid loading the problem just to extract its problemScale.void
void
setPlannerBenchmarkResult
(PlannerBenchmarkResult plannerBenchmarkResult) void
setProblemProvider
(ProblemProvider<Solution_> problemProvider) void
setProblemStatisticList
(List<ProblemStatistic> problemStatisticList) void
setSingleBenchmarkResultList
(List<SingleBenchmarkResult> singleBenchmarkResultList) void
setWriteOutputSolutionEnabled
(boolean writeOutputSolutionEnabled) toString()
void
writeSolution
(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 everySingleBenchmarkResult
of thisProblemBenchmarkResult
.- Parameters:
registeringEntityCount
->= 0
registeringVariableCount
->= 0
registeringProblemScale
->= 0
-
equals
-
hashCode
public int hashCode() -
createMergeMap
protected static <Solution_> Map<ProblemBenchmarkResult,ProblemBenchmarkResult> createMergeMap(PlannerBenchmarkResult newPlannerBenchmarkResult, List<SingleBenchmarkResult> singleBenchmarkResultList) -
toString
-