problem.adddfs
problem.adddfs |
Purpose
Add a set of distribution factors
Synopsis
problem.adddfs (colindex, rowindex, value)
Arguments
colindex
|
Array of indices of columns whose distribution factor is to be changed.
|
rowindex
|
Array of indices of the rows where each distribution factor applies.
|
value
|
Array holding the new values of the distribution factors.
|
Example
The following example adds 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.
column 282 in row 134 = 0.1
column 282 in row 136 = 0.15
column 285 in row 133 = 1.0.
colindex = [282, 282, 285] rowindex = [134, 136, 133] value = [0.1, 0.15, 1] p.adddfs (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 problem.adddfs functions load additional items into the SLP problem. The corresponding problem.loaddfs functions delete any existing items first.
Related topics