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 62 of file objprobdata.cpp.
References assert(), NULL, SCIP_CALL, SCIP_DECL_PROBDELORIG, and SCIP_OKAY.
|
static |
creates user data of transformed problem by transforming the original user problem data (called after problem was transformed)
Definition at line 87 of file objprobdata.cpp.
References assert(), NULL, SCIP_Bool, SCIP_CALL, SCIP_DECL_PROBTRANS, and SCIP_OKAY.
|
static |
frees user data of transformed problem (called when the transformed problem is freed)
Definition at line 111 of file objprobdata.cpp.
References assert(), NULL, SCIP_CALL, SCIP_DECL_PROBDELTRANS, and SCIP_OKAY.
|
static |
solving process initialization method of transformed data (called before the branch and bound process begins)
Definition at line 134 of file objprobdata.cpp.
References assert(), NULL, SCIP_CALL, SCIP_DECL_PROBINITSOL, and SCIP_OKAY.
|
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.
References assert(), NULL, SCIP_CALL, SCIP_DECL_PROBEXITSOL, and SCIP_OKAY.
|
static |
copies user data if you want to copy it to a subscip
Definition at line 161 of file objprobdata.cpp.
References assert(), NULL, result, SCIP_CALL, SCIP_DECL_PROBCOPY, 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
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:
| 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_Bool, SCIP_CALL, SCIP_OKAY, SCIPcreateObjProb(), and SCIPcreateProb().
Referenced by SCIP_DECL_READERREAD(), and SCIPcreateObjProb().
| 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 227 of file objprobdata.cpp.
References assert(), NULL, SCIPgetObjProbData(), and SCIPgetProbData().
Referenced by tsp::ProbDataTSP::scip_copy(), SCIP_DECL_CONSCOPY(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_HEURINIT(), SCIP_DECL_HEURINIT(), SCIP_DECL_HEURINITSOL(), and SCIPgetObjProbData().