Initializing help system before first use

XPRBgetvartype

Purpose
Get the type of a variable.
Synopsis
int XPRBgetvartype(XPRBvar var);
Argument
var 
BCL reference to a variable.
Return value
XPRB_PL 
continuous;
XPRB_BV 
binary;
XPRB_UI 
general integer;
XPRB_PI 
partial integer;
XPRB_SC 
semi-continuous;
XPRB_SI 
semi-continuous integer;
-1 
an error has occurred.
Example
XPRBprob prob;
XPRBvar x1;
char vtype;
   ...
x1 = XPRBnewvar(prob, XPRB_UI, "abc3", 0, 100);
vtype = XPRBgetvartype(x1);
This returns the type of variable x1.
Further information
If the function exits successfully, the variable type is returned.
Related topics

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