Enum SolutionType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SolutionType>

    public enum SolutionType
    extends java.lang.Enum<SolutionType>
    This enumeration defines the different types of results that the two-phase method returns.
    Version:
    1.0
    Author:
    Stefano Scarioli
    See Also:
    SSC Software www.sscLab.org
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      FEASIBLE
      The problem has feasible solutions.
      ILLIMITATUM
      The problem has unlimited optimal solution.
      MAX_ITERATIUM
      The algorithm stopped because the maximum number of iterations was reached.
      MAX_NUM_SIMPLEX
      The branch and bound algorithm stopped because the maximum number of simplexes was reached.
      OPTIMUM
      The problem has an optimal solution.
      VUOTUM
      The problem has no feasible solutions.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getValue()
      Retrieves the value associated with the enumeration.
      java.lang.String toString()
      Returns a string representation of the enumeration value.
      static SolutionType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static SolutionType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • OPTIMUM

        public static final SolutionType OPTIMUM
        The problem has an optimal solution.
      • ILLIMITATUM

        public static final SolutionType ILLIMITATUM
        The problem has unlimited optimal solution.
      • MAX_ITERATIUM

        public static final SolutionType MAX_ITERATIUM
        The algorithm stopped because the maximum number of iterations was reached.
      • MAX_NUM_SIMPLEX

        public static final SolutionType MAX_NUM_SIMPLEX
        The branch and bound algorithm stopped because the maximum number of simplexes was reached.
      • VUOTUM

        public static final SolutionType VUOTUM
        The problem has no feasible solutions. The set of feasible solutions is empty.
      • FEASIBLE

        public static final SolutionType FEASIBLE
        The problem has feasible solutions.
    • Method Detail

      • values

        public static SolutionType[] 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 (SolutionType c : SolutionType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SolutionType valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getValue

        public java.lang.String getValue()
        Retrieves the value associated with the enumeration.
        Returns:
        The value associated with the enumeration.
      • toString

        public java.lang.String toString()
        Returns a string representation of the enumeration value.
        Overrides:
        toString in class java.lang.Enum<SolutionType>
        Returns:
        A string representation of the enumeration value.