XPRSchgqrowcoeff
XPRSchgqrowcoeff |
Purpose
Changes a single quadratic coefficient in a row.
Synopsis
int XPRS_CC XPRSchgqrowcoeff(XPRSprob prob, int irow, int icol, int jcol, double dval);
Arguments
prob
|
The current problem.
|
irow
|
Index of the row where the quadratic matrix is to be changed.
|
icol
|
First index of the coefficient to be changed.
|
jcol
|
Second index of the coefficient to be changed.
|
dval
|
The new coefficient.
|
Further information
1. This function may be used to add new nonzero coefficients, or even to define the whole quadratic expression with it. Doing that, however, is significantly less efficient than adding the whole expression with
XPRSaddqmatrix.
2. The row must not be an equality or a ranged row.
Related topics
XPRSloadqcqp,
XPRSgetqrowcoeff,
XPRSaddqmatrix,
XPRSchgqrowcoeff,
XPRSgetqrowqmatrix,
XPRSgetqrowqmatrixtriplets,
XPRSgetqrows,
XPRSchgqobj,
XPRSchgmqobj,
XPRSgetqobj.