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, org.sat4j.minisat.core.Constr, org.sat4j.minisat.core.Propagatable, org.sat4j.minisat.core.Undoable, PBConstr, org.sat4j.specs.IConstr
public class PuebloMinWatchPb
- extends MinWatchPb
- See Also:
- Serialized Form
|
Method Summary |
protected java.math.BigInteger |
maximalCoefficient(int pIndice)
|
static PuebloMinWatchPb |
minWatchPbNew(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
IDataStructurePB mpb)
|
static PuebloMinWatchPb |
minWatchPbNew(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt ps,
org.sat4j.specs.IVec<java.math.BigInteger> coefs,
boolean moreThan,
java.math.BigInteger degree)
|
static PuebloMinWatchPb |
minWatchPbNew(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt ps,
org.sat4j.specs.IVecInt coefs,
boolean moreThan,
int degree)
|
static WatchPb |
normalizedWatchPbNew(org.sat4j.minisat.core.ILits voc,
IDataStructurePB mpb)
|
protected java.math.BigInteger |
updateWatched(java.math.BigInteger mc,
int pIndice)
|
static WatchPb |
watchPbNew(org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt lits,
org.sat4j.specs.IVec<java.math.BigInteger> coefs,
boolean moreThan,
java.math.BigInteger degree)
|
static WatchPb |
watchPbNew(org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt lits,
org.sat4j.specs.IVecInt coefs,
boolean moreThan,
int degree)
|
| Methods inherited from class org.sat4j.pb.constraints.pb.WatchPb |
assertConstraint, calcReason, coefficientsEqualToOne, computeAnImpliedClause, equals, get, getActivity, getCoef, getCoefs, getDegree, getLits, getVocabulary, hashCode, incActivity, isAssertive, isSatisfiable, learnt, locked, 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 |
minWatchPbNew
public static PuebloMinWatchPb minWatchPbNew(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt ps,
org.sat4j.specs.IVecInt coefs,
boolean moreThan,
int degree)
throws org.sat4j.specs.ContradictionException
- Parameters:
s - outil pour la propagation des litt???rauxps - liste des litt???raux de la nouvelle contraintecoefs - liste des coefficients des litt???raux de la contraintemoreThan - d???termine si c'est une sup???rieure ou ???gal ??? l'originedegree - fournit le degr??? de la contrainte
- Returns:
- une nouvelle clause si tout va bien, ou null si un conflit est
d???tect???
- Throws:
org.sat4j.specs.ContradictionException
minWatchPbNew
public static PuebloMinWatchPb minWatchPbNew(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt ps,
org.sat4j.specs.IVec<java.math.BigInteger> coefs,
boolean moreThan,
java.math.BigInteger degree)
throws org.sat4j.specs.ContradictionException
- Parameters:
s - outil pour la propagation des litt???rauxps - liste des litt???raux de la nouvelle contraintecoefs - liste des coefficients des litt???raux de la contraintemoreThan - d???termine si c'est une sup???rieure ou ???gal ??? l'originedegree - fournit le degr??? de la contrainte
- Returns:
- une nouvelle clause si tout va bien, ou null si un conflit est
d???tect???
- Throws:
org.sat4j.specs.ContradictionException
minWatchPbNew
public static PuebloMinWatchPb minWatchPbNew(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
IDataStructurePB mpb)
throws org.sat4j.specs.ContradictionException
- Throws:
org.sat4j.specs.ContradictionException
watchPbNew
public static WatchPb watchPbNew(org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt lits,
org.sat4j.specs.IVecInt coefs,
boolean moreThan,
int degree)
watchPbNew
public static WatchPb watchPbNew(org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt lits,
org.sat4j.specs.IVec<java.math.BigInteger> coefs,
boolean moreThan,
java.math.BigInteger degree)
normalizedWatchPbNew
public static WatchPb normalizedWatchPbNew(org.sat4j.minisat.core.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 © 2008 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.