public class FullClauseSelectorSolver<T extends ISolver> extends AbstractClauseSelectorSolver<T>
Constructor and Description |
---|
FullClauseSelectorSolver(T solver,
boolean skipDuplicatedEntries) |
Modifier and Type | Method and Description |
---|---|
IConstr |
addClause(IVecInt literals)
Create a clause from a set of literals The literals are represented by
non null integers such that opposite literals a represented by opposite
values.
|
IConstr |
addControlableClause(IVecInt literals) |
IConstr |
addNonControlableClause(IVecInt literals) |
Collection<Integer> |
getAddedVars() |
Collection<IConstr> |
getConstraints() |
Map<Integer,IConstr> |
getConstrs() |
IVecInt |
getLastClause() |
IConstr |
getLastConstr() |
boolean |
isSkipDuplicatedEntries() |
int[] |
model()
Provide a model (if any) for a satisfiable formula.
|
void |
setLastConstr(IConstr lastConstr) |
createNewVar, discardLastestVar, externalState, internalState, isSatisfiable, isSatisfiable, isSatisfiable, isSatisfiable
addAllClauses, addAtLeast, addAtMost, addBlockingClause, addExactly, clearDecorated, clearLearntClauses, decorated, expireTimeout, findModel, findModel, getLogPrefix, getSearchListener, getSolvingEngine, getStat, getTimeout, getTimeoutMs, isDBSimplificationAllowed, isSolverKeptHot, isVerbose, model, modelWithInternalVariables, nConstraints, newVar, newVar, nextFreeVarId, nVars, primeImplicant, primeImplicant, printInfos, printInfos, printStat, printStat, printStat, realNumberOfVariables, registerLiteral, removeConstr, removeSubsumedConstr, reset, setDBSimplificationAllowed, setExpectedNumberOfClauses, setKeepSolverHot, setLogPrefix, setSearchListener, setTimeout, setTimeoutMs, setTimeoutOnConflicts, setUnitClauseProvider, setVerbose, toString, toString, unsatExplanation
public FullClauseSelectorSolver(T solver, boolean skipDuplicatedEntries)
public IConstr addControlableClause(IVecInt literals) throws ContradictionException
ContradictionException
public IConstr addNonControlableClause(IVecInt literals) throws ContradictionException
ContradictionException
public IConstr addClause(IVecInt literals) throws ContradictionException
ISolver
addClause
in interface ISolver
addClause
in class SolverDecorator<T extends ISolver>
literals
- a set of literalsContradictionException
- iff the vector of literals is empty or if it contains only
falsified literals after unit propagationISolver.removeConstr(IConstr)
public int[] model()
IProblem
model
in interface IProblem
model
in class SolverDecorator<T extends ISolver>
IProblem.isSatisfiable()
,
IProblem.isSatisfiable(IVecInt)
public Collection<IConstr> getConstraints()
public Collection<Integer> getAddedVars()
getAddedVars
in class AbstractClauseSelectorSolver<T extends ISolver>
public IConstr getLastConstr()
public void setLastConstr(IConstr lastConstr)
public IVecInt getLastClause()
public boolean isSkipDuplicatedEntries()
Copyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.