public class StudentSwapGenerator extends Object implements NeighbourSelection<Lecture,Placement>
Constructor and Description |
---|
StudentSwapGenerator() |
Modifier and Type | Method and Description |
---|---|
Neighbour<Lecture,Placement> |
generateSwap(TimetableModel model,
Assignment<Lecture,Placement> assignment,
Student student,
Configuration config) |
void |
init(Solver<Lecture,Placement> solver)
Criterion initialization
|
Neighbour<Lecture,Placement> |
selectNeighbour(Assignment<Lecture,Placement> assignment,
Lecture lecture) |
Neighbour<Lecture,Placement> |
selectNeighbour(Solution<Lecture,Placement> solution)
select a neighbour of a given solution
|
public StudentSwapGenerator()
public void init(Solver<Lecture,Placement> solver)
NeighbourSelection
init
in interface NeighbourSelection<Lecture,Placement>
solver
- current solverpublic Neighbour<Lecture,Placement> selectNeighbour(Solution<Lecture,Placement> solution)
NeighbourSelection
selectNeighbour
in interface NeighbourSelection<Lecture,Placement>
solution
- given solutionpublic Neighbour<Lecture,Placement> selectNeighbour(Assignment<Lecture,Placement> assignment, Lecture lecture)
public Neighbour<Lecture,Placement> generateSwap(TimetableModel model, Assignment<Lecture,Placement> assignment, Student student, Configuration config)