Detailed Description
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) |
Function Documentation
◆ SCIP_DECL_PROBDELORIG()
|
static |
frees user data of original problem (called when the original problem is freed)
Definition at line 62 of file objprobdata.cpp.
◆ SCIP_DECL_PROBTRANS()
|
static |
◆ SCIP_DECL_PROBDELTRANS()
|
static |
frees user data of transformed problem (called when the transformed problem is freed)
Definition at line 111 of file objprobdata.cpp.
◆ SCIP_DECL_PROBINITSOL()
|
static |
solving process initialization method of transformed data (called before the branch and bound process begins)
Definition at line 134 of file objprobdata.cpp.
◆ SCIP_DECL_PROBEXITSOL()
|
static |
solving process deinitialization method of transformed data (called before the branch and bound data is freed)
Definition at line 148 of file objprobdata.cpp.
◆ SCIP_DECL_PROBCOPY()
|
static |
copies user data if you want to copy it to a subscip
Definition at line 161 of file objprobdata.cpp.
References NULL, SCIP_CALL, SCIP_DIDNOTRUN, SCIP_OKAY, SCIP_SUCCESS, and TRUE.
◆ SCIPcreateObjProb()
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
- Parameters
-
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 202 of file objprobdata.cpp.
References SCIP_CALL, SCIP_OKAY, and SCIPcreateProb().
Referenced by scip::ObjProbData::scip_copy(), and SCIP_DECL_READERREAD().
◆ SCIPgetObjProbData()
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.
- Parameters
-
scip SCIP data structure
Definition at line 227 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().