Class ProblemBenchmarkResult<Solution_>
- java.lang.Object
-
- org.optaplanner.benchmark.impl.result.ProblemBenchmarkResult<Solution_>
-
-
Constructor Summary
Constructors Constructor Description ProblemBenchmarkResult(PlannerBenchmarkResult plannerBenchmarkResult)
-
Method Summary
-
-
-
Constructor Detail
-
ProblemBenchmarkResult
public ProblemBenchmarkResult(PlannerBenchmarkResult plannerBenchmarkResult)
-
-
Method Detail
-
getPlannerBenchmarkResult
public PlannerBenchmarkResult getPlannerBenchmarkResult()
-
setPlannerBenchmarkResult
public void setPlannerBenchmarkResult(PlannerBenchmarkResult plannerBenchmarkResult)
-
getName
public String getName()
- Returns:
- never null, filename safe
-
setName
public void setName(String name)
-
getProblemProvider
public ProblemProvider<Solution_> getProblemProvider()
-
setProblemProvider
public void setProblemProvider(ProblemProvider<Solution_> problemProvider)
-
isWriteOutputSolutionEnabled
public boolean isWriteOutputSolutionEnabled()
-
setWriteOutputSolutionEnabled
public void setWriteOutputSolutionEnabled(boolean writeOutputSolutionEnabled)
-
getProblemStatisticList
public List<ProblemStatistic> getProblemStatisticList()
-
setProblemStatisticList
public void setProblemStatisticList(List<ProblemStatistic> problemStatisticList)
-
getSingleBenchmarkResultList
public List<SingleBenchmarkResult> getSingleBenchmarkResultList()
-
setSingleBenchmarkResultList
public void setSingleBenchmarkResultList(List<SingleBenchmarkResult> singleBenchmarkResultList)
-
getEntityCount
public Long getEntityCount()
-
getVariableCount
public Long getVariableCount()
-
getMaximumValueCount
public Long getMaximumValueCount()
-
getProblemScale
public Long getProblemScale()
-
getInputSolutionLoadingTimeMillisSpent
public Long getInputSolutionLoadingTimeMillisSpent()
-
getMaximumSubSingleCount
public Integer getMaximumSubSingleCount()
-
getAverageUsedMemoryAfterInputSolution
public Long getAverageUsedMemoryAfterInputSolution()
-
getFailureCount
public Integer getFailureCount()
-
getWinningSingleBenchmarkResult
public SingleBenchmarkResult getWinningSingleBenchmarkResult()
-
getWorstSingleBenchmarkResult
public SingleBenchmarkResult getWorstSingleBenchmarkResult()
-
getWorstScoreCalculationSpeed
public Long getWorstScoreCalculationSpeed()
-
getAnchorId
public String getAnchorId()
-
findScoreLevelLabel
public String findScoreLevelLabel(int scoreLevel)
-
getBenchmarkReportDirectory
public File getBenchmarkReportDirectory()
-
hasAnyFailure
public boolean hasAnyFailure()
-
hasAnySuccess
public boolean hasAnySuccess()
-
hasAnyStatistic
public boolean hasAnyStatistic()
-
hasProblemStatisticType
public boolean hasProblemStatisticType(ProblemStatisticType problemStatisticType)
-
extractSingleStatisticTypeList
public Collection<SingleStatisticType> extractSingleStatisticTypeList()
-
extractPureSubSingleStatisticList
public List<PureSubSingleStatistic> extractPureSubSingleStatisticList(SingleStatisticType singleStatisticType)
-
getProblemReportDirectoryName
public String getProblemReportDirectoryName()
-
getProblemReportDirectory
public File getProblemReportDirectory()
-
makeDirs
public void makeDirs()
-
getTotalSubSingleCount
public int getTotalSubSingleCount()
-
readProblem
public Solution_ readProblem()
-
writeSolution
public void writeSolution(SubSingleBenchmarkResult subSingleBenchmarkResult, Solution_ solution)
-
accumulateResults
public void accumulateResults(BenchmarkReport benchmarkReport)
-
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
public boolean equals(Object o)
-
createMergeMap
protected static <Solution_> Map<ProblemBenchmarkResult,ProblemBenchmarkResult> createMergeMap(PlannerBenchmarkResult newPlannerBenchmarkResult, List<SingleBenchmarkResult> singleBenchmarkResultList)
-
-