Package com.hexaly.optimizer
Enum HxSolutionStatus
- java.lang.Object
-
- java.lang.Enum<HxSolutionStatus>
-
- com.hexaly.optimizer.HxSolutionStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HxSolutionStatus>
public enum HxSolutionStatus extends java.lang.Enum<HxSolutionStatus>
Solution status: Optimal, Feasible, Infeasible or Inconsistent.- See Also:
HxSolution
-
-
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 HxSolutionStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HxSolutionStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Inconsistent
public static final HxSolutionStatus Inconsistent
Solution and model are inconsistent. The optimizer 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 HxSolutionStatus Infeasible
Solution is infeasible (some constraints are violated).
-
Feasible
public static final HxSolutionStatus Feasible
Solution is feasible but optimality was not proven.
-
Optimal
public static final HxSolutionStatus Optimal
Solution is optimal (all objective bounds are reached).
-
-
Method Detail
-
values
public static HxSolutionStatus[] 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 (HxSolutionStatus c : HxSolutionStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HxSolutionStatus 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
-
-