Function highs_sys::Highs_addRow
source · pub unsafe extern "C" fn Highs_addRow(
highs: *mut c_void,
lower: f64,
upper: f64,
num_new_nz: HighsInt,
index: *const HighsInt,
value: *const f64
) -> HighsInt
Expand description
Add a new row (a linear constraint) to the model.
@param highs A pointer to the Highs instance. @param lower The lower bound of the row. @param upper The upper bound of the row. @param num_new_nz The number of non-zeros in the row @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.