|
Get quadratic objective coefficients.
Parameters |
Description |
_LONG_T is_update |
An integer indicator for full (value 0) or update (value 1) retrieval. |
_LONG_T max_no |
The maximum number of non-zero matrix elements to retrieve. If this value is smaller than the total number of non-zero elements, the method must be called repeatedly. |
_LONG_T col_no1[] |
Array with the first column numbers of the quadratic matrix elements. Length must be at least max_no. If this argument is set to NULL then only the nonzero diagonal elements are retrieved via the corresponding column numbers. |
_LONG_T col_no2[] |
Array with the second column numbers of the quadratic matrix elements. Length must be at least max_no. If this argument is set to NULL then only the non-zero diagonal elements are retrieved via the corresponding row numbers. |
double val[] |
Array with the values of the quadratic matrix coefficients. Length must be at least max_no. |
The GetQmatrixData method returns the actual number of matrix elements retrieved.
The GetQmatrixData method only applies to Quadratic Programming models and is used to retrieve the non-zero quadratic matrix elements from AIMMS. The generated quadratic matrix is based on the following objective function:
cTx + 0.5 xTQx
where c is the vector of objective coefficients and x the column vector. In case of an update retrieval, only updates for the right upper triangle are passed to the solver. The user has to generate the updates for the left lower triangle himself (if needed).