Initializing help system before first use

XSLPgetdf

XSLPgetdf


Purpose
Get a distribution factor
Synopsis
int XSLP_CC XSLPgetdf(XSLPprob Prob, int ColIndex, int RowIndex, double *Value)
Arguments
Prob 
The current SLP problem.
ColIndex 
The index of the column whose distribution factor is to be retrieved.
RowIndex 
The index of the row from which the distribution factor is to be taken.
Value 
Address of a double precision variable to receive the 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-SLP 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