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!
valueOf(name: String!)

Returns the enum constant of this type with the specified name.

java-static Array<SolverVariable.Type!>!

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

CONSTANT

val SolverVariable.Type.CONSTANTSolverVariable.Type

The variable is actually not a variable :) , but a constant number

ERROR

val SolverVariable.Type.ERRORSolverVariable.Type

The variable is restricted to positive values and represents an error

SLACK

val SolverVariable.Type.SLACKSolverVariable.Type

The variable is restricted to positive values and represents a slack

UNKNOWN

val SolverVariable.Type.UNKNOWNSolverVariable.Type

Unknown (invalid) type.

UNRESTRICTED

val SolverVariable.Type.UNRESTRICTEDSolverVariable.Type

The variable can take negative or positive values

Public functions

valueOf

Added in 1.1.0-alpha13
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

Added in 1.1.0-alpha13
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