public class SimpleNeighbour<V extends Variable<V,T>,T extends Value<V,T>> extends Neighbour<V,T>
NeighbourSelection
Constructor and Description |
---|
SimpleNeighbour(V variable,
T value)
Model
|
Modifier and Type | Method and Description |
---|---|
void |
assign(long iteration)
Perform assignment
|
T |
getValue()
Selected value
|
V |
getVariable()
Selected variable
|
String |
toString() |
double |
value()
Improvement in the solution value if this neighbour is accepted.
|
public SimpleNeighbour(V variable, T value)
variable
- variable to be assignedvalue
- value to be assigned to the given variable, null if the
variable should be unassignedpublic V getVariable()
public void assign(long iteration)
public double value()