SCIPcreateConsBasicSOS1

Function SCIPcreateConsBasicSOS1 

Source
pub unsafe extern "C" fn SCIPcreateConsBasicSOS1(
    scip: *mut SCIP,
    cons: *mut *mut SCIP_CONS,
    name: *const c_char,
    nvars: c_int,
    vars: *mut *mut SCIP_VAR,
    weights: *mut f64,
) -> SCIP_RETCODE
Expand description

creates and captures an SOS1 constraint in its most basic variant, i. e., with all constraint flags set to their default values, which can be set afterwards using SCIPsetConsFLAGNAME() in scip.h

@see SCIPcreateConsSOS1() for the default constraint flag configuration

@warning Do NOT set the constraint to be modifiable manually, because this might lead to wrong results as the variable array will not be re-sorted

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