VariableType Class Reference
GAMS Variable Type. More...
GAMS Variable Type.
This class holds the possible GAMS variable types similar to an enumeration class. Note that it is not an enumeration class due to compatibility (e.g. for Octave).
- See also
- Variable, symbol.Variable
Public Member Functions | |
function | VariableType (in value) |
Constructs a Variable Type. | |
Static Public Member Functions | |
static function | binary () |
Constructs a Variable Type as BINARY. | |
static function | integer () |
Constructs a Variable Type as INTEGER. | |
static function | positive () |
Constructs a Variable Type as POSITIVE. | |
static function | negative () |
Constructs a Variable Type as NEGATIVE. | |
static function | free () |
Constructs a Variable Type as FREE. | |
static function | sos1 () |
Constructs a Variable Type as SOS1. | |
static function | sos2 () |
Constructs a Variable Type as SOS2. | |
static function | semiCont () |
Constructs a Variable Type as SEMICONT. | |
static function | semiInt () |
Constructs a Variable Type as SEMIINT. | |
static function | values (in input) |
Converts input to Variable Type enumeration values. | |
static function | selects (in input) |
Converts input to Variable Type enumeration labels (selections) | |
Constructor & Destructor Documentation
◆ VariableType()
function VariableType | ( | in | value | ) |
Constructs a Variable Type.
Optional Arguments:
- value (
numeric
orstring
) Enumeration value or label. Default: 5 (FREE).
Member Function Documentation
◆ selects()
|
static |
Converts input to Variable Type enumeration labels (selections)
Required Arguments:
- input (
numeric
,cell
orstring
) Enumeration values or labels.
◆ values()
|
static |
Converts input to Variable Type enumeration values.
Required Arguments:
- input (
numeric
,cell
orstring
) Enumeration values or labels.