- java.lang.Object
-
- org.logicng.pseudobooleans.PBConfig.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PBConfig.BuilderbinaryMergeNoSupportForSingleBit(boolean binaryMergeNoSupportForSingleBit)Sets the support for single bits in the binary merge encoding.PBConfig.BuilderbinaryMergeUseGAC(boolean binaryMergeUseGAC)Sets whether general arc consistency should be used in the binary merge encoding.PBConfig.BuilderbinaryMergeUseWatchDog(boolean binaryMergeUseWatchDog)Sets whether the watchdog encoding should be used in the binary merge encoding.PBConfigbuild()Builds the pseudo-Boolean encoder configuration.PBConfig.BuilderpbEncoding(PBConfig.PB_ENCODER pbEncoder)Sets the encoder for pseudo-Boolean constraints.
-
-
-
Method Detail
-
pbEncoding
public PBConfig.Builder pbEncoding(PBConfig.PB_ENCODER pbEncoder)
Sets the encoder for pseudo-Boolean constraints. The default value isBEST.- Parameters:
pbEncoder- the pseudo-Boolean encoder- Returns:
- the builder
-
binaryMergeUseGAC
public PBConfig.Builder binaryMergeUseGAC(boolean binaryMergeUseGAC)
Sets whether general arc consistency should be used in the binary merge encoding. The default value istrue.- Parameters:
binaryMergeUseGAC-trueif general arc consistency should be used,falseotherwise- Returns:
- the builder
-
binaryMergeNoSupportForSingleBit
public PBConfig.Builder binaryMergeNoSupportForSingleBit(boolean binaryMergeNoSupportForSingleBit)
Sets the support for single bits in the binary merge encoding. The default value isfalse.- Parameters:
binaryMergeNoSupportForSingleBit-trueif the support for single bits should be disabled,falseotherwise- Returns:
- the builder
-
binaryMergeUseWatchDog
public PBConfig.Builder binaryMergeUseWatchDog(boolean binaryMergeUseWatchDog)
Sets whether the watchdog encoding should be used in the binary merge encoding. The default value istrue.- Parameters:
binaryMergeUseWatchDog-trueif the watchdog encoding should be used,falseotherwise- Returns:
- the builder
-
build
public PBConfig build()
Builds the pseudo-Boolean encoder configuration.- Returns:
- the configuration
-
-