public class ModelIteratorToSATAdapter extends ModelIterator
Constructor and Description |
---|
ModelIteratorToSATAdapter(ISolver solver,
long bound,
SolutionFoundListener sfl) |
ModelIteratorToSATAdapter(ISolver solver,
SolutionFoundListener sfl) |
Modifier and Type | Method and Description |
---|---|
boolean |
isSatisfiable()
Check the satisfiability of the set of constraints contained inside the
solver.
|
boolean |
isSatisfiable(IVecInt assumps)
Check the satisfiability of the set of constraints contained inside the
solver.
|
int[] |
model()
Provide a model (if any) for a satisfiable formula.
|
numberOfModelsFoundSoFar, primeImplicant, reset
addAllClauses, addAtLeast, addAtMost, addBlockingClause, addClause, addExactly, clearDecorated, clearLearntClauses, decorated, expireTimeout, findModel, findModel, getLogPrefix, getSearchListener, getSolvingEngine, getStat, getTimeout, getTimeoutMs, isDBSimplificationAllowed, isSatisfiable, isSatisfiable, isSolverKeptHot, isVerbose, model, modelWithInternalVariables, nConstraints, newVar, newVar, nextFreeVarId, nVars, primeImplicant, printInfos, printInfos, printStat, printStat, printStat, realNumberOfVariables, registerLiteral, removeConstr, removeSubsumedConstr, setDBSimplificationAllowed, setExpectedNumberOfClauses, setKeepSolverHot, setLogPrefix, setSearchListener, setTimeout, setTimeoutMs, setTimeoutOnConflicts, setVerbose, toString, toString, unsatExplanation
public ModelIteratorToSATAdapter(ISolver solver, SolutionFoundListener sfl)
public ModelIteratorToSATAdapter(ISolver solver, long bound, SolutionFoundListener sfl)
public boolean isSatisfiable() throws TimeoutException
IProblem
isSatisfiable
in interface IProblem
isSatisfiable
in class ModelIterator
TimeoutException
public boolean isSatisfiable(IVecInt assumps) throws TimeoutException
IProblem
isSatisfiable
in interface IProblem
isSatisfiable
in class ModelIterator
assumps
- a set of literals (represented by usual non null integers in
Dimacs format).TimeoutException
public int[] model()
IProblem
model
in interface IProblem
model
in class ModelIterator
IProblem.isSatisfiable()
,
IProblem.isSatisfiable(IVecInt)
Copyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.