public interface SearchListener<S extends ISolverService> extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
adding(int p)
adding forced variable (conflict driven assignment)
|
void |
assuming(int p)
decision variable
|
void |
backjump(int backjumpLevel)
The solver is asked to backjump to a given decision level.
|
void |
backtracking(int p)
backtrack on a decision variable
|
void |
beginLoop()
starts a propagation
|
void |
cleaning()
The solver is going to delete some learned clauses.
|
void |
conflictFound(IConstr confl,
int dlevel,
int trailLevel)
a conflict has been found.
|
void |
conflictFound(int p)
a conflict has been found while propagating values.
|
void |
delete(int[] clause)
delete a clause
|
void |
end(Lbool result)
End the search.
|
void |
init(S solverService)
Provide access to the solver's controllable interface.
|
void |
learn(IConstr c)
learning a new clause
|
void |
learnUnit(int p)
learn a new unit clause (a literal)
|
void |
propagating(int p,
IConstr reason)
Unit propagation
|
void |
restarting()
The solver restarts the search.
|
void |
solutionFound(int[] model,
RandomAccessModel lazyModel)
a solution is found.
|
void |
start()
Start the search.
|
void init(S solverService)
solverService
- a way to safely control the solver.void assuming(int p)
p
- void propagating(int p, IConstr reason)
p
- reason
- TODOvoid backtracking(int p)
p
- void adding(int p)
void learn(IConstr c)
c
- void learnUnit(int p)
p
- a literal in Dimacs format.void delete(int[] clause)
void conflictFound(IConstr confl, int dlevel, int trailLevel)
confl
- TODOdlevel
- TODOtrailLevel
- TODOvoid conflictFound(int p)
p
- the conflicting value.void solutionFound(int[] model, RandomAccessModel lazyModel)
model
- the model foundlazyModel
- TODOvoid beginLoop()
void start()
void end(Lbool result)
result
- the result of the search.void restarting()
void backjump(int backjumpLevel)
backjumpLevel
- void cleaning()
Copyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.