Initializing help system before first use

# XPRSchgrhs

Purpose
Used to change right–hand side values of the problem.
Topic area
Problem Modification
Synopsis
`int XPRS_CC XPRSchgrhs(XPRSprob prob, int nrows, const int rowind[], const double rhs[]);`
Arguments

prob | The current problem.
nrows | Number of right hand side values to change.
rowind | Integer array of length nrows containing the indices of the rows on which the right hand side values will change.
rhs | Double array of length nrows giving the right hand side values.

Example
Here we change the three right hand sides in rows 2, 6, and 8 to new values:

    rowind[0] = 2; rowind[1] = 8; rowind[2] = 6;
    rhs[0] = 5.0; rhs[1] = 3.8; rhs[2] = 5.7;
    XPRSchgrhs(prob,3,rowind,rhs);

See also examples glrhspar.c, repair.c.
Related topics
XPRSchgcoef, XPRSchgmcoef, XPRSchgrhsrange, XPRSgetrhs, XPRSgetrhsrange.
Parent Topic Console and Library Functions

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