Package org.ddolib.common.compilation
Enum Class CompilationType
- All Implemented Interfaces:
Serializable,Comparable<CompilationType>,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCompile an exact decision diagram.Compile a relaxed decision diagram.Compile a restricted decision diagram. -
Method Summary
Modifier and TypeMethodDescriptionstatic CompilationTypeReturns the enum constant of this class with the specified name.static CompilationType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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
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 nameNullPointerException- if the argument is null
-