35 struct SCIP_PresolData
60 assert(presoldata !=
NULL);
61 assert(presoldata->objpresol !=
NULL);
62 assert(presoldata->objpresol->scip_ !=
scip);
64 if( presoldata->objpresol->iscloneable() )
83 assert(presoldata !=
NULL);
84 assert(presoldata->objpresol !=
NULL);
85 assert(presoldata->objpresol->scip_ ==
scip);
91 if( presoldata->deleteobject )
92 delete presoldata->objpresol;
109 assert(presoldata !=
NULL);
110 assert(presoldata->objpresol !=
NULL);
111 assert(presoldata->objpresol->scip_ ==
scip);
127 assert(presoldata !=
NULL);
128 assert(presoldata->objpresol !=
NULL);
144 assert(presoldata !=
NULL);
145 assert(presoldata->objpresol !=
NULL);
148 SCIP_CALL( presoldata->objpresol->scip_initpre(
scip, presol) );
161 assert(presoldata !=
NULL);
162 assert(presoldata->objpresol !=
NULL);
165 SCIP_CALL( presoldata->objpresol->scip_exitpre(
scip, presol) );
178 assert(presoldata !=
NULL);
179 assert(presoldata->objpresol !=
NULL);
182 SCIP_CALL( presoldata->objpresol->scip_exec(
scip, presol, nrounds, presoltiming,
183 nnewfixedvars, nnewaggrvars, nnewchgvartypes, nnewchgbds, nnewholes,
184 nnewdelconss, nnewaddconss, nnewupgdconss, nnewchgcoefs, nnewchgsides,
185 nfixedvars, naggrvars, nchgvartypes, nchgbds, naddholes,
186 ndelconss, naddconss, nupgdconss, nchgcoefs, nchgsides, result) );
207 assert(scip !=
NULL);
208 assert(objpresol !=
NULL);
212 presoldata->objpresol = objpresol;
213 presoldata->deleteobject = deleteobject;
219 presolFreeObj, presolInitObj, presolExitObj,
220 presolInitpreObj, presolExitpreObj, presolExecObj,
240 assert(presoldata !=
NULL);
242 return presoldata->objpresol;
254 assert(presoldata !=
NULL);
256 return presoldata->objpresol;
void SCIPpresolSetData(SCIP_PRESOL *presol, SCIP_PRESOLDATA *presoldata)
static SCIP_DECL_PRESOLEXEC(presolExecObj)
struct SCIP_PresolData SCIP_PRESOLDATA
SCIP_RETCODE SCIPincludeObjPresol(SCIP *scip, scip::ObjPresol *objpresol, SCIP_Bool deleteobject)
C++ wrapper for presolvers.
static SCIP_DECL_PRESOLFREE(presolFreeObj)
static SCIP_DECL_PRESOLEXIT(presolExitObj)
C++ wrapper for presolvers.
const unsigned int scip_timing_
enum SCIP_Retcode SCIP_RETCODE
static SCIP_DECL_PRESOLEXITPRE(presolExitpreObj)
static SCIP_DECL_PRESOLINITPRE(presolInitpreObj)
SCIP_PRESOLDATA * SCIPpresolGetData(SCIP_PRESOL *presol)
scip::ObjPresol * SCIPfindObjPresol(SCIP *scip, const char *name)
SCIP_RETCODE SCIPincludePresol(SCIP *scip, const char *name, const char *desc, int priority, int maxrounds, SCIP_PRESOLTIMING timing, SCIP_DECL_PRESOLCOPY((*presolcopy)), SCIP_DECL_PRESOLFREE((*presolfree)), SCIP_DECL_PRESOLINIT((*presolinit)), SCIP_DECL_PRESOLEXIT((*presolexit)), SCIP_DECL_PRESOLINITPRE((*presolinitpre)), SCIP_DECL_PRESOLEXITPRE((*presolexitpre)), SCIP_DECL_PRESOLEXEC((*presolexec)), SCIP_PRESOLDATA *presoldata)
SCIP_PRESOL * SCIPfindPresol(SCIP *scip, const char *name)
const int scip_maxrounds_
static SCIP_DECL_PRESOLINIT(presolInitObj)
static SCIP_DECL_PRESOLCOPY(presolCopyObj)
scip::ObjPresol * SCIPgetObjPresol(SCIP *scip, SCIP_PRESOL *presol)