pub unsafe extern "C" fn Highs_getRowsByRange(
    highs: *const c_void,
    from_row: HighsInt,
    to_row: HighsInt,
    num_row: *mut HighsInt,
    lower: *mut f64,
    upper: *mut f64,
    num_nz: *mut HighsInt,
    matrix_start: *mut HighsInt,
    matrix_index: *mut HighsInt,
    matrix_value: *mut f64
) -> HighsInt
Expand description

Get data associated with multiple adjacent rows from the model.

To query the constraint coefficients, this function should be called twice.

First, call this function with matrix_start, matrix_index, and matrix_value as NULL. This call will populate num_nz with the number of nonzero elements in the corresponding section of the constraint matrix.

Second, allocate new matrix_index and matrix_value arrays of length num_nz and call this function again to populate the new arrays with their contents.

@param highs A pointer to the Highs instance. @param from_row The first row for which to query data for. @param to_row The last row (inclusive) for which to query data for. @param num_row An integer to be populated with the number of rows got from the smodel. @param lower An array of size [to_row - from_row + 1] for the row lower bounds. @param upper An array of size [to_row - from_row + 1] for the row upper bounds. @param num_nz An integer to be populated with the number of non-zero elements in the constraint matrix. @param matrix_start An array of size [to_row - from_row + 1] with the start indices of each row in matrix_index and matrix_value. @param matrix_index An array of size [num_nz] with the column indices of each element in the constraint matrix. @param matrix_value An array of size [num_nz] with the non-zero elements of the constraint matrix.

@returns A kHighsStatus constant indicating whether the call succeeded.