public final class MaxWatchPbLong extends WatchPbLong
| Modifier and Type | Method and Description |
|---|---|
protected void |
computePropagation(UnitPropagationListener s) |
protected void |
computeWatches()
All the literals are watched.
|
int |
getAssertionLevel(IVecInt trail,
int decisionLevel) |
static MaxWatchPbLong |
normalizedMaxWatchPbNew(UnitPropagationListener s,
ILits voc,
int[] lits,
BigInteger[] coefs,
BigInteger degree,
BigInteger sumCoefs)
build a pseudo boolean constraint.
|
static WatchPbLong |
normalizedWatchPbNew(ILits voc,
IDataStructurePB mpb)
build a pseudo boolean constraint from a specific data structure.
|
boolean |
propagate(UnitPropagationListener s,
int p)
Propagation of a falsified literal
|
boolean |
propagatePI(MandatoryLiteralListener l,
int p) |
void |
remove(UnitPropagationListener upl)
Remove a constraint from the solver
|
void |
undo(int p)
this method is called during backtrack
|
assertConstraint, assertConstraintIfNeeded, calcReason, calcReasonOnTheFly, canBePropagatedMultipleTimes, canBeSatisfiedByCountingLiterals, coefficientsEqualToOne, computeAnImpliedClause, computeLeftSide, computeLeftSide, dump, equals, forwardActivity, get, getActivity, getCoef, getCoefs, getDegree, getLits, getSumCoefs, getVocabulary, hashCode, incActivity, isAssertive, isSatisfiable, isSatisfied, learnt, locked, ppcm, register, requiredNumberOfSatisfiedLiterals, rescaleBy, setActivity, setLearnt, simplify, size, slackConstraint, slackConstraint, sort, sort, toConstraint, toLong, toString, toStringprotected void computeWatches()
throws ContradictionException
computeWatches in class WatchPbLongContradictionExceptionWatchPbLong.computeWatches()protected void computePropagation(UnitPropagationListener s) throws ContradictionException
computePropagation in class WatchPbLongContradictionExceptionpublic boolean propagate(UnitPropagationListener s, int p)
propagate in interface Propagatablepropagate in class WatchPbLongs - the solverp - the propagated literal (it must be falsified)public void remove(UnitPropagationListener upl)
remove in interface Constrremove in class WatchPbLongpublic void undo(int p)
undo in interface Undoableundo in class WatchPbLongp - an unassigned literalpublic static MaxWatchPbLong normalizedMaxWatchPbNew(UnitPropagationListener s, ILits voc, int[] lits, BigInteger[] coefs, BigInteger degree, BigInteger sumCoefs) throws ContradictionException
s - a unit propagation listener (usually the solver)voc - the vocabularylits - the literals of the constraintcoefs - the coefficients of the constraintdegree - the degree of the constraintContradictionExceptionpublic static WatchPbLong normalizedWatchPbNew(ILits voc, IDataStructurePB mpb)
s - a unit propagation listener (usually the solver)mpb - data structure which contains literals of the constraint,
coefficients (a0, a1, ... an), and the degree of the
constraint (k). The constraint is a "more than" constraint.public boolean propagatePI(MandatoryLiteralListener l, int p)
public int getAssertionLevel(IVecInt trail, int decisionLevel)
Copyright © 2020 Centre de Recherche en Informatique de Lens (CRIL). All rights reserved.