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. This respects the setting of XPRS_CSTYLE.
|
|
ColIndex
|
Integer index of the column. This respects the setting of XPRS_CSTYLE.
|
|
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
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.