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)


© 2001-2019 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.