XPRBgetctrname
XPRBgetctrname |
Purpose
Synopsis
const char *XPRBgetctrname(XPRBctr ctr);
Argument
ctr
|
Reference to a previously created constraint.
|
Return value
Name of the constraint if function executed successfully,
NULL otherwise
Example
XPRBprob expl2; XPRBctr ctr1; ... expl2 = XPRBnewprob("example2"); ctr1 = XPRBnewctr(expl2, "r1", XPRB_E); printf("%s\n", XPRBgetctrname(ctr1));
This prints "
r1" as its output.
Further information
This function returns the name of a constraint. If the user has not defined a name the default name generated by BCL is returned.
Related topics