Function highs_sys::Highs_addCol
source · [−]pub unsafe extern "C" fn Highs_addCol(
highs: *mut c_void,
cost: f64,
lower: f64,
upper: f64,
num_new_nz: HighsInt,
index: *const HighsInt,
value: *const f64
) -> HighsIntExpand description
Add a new column (variable) to the model.
@param highs a pointer to the Highs instance @param cost objective coefficient of the column @param lower lower bound of the column @param upper upper bound of the column @param num_new_nz number of non-zeros in the column @param index array of size [num_new_nz] with the row indices @param value array of size [num_new_nz] with row values
@returns a kHighsStatus constant indicating whether the call succeeded