Initializing help system before first use

problem.chgdf

problem.chgdf


Purpose
Set or change a distribution factor
Synopsis
problem.chgdf (colindex, rowindex, value)
Arguments
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 None 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.
value = p.getdf (282,134)
value *= 2
p.chgdf (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