SolverVariable.Type
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 functions |
|
|---|---|
java-static SolverVariable.Type! |
Returns the enum constant of this type with the specified name. |
java-static Array<SolverVariable.Type!>! |
values()Returns an array containing the constants of this enum type, in the order they're declared. |
Enum Values
CONSTANT
val SolverVariable.Type.CONSTANT: SolverVariable.Type
The variable is actually not a variable :) , but a constant number
ERROR
val SolverVariable.Type.ERROR: SolverVariable.Type
The variable is restricted to positive values and represents an error
SLACK
val SolverVariable.Type.SLACK: SolverVariable.Type
The variable is restricted to positive values and represents a slack
UNRESTRICTED
val SolverVariable.Type.UNRESTRICTED: SolverVariable.Type
The variable can take negative or positive values
Public functions
valueOf
java-static fun valueOf(name: String!): SolverVariable.Type!
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
java-static fun values(): Array<SolverVariable.Type!>!
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 | |
|---|---|
Array<SolverVariable.Type!>! |
an array containing the constants of this enum type, in the order they're declared |