|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.cpsolver.ifs.extension.Extension
net.sf.cpsolver.ifs.extension.SearchIntensification
public class SearchIntensification
Go back to the best known solution when no better solution is found within the given amount of iterations.
| Constructor Summary | |
|---|---|
SearchIntensification(Solver solver,
DataProperties properties)
|
|
| Method Summary | |
|---|---|
void |
afterAssigned(long iteration,
Value value)
Called after a value is assigned to a variable |
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)
Called by the solution when method Solution.saveBest() is called. |
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(). |
boolean |
init(Solver solver)
Initialization -- called before the solver is started |
void |
register(Model model)
Registration of a model. |
void |
solutionUpdated(Solution solution)
Called by the solution when it is updated, see Solution.update(double). |
void |
unregister(Model 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 solver,
DataProperties properties)
| Method Detail |
|---|
public boolean init(Solver solver)
Extension
init in interface ModelListenerinit in class Extensionsolver - IFS solverpublic void register(Model model)
Extension
register in class Extensionpublic void unregister(Model model)
Extension
unregister in class Extension
public void afterAssigned(long iteration,
Value value)
Extension
afterAssigned in interface ModelListenerafterAssigned in class Extensioniteration - current iterationvalue - value to be assignedpublic void bestSaved(Solution solution)
SolutionListenerSolution.saveBest() is called.
bestSaved in interface SolutionListenersolution - source solutionpublic void solutionUpdated(Solution solution)
SolutionListenerSolution.update(double).
solutionUpdated in interface SolutionListenersolution - source solutionpublic 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
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 included
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||