Initializing help system before first use

# XSLPevaluatecoef, XPRSslpevaluatecoef

Purpose
Evaluate a coefficient using the current values of the variables
Topic area
Solution
Synopsis
`int XPRS_CC XSLPevaluatecoef(XSLPprob prob, int row, int col, double *p_value);`
Arguments

prob | The current SLP problem.
row | Integer index of the row.
col | Integer index of the column.
p_value | Address of a double precision value to receive the result of the calculation.

Example
The following example sets the value of column 5 to 1.42 and then calculates the coefficient in row 2, column 3. If the coefficient depends on column 5, then a value of 1.42 will be used in the calculation.

    double value, dValue;

    value = 1.42;
    XSLPchgvar(prob, 5, NULL, NULL, NULL, NULL,
               NULL, NULL, &value, NULL, NULL, NULL,
               NULL);
    XSLPevaluatecoef(prob, 2, 3, &dValue);

Further information
The values of the variables are obtained from the solution, or from the p_value setting of an SLP variable (see XSLPchgvar and XSLPgetvar).
Related topics
XSLPchgvar, XSLPevaluateformula, XSLPgetvar.
Parent Topic Library functions and the programming interface

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