SCIPcreateConsSOS2

Function SCIPcreateConsSOS2 

Source
pub unsafe extern "C" fn SCIPcreateConsSOS2(
    scip: *mut SCIP,
    cons: *mut *mut SCIP_CONS,
    name: *const c_char,
    nvars: c_int,
    vars: *mut *mut SCIP_VAR,
    weights: *mut f64,
    initial: c_uint,
    separate: c_uint,
    enforce: c_uint,
    check: c_uint,
    propagate: c_uint,
    local: c_uint,
    dynamic: c_uint,
    removable: c_uint,
    stickingatnode: c_uint,
) -> SCIP_RETCODE
Expand description

creates and captures an SOS2 constraint

We set the constraint to not be modifable. If the weights are non NULL, the variables are ordered according to these weights (in ascending order).

@note the constraint gets captured, hence at one point you have to release it using the method SCIPreleaseCons()