public class Measures extends Object implements IMeasures, Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected long |
backtrackCount
Counts the number of backtracks done so far.
|
protected IBoundsManager |
boundsManager
Reference to the bound manager
|
protected long |
depth
Stores the current depth
|
protected long |
failCount
Counts the number of failures encountered so far.
|
protected long |
maxDepth
Stores the overall maximum depth
|
protected String |
modelName
Name of the model observed -- no reference to the model should be done in this class
|
protected long |
nodeCount
Counts the number of nodes opened so far.
|
protected boolean |
objectiveOptimal
Indicates if the optimal value has been proven for the objective (set to true).
|
protected long |
readingTimeCount
Counts the time spent into reading the model
|
protected long |
restartCount
Counts the number of restarts done so far.
|
protected long |
solutionCount
Counts the number of solutions found so far.
|
protected SearchState |
state
Search state
|
protected long |
timeCount
Counts the time spent so far, starting from solver construction call.
|
| Constructor and Description |
|---|
Measures(IMeasures measures)
Copy constructor
with shallow copy of the bounds manager.
|
Measures(String modelName)
Create empty measures.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getBackTrackCount() |
Number |
getBestSolutionValue() |
IBoundsManager |
getBoundsManager() |
long |
getCurrentDepth() |
long |
getDecisionCount() |
long |
getFailCount() |
long |
getMaxDepth() |
String |
getModelName() |
long |
getNodeCount() |
long |
getReadingTimeCountInNanoSeconds() |
long |
getRestartCount() |
SearchState |
getSearchState() |
long |
getSolutionCount() |
long |
getTimeCountInNanoSeconds() |
long |
getTimestamp() |
boolean |
hasObjective() |
boolean |
isObjectiveOptimal() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetReadingTimeCount, getTimeCount, toArray, toCSV, toDimacsString, toMultiLineString, toOneLineStringprotected String modelName
protected SearchState state
protected IBoundsManager boundsManager
protected boolean objectiveOptimal
protected long solutionCount
protected long timeCount
protected long readingTimeCount
protected long nodeCount
protected long backtrackCount
protected long failCount
protected long restartCount
protected long maxDepth
protected long depth
public Measures(String modelName)
public Measures(IMeasures measures)
measures - to copypublic final long getBackTrackCount()
getBackTrackCount in interface IMeasurespublic final long getFailCount()
getFailCount in interface IMeasurespublic final long getNodeCount()
getNodeCount in interface IMeasurespublic long getTimeCountInNanoSeconds()
getTimeCountInNanoSeconds in interface IMeasurespublic long getReadingTimeCountInNanoSeconds()
getReadingTimeCountInNanoSeconds in interface IMeasurespublic final long getRestartCount()
getRestartCount in interface IMeasurespublic final long getMaxDepth()
getMaxDepth in interface IMeasurespublic final long getCurrentDepth()
getCurrentDepth in interface IMeasurespublic final boolean isObjectiveOptimal()
isObjectiveOptimal in interface IMeasurespublic final boolean hasObjective()
hasObjective in interface IMeasurespublic final Number getBestSolutionValue()
getBestSolutionValue in interface IMeasurespublic final SearchState getSearchState()
getSearchState in interface IMeasurespublic final String getModelName()
getModelName in interface IMeasurespublic long getTimestamp()
getTimestamp in interface IMeasurespublic final IBoundsManager getBoundsManager()
getBoundsManager in interface IMeasurespublic final long getSolutionCount()
getSolutionCount in interface IMeasurespublic long getDecisionCount()
getDecisionCount in interface IMeasuresCopyright © 2017. All rights reserved.