Function highs_sys::Highs_changeColsCostByRange
source · pub unsafe extern "C" fn Highs_changeColsCostByRange(
highs: *mut c_void,
from_col: HighsInt,
to_col: HighsInt,
cost: *const f64
) -> HighsInt
Expand description
Change the cost coefficients of multiple adjacent columns.
@param highs A pointer to the Highs instance. @param from_col The index of the first column whose cost changes. @param to_col The index of the last column whose cost changes. @param cost An array of length [to_col - from_col + 1] with the new objective coefficients.
@returns A kHighsStatus
constant indicating whether the call succeeded.