Initializing help system before first use

problem.loaddfs

problem.loaddfs


Purpose
Load a set of distribution factors
Synopsis
problem.loaddfs (colindex, rowindex, value)
Arguments
colindex 
Array of columns whose distribution factor is to be changed.
rowindex 
Array of rows where each distribution factor applies.
value 
Array of the new values of the distribution factors.
Example
The following example loads distribution factors as follows:
column 282 in row 134 = 0.1
column 282 in row 136 = 0.15
column 285 in row 133 = 1.0.
Any other first-order derivative placeholders are set to xslp_DELTA_Z.
colindex = [282, 282, 285]
rowindex = [134, 136, 133]
value    = [0.1, 0.15,  1]
p.loaddfs (colindex, rowindex, 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.

The adddfs functions load additional items into the SLP problem. The corresponding loaddfs functions delete any existing items first.


Related topics