XSLPchgdf
XSLPchgdf |
Purpose
Set or change a distribution factor
Synopsis
int XSLP_CC XSLPchgdf(XSLPprob Prob, int ColIndex, int RowIndex, const double *Value)
Arguments
Prob
|
The current SLP problem.
|
ColIndex
|
The index of the column whose distribution factor is to be set or changed.
|
RowIndex
|
The index of the row where the distribution applies.
|
Value
|
Address of a double precision variable holding the new value of the distribution factor. May be
NULL if not required.
|
Example
The following example retrieves the value of the distribution factor for column 282 in row 134 and changes it to be twice as large.
double Value; XSLPgetdf(prob,282,134,&Value); Value = Value * 2; XSLPchgdf(prob,282,134,&Value);
Further information
The distribution factor of a column in a row is the matrix coefficient of the corresponding delta vector in the row. Distribution factors are used in conventional recursion models, and are essentially normalized first-order derivatives. Xpress NonLinear can accept distribution factors instead of initial values, provided that the values of the variables involved can all be calculated after optimization using determining rows, or by a callback.
Related topics