SCIPincludePricer

Function SCIPincludePricer 

Source
pub unsafe extern "C" fn SCIPincludePricer(
    scip: *mut SCIP,
    name: *const c_char,
    desc: *const c_char,
    priority: c_int,
    delay: c_uint,
    pricercopy: Option<unsafe extern "C" fn(scip: *mut SCIP, pricer: *mut SCIP_PRICER, valid: *mut c_uint) -> SCIP_RETCODE>,
    pricerfree: Option<unsafe extern "C" fn(scip: *mut SCIP, pricer: *mut SCIP_PRICER) -> SCIP_RETCODE>,
    pricerinit: Option<unsafe extern "C" fn(scip: *mut SCIP, pricer: *mut SCIP_PRICER) -> SCIP_RETCODE>,
    pricerexit: Option<unsafe extern "C" fn(scip: *mut SCIP, pricer: *mut SCIP_PRICER) -> SCIP_RETCODE>,
    pricerinitsol: Option<unsafe extern "C" fn(scip: *mut SCIP, pricer: *mut SCIP_PRICER) -> SCIP_RETCODE>,
    pricerexitsol: Option<unsafe extern "C" fn(scip: *mut SCIP, pricer: *mut SCIP_PRICER) -> SCIP_RETCODE>,
    pricerredcost: Option<unsafe extern "C" fn(scip: *mut SCIP, pricer: *mut SCIP_PRICER, lowerbound: *mut f64, stopearly: *mut c_uint, result: *mut SCIP_RESULT) -> SCIP_RETCODE>,
    pricerfarkas: Option<unsafe extern "C" fn(scip: *mut SCIP, pricer: *mut SCIP_PRICER, result: *mut SCIP_RESULT) -> SCIP_RETCODE>,
    pricerdata: *mut SCIP_PRICERDATA,
) -> SCIP_RETCODE
Expand description

creates a variable pricer and includes it in SCIP To use the variable pricer for solving a problem, it first has to be activated with a call to SCIPactivatePricer(). 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 pricer callbacks as arguments and is thus changed every time a new callback is added in future releases; consider using SCIPincludePricerBasic() and setter functions if you seek for a method which is less likely to change in future releases