SCIPincludeBranchrule

Function SCIPincludeBranchrule 

Source
pub unsafe extern "C" fn SCIPincludeBranchrule(
    scip: *mut SCIP,
    name: *const c_char,
    desc: *const c_char,
    priority: c_int,
    maxdepth: c_int,
    maxbounddist: f64,
    branchcopy: Option<unsafe extern "C" fn(scip: *mut SCIP, branchrule: *mut SCIP_BRANCHRULE) -> SCIP_RETCODE>,
    branchfree: Option<unsafe extern "C" fn(scip: *mut SCIP, branchrule: *mut SCIP_BRANCHRULE) -> SCIP_RETCODE>,
    branchinit: Option<unsafe extern "C" fn(scip: *mut SCIP, branchrule: *mut SCIP_BRANCHRULE) -> SCIP_RETCODE>,
    branchexit: Option<unsafe extern "C" fn(scip: *mut SCIP, branchrule: *mut SCIP_BRANCHRULE) -> SCIP_RETCODE>,
    branchinitsol: Option<unsafe extern "C" fn(scip: *mut SCIP, branchrule: *mut SCIP_BRANCHRULE) -> SCIP_RETCODE>,
    branchexitsol: Option<unsafe extern "C" fn(scip: *mut SCIP, branchrule: *mut SCIP_BRANCHRULE) -> SCIP_RETCODE>,
    branchexeclp: Option<unsafe extern "C" fn(scip: *mut SCIP, branchrule: *mut SCIP_BRANCHRULE, allowaddcons: c_uint, result: *mut SCIP_RESULT) -> SCIP_RETCODE>,
    branchexecext: Option<unsafe extern "C" fn(scip: *mut SCIP, branchrule: *mut SCIP_BRANCHRULE, allowaddcons: c_uint, result: *mut SCIP_RESULT) -> SCIP_RETCODE>,
    branchexecps: Option<unsafe extern "C" fn(scip: *mut SCIP, branchrule: *mut SCIP_BRANCHRULE, allowaddcons: c_uint, result: *mut SCIP_RESULT) -> SCIP_RETCODE>,
    branchruledata: *mut SCIP_BRANCHRULEDATA,
) -> SCIP_RETCODE
Expand description

creates a branching rule and includes it in SCIP @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 branching rule callbacks as arguments and is thus changed every time a new callback is added in future releases; consider using SCIPincludeBranchruleBasic() and setter functions if you seek for a method which is less likely to change in future releases