C++ wrapper for user problem data.
Definition in file objprobdata.cpp.
Go to the source code of this file.
Functions | |
static | SCIP_DECL_PROBDELORIG (probDelorigObj) |
static | SCIP_DECL_PROBTRANS (probTransObj) |
static | SCIP_DECL_PROBDELTRANS (probDeltransObj) |
static | SCIP_DECL_PROBINITSOL (probInitsolObj) |
static | SCIP_DECL_PROBEXITSOL (probExitsolObj) |
static | SCIP_DECL_PROBCOPY (probCopyObj) |
SCIP_RETCODE | SCIPcreateObjProb (SCIP *scip, const char *name, scip::ObjProbData *objprobdata, SCIP_Bool deleteobject) |
scip::ObjProbData * | SCIPgetObjProbData (SCIP *scip) |
|
static |
frees user data of original problem (called when the original problem is freed)
Definition at line 53 of file objprobdata.cpp.
|
static |
|
static |
frees user data of transformed problem (called when the transformed problem is freed)
Definition at line 102 of file objprobdata.cpp.
|
static |
solving process initialization method of transformed data (called before the branch and bound process begins)
Definition at line 125 of file objprobdata.cpp.
|
static |
solving process deinitialization method of transformed data (called before the branch and bound data is freed)
Definition at line 139 of file objprobdata.cpp.
|
static |
copies user data if you want to copy it to a subscip
Definition at line 152 of file objprobdata.cpp.
References NULL, SCIP_CALL, SCIP_DIDNOTRUN, SCIP_OKAY, SCIP_SUCCESS, and TRUE.
SCIP_RETCODE SCIPcreateObjProb | ( | SCIP * | scip, |
const char * | name, | ||
scip::ObjProbData * | objprobdata, | ||
SCIP_Bool | deleteobject | ||
) |
creates empty problem, initializes all solving data structures, and sets the user problem data to point to the given user data object
scip | SCIP data structure |
name | problem name |
objprobdata | user problem data object |
deleteobject | should the user problem data object be deleted when problem is freed? |
Definition at line 193 of file objprobdata.cpp.
References SCIP_CALL, SCIP_OKAY, and SCIPcreateProb().
Referenced by scip::ObjProbData::scip_copy(), and SCIP_DECL_READERREAD().
scip::ObjProbData* SCIPgetObjProbData | ( | SCIP * | scip | ) |
gets user problem data object Warning! This method should only be called after a problem was created with SCIPcreateObjProb(). Otherwise, a segmentation fault may arise, or an undefined pointer is returned.
scip | SCIP data structure |
Definition at line 218 of file objprobdata.cpp.
References NULL, and SCIPgetProbData().
Referenced by tsp::ProbDataTSP::scip_copy(), scip::ObjProbData::scip_copy(), SCIP_DECL_CONSCOPY(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_HEURINIT(), and SCIP_DECL_HEURINITSOL().