pub unsafe extern "C" fn SCIPincludeBendersBasic(
scip: *mut SCIP,
bendersptr: *mut *mut SCIP_BENDERS,
name: *const c_char,
desc: *const c_char,
priority: c_int,
cutlp: c_uint,
cutpseudo: c_uint,
cutrelax: c_uint,
shareauxvars: c_uint,
bendersgetvar: Option<unsafe extern "C" fn(scip: *mut SCIP, benders: *mut SCIP_BENDERS, var: *mut SCIP_VAR, mappedvar: *mut *mut SCIP_VAR, probnumber: c_int) -> SCIP_RETCODE>,
benderscreatesub: Option<unsafe extern "C" fn(scip: *mut SCIP, benders: *mut SCIP_BENDERS, probnumber: c_int) -> SCIP_RETCODE>,
bendersdata: *mut SCIP_BENDERSDATA,
) -> SCIP_RETCODEExpand description
creates a Benders’ decomposition and includes it in SCIP with all non-fundamental callbacks set to NULL
If needed, the non-fundamental callbacks can be added afterwards via setter functions SCIPsetBendersCopy(), SCIPsetBendersFree(), SCIPsetBendersInity(), SCIPsetBendersExit(), SCIPsetBendersInitsol(), SCIPsetBendersExitsol(), SCIPsetBendersFarkas().
To use the Benders’ decomposition for solving a problem, it first has to be activated with a call to SCIPactivateBenders(). This should be done during the problem creation stage.
@return \ref SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See \ref SCIP_Retcode “SCIP_RETCODE” for a complete list of error codes.
@pre This method can be called if SCIP is in one of the following stages: - \ref SCIP_STAGE_INIT - \ref SCIP_STAGE_PROBLEM
@note if you want to set all callbacks with a single method call, consider using SCIPincludeBenders() instead