Initializing help system before first use

problem.adddfs

Purpose
Add a set of distribution factors
Synopsis
problem.adddfs(colindex, rowindex, value)
Arguments
colindex 
Array of columns (i.e. xpress.var objects, indices, or names) whose distribution factor is to be changed.
rowindex 
Array of rows (i.e. xpress.constraint objects, indices, or names) 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.

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

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.