XSLPgetstrattrib
XSLPgetstrattrib |
Purpose
Retrieve the value of a string problem attribute
Synopsis
int XPRS_CC XSLPgetstrattrib(XSLPprob Prob, int Param, char *cValue);
Arguments
Prob
|
The current SLP problem.
|
Param
|
attribute (SLP or optimizer) whose value is to be returned.
|
cValue
|
Character buffer to receive the value.
|
Example
The following example retrieves the value of the Xpress NonLinear attribute
XSLP_VERSIONDATE and of the optimizer attribute
XPRS_MATRIXNAME:
char VersionDate[200], MatrixName[200]; XSLPgetstrattrib(Prob, XSLP_VERSIONDATE, VersionDate); XSLPgetstrattrib(Prob, XPRS_MATRIXNAME, MatrixName);
Further information
Both SLP and optimizer attributes can be retrieved using this function. If an optimizer attribute is requested, the return value will be the same as that from
XPRSgetstrattrib.
Related topics