public class MixedDataStructureDanielWL extends AbstractDataStructureFactory
learner, lits, solver
Constructor and Description |
---|
MixedDataStructureDanielWL() |
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) |
protected ILits |
createLits() |
Constr |
createUnregisteredCardinalityConstraint(IVecInt literals,
int degree) |
Constr |
createUnregisteredClause(IVecInt literals) |
conflictDetectedInWatchesFor, getVocabulary, getWatchesFor, learnConstraint, reset, setLearner, setUnitPropagationListener
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
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.protected ILits createLits()
createLits
in class AbstractDataStructureFactory
Copyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.