org.optaplanner.benchmark.impl
public class ProblemBenchmark extends Object
Solver
configurations.Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
ProblemBenchmark(DefaultPlannerBenchmark plannerBenchmark) |
Modifier and Type | Method and Description |
---|---|
void |
benchmarkingEnded() |
void |
benchmarkingStarted() |
boolean |
equals(Object o) |
Long |
getAverageUsedMemoryAfterInputSolution() |
Integer |
getFailureCount() |
File |
getInputSolutionFile() |
String |
getName() |
DefaultPlannerBenchmark |
getPlannerBenchmark() |
org.optaplanner.core.impl.solution.ProblemIO |
getProblemIO() |
File |
getProblemReportDirectory() |
Long |
getProblemScale() |
List<ProblemStatistic> |
getProblemStatisticList() |
List<SingleBenchmark> |
getSingleBenchmarkList() |
SingleBenchmark |
getWinningSingleBenchmark() |
SingleBenchmark |
getWorstSingleBenchmark() |
boolean |
hasAnyFailure() |
boolean |
hasAnyProblemStatistic() |
boolean |
hasAnySuccess() |
int |
hashCode() |
boolean |
isWriteOutputSolutionEnabled() |
org.optaplanner.core.impl.solution.Solution |
readPlanningProblem() |
void |
registerProblemScale(long registeringProblemScale)
HACK to avoid loading the planningProblem just to extract it's problemScale.
|
void |
setInputSolutionFile(File inputSolutionFile) |
void |
setName(String name) |
void |
setProblemIO(org.optaplanner.core.impl.solution.ProblemIO problemIO) |
void |
setProblemStatisticList(List<ProblemStatistic> problemStatisticList) |
void |
setSingleBenchmarkList(List<SingleBenchmark> singleBenchmarkList) |
void |
setWriteOutputSolutionEnabled(boolean writeOutputSolutionEnabled) |
long |
warmUp(long startingTimeMillis,
long warmUpTimeMillisSpend,
long timeLeft) |
void |
writeOutputSolution(SingleBenchmark singleBenchmark,
org.optaplanner.core.impl.solution.Solution outputSolution) |
public ProblemBenchmark(DefaultPlannerBenchmark plannerBenchmark)
public DefaultPlannerBenchmark getPlannerBenchmark()
public String getName()
public void setName(String name)
public org.optaplanner.core.impl.solution.ProblemIO getProblemIO()
public void setProblemIO(org.optaplanner.core.impl.solution.ProblemIO problemIO)
public boolean isWriteOutputSolutionEnabled()
public void setWriteOutputSolutionEnabled(boolean writeOutputSolutionEnabled)
public File getInputSolutionFile()
public File getProblemReportDirectory()
public void setInputSolutionFile(File inputSolutionFile)
public List<ProblemStatistic> getProblemStatisticList()
public void setProblemStatisticList(List<ProblemStatistic> problemStatisticList)
public List<SingleBenchmark> getSingleBenchmarkList()
public void setSingleBenchmarkList(List<SingleBenchmark> singleBenchmarkList)
public Long getProblemScale()
public Long getAverageUsedMemoryAfterInputSolution()
public Integer getFailureCount()
public SingleBenchmark getWinningSingleBenchmark()
public SingleBenchmark getWorstSingleBenchmark()
public void benchmarkingStarted()
public long warmUp(long startingTimeMillis, long warmUpTimeMillisSpend, long timeLeft)
public org.optaplanner.core.impl.solution.Solution readPlanningProblem()
public void writeOutputSolution(SingleBenchmark singleBenchmark, org.optaplanner.core.impl.solution.Solution outputSolution)
public void benchmarkingEnded()
public boolean hasAnyFailure()
public boolean hasAnySuccess()
public boolean hasAnyProblemStatistic()
public void registerProblemScale(long registeringProblemScale)
SingleBenchmark
of this ProblemBenchmark
.registeringProblemScale
- >= 0Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.