public final class AtLeastPB extends AtLeast implements PBConstr
lits, maxUnsatisfied, voc| Modifier and Type | Method and Description |
|---|---|
void |
assertConstraint(UnitPropagationListener s)
Method called when the constraint is to be asserted.
|
static AtLeastPB |
atLeastNew(ILits voc,
IVecInt ps,
int n) |
static PBConstr |
atLeastNew(UnitPropagationListener s,
ILits voc,
IVecInt ps,
int n) |
IVecInt |
computeAnImpliedClause() |
java.math.BigInteger |
getCoef(int literal) |
java.math.BigInteger[] |
getCoefs() |
java.math.BigInteger |
getDegree() |
int[] |
getLits() |
ILits |
getVocabulary() |
boolean |
learnt()
D?termine si la contrainte est apprise
|
void |
setLearnt()
Mark a constraint as learnt.
|
assertConstraintIfNeeded, calcReason, calcReasonOnTheFly, canBePropagatedMultipleTimes, forwardActivity, get, getActivity, incActivity, locked, niceParameters, propagate, register, remove, rescaleBy, setActivity, simplify, size, toConstraint, toString, undoclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitassertConstraintIfNeeded, calcReason, calcReasonOnTheFly, forwardActivity, incActivity, locked, register, remove, rescaleBy, setActivity, simplifycanBePropagatedMultipleTimes, get, getActivity, sizepublic static PBConstr atLeastNew(UnitPropagationListener s, ILits voc, IVecInt ps, int n) throws ContradictionException
ContradictionExceptionpublic java.math.BigInteger getCoef(int literal)
public ILits getVocabulary()
getVocabulary in interface PBConstrpublic boolean learnt()
learnt in interface IConstrlearnt in class AtLeastIConstr.learnt()public void setLearnt()
Constrpublic void assertConstraint(UnitPropagationListener s)
ConstrassertConstraint in interface ConstrassertConstraint in class AtLeasts - a UnitPropagationListener to use for unit propagation.public IVecInt computeAnImpliedClause()
computeAnImpliedClause in interface PBConstr