|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.cpsolver.exam.neighbours.ExamTimeMove
public class ExamTimeMove
A new period is selected for a randomly selected exam. It tries to use the current
set of rooms, if it is possible (exam is assigned, rooms are available and
not used during the new period). Otherwise, rooms are selected using
Exam.findBestAvailableRooms(ExamPeriodPlacement)
.
Constructor Summary | |
---|---|
ExamTimeMove(DataProperties properties)
Constructor |
Method Summary | |
---|---|
void |
init(Solver solver)
Initialization |
Neighbour |
selectNeighbour(Solution solution)
Select an exam randomly, select an available period randomly (if it is not assigned), use rooms if possible, select rooms using Exam.findBestAvailableRooms(ExamPeriodPlacement) if not (exam is unassigned, a room is not available or used). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExamTimeMove(DataProperties properties)
properties
- problem propertiesMethod Detail |
---|
public void init(Solver solver)
init
in interface NeighbourSelection
public Neighbour selectNeighbour(Solution solution)
Exam.findBestAvailableRooms(ExamPeriodPlacement)
if not (exam is unassigned, a room is not available or used).
selectNeighbour
in interface NeighbourSelection
solution
- given solution
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |