public abstract class AbstractPBClauseCardConstrDataStructure extends AbstractPBDataStructureFactory
FOR_COMPETITION, NO_COMPETITIONlearner, lits, solver| Modifier and Type | Method and Description |
|---|---|
protected Constr |
constraintFactory(int[] literals,
java.math.BigInteger[] coefs,
java.math.BigInteger degree) |
protected Constr |
constructCard(IVecInt theLits,
int degree) |
protected Constr |
constructClause(IVecInt v) |
protected Constr |
constructLearntCard(IDataStructurePB dspb) |
protected Constr |
constructLearntCard(IVecInt literals,
IVec<java.math.BigInteger> coefs,
java.math.BigInteger degree) |
protected Constr |
constructLearntClause(IVecInt literals) |
protected Constr |
constructLearntPB(IDataStructurePB dspb) |
protected Constr |
constructLearntPB(IVecInt literals,
IVec<java.math.BigInteger> coefs,
java.math.BigInteger degree) |
protected Constr |
constructPB(int[] theLits,
java.math.BigInteger[] coefs,
java.math.BigInteger degree) |
Constr |
createClause(IVecInt literals) |
Constr |
createUnregisteredClause(IVecInt literals) |
protected Constr |
learntAtLeastConstraintFactory(IVecInt literals,
IVec<java.math.BigInteger> coefs,
java.math.BigInteger degree) |
protected Constr |
learntAtMostConstraintFactory(IVecInt literals,
IVec<java.math.BigInteger> coefs,
java.math.BigInteger degree) |
protected Constr |
learntConstraintFactory(IDataStructurePB dspb) |
static java.math.BigInteger |
sumOfCoefficients(java.math.BigInteger[] coefs) |
createAtLeastPBConstraint, createAtMostPBConstraint, createCardinalityConstraint, createLits, createPseudoBooleanConstraint, createUnregisteredAtLeastConstraint, createUnregisteredAtMostConstraint, createUnregisteredCardinalityConstraint, createUnregisteredPseudoBooleanConstraint, getNormalizer, setNormalizer, setNormalizerconflictDetectedInWatchesFor, getVocabulary, getWatchesFor, learnConstraint, reset, setLearner, setUnitPropagationListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconflictDetectedInWatchesFor, getVocabulary, getWatchesFor, learnConstraint, reset, setLearner, setUnitPropagationListenerpublic Constr createClause(IVecInt literals) throws ContradictionException
createClause in interface DataStructureFactorycreateClause in class AbstractPBDataStructureFactoryliterals - a set of literals using Dimacs format (signed non null
integers).ContradictionException - the constraint is trivially unsatisfiable.public Constr createUnregisteredClause(IVecInt literals)
createUnregisteredClause in interface DataStructureFactorycreateUnregisteredClause in class AbstractPBDataStructureFactoryprotected Constr constraintFactory(int[] literals, java.math.BigInteger[] coefs, java.math.BigInteger degree) throws ContradictionException
constraintFactory in class AbstractPBDataStructureFactoryContradictionExceptionprotected Constr learntConstraintFactory(IDataStructurePB dspb)
learntConstraintFactory in class AbstractPBDataStructureFactoryprotected Constr learntAtLeastConstraintFactory(IVecInt literals, IVec<java.math.BigInteger> coefs, java.math.BigInteger degree)
learntAtLeastConstraintFactory in class AbstractPBDataStructureFactoryprotected Constr learntAtMostConstraintFactory(IVecInt literals, IVec<java.math.BigInteger> coefs, java.math.BigInteger degree)
learntAtMostConstraintFactory in class AbstractPBDataStructureFactoryprotected Constr constructCard(IVecInt theLits, int degree) throws ContradictionException
ContradictionExceptionprotected Constr constructPB(int[] theLits, java.math.BigInteger[] coefs, java.math.BigInteger degree) throws ContradictionException
ContradictionExceptionprotected Constr constructLearntCard(IDataStructurePB dspb)
protected Constr constructLearntCard(IVecInt literals, IVec<java.math.BigInteger> coefs, java.math.BigInteger degree)
protected Constr constructLearntPB(IDataStructurePB dspb)
protected Constr constructLearntPB(IVecInt literals, IVec<java.math.BigInteger> coefs, java.math.BigInteger degree)
public static final java.math.BigInteger sumOfCoefficients(java.math.BigInteger[] coefs)