V - VariableT - Valuepublic class SearchIntensification<V extends Variable<V,T>,T extends Value<V,T>> extends ExtensionWithContext<V,T,SearchIntensification.Context> implements SolutionListener<V,T>
| Modifier and Type | Class and Description |
|---|---|
class |
SearchIntensification.Context
Assignment context
|
sMaxSize| Constructor and Description |
|---|
SearchIntensification(Solver<V,T> solver,
DataProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterAssigned(Assignment<V,T> assignment,
long iteration,
T value)
Called after a value is assigned to a variable
|
void |
bestCleared(Solution<V,T> solution)
Called by the solution when method
Solution.clearBest() is
called. |
void |
bestRestored(Solution<V,T> solution)
Called by the solution when method
Solution.restoreBest() is
called. |
void |
bestSaved(Solution<V,T> solution)
Called by the solution when method
Solution.saveBest() is called. |
SearchIntensification.Context |
createAssignmentContext(Assignment<V,T> assignment)
Create a new assignment context for the given assignment.
|
void |
getInfo(Solution<V,T> solution,
Map<String,String> info)
Called by the solution when it is asked to produce info table, see
Solution.getInfo(). |
void |
getInfo(Solution<V,T> solution,
Map<String,String> info,
Collection<V> variables)
Called by the solution when it is asked to produce info table, see
Solution.getInfo(). |
boolean |
init(Solver<V,T> solver)
Initialization -- called before the solver is started
|
void |
register(Model<V,T> model)
Registration of a model.
|
void |
solutionUpdated(Solution<V,T> solution)
Called by the solution when it is updated, see
Solution.update(double). |
void |
unregister(Model<V,T> model)
Unregistration of a model.
|
getAssignmentContextReference, getContext, getContext, setAssignmentContextReferenceafterUnassigned, beforeAssigned, beforeUnassigned, constraintAdded, constraintRemoved, getModel, getProperties, getSolver, isRegistered, variableAdded, variableRemovedpublic SearchIntensification(Solver<V,T> solver, DataProperties properties)
public boolean init(Solver<V,T> solver)
Extensionpublic void register(Model<V,T> model)
Extensionpublic void unregister(Model<V,T> model)
Extensionunregister in class ExtensionWithContext<V extends Variable<V,T>,T extends Value<V,T>,SearchIntensification.Context>model - problem modelpublic void afterAssigned(Assignment<V,T> assignment, long iteration, T value)
Extensionpublic void bestSaved(Solution<V,T> solution)
SolutionListenerSolution.saveBest() is called.public void solutionUpdated(Solution<V,T> solution)
SolutionListenerSolution.update(double).solutionUpdated in interface SolutionListener<V extends Variable<V,T>,T extends Value<V,T>>solution - source solutionpublic void bestCleared(Solution<V,T> solution)
SolutionListenerSolution.clearBest() is
called.bestCleared in interface SolutionListener<V extends Variable<V,T>,T extends Value<V,T>>solution - source solutionpublic void bestRestored(Solution<V,T> solution)
SolutionListenerSolution.restoreBest() is
called.bestRestored in interface SolutionListener<V extends Variable<V,T>,T extends Value<V,T>>solution - source solutionpublic void getInfo(Solution<V,T> solution, Map<String,String> info)
SolutionListenerSolution.getInfo(). A listener can also add some its info into
this table.public void getInfo(Solution<V,T> solution, Map<String,String> info, Collection<V> variables)
SolutionListenerSolution.getInfo(). A listener can also add some its info into
this table.public SearchIntensification.Context createAssignmentContext(Assignment<V,T> assignment)
HasAssignmentContextcreateAssignmentContext in interface HasAssignmentContext<V extends Variable<V,T>,T extends Value<V,T>,SearchIntensification.Context>assignment - an assignment for which there needs to be an assignment context