org.sat4j.pb.constraints.pb
Class PuebloMinWatchPb
java.lang.Object
org.sat4j.pb.constraints.pb.WatchPb
org.sat4j.pb.constraints.pb.MinWatchPb
org.sat4j.pb.constraints.pb.PuebloMinWatchPb
- All Implemented Interfaces:
- java.io.Serializable, Constr, Propagatable, Undoable, PBConstr, IConstr
public class PuebloMinWatchPb
- extends MinWatchPb
- See Also:
- Serialized Form
Methods inherited from class org.sat4j.pb.constraints.pb.WatchPb |
assertConstraint, calcReason, coefficientsEqualToOne, computeAnImpliedClause, equals, forwardActivity, get, getActivity, getCoef, getCoefs, getDegree, getLits, getVocabulary, hashCode, incActivity, isAssertive, isSatisfiable, learnt, locked, ppcm, recalcLeftSide, recalcLeftSide, register, rescaleBy, setLearnt, simplify, size, slackConstraint, slackConstraint, sort, sort, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
normalizedMinWatchPbNew
public static PuebloMinWatchPb normalizedMinWatchPbNew(UnitPropagationListener s,
ILits voc,
int[] lits,
java.math.BigInteger[] coefs,
java.math.BigInteger degree)
throws ContradictionException
- Parameters:
s
- a unit propagation listenervoc
- the vocabularylits
- the literalscoefs
- the coefficientsdegree
- the degree of the constraint to normalize.
- Returns:
- a new PB constraint or null if a trivial inconsistency is
detected.
- Throws:
ContradictionException
normalizedWatchPbNew
public static WatchPb normalizedWatchPbNew(ILits voc,
IDataStructurePB mpb)
maximalCoefficient
protected java.math.BigInteger maximalCoefficient(int pIndice)
- Overrides:
maximalCoefficient
in class MinWatchPb
- Parameters:
pIndice
- propagated literal : its coefficient is excluded from the
search of the maximal coefficient
- Returns:
- the maximal coefficient for the watched literals
updateWatched
protected java.math.BigInteger updateWatched(java.math.BigInteger mc,
int pIndice)
- Overrides:
updateWatched
in class MinWatchPb
Copyright © 2009 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.