ContentsIndexHome
PreviousUpNext
IAimmsMathProgramInfo::GetIndicatorRow Method

Get indicator rows.

virtual _LONG_T GetIndicatorRow(
    _LONG_T * row_no, 
    double * lb, 
    double * ub, 
    _LONG_T len, 
    _LONG_T * no_lin, 
    _LONG_T lin_no[], 
    double lin_val[], 
    _LONG_T * ind_col_no, 
    _LONG_T * ind_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 and lin_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 * ind_col_no 
A pointer to the location where the number of the associated binary column is returned. This argument may be NULL. 
_LONG_T * ind_val 
A pointer to the location where the activation value of the indicator column is returned. This argument may be NULL. 

The GetIndicatorRow method returns 1 if a next indicator row was found, and 0 otherwise.

The GetIndicatorRow method returns the data for one row corresponding to an indicator constraint.

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

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