problem.chgrowwt
problem.chgrowwt |
Purpose
Set or change the initial penalty error weight for a row
Synopsis
problem.chgrowwt(rowindex, value)
Arguments
RowIndex
|
The row (i.e.
xpress.constraint object, index, or name) whose weight is to be set or changed.
|
Value
|
The new value of the weight. May be
None if not required.
|
Example
The following example sets the initial weight of row number 2 to a fixed value of 3.6 and the initial weight of row 4 to a value twice the calculated default value.
p.chgrowwt(2, -3.6) p.chgrowwt(4,2)
Further information
A positive value is interpreted as a multiplier of the default row weight calculated by Xpress SLP.
A negative value is interpreted as a fixed value: the absolute value is used directly as the row weight.
The initial row weight is used only when the augmented structure is created. After that, the current weighting can be accessed and changed using problem.getrowinfo.
Related topics