public class ExamSimpleNeighbour extends SimpleNeighbour<Exam,ExamPlacement>
SimpleNeighbour
. The only difference is that the value (
SimpleNeighbour.value()
) is decreased by 1000 if the selected
variable has no current assignment. Constructor and Description |
---|
ExamSimpleNeighbour(ExamPlacement placement) |
Modifier and Type | Method and Description |
---|---|
void |
assign(long iteration)
Perform assignment
|
String |
toString() |
protected static String |
toString(double[] x) |
protected static String |
toString(double[] x,
double[] y) |
double |
value()
Improvement in the solution value if this neighbour is accepted.
|
getValue, getVariable
public ExamSimpleNeighbour(ExamPlacement placement)
public void assign(long iteration)
SimpleNeighbour
assign
in class SimpleNeighbour<Exam,ExamPlacement>
public String toString()
toString
in class SimpleNeighbour<Exam,ExamPlacement>
public double value()
SimpleNeighbour
value
in class SimpleNeighbour<Exam,ExamPlacement>