org.sat4j.pb.constraints.pb
Class AtLeastPB
java.lang.Object
org.sat4j.minisat.constraints.card.AtLeast
org.sat4j.pb.constraints.pb.AtLeastPB
- All Implemented Interfaces:
- Serializable, Constr, Propagatable, Undoable, PBConstr, IConstr
public final class AtLeastPB
- extends AtLeast
- implements PBConstr
- See Also:
- Serialized Form
Methods inherited from class org.sat4j.minisat.constraints.card.AtLeast |
calcReason, canBePropagatedMultipleTimes, forwardActivity, get, getActivity, incActivity, locked, niceParameters, propagate, remove, rescaleBy, simplify, size, toString, undo |
atLeastNew
public static PBConstr atLeastNew(UnitPropagationListener s,
ILits voc,
IVecInt ps,
int n)
throws ContradictionException
- Throws:
ContradictionException
atLeastNew
public static AtLeastPB atLeastNew(ILits voc,
IVecInt ps,
int n)
getCoef
public BigInteger getCoef(int literal)
- Specified by:
getCoef
in interface PBConstr
getDegree
public BigInteger getDegree()
- Specified by:
getDegree
in interface PBConstr
getVocabulary
public ILits getVocabulary()
- Specified by:
getVocabulary
in interface PBConstr
getLits
public int[] getLits()
- Specified by:
getLits
in interface PBConstr
getCoefs
public BigInteger[] getCoefs()
- Specified by:
getCoefs
in interface PBConstr
learnt
public boolean learnt()
- D?termine si la contrainte est apprise
- Specified by:
learnt
in interface IConstr
- Overrides:
learnt
in class AtLeast
- Returns:
- true si la contrainte est apprise, false sinon
- See Also:
IConstr.learnt()
setLearnt
public void setLearnt()
- Specified by:
setLearnt
in interface Constr
- Overrides:
setLearnt
in class AtLeast
register
public void register()
- Specified by:
register
in interface Constr
- Overrides:
register
in class AtLeast
assertConstraint
public void assertConstraint(UnitPropagationListener s)
- Specified by:
assertConstraint
in interface Constr
- Overrides:
assertConstraint
in class AtLeast
computeAnImpliedClause
public IVecInt computeAnImpliedClause()
- Specified by:
computeAnImpliedClause
in interface PBConstr
Copyright © 2011 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.