|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sat4j.tools.SolverDecorator org.sat4j.opt.AbstractSelectorVariablesDecorator
public abstract class AbstractSelectorVariablesDecorator
Field Summary | |
---|---|
protected int |
nbnewvar
|
protected int |
nborigvars
|
protected int[] |
prevfullmodel
|
Constructor Summary | |
---|---|
AbstractSelectorVariablesDecorator(ISolver solver)
|
Method Summary | |
---|---|
boolean |
admitABetterSolution()
|
int[] |
model()
Provide a model (if any) for a satisfiable formula. |
int |
newVar(int howmany)
Create howmany variables in the solver (and thus in the
vocabulary). |
void |
reset()
Clean up the internal state of the solver. |
void |
setExpectedNumberOfClauses(int nb)
To inform the solver of the expected number of clauses to read. |
Methods inherited from class org.sat4j.tools.SolverDecorator |
---|
addAllClauses, addAtLeast, addAtMost, addClause, addPseudoBoolean, clearLearntClauses, decorated, findModel, findModel, getStat, getTimeout, isSatisfiable, isSatisfiable, model, nConstraints, newVar, nVars, printStat, printStat, removeConstr, setTimeout, setTimeoutMs, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int nborigvars
protected int nbnewvar
protected int[] prevfullmodel
Constructor Detail |
---|
public AbstractSelectorVariablesDecorator(ISolver solver)
Method Detail |
---|
public int[] model()
IProblem
model
in interface IProblem
model
in class SolverDecorator
IProblem.isSatisfiable()
,
IProblem.isSatisfiable(IVecInt)
public int newVar(int howmany)
ISolver
howmany
variables in the solver (and thus in the
vocabulary).
newVar
in interface ISolver
newVar
in class SolverDecorator
howmany
- number of variables to create
public void setExpectedNumberOfClauses(int nb)
ISolver
p cnf
line is
read in dimacs formatted input file.
setExpectedNumberOfClauses
in interface ISolver
setExpectedNumberOfClauses
in class SolverDecorator
nb
- the expected number of clauses.public void reset()
ISolver
reset
in interface ISolver
reset
in class SolverDecorator
public boolean admitABetterSolution() throws TimeoutException
TimeoutException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |