46 assert(compr1 != NULL);
47 assert(compr2 != NULL);
65 assert(paramdata != NULL);
79 assert(compr != NULL);
81 assert(set->scip != NULL);
83 if( compr->comprcopy != NULL )
86 SCIP_CALL( compr->comprcopy(set->scip, compr) );
115 assert(compr != NULL);
116 assert(name != NULL);
117 assert(desc != NULL);
118 assert(comprexec != NULL);
123 (*compr)->priority = priority;
124 (*compr)->minnnodes = minnnodes;
125 (*compr)->comprcopy = comprcopy;
126 (*compr)->comprfree = comprfree;
127 (*compr)->comprinit = comprinit;
128 (*compr)->comprexit = comprexit;
129 (*compr)->comprinitsol = comprinitsol;
130 (*compr)->comprexitsol = comprexitsol;
131 (*compr)->comprexec = comprexec;
132 (*compr)->comprdata = comprdata;
135 (*compr)->ncalls = 0;
136 (*compr)->nfound = 0;
137 (*compr)->rate = 0.0;
138 (*compr)->initialized =
FALSE;
139 (*compr)->nnodes = 0;
146 &(*compr)->priority,
TRUE, priority, INT_MIN/4, INT_MAX/4,
151 &(*compr)->minnnodes,
FALSE, minnnodes, 1, INT_MAX, NULL, NULL) );
162 assert(compr != NULL);
163 assert(*compr != NULL);
164 assert(!(*compr)->initialized);
168 if( (*compr)->comprfree != NULL )
170 SCIP_CALL( (*compr)->comprfree(set->scip, *compr) );
188 assert(compr != NULL);
197 if( set->misc_resetstat && !set->reopt_enable )
206 if( compr->comprinit != NULL )
211 SCIP_CALL( compr->comprinit(set->scip, compr) );
227 assert(compr != NULL);
236 if( compr->comprexit != NULL )
241 SCIP_CALL( compr->comprexit(set->scip, compr) );
259 assert(compr != NULL);
260 assert(compr->comprexec != NULL);
262 assert(set->scip != NULL);
263 assert(result != NULL);
281 SCIP_CALL( compr->comprexec(set->scip, compr, result) );
291 SCIPerrorMessage(
"execution method of tree compression <%s> returned invalid result <%d>\n",
292 compr->
name, *result);
310 assert(compr != NULL);
321 assert(compr != NULL);
334 assert(compr != NULL);
336 compr->comprcopy = comprcopy;
345 assert(compr != NULL);
347 compr->comprfree = comprfree;
356 assert(compr != NULL);
358 compr->comprinit = comprinit;
367 assert(compr != NULL);
369 compr->comprexit = comprexit;
378 assert(compr != NULL);
380 compr->comprinitsol = comprinitsol;
389 assert(compr != NULL);
391 compr->comprexitsol = comprexitsol;
401 assert(compr != NULL);
413 assert(compr != NULL);
423 assert(compr != NULL);
433 assert(compr != NULL);
445 assert(compr != NULL);
449 set->comprssorted =
FALSE;
457 assert(compr != NULL);
467 assert(compr != NULL);
477 assert(compr != NULL);
487 assert(compr != NULL);
497 assert(compr != NULL);
507 assert(compr != NULL);
enum SCIP_Result SCIP_RESULT
void SCIPcomprSetInitsol(SCIP_COMPR *compr, SCIP_DECL_COMPRINITSOL((*comprinitsol)))
const char * SCIPcomprGetDesc(SCIP_COMPR *compr)
int SCIPreoptGetNLeaves(SCIP_REOPT *reopt, SCIP_NODE *node)
#define SCIP_DECL_COMPREXEC(x)
void SCIPcomprSetCopy(SCIP_COMPR *compr, SCIP_DECL_COMPRCOPY((*comprcopy)))
int SCIPcomprGetMinNodes(SCIP_COMPR *compr)
SCIP_PARAMDATA * SCIPparamGetData(SCIP_PARAM *param)
SCIP_RETCODE SCIPcomprInit(SCIP_COMPR *compr, SCIP_SET *set)
internal methods for clocks and timing issues
SCIP_Longint SCIPcomprGetNFound(SCIP_COMPR *compr)
SCIP_Real SCIPcomprGetTime(SCIP_COMPR *compr)
struct SCIP_ParamData SCIP_PARAMDATA
SCIP_RETCODE SCIPcomprCreate(SCIP_COMPR **compr, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, BMS_BLKMEM *blkmem, const char *name, const char *desc, int priority, int minnnodes, SCIP_DECL_COMPRCOPY((*comprcopy)), SCIP_DECL_COMPRFREE((*comprfree)), SCIP_DECL_COMPRINIT((*comprinit)), SCIP_DECL_COMPREXIT((*comprexit)), SCIP_DECL_COMPRINITSOL((*comprinitsol)), SCIP_DECL_COMPREXITSOL((*comprexitsol)), SCIP_DECL_COMPREXEC((*comprexec)), SCIP_COMPRDATA *comprdata)
int SCIPcomprGetPriority(SCIP_COMPR *compr)
#define SCIP_DECL_COMPREXITSOL(x)
void SCIPcomprSetExitsol(SCIP_COMPR *compr, SCIP_DECL_COMPREXITSOL((*comprexitsol)))
void SCIPclockStop(SCIP_CLOCK *clck, SCIP_SET *set)
SCIP_Bool SCIPcomprIsInitialized(SCIP_COMPR *compr)
void SCIPclockStart(SCIP_CLOCK *clck, SCIP_SET *set)
SCIP_RETCODE SCIPcomprFree(SCIP_COMPR **compr, SCIP_SET *set)
int SCIPsnprintf(char *t, int len, const char *s,...)
enum SCIP_Retcode SCIP_RETCODE
void SCIPcomprSetPriority(SCIP_COMPR *compr, SCIP_SET *set, int priority)
void SCIPcomprSetInit(SCIP_COMPR *compr, SCIP_DECL_COMPRINIT((*comprinit)))
static SCIP_DECL_PARAMCHGD(paramChgdComprPriority)
SCIP_RETCODE SCIPcomprExec(SCIP_COMPR *compr, SCIP_SET *set, SCIP_REOPT *reopt, SCIP_RESULT *result)
internal methods for handling parameter settings
#define BMSfreeMemory(ptr)
SCIP_COMPRDATA * SCIPcomprGetData(SCIP_COMPR *compr)
#define SCIP_DECL_COMPRINIT(x)
#define SCIP_DECL_COMPRFREE(x)
SCIP_Bool SCIPcomprShouldBeExecuted(SCIP_COMPR *compr, int depth, int nnodes)
#define BMSfreeMemoryArray(ptr)
SCIP_COMPRDATA * comprdata
#define SCIP_DECL_COMPRCOPY(x)
void SCIPclockReset(SCIP_CLOCK *clck)
SCIP_Real SCIPclockGetTime(SCIP_CLOCK *clck)
SCIP_Longint SCIPcomprGetNCalls(SCIP_COMPR *compr)
internal methods for global SCIP settings
struct SCIP_ComprData SCIP_COMPRDATA
SCIP_RETCODE SCIPsetAddIntParam(SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, BMS_BLKMEM *blkmem, const char *name, const char *desc, int *valueptr, SCIP_Bool isadvanced, int defaultvalue, int minvalue, int maxvalue, SCIP_DECL_PARAMCHGD((*paramchgd)), SCIP_PARAMDATA *paramdata)
SCIP_RETCODE SCIPcomprExit(SCIP_COMPR *compr, SCIP_SET *set)
#define BMSduplicateMemoryArray(ptr, source, num)
SCIP_RETCODE SCIPclockCreate(SCIP_CLOCK **clck, SCIP_CLOCKTYPE clocktype)
#define SCIP_DECL_COMPRINITSOL(x)
data structures and methods for collecting reoptimization information
public data structures and miscellaneous methods
datastructures for tree compression techniques
void SCIPclockFree(SCIP_CLOCK **clck)
SCIP_DECL_SORTPTRCOMP(SCIPcomprComp)
SCIP_RETCODE SCIPcomprCopyInclude(SCIP_COMPR *compr, SCIP_SET *set)
#define SCIP_DECL_COMPREXIT(x)
SCIP_RETCODE SCIPsetComprPriority(SCIP *scip, SCIP_COMPR *compr, int priority)
int SCIPparamGetInt(SCIP_PARAM *param)
const char * SCIPcomprGetName(SCIP_COMPR *compr)
internal methods for tree compressions
SCIP_Real SCIPcomprGetSetupTime(SCIP_COMPR *compr)
public methods for message output
#define BMSallocMemory(ptr)
void SCIPcomprSetFree(SCIP_COMPR *compr, SCIP_DECL_COMPRFREE((*comprfree)))
void SCIPcomprSetData(SCIP_COMPR *compr, SCIP_COMPRDATA *comprdata)
common defines and data types used in all packages of SCIP
struct BMS_BlkMem BMS_BLKMEM
void SCIPcomprSetExit(SCIP_COMPR *compr, SCIP_DECL_COMPREXIT((*comprexit)))