|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.cpsolver.ifs.extension.Extension<V,T>
net.sf.cpsolver.ifs.extension.SearchIntensification<V,T>
public class SearchIntensification<V extends Variable<V,T>,T extends Value<V,T>>
Go back to the best known solution when no better solution is found within the given amount of iterations.
| Constructor Summary | |
|---|---|
SearchIntensification(Solver<V,T> solver,
DataProperties properties)
|
|
| Method Summary | |
|---|---|
void |
afterAssigned(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. |
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. |
| Methods inherited from class net.sf.cpsolver.ifs.extension.Extension |
|---|
afterUnassigned, beforeAssigned, beforeUnassigned, constraintAdded, constraintRemoved, getModel, getProperties, getSolver, isRegistered, useValueExtra, useVariableExtra, variableAdded, variableRemoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SearchIntensification(Solver<V,T> solver,
DataProperties properties)
| Method Detail |
|---|
public boolean init(Solver<V,T> solver)
Extension
init in interface ModelListener<V extends Variable<V,T>,T extends Value<V,T>>init in class Extension<V extends Variable<V,T>,T extends Value<V,T>>solver - IFS solverpublic void register(Model<V,T> model)
Extension
register in class Extension<V extends Variable<V,T>,T extends Value<V,T>>public void unregister(Model<V,T> model)
Extension
unregister in class Extension<V extends Variable<V,T>,T extends Value<V,T>>
public void afterAssigned(long iteration,
T value)
Extension
afterAssigned in interface ModelListener<V extends Variable<V,T>,T extends Value<V,T>>afterAssigned in class Extension<V extends Variable<V,T>,T extends Value<V,T>>iteration - current iterationvalue - value to be assignedpublic void bestSaved(Solution<V,T> solution)
SolutionListenerSolution.saveBest() is called.
bestSaved in interface SolutionListener<V extends Variable<V,T>,T extends Value<V,T>>solution - source solutionpublic 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 solution
public void getInfo(Solution<V,T> solution,
Map<String,String> info)
SolutionListenerSolution.getInfo(). A listener can also add some its info into
this table.
getInfo in interface SolutionListener<V extends Variable<V,T>,T extends Value<V,T>>solution - source solutioninfo - produced info 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.
getInfo in interface SolutionListener<V extends Variable<V,T>,T extends Value<V,T>>solution - source solutioninfo - produced info tablevariables - only variables from this set are included
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||