Initializing help system before first use

gettype

gettype


Purpose
Get the type of a constraint.
Synopsis
function gettype(c:linctr):integer
Argument
A linear constraint
Return value
Constraint type. Values applicable to any type of linear constraint are:
CT_EQ 
Equality, `='
CT_GEQ 
Greater than or equal to, `≥'
CT_LEQ 
Less than or equal to, `≤'
CT_RNG 
Range
CT_UNB 
Non-binding constraint
CT_SOS1 
Special ordered set of type 1
CT_SOS2 
Special ordered set of type 2
Values applicable for unary constraints are:
CT_CONT 
Continuous
CT_INT 
Integer
CT_BIN 
Binary
CT_PINT 
Partial integer
CT_SEC 
Semi-continuous
CT_SINT 
Semi-continuous integer
CT_FREE 
Free
Related topics