Function highs_sys::Highs_addRows

source ·
pub unsafe extern "C" fn Highs_addRows(
    highs: *mut c_void,
    num_new_row: HighsInt,
    lower: *const f64,
    upper: *const f64,
    num_new_nz: HighsInt,
    starts: *const HighsInt,
    index: *const HighsInt,
    value: *const f64
) -> HighsInt
Expand description

Add multiple rows (linear constraints) to the model.

@param highs A pointer to the Highs instance. @param num_new_row The number of new rows to add @param lower An array of size [num_new_row] with the lower bounds of the rows. @param upper An array of size [num_new_row] with the upper bounds of the rows. @param num_new_nz The number of non-zeros in the rows. @param starts The constraint coefficients are given as a matrix in compressed sparse row form by the arrays starts, index, and value. starts is an array of size [num_new_rows] with the start index of each row in indices and values. @param index An array of size [num_new_nz] with column indices. @param value An array of size [num_new_nz] with column values.

@returns A kHighsStatus constant indicating whether the call succeeded.