public class GreatDeluge.GreatDelugeContext extends NeighbourSearch.NeighbourSearchContext
iIter, iT0
Constructor and Description |
---|
GreatDelugeContext() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
accept(Assignment<V,T> assignment,
Model<V,T> model,
Neighbour<V,T> neighbour,
double value,
boolean lazy)
Accept the given neighbour if it does not worsen the current solution or when the new solution is below the bound
|
protected void |
activate(Solution<V,T> solution)
Setup the bound
|
void |
bestSaved(Solution<V,T> solution)
Update last improving iteration count
|
protected double |
getCoolRate(int idx) |
protected void |
incIteration(Solution<V,T> solution)
Increment iteration count, update bound
|
bestCleared, bestRestored, canContinue, deactivate, getInfo, getInfo, getTimeMillis, solutionUpdated
public GreatDelugeContext()
protected boolean accept(Assignment<V,T> assignment, Model<V,T> model, Neighbour<V,T> neighbour, double value, boolean lazy)
accept
in class NeighbourSearch.NeighbourSearchContext
assignment
- current assignmentmodel
- problem modelneighbour
- a generated movevalue
- value of the generated move (i.e., its impact on the solution value)lazy
- true if lazy moveprotected void activate(Solution<V,T> solution)
activate
in class NeighbourSearch.NeighbourSearchContext
solution
- current solutionprotected double getCoolRate(int idx)
protected void incIteration(Solution<V,T> solution)
incIteration
in class NeighbourSearch.NeighbourSearchContext
solution
- current solution