Class SingleBenchmarkResult

java.lang.Object
org.optaplanner.benchmark.impl.result.SingleBenchmarkResult
All Implemented Interfaces:
BenchmarkResult

public class SingleBenchmarkResult extends Object implements BenchmarkResult
Represents 1 benchmark for 1 Solver configuration for 1 problem instance (data set).
  • Constructor Details

  • Method Details

    • initSubSingleStatisticMaps

      public void initSubSingleStatisticMaps()
    • getSolverBenchmarkResult

      public SolverBenchmarkResult getSolverBenchmarkResult()
    • setSolverBenchmarkResult

      public void setSolverBenchmarkResult(SolverBenchmarkResult solverBenchmarkResult)
    • getProblemBenchmarkResult

      public ProblemBenchmarkResult getProblemBenchmarkResult()
    • setProblemBenchmarkResult

      public void setProblemBenchmarkResult(ProblemBenchmarkResult problemBenchmarkResult)
    • getSubSingleBenchmarkResultList

      public List<SubSingleBenchmarkResult> getSubSingleBenchmarkResultList()
    • setSubSingleBenchmarkResultList

      public void setSubSingleBenchmarkResultList(List<SubSingleBenchmarkResult> subSingleBenchmarkResultList)
    • getUsedMemoryAfterInputSolution

      public Long getUsedMemoryAfterInputSolution()
      Returns:
      null if PlannerBenchmarkResult.hasMultipleParallelBenchmarks() return true
    • setUsedMemoryAfterInputSolution

      public void setUsedMemoryAfterInputSolution(Long usedMemoryAfterInputSolution)
    • getFailureCount

      public Integer getFailureCount()
    • setFailureCount

      public void setFailureCount(Integer failureCount)
    • getTimeMillisSpent

      public long getTimeMillisSpent()
    • setTimeMillisSpent

      public void setTimeMillisSpent(long timeMillisSpent)
    • getScoreCalculationCount

      public long getScoreCalculationCount()
    • setScoreCalculationCount

      public void setScoreCalculationCount(long scoreCalculationCount)
    • getScoreExplanationSummary

      public String getScoreExplanationSummary()
    • getWinningScoreDifference

      public Score<?> getWinningScoreDifference()
    • setWinningScoreDifference

      public void setWinningScoreDifference(Score<?> winningScoreDifference)
    • getWorstScoreDifferencePercentage

      public ScoreDifferencePercentage getWorstScoreDifferencePercentage()
    • setWorstScoreDifferencePercentage

      public void setWorstScoreDifferencePercentage(ScoreDifferencePercentage worstScoreDifferencePercentage)
    • getWorstScoreCalculationSpeedDifferencePercentage

      public Double getWorstScoreCalculationSpeedDifferencePercentage()
    • setWorstScoreCalculationSpeedDifferencePercentage

      public void setWorstScoreCalculationSpeedDifferencePercentage(Double worstScoreCalculationSpeedDifferencePercentage)
    • getRanking

      public Integer getRanking()
    • setRanking

      public void setRanking(Integer ranking)
    • getAverageScore

      public Score getAverageScore()
      Specified by:
      getAverageScore in interface BenchmarkResult
    • setAverageAndTotalScoreForTesting

      public void setAverageAndTotalScoreForTesting(Score<?> averageAndTotalScore)
    • getMedian

      public SubSingleBenchmarkResult getMedian()
    • getBest

      public SubSingleBenchmarkResult getBest()
    • getWorst

      public SubSingleBenchmarkResult getWorst()
    • getStandardDeviationDoubles

      public double[] getStandardDeviationDoubles()
    • getInfeasibleScoreCount

      public Integer getInfeasibleScoreCount()
    • getUninitializedSolutionCount

      public Integer getUninitializedSolutionCount()
    • getTotalScore

      public Score<?> getTotalScore()
    • getAnchorId

      public String getAnchorId()
    • getName

      public String getName()
      Specified by:
      getName in interface BenchmarkResult
      Returns:
      never null, filename safe
    • getBenchmarkReportDirectory

      public File getBenchmarkReportDirectory()
    • hasAllSuccess

      public boolean hasAllSuccess()
      Specified by:
      hasAllSuccess in interface BenchmarkResult
      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 interface BenchmarkResult
      Returns:
      true if there is a failed child benchmark and the variable is initialized
    • isScoreFeasible

      public boolean isScoreFeasible()
    • getScoreCalculationSpeed

      public Long getScoreCalculationSpeed()
    • isWinner

      public boolean isWinner()
    • getSubSingleStatistic

      public SubSingleStatistic getSubSingleStatistic(ProblemStatisticType problemStatisticType)
    • getSuccessCount

      public int getSuccessCount()
    • getStandardDeviationString

      public String getStandardDeviationString()
    • getResultDirectoryName

      public String getResultDirectoryName()
      Specified by:
      getResultDirectoryName in interface BenchmarkResult
      Returns:
      the name of the directory that holds the benchmark's results
    • getResultDirectory

      public File getResultDirectory()
      Specified by:
      getResultDirectory in interface BenchmarkResult
      Returns:
      the benchmark result directory as a file
    • makeDirs

      public void makeDirs()
    • getSubSingleCount

      public int getSubSingleCount()
    • accumulateResults

      public void accumulateResults(BenchmarkReport benchmarkReport)
    • createMerge

      protected static SingleBenchmarkResult createMerge(SolverBenchmarkResult solverBenchmarkResult, ProblemBenchmarkResult problemBenchmarkResult, SingleBenchmarkResult oldResult)
    • toString

      public String toString()
      Overrides:
      toString in class Object