public final class MeasuresRecorder extends Measures
backtrackCount, boundsManager, depth, failCount, maxDepth, modelName, nodeCount, objectiveOptimal, readingTimeCount, restartCount, solutionCount, state, timeCount
Constructor and Description |
---|
MeasuresRecorder(String modelName)
Create a measures recorder
|
Modifier and Type | Method and Description |
---|---|
void |
decDepth()
Decrements current depth
|
long |
getTimeCountInNanoSeconds() |
void |
incBackTrackCount()
increment backtrack counter
|
void |
incDepth()
Increments current depth
|
void |
incFailCount()
increment fail counter
|
void |
incNodeCount()
increment node counter
|
void |
incRestartCount()
increment restart counter
|
void |
incSolutionCount()
increment solution counter
|
void |
reset()
Reset every measure to its default value (mostly 0)
|
void |
setBoundsManager(IBoundsManager boundsManager)
Update the bounds managed
|
void |
setObjectiveOptimal(boolean objectiveOptimal)
indicates whether or not the optimum has been found and proved
|
void |
setReadingTimeCount(long readingTimeCount) |
void |
setSearchState(SearchState state)
Update the current search state
|
void |
setTimeCount(long timeCount) |
void |
startStopwatch()
Start the stopwatch, to compute resolution time
|
void |
stopStopwatch()
Stop the stopwatch, the resolution time is fixed.
|
getBackTrackCount, getBestSolutionValue, getBoundsManager, getCurrentDepth, getDecisionCount, getFailCount, getMaxDepth, getModelName, getNodeCount, getReadingTimeCountInNanoSeconds, getRestartCount, getSearchState, getSolutionCount, getTimestamp, hasObjective, isObjectiveOptimal, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getReadingTimeCount, getTimeCount, toArray, toCSV, toDimacsString, toMultiLineString, toOneLineString
public MeasuresRecorder(String modelName)
public long getTimeCountInNanoSeconds()
getTimeCountInNanoSeconds
in interface IMeasures
getTimeCountInNanoSeconds
in class Measures
public void startStopwatch()
public void stopStopwatch()
public final void setObjectiveOptimal(boolean objectiveOptimal)
objectiveOptimal
- true if the objective is proven to be optimalpublic void reset()
public final void incNodeCount()
public final void incBackTrackCount()
public final void incFailCount()
public final void incRestartCount()
public final void incSolutionCount()
public final void incDepth()
public final void decDepth()
public final void setSearchState(SearchState state)
state
- new search statepublic final void setBoundsManager(IBoundsManager boundsManager)
boundsManager
- new bound managerpublic final void setTimeCount(long timeCount)
public final void setReadingTimeCount(long readingTimeCount)
Copyright © 2018. All rights reserved.