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, `Maths/geq.png'
CT_LEQ 
Less than or equal to, `Maths/leq.png'
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
settype.


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.