Initializing help system before first use

# gettype

Purpose
Get the type of a constraint.
Synopsis
`function gettype(c:linctr):integer`
Argument

c | 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
settype.
Parent Topic Predefined functions and procedures

© 2001-2026 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.