|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.cpsolver.ifs.model.Neighbour<V,T>
net.sf.cpsolver.ifs.heuristics.BacktrackNeighbourSelection.BackTrackNeighbour
public class BacktrackNeighbourSelection.BackTrackNeighbour
Backtracking neighbour
Constructor Summary | |
---|---|
BacktrackNeighbourSelection.BackTrackNeighbour(List<V> resolvedVariables)
Constructor |
Method Summary | |
---|---|
void |
assign(long iteration)
Assign the neighbour |
int |
compareTo(Solution<V,T> solution)
Compare two neighbours |
List<T> |
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(List<V> resolvedVariables)
resolvedVariables
- variables that has been changedMethod Detail |
---|
public double getTotalValue()
public double value()
value
in class Neighbour<V extends Variable<V,T>,T extends Value<V,T>>
public List<T> getAssignments()
public void assign(long iteration)
assign
in class Neighbour<V extends Variable<V,T>,T extends Value<V,T>>
public int compareTo(Solution<V,T> solution)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |