ContentsIndexHome
PreviousUpNext
IAimmsMathProgramInfo::GetQuadraticRow Method

Get a quadratic row.

virtual _LONG_T GetQuadraticRow(
    _LONG_T * row_no, 
    double * lb, 
    double * ub, 
    _LONG_T len, 
    _LONG_T * no_lin, 
    _LONG_T lin_no[], 
    double lin_val[], 
    _LONG_T * no_quad, 
    _LONG_T quad_no1[], 
    _LONG_T quad_no2[], 
    double quad_val[]
) = 0;
Parameters 
Description 
_LONG_T * row_no 
A pointer to the location where the row number is returned. This argument may be NULL. 
double * lb 
A pointer to the location where the lower bound is returned. This argument may be NULL. 
double * ub 
A pointer to the location where the upper bound is returned. This argument may be NULL. 
_LONG_T len 
Length of the lin_no, lin_val, quad_no1, quad_no2 and quad_val arrays. 
_LONG_T * no_lin 
A pointer to the location where the number of linear elements in the row is returned. This argument may be NULL. 
_LONG_T lin_no[] 
Array with column numbers of the linear row elements. Length must be at least len. This argument may be NULL. 
double lin_val[] 
Array with the values of the linear row elements. Length must be at least len. This argument may be NULL. 
_LONG_T * no_quad 
A pointer to the location where the number of quadratic elements in the row is returned. This argument may be NULL. 
_LONG_T quad_no1[] 
Array with first column numbers of quadratic row elements. Length must be at least len. This argument may be NULL. 
_LONG_T quad_no2[] 
Array with second column numbers of quadratic row elements. Length must be at least len. This argument may be NULL. 
double quad_val[] 
Array with the values of the quadratic row elements. Length must be at least len. This argument may be NULL. 

The GetQuadraticRow method returns 1 if a next quadratic row was found, and 0 otherwise.

The GetQuadraticRow method returns the data for one quadratic row.

  1. The first time the GetQuadraticRow method is called it will return the data of the first quadratic row. The next call will return the data for the second quadratic row, and so on. This method should be called until the data of all quadratic rows is obtained (i.e., until this method returns 0).
  2. A safe size for the arrays (i.e., for len) is the sum of the values IntegerMathProgramInfo::IPARAM_MAX_ELEM_R and IntegerMathProgramInfo::IPARAM_MAX_ELEM_Q_R, as passed to the DoSolve method.

Copyright © 1993–2016 by AIMMS B.V. All rights reserved.