Skip to main content

papilo_problem_add_generic_rows

Function papilo_problem_add_generic_rows 

Source
pub unsafe extern "C" fn papilo_problem_add_generic_rows(
    problem: *mut PAPILO_PROBLEM,
    num: c_int,
    lhs: *const f64,
    rhs: *const f64,
    rownames: *mut *const c_char,
) -> c_int
Expand description

Add linear constraints with given left and right hand sides to the problem and returns the index of the first new row or -1 if it does not exist (i.e. num == 0). If rownames is NULL generic names are used. The rows can be a ranged row if both lhs and rhs are finite.