public class RoomSwap extends RandomSwapMove<Lecture,Placement>
RandomSwapMove.SwapNeighbouriHC, 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, setHcModepublic RoomSwap(DataProperties config)
public void init(Solver<Lecture,Placement> solver)
NeighbourSelectioninit in interface NeighbourSelection<Lecture,Placement>init in class RandomSwapMove<Lecture,Placement>solver - current solverpublic Neighbour<Lecture,Placement> selectNeighbour(Solution<Lecture,Placement> solution)
NeighbourSelectionselectNeighbour 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)
RandomSwapMoveresolve 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