Package localsolver
Enum LSSolutionStatus
- java.lang.Object
-
- java.lang.Enum<LSSolutionStatus>
-
- localsolver.LSSolutionStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LSSolutionStatus>
public enum LSSolutionStatus extends java.lang.Enum<LSSolutionStatus>
Solution status: Optimal, Feasible, Infeasible or Inconsistent.- See Also:
LSSolution
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Feasible
Solution is feasible but optimality was not proven.Inconsistent
Solution and model are inconsistent.Infeasible
Solution is infeasible (some constraints are violated).Optimal
Solution is optimal (all objective bounds are reached).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LSSolutionStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LSSolutionStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Inconsistent
public static final LSSolutionStatus Inconsistent
Solution and model are inconsistent. The solver was able to prove that the model admits no feasible solution. Note that even a model without any constraint can be inconsistent, because some computations can yield undefined results. For instance, computing sqrt(x) with negative x yields an undefined value, which causes the solution to be invalid if it is used in an objective or a constraint (directly or indirectly).
-
Infeasible
public static final LSSolutionStatus Infeasible
Solution is infeasible (some constraints are violated).
-
Feasible
public static final LSSolutionStatus Feasible
Solution is feasible but optimality was not proven.
-
Optimal
public static final LSSolutionStatus Optimal
Solution is optimal (all objective bounds are reached).
-
-
Method Detail
-
values
public static LSSolutionStatus[] 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 (LSSolutionStatus c : LSSolutionStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LSSolutionStatus 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 namejava.lang.NullPointerException
- if the argument is null
-
-