|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.cpsolver.exam.heuristics.ExamGreatDeluge
public class ExamGreatDeluge
Greate deluge. In each iteration, one of the following three neighbourhoods is selected first
ExamRandomMove)
ExamTimeMove)
ExamRoomMove)
| Constructor Summary | |
|---|---|
ExamGreatDeluge(DataProperties properties)
Constructor. |
|
| Method Summary | |
|---|---|
protected boolean |
accept(Solution solution,
Neighbour neighbour)
Accept neighbour |
void |
bestCleared(Solution solution)
Called by the solution when method Solution.clearBest() is called. |
void |
bestRestored(Solution solution)
Called by the solution when method Solution.restoreBest() is called. |
void |
bestSaved(Solution solution)
Update last improving iteration count |
Neighbour |
genMove(Solution solution)
Generate neighbour -- select neighbourhood randomly, select neighbour |
void |
getInfo(Solution solution,
Dictionary info)
Called by the solution when it is asked to produce info table, see Solution.getInfo(). |
void |
getInfo(Solution solution,
Dictionary info,
Vector variables)
Called by the solution when it is asked to produce info table, see Solution.getInfo(). |
protected void |
incIter(Solution solution)
Increment iteration count, update bound |
protected void |
info(Solution solution)
Print some information |
void |
init(Solver solver)
Initialization |
Neighbour |
selectNeighbour(Solution solution)
A neighbour is generated randomly untill an acceptable one is found. |
void |
solutionUpdated(Solution solution)
Called by the solution when it is updated, see Solution.update(double). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExamGreatDeluge(DataProperties properties)
properties - problem properties| Method Detail |
|---|
public void init(Solver solver)
init in interface NeighbourSelectionprotected void info(Solution solution)
public Neighbour genMove(Solution solution)
protected boolean accept(Solution solution,
Neighbour neighbour)
protected void incIter(Solution solution)
public Neighbour selectNeighbour(Solution solution)
selectNeighbour in interface NeighbourSelectionsolution - given solution
public void bestSaved(Solution solution)
bestSaved in interface SolutionListenersolution - source solutionpublic void solutionUpdated(Solution solution)
SolutionListenerSolution.update(double).
solutionUpdated in interface SolutionListenersolution - source solution
public void getInfo(Solution solution,
Dictionary info)
SolutionListenerSolution.getInfo().
A listener can also add some its info into this table.
getInfo in interface SolutionListenersolution - source solutioninfo - produced info table
public void getInfo(Solution solution,
Dictionary info,
Vector variables)
SolutionListenerSolution.getInfo().
A listener can also add some its info into this table.
getInfo in interface SolutionListenersolution - source solutioninfo - produced info tablevariables - only variables from this set are includedpublic void bestCleared(Solution solution)
SolutionListenerSolution.clearBest() is called.
bestCleared in interface SolutionListenersolution - source solutionpublic void bestRestored(Solution solution)
SolutionListenerSolution.restoreBest() is called.
bestRestored in interface SolutionListenersolution - source solution
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||