SolverVariable.Type
public enum SolverVariable.Type
Type of variables
Summary
Enum Values |
|
|---|---|
CONSTANT |
The variable is actually not a variable :) , but a constant number |
ERROR |
The variable is restricted to positive values and represents an error |
SLACK |
The variable is restricted to positive values and represents a slack |
UNKNOWN |
Unknown (invalid) type. |
UNRESTRICTED |
The variable can take negative or positive values |
Public methods |
|
|---|---|
static SolverVariable.Type |
Returns the enum constant of this type with the specified name. |
static SolverVariable.Type[] |
values()Returns an array containing the constants of this enum type, in the order they're declared. |
Enum Values
CONSTANT
SolverVariable.Type SolverVariable.Type.CONSTANT
The variable is actually not a variable :) , but a constant number
ERROR
SolverVariable.Type SolverVariable.Type.ERROR
The variable is restricted to positive values and represents an error
SLACK
SolverVariable.Type SolverVariable.Type.SLACK
The variable is restricted to positive values and represents a slack
UNRESTRICTED
SolverVariable.Type SolverVariable.Type.UNRESTRICTED
The variable can take negative or positive values
Public methods
valueOf
public static SolverVariable.Type 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.)
| Returns | |
|---|---|
SolverVariable.Type |
the enum constant with the specified name |
| Throws | |
|---|---|
java.lang.IllegalArgumentException |
if this enum type has no constant with the specified name |
values
public static SolverVariable.Type[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
| Returns | |
|---|---|
SolverVariable.Type[] |
an array containing the constants of this enum type, in the order they're declared |