Package org.ssclab.pl.milp
Enum SolutionType
- java.lang.Object
-
- java.lang.Enum<SolutionType>
-
- org.ssclab.pl.milp.SolutionType
-
- All Implemented Interfaces:
Serializable
,Comparable<SolutionType>
public enum SolutionType extends 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.
-
Field Summary
Fields Modifier and Type Field Description static SolutionType
INFEASIBLE
static SolutionType
MAX_ITERATIONS
static SolutionType
OPTIMAL
static SolutionType
UNBOUNDED
static SolutionType
UNLIMITED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getValue()
Retrieves the value associated with the enumeration.String
toString()
Returns a string representation of the enumeration value.static SolutionType
valueOf(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.
-
-
-
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.
-
-
Field Detail
-
INFEASIBLE
public static final SolutionType INFEASIBLE
-
UNLIMITED
public static final SolutionType UNLIMITED
-
UNBOUNDED
public static final SolutionType UNBOUNDED
-
OPTIMAL
public static final SolutionType OPTIMAL
-
MAX_ITERATIONS
public static final SolutionType MAX_ITERATIONS
-
-
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(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 nameNullPointerException
- if the argument is null
-
getValue
public String getValue()
Retrieves the value associated with the enumeration.- Returns:
- The value associated with the enumeration.
-
toString
public String toString()
Returns a string representation of the enumeration value.- Overrides:
toString
in classEnum<SolutionType>
- Returns:
- A string representation of the enumeration value.
-
-