SCIPincludeBenderscut

Function SCIPincludeBenderscut 

Source
pub unsafe extern "C" fn SCIPincludeBenderscut(
    scip: *mut SCIP,
    benders: *mut SCIP_BENDERS,
    name: *const c_char,
    desc: *const c_char,
    priority: c_int,
    islpcut: c_uint,
    benderscutcopy: Option<unsafe extern "C" fn(scip: *mut SCIP, benders: *mut SCIP_BENDERS, benderscut: *mut SCIP_BENDERSCUT) -> SCIP_RETCODE>,
    benderscutfree: Option<unsafe extern "C" fn(scip: *mut SCIP, benderscut: *mut SCIP_BENDERSCUT) -> SCIP_RETCODE>,
    benderscutinit: Option<unsafe extern "C" fn(scip: *mut SCIP, benderscut: *mut SCIP_BENDERSCUT) -> SCIP_RETCODE>,
    benderscutexit: Option<unsafe extern "C" fn(scip: *mut SCIP, benderscut: *mut SCIP_BENDERSCUT) -> SCIP_RETCODE>,
    benderscutinitsol: Option<unsafe extern "C" fn(scip: *mut SCIP, benderscut: *mut SCIP_BENDERSCUT) -> SCIP_RETCODE>,
    benderscutexitsol: Option<unsafe extern "C" fn(scip: *mut SCIP, benderscut: *mut SCIP_BENDERSCUT) -> SCIP_RETCODE>,
    benderscutexec: Option<unsafe extern "C" fn(scip: *mut SCIP, benders: *mut SCIP_BENDERS, benderscut: *mut SCIP_BENDERSCUT, sol: *mut SCIP_SOL, probnumber: c_int, type_: SCIP_BENDERSENFOTYPE, result: *mut SCIP_RESULT) -> SCIP_RETCODE>,
    benderscutdata: *mut SCIP_BENDERSCUTDATA,
) -> SCIP_RETCODE
Expand description

creates a Benders’ cut algorithms and includes it in the associated Benders’ decomposition

This should be called from the SCIPincludeBendersXyz for the associated Benders’ decomposition. It is only possible to include a Benders’ cut algorithm if a Benders’ decomposition has already been included 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 method has all Benders’ decomposition callbacks as arguments and is thus changed every time a new callback is added in future releases; consider using SCIPincludeBendersBasic() and setter functions if you seek for a method which is less likely to change in future releases