problem.getqrowqmatrix
problem.getqrowqmatrix |
Purpose
Returns the nonzeros in a quadratic constraint coefficients matrix for the columns in a given range. To achieve maximum efficiency,
getqrowqmatrix returns the lower triangular part of this matrix only.
Synopsis
problem.getqrowqmatrix (irow, mstart, mclind, dqe, size, first, last)
Arguments
irow
|
Index of the row for which the quadratic coefficients are to be returned.
|
mstart
|
Array which will be filled with indices indicating the starting offsets in the
mclind and
dobjval arrays for each requested column. It must be length of at least
last-first+2. Column
i starts at position
mstart[i] in the
mrwind and
dmatval arrays, and has
mstart[i+1]-mstart[i] elements in it. May be
None if size is 0.
|
mclind
|
Array of length
size which will be filled with the column indices of the nonzero elements in the lower triangular part of Q. May be
None if size is 0.
|
dqe
|
Array of length
size which will be filled with the nonzero element values. May be
None if size is 0.
|
size
|
Maximum number of elements to be returned in
mclind and
dqe.
|
first
|
First column in the range.
|
last
|
Last column in the range.
|
Related topics
problem.loadproblem,
problem.getqrowcoeff,
problem.addqmatrix,
problem.chgqrowcoeff,
problem.getqrowqmatrixtriplets,
problem.getqrows,
problem.chgqobj,
problem.chgmqobj,
problem.getqobj.