XSLPgetcoefformula
XSLPgetcoefformula |
int XPRS_CC XSLPgetcoefformula(XSLPprob Prob, int RowIndex, int ColIndex, double *Factor, int Parsed, int BufferSize, int *TokenCount, int *Type, double *Value);
Prob
|
The current SLP problem.
|
RowIndex
|
Integer holding the row index for the coefficient.
|
ColIndex
|
Integer holding the column index for the coefficient.
|
Factor
|
Address of a double precision variable to receive the value of the constant factor multiplying the formula in the coefficient.
|
Parsed
|
Integer indicating whether the formula of the item is to be returned in internal unparsed format (
Parsed=0) or parsed (reverse Polish) format (
Parsed=1).
|
BufferSize
|
Maximum number of tokens to return, i.e. length of the Type and Value arrays.
|
TokenCount
|
Number of tokens returned in Type and Value.
|
Type
|
Integer array to hold the token types for the formula.
|
Value
|
Double array of values corresponding to
Type.
|
int n, Type[10]; double Value[10]; int TokenCount; XSLPgetcoefformula(Prob, 2, 3, &Factor, 0, 10, &TokenCount, Type, Value); for (n=0;Type[n] != XSLP_EOF;n++) printf("\nType=%-3d Value=%lg",Type[n],Value[n]);
The Type and Value arrays are terminated by an XSLP_EOF token.
If the requested coefficient is constant, then Factor will be set to 1.0 and the value will be returned with token type XSLP_CON.
© 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.