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:
- java.io.Serializable, org.sat4j.minisat.core.Constr, org.sat4j.minisat.core.Propagatable, org.sat4j.minisat.core.Undoable, PBConstr, org.sat4j.specs.IConstr
public class AtLeastPB
- extends org.sat4j.minisat.constraints.card.AtLeast
- implements PBConstr
- See Also:
- Serialized Form
| Fields inherited from class org.sat4j.minisat.constraints.card.AtLeast |
lits, maxUnsatisfied, voc |
| Methods inherited from class org.sat4j.minisat.constraints.card.AtLeast |
calcReason, get, getActivity, incActivity, locked, propagate, remove, rescaleBy, simplify, size, toString, undo |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.sat4j.minisat.core.Constr |
calcReason, getActivity, incActivity, locked, remove, rescaleBy, simplify |
| Methods inherited from interface org.sat4j.minisat.core.Propagatable |
propagate |
| Methods inherited from interface org.sat4j.specs.IConstr |
get, size |
atLeastNew
public static AtLeastPB atLeastNew(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt ps,
int n)
throws org.sat4j.specs.ContradictionException
- Throws:
org.sat4j.specs.ContradictionException
atLeastNew
public static AtLeastPB atLeastNew(org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt ps,
int n)
getCoef
public java.math.BigInteger getCoef(int literal)
- Specified by:
getCoef in interface PBConstr
getDegree
public java.math.BigInteger getDegree()
- Specified by:
getDegree in interface PBConstr
getVocabulary
public org.sat4j.minisat.core.ILits getVocabulary()
- Specified by:
getVocabulary in interface PBConstr
getLits
public int[] getLits()
- Specified by:
getLits in interface PBConstr
getCoefs
public java.math.BigInteger[] getCoefs()
- Specified by:
getCoefs in interface PBConstr
learnt
public boolean learnt()
- D?termine si la contrainte est apprise
- Specified by:
learnt in interface org.sat4j.specs.IConstr- Overrides:
learnt in class org.sat4j.minisat.constraints.card.AtLeast
- Returns:
- true si la contrainte est apprise, false sinon
- See Also:
IConstr.learnt()
setLearnt
public void setLearnt()
- Specified by:
setLearnt in interface org.sat4j.minisat.core.Constr- Overrides:
setLearnt in class org.sat4j.minisat.constraints.card.AtLeast
register
public void register()
- Specified by:
register in interface org.sat4j.minisat.core.Constr- Overrides:
register in class org.sat4j.minisat.constraints.card.AtLeast
assertConstraint
public void assertConstraint(org.sat4j.minisat.core.UnitPropagationListener s)
- Specified by:
assertConstraint in interface org.sat4j.minisat.core.Constr- Overrides:
assertConstraint in class org.sat4j.minisat.constraints.card.AtLeast
computeAnImpliedClause
public org.sat4j.specs.IVecInt computeAnImpliedClause()
- Specified by:
computeAnImpliedClause in interface PBConstr
Copyright © 2008 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.