public class Binary extends EncodingStrategyAdapter
Constructor and Description |
---|
Binary() |
Modifier and Type | Method and Description |
---|---|
IConstr |
addAtMost(ISolver solver,
IVecInt literals,
int k) |
IConstr |
addAtMostOne(ISolver solver,
IVecInt literals)
p being the smaller integer greater than log_2(n), this encoding adds p
variables and n*p clauses.
|
IConstr |
addExactly(ISolver solver,
IVecInt literals,
int degree) |
IConstr |
addExactlyOne(ISolver solver,
IVecInt literals) |
addAtLeast, addAtLeastOne, toString
public IConstr addAtMostOne(ISolver solver, IVecInt literals) throws ContradictionException
addAtMostOne
in class EncodingStrategyAdapter
ContradictionException
public IConstr addAtMost(ISolver solver, IVecInt literals, int k) throws ContradictionException
addAtMost
in class EncodingStrategyAdapter
ContradictionException
public IConstr addExactlyOne(ISolver solver, IVecInt literals) throws ContradictionException
addExactlyOne
in class EncodingStrategyAdapter
ContradictionException
public IConstr addExactly(ISolver solver, IVecInt literals, int degree) throws ContradictionException
addExactly
in class EncodingStrategyAdapter
ContradictionException
Copyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.