public class RoomSwap extends RandomSwapMove<Lecture,Placement>
RandomSwapMove.SwapNeighbour
iHC, iMaxAttempts, iTimeLimit
Constructor and Description |
---|
RoomSwap(DataProperties config) |
Modifier and Type | Method and Description |
---|---|
void |
init(Solver<Lecture,Placement> solver)
Criterion initialization
|
Double |
resolve(Solution<Lecture,Placement> solution,
double total,
long startTime,
Map<Lecture,Placement> assignments,
List<Placement> conflicts,
int index)
Try to resolve given conflicts.
|
Neighbour<Lecture,Placement> |
selectNeighbour(Solution<Lecture,Placement> solution)
select a neighbour of a given solution
|
isTimeLimitReached, setHcMode
public RoomSwap(DataProperties config)
public void init(Solver<Lecture,Placement> solver)
NeighbourSelection
init
in interface NeighbourSelection<Lecture,Placement>
init
in class RandomSwapMove<Lecture,Placement>
solver
- current solverpublic Neighbour<Lecture,Placement> selectNeighbour(Solution<Lecture,Placement> solution)
NeighbourSelection
selectNeighbour
in interface NeighbourSelection<Lecture,Placement>
selectNeighbour
in class RandomSwapMove<Lecture,Placement>
solution
- given solutionpublic Double resolve(Solution<Lecture,Placement> solution, double total, long startTime, Map<Lecture,Placement> assignments, List<Placement> conflicts, int index)
RandomSwapMove
resolve
in class RandomSwapMove<Lecture,Placement>
solution
- current solutiontotal
- original value of the current solutionstartTime
- starting timeassignments
- re-assignments to be madeconflicts
- list of conflicts to resolveindex
- index in the list of conflicts