- java.lang.Object
-
- org.logicng.pseudobooleans.PBBinaryMerge
-
- All Implemented Interfaces:
PBEncoding
public final class PBBinaryMerge extends Object implements PBEncoding
The binary merge encoding for pseudo-Boolean constraints to CNF due to Manthey, Philipp, and Steinke.- Since:
- 1.1
- Version:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Formula>encode(LNGVector<Literal> lts, LNGIntVector cffs, int rhs, List<Formula> formula)Encodes a pseudo-Boolean constraint and returns its CNF encoding.
-
-
-
Method Detail
-
encode
public List<Formula> encode(LNGVector<Literal> lts, LNGIntVector cffs, int rhs, List<Formula> formula)
Description copied from interface:PBEncodingEncodes a pseudo-Boolean constraint and returns its CNF encoding.- Specified by:
encodein interfacePBEncoding- Parameters:
lts- the literals of the constraintcffs- the coefficients of the constraintrhs- the right-hand side of the constraintformula- the current result CNF- Returns:
- the CNF encoding of the constraint
-
-