Variable SubType. More...

Public Member Functions

int value ()
 Get the int value of this enumerated VarType. More...
 

Static Public Member Functions

static VarType lookup (int value)
 Lookup all variable subtypes used by GAMS. More...
 

Public Attributes

 UNKNOWN
 Unknown variable type. More...
 
 BINARY
 Binary variable. More...
 
 INTEGER
 Integer Variable. More...
 
 POSITIVE
 Positive variable. More...
 
 NEGATIVE
 Negative variable. More...
 
 FREE
 Free variable. More...
 
 SOS1
 Special Ordered Set 1. More...
 
 SOS2
 Special Ordered Set 2. More...
 
 SEMICONT
 Semi-continuous variable. More...
 
 SEMIINT
 Semi-integer variable. More...
 

Detailed Description

Variable SubType.

See also
GAMSVariable

Member Function Documentation

◆ lookup()

static VarType com.gams.api.GAMSGlobals.VarType.lookup ( int  value)
static

Lookup all variable subtypes used by GAMS.

Parameters
valuean int value to lookup
Returns
the enumerated VarType that has the specified value, or UNDEFINED_TYPE if the specified value is not found.

◆ value()

int com.gams.api.GAMSGlobals.VarType.value ( )

Get the int value of this enumerated VarType.

Returns
the int value of the VarType

Member Data Documentation

◆ BINARY

com.gams.api.GAMSGlobals.VarType.BINARY

Binary variable.

◆ FREE

com.gams.api.GAMSGlobals.VarType.FREE

Free variable.

◆ INTEGER

com.gams.api.GAMSGlobals.VarType.INTEGER

Integer Variable.

◆ NEGATIVE

com.gams.api.GAMSGlobals.VarType.NEGATIVE

Negative variable.

◆ POSITIVE

com.gams.api.GAMSGlobals.VarType.POSITIVE

Positive variable.

◆ SEMICONT

com.gams.api.GAMSGlobals.VarType.SEMICONT

Semi-continuous variable.

◆ SEMIINT

com.gams.api.GAMSGlobals.VarType.SEMIINT

Semi-integer variable.

◆ SOS1

com.gams.api.GAMSGlobals.VarType.SOS1

Special Ordered Set 1.

◆ SOS2

com.gams.api.GAMSGlobals.VarType.SOS2

Special Ordered Set 2.

◆ UNKNOWN

com.gams.api.GAMSGlobals.VarType.UNKNOWN

Unknown variable type.