public class ExamRandomMove extends Object implements NeighbourSelection<Exam,ExamPlacement>
Exam.findBestAvailableRooms(Assignment, ExamPeriodPlacement)
. Constructor and Description |
---|
ExamRandomMove(DataProperties properties)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
init(Solver<Exam,ExamPlacement> solver)
Initialization
|
Neighbour<Exam,ExamPlacement> |
selectNeighbour(Solution<Exam,ExamPlacement> solution)
Select an exam randomly, select an available period randomly (from
Exam.getPeriodPlacements() ), select rooms using
Exam.findBestAvailableRooms(Assignment, ExamPeriodPlacement) . |
public ExamRandomMove(DataProperties properties)
properties
- problem propertiespublic void init(Solver<Exam,ExamPlacement> solver)
init
in interface NeighbourSelection<Exam,ExamPlacement>
solver
- current solverpublic Neighbour<Exam,ExamPlacement> selectNeighbour(Solution<Exam,ExamPlacement> solution)
Exam.getPeriodPlacements()
), select rooms using
Exam.findBestAvailableRooms(Assignment, ExamPeriodPlacement)
.selectNeighbour
in interface NeighbourSelection<Exam,ExamPlacement>
solution
- given solution