XPRBgetidxelname
XPRBgetidxelname |
Purpose
Synopsis
const char *XPRBgetidxelname(XPRBidxset idx, int i);
Arguments
idx
|
A BCL index set.
|
i
|
Index number.
|
Return value
Name of the i
th element in the set if function executed successfully,
NULL otherwise.
Example
XPRBprob prob; XPRBidxset iset; const char *name; ... iset = XPRBnewidxset(prob, "Set", 100); name = XPRBgetidxelname(iset, 0);
This defines an index set,
iset, with space for 100 entries and retrieves the name of the index set element with sequence number
0.
Further information
An index element can be accessed either by its name or by its sequence number. This function returns the name of an index set element given its sequence number.
Related topics