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
) -> HighsInt
Expand description

Add a new column (variable) to the model.

@param highs A pointer to the Highs instance. @param cost The objective coefficient of the column. @param lower The lower bound of the column. @param upper The upper bound of the column. @param num_new_nz The number of non-zeros in the column. @param index An array of size [num_new_nz] with the row indices. @param value An array of size [num_new_nz] with row values.

@returns A kHighsStatus constant indicating whether the call succeeded.