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, wait
getReadingTimeCount, getTimeCount, toArray, toCSV, toDimacsString, toMultiLineString, toOneLineString
protected 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 IMeasures
public final long getFailCount()
getFailCount
in interface IMeasures
public final long getNodeCount()
getNodeCount
in interface IMeasures
public long getTimeCountInNanoSeconds()
getTimeCountInNanoSeconds
in interface IMeasures
public long getReadingTimeCountInNanoSeconds()
getReadingTimeCountInNanoSeconds
in interface IMeasures
public final long getRestartCount()
getRestartCount
in interface IMeasures
public final long getMaxDepth()
getMaxDepth
in interface IMeasures
public final long getCurrentDepth()
getCurrentDepth
in interface IMeasures
public final boolean isObjectiveOptimal()
isObjectiveOptimal
in interface IMeasures
public final boolean hasObjective()
hasObjective
in interface IMeasures
public final Number getBestSolutionValue()
getBestSolutionValue
in interface IMeasures
public final SearchState getSearchState()
getSearchState
in interface IMeasures
public final String getModelName()
getModelName
in interface IMeasures
public long getTimestamp()
getTimestamp
in interface IMeasures
public final IBoundsManager getBoundsManager()
getBoundsManager
in interface IMeasures
public final long getSolutionCount()
getSolutionCount
in interface IMeasures
public long getDecisionCount()
getDecisionCount
in interface IMeasures
Copyright © 2018. All rights reserved.