public class PriorityConstructionSelection.ConstructionNeighbour extends Object implements Neighbour<Request,Enrollment>
BranchBoundSelection.BranchBoundNeighbour
but only assign the given
number of assignments, corresponding to the number of cycles.Constructor and Description |
---|
ConstructionNeighbour(BranchBoundSelection.BranchBoundNeighbour neighbour) |
Modifier and Type | Method and Description |
---|---|
void |
assign(Assignment<Request,Enrollment> assignment,
long iteration)
Only assign given number of assignments (from the first priority down).
|
Map<Request,Enrollment> |
assignments()
Return assignments to be done.
|
String |
toString() |
double |
value(Assignment<Request,Enrollment> assignment)
Difference in the evaluation function, if this neighnour is assigned.
|
public ConstructionNeighbour(BranchBoundSelection.BranchBoundNeighbour neighbour)
public void assign(Assignment<Request,Enrollment> assignment, long iteration)
assign
in interface Neighbour<Request,Enrollment>
assignment
- current assignmentiteration
- current iterationpublic double value(Assignment<Request,Enrollment> assignment)
Neighbour
value
in interface Neighbour<Request,Enrollment>
assignment
- current assignmentpublic Map<Request,Enrollment> assignments()
Neighbour
assignments
in interface Neighbour<Request,Enrollment>