-
- All Known Implementing Classes:
PBAdderNetworks,PBBinaryMerge,PBSWC
public interface PBEncodingThe interface for pseudo Boolean constraint encodings.- Since:
- 1.1
- Version:
- 1.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Formula>encode(LNGVector<Literal> lits, LNGIntVector coeffs, int rhs, List<Formula> result)Encodes a pseudo-Boolean constraint and returns its CNF encoding.
-
-
-
Method Detail
-
encode
List<Formula> encode(LNGVector<Literal> lits, LNGIntVector coeffs, int rhs, List<Formula> result)
Encodes a pseudo-Boolean constraint and returns its CNF encoding.- Parameters:
lits- the literals of the constraintcoeffs- the coefficients of the constraintrhs- the right-hand side of the constraintresult- the current result CNF- Returns:
- the CNF encoding of the constraint
-
-