Initializing help system before first use

# problem.chgrowwt

Purpose
This subroutine is deprecated and will be removed in a future release. Use problem.slpChgRowWt instead.
Set or change the initial penalty error weight for a row
Synopsis
`problem.chgrowwt(row, weight)`
Arguments

row | The row (i.e., xpress.constraint object, index, or name) whose weight is to be set or changed.
weight | 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.slpGetRowInfo.

Related topics
problem.slpGetRowWT, problem.slpGetRowInfo, problem.slpChgRowWt
Parent Topic Deprecated functionality

© 2001-2026 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.