Module logicng

Enum 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_CNF calls the Formula.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_SOLVER uses 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_SOLVER uses 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 to PG_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 prefix FULL. Without the NNF transformation the formula factory and the heap will not be polluted with intermediate formulas.
    • 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 name
        NullPointerException - if the argument is null