SCIPincludePricerBasic

Function SCIPincludePricerBasic 

Source
pub unsafe extern "C" fn SCIPincludePricerBasic(
    scip: *mut SCIP,
    pricerptr: *mut *mut SCIP_PRICER,
    name: *const c_char,
    desc: *const c_char,
    priority: c_int,
    delay: c_uint,
    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 with all non-fundamental callbacks set to NULL; if needed, these can be added afterwards via setter functions SCIPsetPricerCopy(), SCIPsetPricerFree(), SCIPsetPricerInity(), SCIPsetPricerExit(), SCIPsetPricerInitsol(), SCIPsetPricerExitsol(), SCIPsetPricerFarkas();

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 if you want to set all callbacks with a single method call, consider using SCIPincludePricer() instead