org.sat4j.tools.encoding
Class Policy
java.lang.Object
org.sat4j.tools.encoding.EncodingStrategyAdapter
org.sat4j.tools.encoding.Policy
public class Policy
- extends EncodingStrategyAdapter
This class allows the use of different encodings for different cardinality
constraints.
- Since:
- 2.3.1
- Author:
- stephanieroussel
Policy
public Policy()
addAtMost
public IConstr addAtMost(ISolver solver,
IVecInt literals,
int k)
throws ContradictionException
- Overrides:
addAtMost
in class EncodingStrategyAdapter
- Throws:
ContradictionException
addExactly
public IConstr addExactly(ISolver solver,
IVecInt literals,
int n)
throws ContradictionException
- Overrides:
addExactly
in class EncodingStrategyAdapter
- Throws:
ContradictionException
Copyright © 2011 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.