problem.chgqrowcoeff
problem.chgqrowcoeff |
Purpose
Changes a single quadratic coefficient in a row.
Synopsis
problem.chgqrowcoeff (irow, icol, jcol, dval)
Arguments
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
problem.addqmatrix.
2. The row must not be an equality or a ranged row.
Related topics
problem.loadproblem,
problem.getqrowcoeff,
problem.addqmatrix,
problem.chgqrowcoeff,
problem.getqrowqmatrix,
problem.getqrowqmatrixtriplets,
problem.getqrows,
problem.chgqobj,
problem.chgmqobj,
problem.getqobj.