public class RndUnProblStudSelection extends RandomUnassignmentSelection
RoundRobinNeighbourSelection
.
NeighbourSelection
).
Parameter | Type | Comment |
---|---|---|
Neighbour.RandomUnassignmentOfProblemStudentProb | Double |
Probability of a random selection of a student from the given set of problematic students. |
RandomUnassignmentSelection.UnassignStudentNeighbour
iRandom
Constructor and Description |
---|
RndUnProblStudSelection(DataProperties properties,
ProblemStudentsProvider psp)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
init(Solver<Request,Enrollment> solver)
Initialization --
ProblemStudentsProvider.getProblemStudents() is
called |
Neighbour<Request,Enrollment> |
selectNeighbour(Solution<Request,Enrollment> solution)
With the given probabilty, a problematic student is randomly selected to
be unassigned.
|
public RndUnProblStudSelection(DataProperties properties, ProblemStudentsProvider psp)
properties
- configurationpsp
- a class that provides the set of problematic studentspublic void init(Solver<Request,Enrollment> solver)
ProblemStudentsProvider.getProblemStudents()
is
calledinit
in interface NeighbourSelection<Request,Enrollment>
init
in class RandomUnassignmentSelection
solver
- current solverpublic Neighbour<Request,Enrollment> selectNeighbour(Solution<Request,Enrollment> solution)
selectNeighbour
in interface NeighbourSelection<Request,Enrollment>
selectNeighbour
in class RandomUnassignmentSelection
solution
- given solution