public class RandomUnassignmentSelection extends Object implements NeighbourSelection<Request,Enrollment>
NeighbourSelection).
| Parameter | Type | Comment |
|---|---|---|
| Neighbour.RandomUnassignmentProb | Double |
Probability of a random selection of a student. |
| Modifier and Type | Class and Description |
|---|---|
static class |
RandomUnassignmentSelection.UnassignStudentNeighbour
Unassignment of all requests of a student
|
| Modifier and Type | Field and Description |
|---|---|
protected double |
iRandom |
| Constructor and Description |
|---|
RandomUnassignmentSelection(DataProperties properties) |
RandomUnassignmentSelection(DataProperties properties,
Request.RequestPriority priority)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
init(Solver<Request,Enrollment> solver)
Initialization
|
Neighbour<Request,Enrollment> |
selectNeighbour(Solution<Request,Enrollment> solution)
With the given probabilty, a student is randomly selected to be
unassigned.
|
protected double iRandom
public RandomUnassignmentSelection(DataProperties properties, Request.RequestPriority priority)
properties - configurationpublic RandomUnassignmentSelection(DataProperties properties)
public void init(Solver<Request,Enrollment> solver)
init in interface NeighbourSelection<Request,Enrollment>solver - current solverpublic Neighbour<Request,Enrollment> selectNeighbour(Solution<Request,Enrollment> solution)
selectNeighbour in interface NeighbourSelection<Request,Enrollment>solution - given solution