Initializing help system before first use

getctrtyp

getctrtyp


Purpose
Get the type of a linear constraint
Synopsis
int getctrtyp(XPRMlinctr ctr);
Argument
ctr 
Reference to a linear constraint
Return value
Bit encoded constraint type.
Further information
This function returns the type and status of the given constraint. The type may be extracted using the macro XPRM_GETCTYPE(c). The possible types are:
XPRM_CTYPE_UNCONS 
unbounded constraint (a linear expression)
XPRM_CTYPE_GEQ 
for ≥ constraint
XPRM_CTYPE_LEQ 
for ≤ constraint
XPRM_CTYPE_EQ 
for = constraint
XPRM_CTYPE_SOS1 
for is_sos1
XPRM_CTYPE_SOS2 
for is_sos2
XPRM_CTYPE_CONT 
for is_continuous
XPRM_CTYPE_INT 
for is_integer
XPRM_CTYPE_BIN 
for is_binary
XPRM_CTYPE_PINT 
for is_partint
XPRM_CTYPE_SEC 
for is_semcont
XPRM_CTYPE_SINT 
for is_semint
XPRM_CTYPE_FREE 
for is_free
The status of the constraint is checked using the macro XPRM_CHKCSTAT(c,s) where s is one of:
XPRM_CSTAT_EMPTY 
the constraint is empty (it may contain a constant term)
XPRM_CSTAT_HIDN 
the constraint is hidden
XPRM_CSTAT_TEMP 
the constraint is temporary (it will be dropped after the termination of the calling function)