|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 IProblemmodel in class SolverDecoratorIProblem.isSatisfiable(),
IProblem.isSatisfiable(IVecInt)public int newVar(int howmany)
ISolverhowmany variables in the solver (and thus in the
vocabulary).
newVar in interface ISolvernewVar in class SolverDecoratorhowmany - number of variables to create
public void setExpectedNumberOfClauses(int nb)
ISolverp cnf line is
read in dimacs formatted input file.
setExpectedNumberOfClauses in interface ISolversetExpectedNumberOfClauses in class SolverDecoratornb - the expected number of clauses.public void reset()
ISolver
reset in interface ISolverreset 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 | |||||||||