public class CardinalityDataStructureYanMax extends AbstractCardinalityDataStructure
learner, lits, solver
Constructor and Description |
---|
CardinalityDataStructureYanMax() |
Modifier and Type | Method and Description |
---|---|
Constr |
createCardinalityConstraint(IVecInt literals,
int degree)
Create a cardinality constraint of the form sum li >= degree.
|
Constr |
createClause(IVecInt literals) |
Constr |
createUnregisteredCardinalityConstraint(IVecInt literals,
int degree) |
Constr |
createUnregisteredClause(IVecInt literals) |
createLits
conflictDetectedInWatchesFor, getVocabulary, getWatchesFor, learnConstraint, reset, setLearner, setUnitPropagationListener
public Constr createClause(IVecInt literals) throws ContradictionException
literals
- a set of literals using Dimacs format (signed non null
integers).ContradictionException
- the constraint is trivially unsatisfiable.public Constr createCardinalityConstraint(IVecInt literals, int degree) throws ContradictionException
DataStructureFactory
createCardinalityConstraint
in interface DataStructureFactory
createCardinalityConstraint
in class AbstractDataStructureFactory
literals
- a set of literals.degree
- the degree of the cardinality constraint.ContradictionException
public Constr createUnregisteredCardinalityConstraint(IVecInt literals, int degree)
createUnregisteredCardinalityConstraint
in interface DataStructureFactory
createUnregisteredCardinalityConstraint
in class AbstractDataStructureFactory
Copyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.