Loading...
Searching...
No Matches

Variable SubType. More...

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

 UNKNOWN
 Unknown variable type

 
 BINARY
 Binary variable

 
 INTEGER
 Integer Variable

 
 POSITIVE
 Positive variable

 
 NEGATIVE
 Negative variable

 
 FREE
 Free variable

 
 SOS1
 Special Ordered Set 1

 
 SOS2
 Special Ordered Set 2

 
 SEMICONT
 Semi-continuous variable.
 
 SEMIINT
 Semi-integer variable

 
 UNDEFINED_TYPE
 Undefined variable type

 

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

◆ UNDEFINED_TYPE

com.gams.api.GAMSGlobals.VarType.UNDEFINED_TYPE

Undefined variable type

◆ UNKNOWN

com.gams.api.GAMSGlobals.VarType.UNKNOWN

Unknown variable type