Initializing help system before first use

XSLPchgrowwt

XSLPchgrowwt


Purpose
Set or change the initial penalty error weight for a row
Synopsis
int XSLP_CC XSLPchgrowwt(XSLPprob Prob, int RowIndex, const double *Value)
Arguments
Prob 
The current SLP problem.
RowIndex 
The index of the row whose weight is to be set or changed.
Value 
Address of a double precision variable holding the new value of the weight. May be NULL 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.
double Value;
Value = -3.6;
XSLPchgrowwt(Prob,2,&Value);
Value = 2.0;
XSLPchgrowwt(Prob,4,&Value);

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.


Related topics