55 assert(probdata != NULL);
56 assert(*probdata != NULL);
57 assert((*probdata)->objprobdata != NULL);
63 if( (*probdata)->deleteobject )
64 delete (*probdata)->objprobdata;
83 assert(sourcedata != NULL);
84 assert(sourcedata->objprobdata != NULL);
85 assert(targetdata != NULL);
86 assert(*targetdata == NULL);
89 SCIP_CALL( sourcedata->objprobdata->scip_trans(
scip, &objprobdata, &deleteobject) );
93 (*targetdata)->objprobdata = objprobdata;
94 (*targetdata)->deleteobject = deleteobject;
104 assert(probdata != NULL);
105 assert(*probdata != NULL);
106 assert((*probdata)->objprobdata != NULL);
112 if( (*probdata)->deleteobject )
113 delete (*probdata)->objprobdata;
127 assert(probdata != NULL);
128 assert(probdata->objprobdata != NULL);
141 assert(probdata != NULL);
142 assert(probdata->objprobdata != NULL);
145 SCIP_CALL( probdata->objprobdata->scip_exitsol(
scip, restart) );
156 assert(sourcedata != NULL);
157 assert(sourcedata->objprobdata != NULL);
158 assert(targetdata != NULL);
159 assert(*targetdata == NULL);
162 SCIP_CALL( sourcedata->objprobdata->scip_copy(
scip, sourcescip, varmap, consmap, &objprobdata, global, result) );
164 if( objprobdata != 0 )
170 (*targetdata)->objprobdata = objprobdata;
171 (*targetdata)->deleteobject =
TRUE;
204 probdata->objprobdata = objprobdata;
205 probdata->deleteobject = deleteobject;
209 probInitsolObj, probExitsolObj, probCopyObj, probdata) );
225 assert(probdata != NULL);
227 return probdata->objprobdata;
SCIP_RETCODE SCIPcreateProb(SCIP *scip, const char *name, SCIP_DECL_PROBDELORIG((*probdelorig)), SCIP_DECL_PROBTRANS((*probtrans)), SCIP_DECL_PROBDELTRANS((*probdeltrans)), SCIP_DECL_PROBINITSOL((*probinitsol)), SCIP_DECL_PROBEXITSOL((*probexitsol)), SCIP_DECL_PROBCOPY((*probcopy)), SCIP_PROBDATA *probdata)
static SCIP_DECL_PROBDELTRANS(probDeltransObj)
enum SCIP_Retcode SCIP_RETCODE
C++ wrapper for user problem data.
static SCIP_DECL_PROBCOPY(probCopyObj)
static SCIP_DECL_PROBDELORIG(probDelorigObj)
static SCIP_DECL_PROBEXITSOL(probExitsolObj)
scip::ObjProbData * SCIPgetObjProbData(SCIP *scip)
struct SCIP_ProbData SCIP_PROBDATA
SCIP_PROBDATA * SCIPgetProbData(SCIP *scip)
SCIP_RETCODE SCIPcreateObjProb(SCIP *scip, const char *name, scip::ObjProbData *objprobdata, SCIP_Bool deleteobject)
static SCIP_DECL_PROBINITSOL(probInitsolObj)
C++ wrapper for user problem data.
static SCIP_DECL_PROBTRANS(probTransObj)