@Deprecated public class ExamGreatDeluge extends NeighbourSelectionWithContext<Exam,ExamPlacement,ExamGreatDeluge.Context> implements SolutionListener<Exam,ExamPlacement>, LazyNeighbour.LazyNeighbourAcceptanceCriterion<Exam,ExamPlacement>
ExamRandomMove)
ExamTimeMove)
ExamRoomMove)
| Modifier and Type | Class and Description |
|---|---|
class |
ExamGreatDeluge.Context
Deprecated.
|
iContextOverridesMaxSize| Constructor and Description |
|---|
ExamGreatDeluge(DataProperties properties)
Deprecated.
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Assignment<Exam,ExamPlacement> assignment,
LazyNeighbour<Exam,ExamPlacement> neighbour,
double value)
Deprecated.
Accept lazy neighbour
|
protected boolean |
accept(Solution<Exam,ExamPlacement> solution,
Neighbour<Exam,ExamPlacement> neighbour)
Deprecated.
Accept neighbour
|
void |
bestCleared(Solution<Exam,ExamPlacement> solution)
Deprecated.
Called by the solution when method
Solution.clearBest() is
called. |
void |
bestRestored(Solution<Exam,ExamPlacement> solution)
Deprecated.
Called by the solution when method
Solution.restoreBest() is
called. |
void |
bestSaved(Solution<Exam,ExamPlacement> solution)
Deprecated.
Update last improving iteration count
|
ExamGreatDeluge.Context |
createAssignmentContext(Assignment<Exam,ExamPlacement> assignment)
Deprecated.
Create a new assignment context for the given assignment.
|
Neighbour<Exam,ExamPlacement> |
genMove(Solution<Exam,ExamPlacement> solution)
Deprecated.
Generate neighbour -- select neighbourhood randomly, select neighbour
|
void |
getInfo(Solution<Exam,ExamPlacement> solution,
Map<String,String> info)
Deprecated.
Called by the solution when it is asked to produce info table, see
Solution.getInfo(). |
void |
getInfo(Solution<Exam,ExamPlacement> solution,
Map<String,String> info,
Collection<Exam> variables)
Deprecated.
Called by the solution when it is asked to produce info table, see
Solution.getInfo(). |
protected void |
incIter(Solution<Exam,ExamPlacement> solution)
Deprecated.
Increment iteration count, update bound
|
protected void |
info(Solution<Exam,ExamPlacement> solution)
Deprecated.
Print some information
|
void |
init(Solver<Exam,ExamPlacement> solver)
Deprecated.
Initialization
|
Neighbour<Exam,ExamPlacement> |
selectNeighbour(Solution<Exam,ExamPlacement> solution)
Deprecated.
A neighbour is generated randomly untill an acceptable one is found.
|
void |
solutionUpdated(Solution<Exam,ExamPlacement> solution)
Deprecated.
Called by the solution when it is updated, see
Solution.update(double). |
getAssignmentContextReference, getContext, getContext, hasContextOverride, isSingleContextSolver, setAssignmentContextReferencepublic ExamGreatDeluge(DataProperties properties)
properties - problem propertiespublic void init(Solver<Exam,ExamPlacement> solver)
init in interface NeighbourSelection<Exam,ExamPlacement>init in class NeighbourSelectionWithContext<Exam,ExamPlacement,ExamGreatDeluge.Context>solver - current solverprotected void info(Solution<Exam,ExamPlacement> solution)
solution - current solutionpublic Neighbour<Exam,ExamPlacement> genMove(Solution<Exam,ExamPlacement> solution)
solution - current solutionprotected boolean accept(Solution<Exam,ExamPlacement> solution, Neighbour<Exam,ExamPlacement> neighbour)
solution - current solutionneighbour - a neighbour in questionpublic boolean accept(Assignment<Exam,ExamPlacement> assignment, LazyNeighbour<Exam,ExamPlacement> neighbour, double value)
accept in interface LazyNeighbour.LazyNeighbourAcceptanceCriterion<Exam,ExamPlacement>assignment - current assignmentneighbour - neighbour that was assignedvalue - change in overall solution valueprotected void incIter(Solution<Exam,ExamPlacement> solution)
solution - current solutionpublic Neighbour<Exam,ExamPlacement> selectNeighbour(Solution<Exam,ExamPlacement> solution)
selectNeighbour in interface NeighbourSelection<Exam,ExamPlacement>solution - given solutionpublic void bestSaved(Solution<Exam,ExamPlacement> solution)
bestSaved in interface SolutionListener<Exam,ExamPlacement>solution - source solutionpublic void solutionUpdated(Solution<Exam,ExamPlacement> solution)
SolutionListenerSolution.update(double).solutionUpdated in interface SolutionListener<Exam,ExamPlacement>solution - source solutionpublic void getInfo(Solution<Exam,ExamPlacement> solution, Map<String,String> info)
SolutionListenerSolution.getInfo(). A listener can also add some its info into
this table.getInfo in interface SolutionListener<Exam,ExamPlacement>solution - source solutioninfo - produced info tablepublic void getInfo(Solution<Exam,ExamPlacement> solution, Map<String,String> info, Collection<Exam> variables)
SolutionListenerSolution.getInfo(). A listener can also add some its info into
this table.getInfo in interface SolutionListener<Exam,ExamPlacement>solution - source solutioninfo - produced info tablevariables - only variables from this set are includedpublic void bestCleared(Solution<Exam,ExamPlacement> solution)
SolutionListenerSolution.clearBest() is
called.bestCleared in interface SolutionListener<Exam,ExamPlacement>solution - source solutionpublic void bestRestored(Solution<Exam,ExamPlacement> solution)
SolutionListenerSolution.restoreBest() is
called.bestRestored in interface SolutionListener<Exam,ExamPlacement>solution - source solutionpublic ExamGreatDeluge.Context createAssignmentContext(Assignment<Exam,ExamPlacement> assignment)
HasAssignmentContextcreateAssignmentContext in interface HasAssignmentContext<Exam,ExamPlacement,ExamGreatDeluge.Context>assignment - an assignment for which there needs to be an assignment context