Enum Class CompilationType

java.lang.Object
java.lang.Enum<CompilationType>
org.ddolib.common.compilation.CompilationType
All Implemented Interfaces:
Serializable, Comparable<CompilationType>, Constable

public enum CompilationType extends Enum<CompilationType>
Specifies the type of compilation to use when constructing a decision diagram (DD) for a problem.

The compilation type determines how the decision diagram is generated and whether it represents an exact solution, an upper bound, or a lower bound of the objective function.

  • Enum Constant Details

    • Exact

      public static final CompilationType Exact
      Compile an exact decision diagram.

      This approach corresponds to a pure dynamic programming (DP) resolution of the problem, generating a full decision diagram that represents all feasible solutions exactly.

    • Restricted

      public static final CompilationType Restricted
      Compile a restricted decision diagram.

      This approach generates a decision diagram that is limited in width or depth, providing an upper bound on the objective function rather than the exact solution.

    • Relaxed

      public static final CompilationType Relaxed
      Compile a relaxed decision diagram.

      This approach generates a decision diagram that merges nodes to reduce complexity, yielding a lower bound on the objective function rather than the exact solution.

  • Method Details

    • values

      public static CompilationType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CompilationType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null