C++ wrapper for user problem data.
Definition in file objprobdata.h.
Go to the source code of this file.
Functions | |
SCIP_RETCODE | SCIPcreateObjProb (SCIP *scip, const char *name, scip::ObjProbData *objprobdata, SCIP_Bool deleteobject) |
scip::ObjProbData * | SCIPgetObjProbData (SCIP *scip) |
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
The method should be called in one of the following ways:
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 SCIPgetProbData().
Referenced by tsp::ProbDataTSP::scip_copy(), scip::ObjProbData::scip_copy(), SCIP_DECL_CONSCOPY(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_HEURINIT(), and SCIP_DECL_HEURINITSOL().