Initializing help system before first use

XSLPevaluatecoef

XSLPevaluatecoef


Purpose
Evaluate a coefficient using the current values of the variables
Synopsis
int XPRS_CC XSLPevaluatecoef(XSLPprob Prob, int RowIndex, int ColIndex, double *dValue);
Arguments
Prob 
The current SLP problem.
RowIndex 
Integer index of the row.
ColIndex 
Integer index of the column.
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 Value setting of an SLP variable (see XSLPchgvar and XSLPgetvar).
Related topics

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