SCIPcreateDiveset

Function SCIPcreateDiveset 

Source
pub unsafe extern "C" fn SCIPcreateDiveset(
    scip: *mut SCIP,
    diveset: *mut *mut SCIP_DIVESET,
    heur: *mut SCIP_HEUR,
    name: *const c_char,
    minreldepth: f64,
    maxreldepth: f64,
    maxlpiterquot: f64,
    maxdiveubquot: f64,
    maxdiveavgquot: f64,
    maxdiveubquotnosol: f64,
    maxdiveavgquotnosol: f64,
    lpresolvedomchgquot: f64,
    lpsolvefreq: c_int,
    maxlpiterofs: c_int,
    initialseed: c_uint,
    backtrack: c_uint,
    onlylpbranchcands: c_uint,
    ispublic: c_uint,
    specificsos1score: c_uint,
    divesetgetscore: Option<unsafe extern "C" fn(scip: *mut SCIP, diveset: *mut SCIP_DIVESET, divetype: SCIP_DIVETYPE, cand: *mut SCIP_VAR, candsol: f64, candsfrac: f64, score: *mut f64, roundup: *mut c_uint) -> SCIP_RETCODE>,
    divesetavailable: Option<unsafe extern "C" fn(scip: *mut SCIP, diveset: *mut SCIP_DIVESET, available: *mut c_uint) -> SCIP_RETCODE>,
) -> SCIP_RETCODE
Expand description

create a diving set associated with a primal heuristic. The primal heuristic needs to be included before this method can be called. The diveset is installed in the array of divesets of the heuristic and can be retrieved later by accessing SCIPheurGetDivesets()

@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 @p scip is in one of the following stages: - \ref SCIP_STAGE_INIT - \ref SCIP_STAGE_PROBLEM