Initializing help system before first use

XSLPgetcoefformula, XPRSslpgetcoefformula

Purpose
Retrieve a single matrix coefficient as a formula split into tokens. For a simpler version of this function see XSLPgetformula.
Topic areas
Synopsis
int XPRS_CC XSLPgetcoefformula(XSLPprob prob, int row, int col, double *p_factor, int parsed, int maxtypes, int *p_ntypes, int[] type, double[] value);
Arguments
prob 
The current SLP problem.
row 
Integer holding the row index for the coefficient.
col 
Integer holding the column index for the coefficient.
p_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).
maxtypes 
Maximum number of tokens to return, i.e. length of the type and value arrays.
p_ntypes 
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.
Example
The following example displays the formula for the coefficient of column 3 in row 2 in unparsed form:
int n, type[10];
double value[10];
double factor;
int ntypes;

XSLPgetcoefformula(prob, 2, 3, &factor, 0, 10, &ntypes, type, value);

for (n=0;type[n] != XSLP_EOF;n++)
  printf("\nType=%-3d  value=%lg",type[n],value[n]);
Further information
1. The type and value arrays are terminated by an XSLP_EOF token.
2. If type and value are both null, the number of tokens available will be returned in p_ntypes.
3. If type or value are non-null and the number of tokens available exceeds maxtypes, an error code will be returned: this behaviour may change in a future release. To determine the number of available tokens, pass null for these arrays.
4. If the requested coefficient is constant, then p_factor will be set to 1.0 and the value will be returned with token type XSLP_CON.
Related topics

© 2001-2025 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.