- java.lang.Object
-
- java.lang.Enum<MiniSatConfig.CNFMethod>
-
- org.logicng.solvers.sat.MiniSatConfig.CNFMethod
-
- All Implemented Interfaces:
Serializable,Comparable<MiniSatConfig.CNFMethod>
- Enclosing class:
- MiniSatConfig
public static enum MiniSatConfig.CNFMethod extends Enum<MiniSatConfig.CNFMethod>
The different methods for generating a CNF for a formula to put on the solver.-
FACTORY_CNFcalls theFormula.cnf()method on the formula to convert it to CNF. Therefore the CNF including all its auxiliary variables will be added to the formula factory. -
PG_ON_SOLVERuses a solver-internal implementation of Plaisted-Greenbaum. Auxiliary variables are only added on the solver, not on the factory. This usually leads to a reduced heap usage and often faster performance. Before applying Plaisted-Greenbaum, this method performs an NNF transformation on the input formula first. -
FULL_PG_ON_SOLVERuses a solver-internal implementation of Plaisted-Greenbaum. Auxiliary variables are only added on the solver, not on the factory. This usually leads to a reduced heap usage and often faster performance. In contrast toPG_ON_SOLVER, this method does not transform the input formula to NNF first. The Plaisted-Greenbaum transformation is applied directly to all operators of the formula, hence prefixFULL. Without the NNF transformation the formula factory and the heap will not be polluted with intermediate formulas.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FACTORY_CNFFULL_PG_ON_SOLVERPG_ON_SOLVER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MiniSatConfig.CNFMethodvalueOf(String name)Returns the enum constant of this type with the specified name.static MiniSatConfig.CNFMethod[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FACTORY_CNF
public static final MiniSatConfig.CNFMethod FACTORY_CNF
-
PG_ON_SOLVER
public static final MiniSatConfig.CNFMethod PG_ON_SOLVER
-
FULL_PG_ON_SOLVER
public static final MiniSatConfig.CNFMethod FULL_PG_ON_SOLVER
-
-
Method Detail
-
values
public static MiniSatConfig.CNFMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MiniSatConfig.CNFMethod c : MiniSatConfig.CNFMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MiniSatConfig.CNFMethod valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-