public static class SwapStudentSelection.SwapStudentNeighbour extends Neighbour<Request,Enrollment>
| Constructor and Description |
|---|
SwapStudentNeighbour(double value,
Enrollment enrollment,
List<Enrollment> swaps)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
assign(long iteration)
Perform the move.
|
String |
toString() |
double |
value()
Difference in the evaluation function, if this neighnour is assigned.
|
public SwapStudentNeighbour(double value, Enrollment enrollment, List<Enrollment> swaps)
value - cost of the moveenrollment - the enrollment which is to be assigned to the given
studentswaps - enrollment swapspublic double value()
Neighbourvalue in class Neighbour<Request,Enrollment>public void assign(long iteration)
assign in class Neighbour<Request,Enrollment>