public class ExamTimeMove extends Object implements NeighbourSelection<Exam,ExamPlacement>
Exam.findBestAvailableRooms(Assignment, ExamPeriodPlacement)
. Constructor and Description |
---|
ExamTimeMove(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),
use rooms if possible, select rooms using
Exam.findBestAvailableRooms(Assignment, ExamPeriodPlacement) if not (exam is unassigned, a room is not available or used). |
public ExamTimeMove(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.findBestAvailableRooms(Assignment, ExamPeriodPlacement)
if not (exam is unassigned, a room is not available or used).selectNeighbour
in interface NeighbourSelection<Exam,ExamPlacement>
solution
- given solution