public class Sequential extends EncodingStrategyAdapter
| Constructor and Description | 
|---|
Sequential()  | 
| Modifier and Type | Method and Description | 
|---|---|
IConstr | 
addAtMost(ISolver solver,
         IVecInt literals,
         int k)
This encoding adds (n-1)*k variables (n is the number of variables in the
 at most constraint and k is the degree of the constraint) and 2nk+n-3k-1
 clauses. 
 | 
IConstr | 
addAtMostOne(ISolver solver,
            IVecInt literals)  | 
IConstr | 
addExactly(ISolver solver,
          IVecInt literals,
          int degree)  | 
IConstr | 
addExactlyOne(ISolver solver,
             IVecInt literals)  | 
addAtLeast, addAtLeastOne, toStringpublic IConstr addAtMost(ISolver solver, IVecInt literals, int k) throws ContradictionException
addAtMost in class EncodingStrategyAdapterContradictionExceptionpublic IConstr addAtMostOne(ISolver solver, IVecInt literals) throws ContradictionException
addAtMostOne in class EncodingStrategyAdapterContradictionExceptionpublic IConstr addExactlyOne(ISolver solver, IVecInt literals) throws ContradictionException
addExactlyOne in class EncodingStrategyAdapterContradictionExceptionpublic IConstr addExactly(ISolver solver, IVecInt literals, int degree) throws ContradictionException
addExactly in class EncodingStrategyAdapterContradictionExceptionCopyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.