Function highs_sys::Highs_addCols
source · pub unsafe extern "C" fn Highs_addCols(
highs: *mut c_void,
num_new_col: HighsInt,
costs: *const f64,
lower: *const f64,
upper: *const f64,
num_new_nz: HighsInt,
starts: *const HighsInt,
index: *const HighsInt,
value: *const f64
) -> HighsInt
Expand description
Add multiple columns (variables) to the model.
@param highs A pointer to the Highs instance.
@param num_new_col The number of new columns to add.
@param costs An array of size [num_new_col] with objective
coefficients.
@param lower An array of size [num_new_col] with lower bounds.
@param upper An array of size [num_new_col] with upper bounds.
@param num_new_nz The number of new nonzeros in the constraint matrix.
@param starts The constraint coefficients are given as a matrix in
compressed sparse column form by the arrays starts
,
index
, and value
. starts
is an array of size
[num_new_cols] with the start index of each row in
indices and values.
@param index An array of size [num_new_nz] with row indices.
@param value An array of size [num_new_nz] with row values.
@returns A kHighsStatus
constant indicating whether the call succeeded.