Class SingleBenchmarkResult
java.lang.Object
org.optaplanner.benchmark.impl.result.SingleBenchmarkResult
- All Implemented Interfaces:
BenchmarkResult
Represents 1 benchmark for 1
Solver
configuration for 1 problem instance (data set).-
Constructor Summary
ConstructorDescriptionSingleBenchmarkResult
(SolverBenchmarkResult solverBenchmarkResult, ProblemBenchmarkResult problemBenchmarkResult) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accumulateResults
(BenchmarkReport benchmarkReport) protected static SingleBenchmarkResult
createMerge
(SolverBenchmarkResult solverBenchmarkResult, ProblemBenchmarkResult problemBenchmarkResult, SingleBenchmarkResult oldResult) getBest()
getName()
long
double[]
int
getSubSingleStatistic
(ProblemStatisticType problemStatisticType) int
long
Score<?>
Score<?>
getWorst()
boolean
boolean
void
boolean
boolean
boolean
isWinner()
void
makeDirs()
void
setAverageAndTotalScoreForTesting
(Score<?> averageAndTotalScore) void
setFailureCount
(Integer failureCount) void
setProblemBenchmarkResult
(ProblemBenchmarkResult problemBenchmarkResult) void
setRanking
(Integer ranking) void
setScoreCalculationCount
(long scoreCalculationCount) void
setSolverBenchmarkResult
(SolverBenchmarkResult solverBenchmarkResult) void
setSubSingleBenchmarkResultList
(List<SubSingleBenchmarkResult> subSingleBenchmarkResultList) void
setTimeMillisSpent
(long timeMillisSpent) void
setUsedMemoryAfterInputSolution
(Long usedMemoryAfterInputSolution) void
setWinningScoreDifference
(Score<?> winningScoreDifference) void
setWorstScoreCalculationSpeedDifferencePercentage
(Double worstScoreCalculationSpeedDifferencePercentage) void
setWorstScoreDifferencePercentage
(ScoreDifferencePercentage worstScoreDifferencePercentage) toString()
-
Constructor Details
-
SingleBenchmarkResult
public SingleBenchmarkResult() -
SingleBenchmarkResult
public SingleBenchmarkResult(SolverBenchmarkResult solverBenchmarkResult, ProblemBenchmarkResult problemBenchmarkResult)
-
-
Method Details
-
initSubSingleStatisticMaps
public void initSubSingleStatisticMaps() -
getSolverBenchmarkResult
-
setSolverBenchmarkResult
-
getProblemBenchmarkResult
-
setProblemBenchmarkResult
-
getSubSingleBenchmarkResultList
-
setSubSingleBenchmarkResultList
public void setSubSingleBenchmarkResultList(List<SubSingleBenchmarkResult> subSingleBenchmarkResultList) -
getUsedMemoryAfterInputSolution
- Returns:
- null if
PlannerBenchmarkResult.hasMultipleParallelBenchmarks()
return true
-
setUsedMemoryAfterInputSolution
-
getFailureCount
-
setFailureCount
-
getTimeMillisSpent
public long getTimeMillisSpent() -
setTimeMillisSpent
public void setTimeMillisSpent(long timeMillisSpent) -
getScoreCalculationCount
public long getScoreCalculationCount() -
setScoreCalculationCount
public void setScoreCalculationCount(long scoreCalculationCount) -
getScoreExplanationSummary
-
getWinningScoreDifference
-
setWinningScoreDifference
-
getWorstScoreDifferencePercentage
-
setWorstScoreDifferencePercentage
public void setWorstScoreDifferencePercentage(ScoreDifferencePercentage worstScoreDifferencePercentage) -
getWorstScoreCalculationSpeedDifferencePercentage
-
setWorstScoreCalculationSpeedDifferencePercentage
public void setWorstScoreCalculationSpeedDifferencePercentage(Double worstScoreCalculationSpeedDifferencePercentage) -
getRanking
-
setRanking
-
getAverageScore
- Specified by:
getAverageScore
in interfaceBenchmarkResult
-
setAverageAndTotalScoreForTesting
-
getMedian
-
getBest
-
getWorst
-
getStandardDeviationDoubles
public double[] getStandardDeviationDoubles() -
getInfeasibleScoreCount
-
getUninitializedSolutionCount
-
getTotalScore
-
getAnchorId
-
getName
- Specified by:
getName
in interfaceBenchmarkResult
- Returns:
- never null, filename safe
-
getBenchmarkReportDirectory
-
hasAllSuccess
public boolean hasAllSuccess()- Specified by:
hasAllSuccess
in interfaceBenchmarkResult
- Returns:
- true if all child benchmarks were a success and the variable is initialized
-
isInitialized
public boolean isInitialized() -
hasAnyFailure
public boolean hasAnyFailure()- Specified by:
hasAnyFailure
in interfaceBenchmarkResult
- Returns:
- true if there is a failed child benchmark and the variable is initialized
-
isScoreFeasible
public boolean isScoreFeasible() -
getScoreCalculationSpeed
-
isWinner
public boolean isWinner() -
getSubSingleStatistic
-
getSuccessCount
public int getSuccessCount() -
getStandardDeviationString
-
getResultDirectoryName
- Specified by:
getResultDirectoryName
in interfaceBenchmarkResult
- Returns:
- the name of the directory that holds the benchmark's results
-
getResultDirectory
- Specified by:
getResultDirectory
in interfaceBenchmarkResult
- Returns:
- the benchmark result directory as a file
-
makeDirs
public void makeDirs() -
getSubSingleCount
public int getSubSingleCount() -
accumulateResults
-
createMerge
protected static SingleBenchmarkResult createMerge(SolverBenchmarkResult solverBenchmarkResult, ProblemBenchmarkResult problemBenchmarkResult, SingleBenchmarkResult oldResult) -
toString
-