|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.cpsolver.ifs.model.Neighbour net.sf.cpsolver.ifs.heuristics.BacktrackNeighbourSelection.BackTrackNeighbour
public class BacktrackNeighbourSelection.BackTrackNeighbour
Backtracking neighbour
Constructor Summary | |
---|---|
BacktrackNeighbourSelection.BackTrackNeighbour(Vector resolvedVariables)
Constructor |
Method Summary | |
---|---|
void |
assign(long iteration)
Assign the neighbour |
int |
compareTo(Solution solution)
Compare two neighbours |
Vector |
getAssignments()
Neighbour assignments |
double |
getTotalValue()
Neighbour value (solution total value if the neighbour is applied). |
String |
toString()
|
double |
value()
Sum of values of variables from the neighbour that change their values |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BacktrackNeighbourSelection.BackTrackNeighbour(Vector resolvedVariables)
resolvedVariables
- variables that has been changedMethod Detail |
---|
public double getTotalValue()
public double value()
value
in class Neighbour
public Vector getAssignments()
public void assign(long iteration)
assign
in class Neighbour
public int compareTo(Solution solution)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |