public class BacktrackNeighbourSelection.BacktrackNeighbourSelectionContext extends Object implements AssignmentContext
Modifier and Type | Field and Description |
---|---|
protected BacktrackNeighbourSelection.BackTrackNeighbour |
iBackTrackNeighbour |
protected Solution<V,T> |
iSolution |
protected double |
iValue |
Constructor and Description |
---|
BacktrackNeighbourSelectionContext(Solution<V,T> solution) |
Modifier and Type | Method and Description |
---|---|
Assignment<V,T> |
getAssignment() |
BacktrackNeighbourSelection.BackTrackNeighbour |
getBackTrackNeighbour() |
Model<V,T> |
getModel() |
long |
getTime()
Time needed to find a neighbour (last call of selectNeighbour method)
|
void |
incIteration() |
boolean |
isMaxItersReached()
True, if the maximum number of iterations was reached by the last call of
selectNeighbour method
|
boolean |
isTimeoutReached()
True, if timeout was reached during the last call of selectNeighbour
method
|
void |
saveBest(List<V> variables2resolve) |
void |
saveBest(V... variables2resolve) |
protected BacktrackNeighbourSelection.BackTrackNeighbour iBackTrackNeighbour
protected double iValue
public BacktrackNeighbourSelectionContext(Solution<V,T> solution)
public long getTime()
public boolean isTimeoutReached()
public boolean isMaxItersReached()
public BacktrackNeighbourSelection.BackTrackNeighbour getBackTrackNeighbour()
public void incIteration()
public Assignment<V,T> getAssignment()