Enum Class SearchStatus

java.lang.Object
java.lang.Enum<SearchStatus>
org.ddolib.common.solver.stat.SearchStatus
All Implemented Interfaces:
Serializable, Comparable<SearchStatus>, Constable

public enum SearchStatus extends Enum<SearchStatus>
Status values describing the state of a search process.
  • Enum Constant Details

    • OPTIMAL

      public static final SearchStatus OPTIMAL
      The search found an optimal solution and proved its optimality.
    • UNSAT

      public static final SearchStatus UNSAT
      The search proved that no solution exists.
    • SAT

      public static final SearchStatus SAT
      The search found a feasible solution but did not prove its optimality.
    • UNKNOWN

      public static final SearchStatus UNKNOWN
      The search status is unknown (e.g., interrupted before finding any solution).
    • MEMOUT

      public static final SearchStatus MEMOUT
      The search was stopped because it ran out of memory: either the JVM threw an OutOfMemoryError or the frontier reached the size given to StopCriterion.maxFrontierSize(int). The solution, if any, is the best one found before; it is not proved optimal.
  • Method Details

    • values

      public static SearchStatus[] 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 SearchStatus 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