SCIPcreateProb

Function SCIPcreateProb 

Source
pub unsafe extern "C" fn SCIPcreateProb(
    scip: *mut SCIP,
    name: *const c_char,
    probdelorig: Option<unsafe extern "C" fn(scip: *mut SCIP, probdata: *mut *mut SCIP_PROBDATA) -> SCIP_RETCODE>,
    probtrans: Option<unsafe extern "C" fn(scip: *mut SCIP, sourcedata: *mut SCIP_PROBDATA, targetdata: *mut *mut SCIP_PROBDATA) -> SCIP_RETCODE>,
    probdeltrans: Option<unsafe extern "C" fn(scip: *mut SCIP, probdata: *mut *mut SCIP_PROBDATA) -> SCIP_RETCODE>,
    probinitsol: Option<unsafe extern "C" fn(scip: *mut SCIP, probdata: *mut SCIP_PROBDATA) -> SCIP_RETCODE>,
    probexitsol: Option<unsafe extern "C" fn(scip: *mut SCIP, probdata: *mut SCIP_PROBDATA, restart: c_uint) -> SCIP_RETCODE>,
    probcopy: Option<unsafe extern "C" fn(scip: *mut SCIP, sourcescip: *mut SCIP, sourcedata: *mut SCIP_PROBDATA, varmap: *mut SCIP_HASHMAP, consmap: *mut SCIP_HASHMAP, targetdata: *mut *mut SCIP_PROBDATA, original: c_uint, global: c_uint, result: *mut SCIP_RESULT) -> SCIP_RETCODE>,
    probdata: *mut SCIP_PROBDATA,
) -> SCIP_RETCODE
Expand description

creates empty problem and initializes all solving data structures (the objective sense is set to MINIMIZE) If the problem type requires the use of variable pricers, these pricers should be added to the problem with calls to SCIPactivatePricer(). These pricers are automatically deactivated, when the problem is freed.

@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 - \ref SCIP_STAGE_TRANSFORMED - \ref SCIP_STAGE_PRESOLVING - \ref SCIP_STAGE_PRESOLVED - \ref SCIP_STAGE_SOLVING - \ref SCIP_STAGE_SOLVED - \ref SCIP_STAGE_FREE

@post After calling this method, \SCIP reaches the following stage: - \ref SCIP_STAGE_PROBLEM