Highs_addLinearObjective

Function Highs_addLinearObjective 

Source
pub unsafe extern "C" fn Highs_addLinearObjective(
    highs: *const c_void,
    weight: f64,
    offset: f64,
    coefficients: *const f64,
    abs_tolerance: f64,
    rel_tolerance: f64,
    priority: HighsInt,
) -> HighsInt
Expand description

Adds linear objective data to HiGHS

@param highs A pointer to the Highs instance. @param weight The weight of the linear objective, with its positive/negative sign determining whether it is minimized or maximized during lexicographic optimization @param offset The objective offset @param coefficients A pointer to the objective coefficients @param abs_tolerance The absolute tolerance used when constructing an objective constraint during lexicographic optimization @param rel_tolerance The relative tolerance used when constructing an objective constraint during lexicographic optimization @param priority The priority of this objective during lexicographic optimization

@returns A kHighsStatus constant indicating whether the call succeeded.