Initializing help system before first use

XSLPitemname

XSLPitemname


Purpose
Retrieves the name of an Xpress NonLinear entity or the value of a function token as a character string.
Synopsis
int XPRS_CC XSLPitemname(XSLPprob Prob, int Type, double Value, char *Buffer);
Arguments
Prob 
The current SLP problem.
Type 
Integer holding the type of Xpress NonLinear entity. This can be any one of the token types described in the section on Formula Parsing.
Value 
Double precision value holding the index or value of the token. The use and meaning of the value is as described in the section on Formula Parsing.
Buffer 
Character buffer to hold the result, which will be terminated with a null character.
Example
The following example displays the formula for the coefficient in row 2, column 3 in unparsed form:
int n, Type[10];
double Value[10];
char Buffer[60];
int TokenCount;

XSLPgetcoefformula(Prob, 2, 3, &Factor, 0, 10, &TokenCount, Type, Value);

printf("\n");
for (n=0;Type[n] != XSLP_EOF;n++) {
  XSLPitemname(Prob, Type[n], Value[n], Buffer);
  printf(" %s", Buffer);
}
Further information

If a name has not been provided for an Xpress NonLinear entity, then an internally-generated name will be used.

Numerical values will be formatted as fixed-point or floating-point depending on their size.


Related topics