XSLPitemname
PurposeRetrieves the name of an Xpress-SLP entity or the value of a function token as a character string.Synopsisint XPRS_CC XSLPitemname(XSLPprob Prob, int Type, double Value, char *Buffer);Arguments
Prob The current SLP problem. Type Integer holding the type of Xpress-SLP 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.ExampleThe 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]; XSLPgetcoef(Prob, 2, 3, &Factor, 0, Type, Value); printf("\n"); for (n=0;Type[n] != XSLP_EOF;n++) { XSLPitemname(Prob, Type[n], Value[n], Buffer); printf(" %s", Buffer); }Further informationIf a name has not been provided for an Xpress-SLP 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
If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.