XSLPparsecformula
XSLPparsecformula |
int XPRS_CC XSLPparsecformula(XSLPprob Prob, char *Formula, int *nToken, int *Type, double *Value);
Prob
|
The current SLP problem.
|
Formula
|
Character string containing the formula, written in the same free-format style as used in formulae in Extended MPS format, with spaces separating tokens.
|
nToken
|
Address of an integer to receive the number of tokens in the parsed formula (not counting the terminating
XSLP_EOF token). May be
NULL if not required.
|
Type
|
Array of token types providing the parsed formula.
|
Value
|
Array of values corresponding to the types in
Type.
|
int n, Type[20]; double Value[20]; XSLPparsecformula(Prob, "sin ( x + y )", NULL, Type, Value); printf("\n"); for (n=0;Type[n] != XSLP_EOF;n++) { XSLPitemname(Prob, Type[n], Value[n], Buffer); printf(" %s", Buffer); }
Tokens are identified by name, so any columns or user functions which appear in the formula must already have been defined. Unidentified tokens will appear as type XSLP_UNKNOWN.
© 2001-2019 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.