|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sat4j.minisat.core.Solver<L,PBDataStructureFactory<L>>
org.sat4j.pb.core.PBSolver<L>
org.sat4j.pb.core.PBSolverCP<org.sat4j.minisat.core.ILits>
org.sat4j.pb.core.PBSolverWithImpliedClause
public class PBSolverWithImpliedClause
| Field Summary |
|---|
| Fields inherited from class org.sat4j.pb.core.PBSolver |
|---|
listOfVariables |
| Fields inherited from class org.sat4j.minisat.core.Solver |
|---|
analyzer, dsfactory, EXPENSIVE_SIMPLIFICATION, NO_SIMPLIFICATION, rootLevel, SIMPLE_SIMPLIFICATION, trail, trailLim, voc |
| Constructor Summary | |
|---|---|
PBSolverWithImpliedClause(org.sat4j.minisat.core.AssertingClauseGenerator acg,
org.sat4j.minisat.core.LearningStrategy<org.sat4j.minisat.core.ILits,PBDataStructureFactory<org.sat4j.minisat.core.ILits>> learner,
PBDataStructureFactory<org.sat4j.minisat.core.ILits> dsf,
org.sat4j.minisat.core.IOrder<org.sat4j.minisat.core.ILits> order)
|
|
| Method Summary | |
|---|---|
org.sat4j.specs.IConstr |
addPseudoBoolean(org.sat4j.specs.IVecInt literals,
org.sat4j.specs.IVec<java.math.BigInteger> coeffs,
boolean moreThan,
java.math.BigInteger degree)
Create a Pseudo-Boolean constraint of the type "at least n of those literals must be satisfied" |
java.lang.String |
toString(java.lang.String prefix)
|
| Methods inherited from class org.sat4j.pb.core.PBSolverCP |
|---|
analyze, analyzeAtRootLevel, getExplanation |
| Methods inherited from class org.sat4j.pb.core.PBSolver |
|---|
setListOfVariablesForExplanation, setObjectiveFunction |
| Methods inherited from class org.sat4j.minisat.core.Solver |
|---|
addAllClauses, addAtLeast, addAtMost, addClause, addConstr, assume, cancelUntil, claBumpActivity, clearLearntClauses, decayActivities, decisionLevel, dimacs2internal, enqueue, enqueue, expireTimeout, findModel, findModel, getDSFactory, getIthConstr, getOrder, getOutLearnt, getStat, getStats, getTimeout, getVocabulary, isDBSimplificationAllowed, isSatisfiable, isSatisfiable, isSatisfiable, isSatisfiable, learn, model, model, nAssigns, nConstraints, newVar, newVar, nVars, printInfos, printStat, printStat, propagate, reduceDB, reduceDB, removeConstr, reset, setDataStructureFactory, setDBSimplificationAllowed, setExpectedNumberOfClauses, setOrder, setRestartStrategy, setSearchListener, setSearchParams, setSimplifier, setSimplifier, setTimeout, setTimeoutMs, setTimeoutOnConflicts, simplifyDB, toString, undoOne, varBumpActivity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.sat4j.specs.ISolver |
|---|
addAllClauses, addAtLeast, addAtMost, addClause, clearLearntClauses, expireTimeout, getStat, getTimeout, isDBSimplificationAllowed, newVar, newVar, printStat, printStat, removeConstr, reset, setDBSimplificationAllowed, setExpectedNumberOfClauses, setTimeout, setTimeoutMs, setTimeoutOnConflicts |
| Methods inherited from interface org.sat4j.specs.IProblem |
|---|
findModel, findModel, isSatisfiable, isSatisfiable, isSatisfiable, isSatisfiable, model, model, nConstraints, nVars, printInfos |
| Constructor Detail |
|---|
public PBSolverWithImpliedClause(org.sat4j.minisat.core.AssertingClauseGenerator acg,
org.sat4j.minisat.core.LearningStrategy<org.sat4j.minisat.core.ILits,PBDataStructureFactory<org.sat4j.minisat.core.ILits>> learner,
PBDataStructureFactory<org.sat4j.minisat.core.ILits> dsf,
org.sat4j.minisat.core.IOrder<org.sat4j.minisat.core.ILits> order)
| Method Detail |
|---|
public org.sat4j.specs.IConstr addPseudoBoolean(org.sat4j.specs.IVecInt literals,
org.sat4j.specs.IVec<java.math.BigInteger> coeffs,
boolean moreThan,
java.math.BigInteger degree)
throws org.sat4j.specs.ContradictionException
IPBSolver
addPseudoBoolean in interface IPBSolveraddPseudoBoolean in class PBSolver<org.sat4j.minisat.core.ILits>literals - a set of literals. The vector can be reused since the solver
is not supposed to keep a reference to that vector.coeffs - the coefficients of the literals. The vector can be reused
since the solver is not supposed to keep a reference to that
vector.moreThan - true if it is a constraint >= degreedegree - the degree of the cardinality constraint
org.sat4j.specs.ContradictionException - iff the vector of literals is empty or if the constraint is
falsified after unit propagationISolver.removeConstr(IConstr)public java.lang.String toString(java.lang.String prefix)
toString in interface org.sat4j.specs.ISolvertoString in class PBSolverCP<org.sat4j.minisat.core.ILits>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||