public class ExamRoomMove extends Object implements NeighbourSelection<Exam,ExamPlacement>
Constructor and Description |
---|
ExamRoomMove(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 (if it is
not assigned, from
Exam.getPeriodPlacements() ), select rooms
using Exam.findRoomsRandom(Assignment, ExamPeriodPlacement) |
public ExamRoomMove(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.findRoomsRandom(Assignment, ExamPeriodPlacement)
selectNeighbour
in interface NeighbourSelection<Exam,ExamPlacement>
solution
- given solution