SCIPincludeConshdlrBasic

Function SCIPincludeConshdlrBasic 

Source
pub unsafe extern "C" fn SCIPincludeConshdlrBasic(
    scip: *mut SCIP,
    conshdlrptr: *mut *mut SCIP_CONSHDLR,
    name: *const c_char,
    desc: *const c_char,
    enfopriority: c_int,
    chckpriority: c_int,
    eagerfreq: c_int,
    needscons: c_uint,
    consenfolp: Option<unsafe extern "C" fn(scip: *mut SCIP, conshdlr: *mut SCIP_CONSHDLR, conss: *mut *mut SCIP_CONS, nconss: c_int, nusefulconss: c_int, solinfeasible: c_uint, result: *mut SCIP_RESULT) -> SCIP_RETCODE>,
    consenfops: Option<unsafe extern "C" fn(scip: *mut SCIP, conshdlr: *mut SCIP_CONSHDLR, conss: *mut *mut SCIP_CONS, nconss: c_int, nusefulconss: c_int, solinfeasible: c_uint, objinfeasible: c_uint, result: *mut SCIP_RESULT) -> SCIP_RETCODE>,
    conscheck: Option<unsafe extern "C" fn(scip: *mut SCIP, conshdlr: *mut SCIP_CONSHDLR, conss: *mut *mut SCIP_CONS, nconss: c_int, sol: *mut SCIP_SOL, checkintegrality: c_uint, checklprows: c_uint, printreason: c_uint, completely: c_uint, result: *mut SCIP_RESULT) -> SCIP_RETCODE>,
    conslock: Option<unsafe extern "C" fn(scip: *mut SCIP, conshdlr: *mut SCIP_CONSHDLR, cons: *mut SCIP_CONS, locktype: SCIP_LOCKTYPE, nlockspos: c_int, nlocksneg: c_int) -> SCIP_RETCODE>,
    conshdlrdata: *mut SCIP_CONSHDLRDATA,
) -> SCIP_RETCODE
Expand description

creates a constraint handler and includes it in SCIP. All non-fundamental (or optional) callbacks will be set to NULL. Optional callbacks can be set via specific setter functions, see SCIPsetConshdlrInit(), SCIPsetConshdlrExit(), SCIPsetConshdlrCopy(), SCIPsetConshdlrFree(), SCIPsetConshdlrInitsol(), SCIPsetConshdlrExitsol(), SCIPsetConshdlrInitpre(), SCIPsetConshdlrExitpre(), SCIPsetConshdlrPresol(), SCIPsetConshdlrDelete(), SCIPsetConshdlrDelvars(), SCIPsetConshdlrInitlp(), SCIPsetConshdlrActive(), SCIPsetConshdlrDeactive(), SCIPsetConshdlrEnable(), SCIPsetConshdlrDisable(), SCIPsetConshdlrResprop(), SCIPsetConshdlrTrans(), SCIPsetConshdlrPrint(), SCIPsetConshdlrParse(), SCIPsetConshdlrGetVars(), SCIPsetConshdlrGetNVars(), and SCIPsetConshdlrGetDiveBdChgs().

@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 SCIPincludeConshdlr() instead