XPRBgetvarname
XPRBgetvarname |
Purpose
Synopsis
const char *XPRBgetvarname(XPRBvar var);
Argument
var
|
BCL reference to a variable.
|
Return value
Name of the variable if function executed successfully,
NULL otherwise.
Example
This example prints the retrieved variable name.
XPRBprob prob; XPRBvar x1; ... x1 = XPRBnewvar(prob, XPRB_UI, "abc3", 0, 100); printf("%s\n", XPRBgetvarname(x1));
Further information
This function returns the name of a variable. If the user has not defined a name the default name generated by BCL is returned.
Related topics