SCIPcreateConsBasicIndicatorLinCons

Function SCIPcreateConsBasicIndicatorLinCons 

Source
pub unsafe extern "C" fn SCIPcreateConsBasicIndicatorLinCons(
    scip: *mut SCIP,
    cons: *mut *mut SCIP_CONS,
    name: *const c_char,
    binvar: *mut SCIP_VAR,
    lincons: *mut SCIP_CONS,
    slackvar: *mut SCIP_VAR,
) -> SCIP_RETCODE
Expand description

creates and captures an indicator constraint with given linear constraint and slack variable in its most basic version, i. e., all constraint flags are set to their basic value as explained for the method SCIPcreateConsIndicator(); all flags can be set via SCIPsetConsFLAGNAME-methods in scip.h

@note @a binvar is checked to be binary only later. This enables a change of the type in procedures reading an instance.

@note we assume that @a slackvar actually appears in @a lincons and we also assume that it takes the role of a slack variable!

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

@see SCIPcreateConsIndicatorLinCons() for information about the basic constraint flag configuration

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