public methods for tree compressions
SCIP_DECL_SORTPTRCOMP | ( | SCIPcomprComp | ) |
compares two compressions w. r. to their priority
compares two compression methods w. r. to their delay positions and their priority
Definition at line 51 of file compr.c.
References assert(), NULL, and SCIP_Compr::priority.
SCIP_DECL_SORTPTRCOMP | ( | SCIPcomprCompName | ) |
comparison method for sorting compressions w.r.t. to their name
comparison method for sorting heuristics w.r.t. to their name
Definition at line 63 of file compr.c.
References SCIPcomprGetName().
SCIP_COMPRDATA * SCIPcomprGetData | ( | SCIP_COMPR * | compr | ) |
gets user data of tree compression
compr | tree compression |
Definition at line 353 of file compr.c.
References assert(), SCIP_Compr::comprdata, and NULL.
Referenced by SCIP_DECL_COMPREXEC(), SCIP_DECL_COMPREXEC(), SCIP_DECL_COMPREXIT(), SCIP_DECL_COMPREXIT(), SCIP_DECL_COMPRFREE(), and SCIP_DECL_COMPRFREE().
void SCIPcomprSetData | ( | SCIP_COMPR * | compr, |
SCIP_COMPRDATA * | comprdata ) |
sets user data of tree compression; user has to free old data in advance!
compr | tree compression |
comprdata | new tree compression user data |
Definition at line 363 of file compr.c.
References assert(), SCIP_Compr::comprdata, and NULL.
Referenced by SCIP_DECL_COMPRFREE(), and SCIP_DECL_COMPRFREE().
const char * SCIPcomprGetName | ( | SCIP_COMPR * | compr | ) |
gets name of tree compression
compr | tree compression |
Definition at line 456 of file compr.c.
References assert(), SCIP_Compr::name, and NULL.
Referenced by compressReoptTree(), SCIP_DECL_COMPRCOPY(), SCIP_DECL_COMPRCOPY(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_SORTPTRCOMP(), SCIPcomprCopyInclude(), and SCIPprintCompressionStatistics().
const char * SCIPcomprGetDesc | ( | SCIP_COMPR * | compr | ) |
gets description of tree compression
compr | tree compression |
Definition at line 466 of file compr.c.
References assert(), SCIP_Compr::desc, and NULL.
Referenced by SCIP_DECL_DIALOGEXEC().
int SCIPcomprGetPriority | ( | SCIP_COMPR * | compr | ) |
gets priority of tree compression
compr | tree compression |
Definition at line 476 of file compr.c.
References assert(), NULL, and SCIP_Compr::priority.
Referenced by SCIP_DECL_DIALOGEXEC().
int SCIPcomprGetMinNodes | ( | SCIP_COMPR * | compr | ) |
gets minimal number of nodes for calling tree compression (returns -1, if no node threshold exists)
compr | tree compression |
Definition at line 500 of file compr.c.
References assert(), SCIP_Compr::minnnodes, and NULL.
Referenced by constructCompression(), constructCompression(), and SCIP_DECL_DIALOGEXEC().
SCIP_Longint SCIPcomprGetNCalls | ( | SCIP_COMPR * | compr | ) |
gets the number of times, the compression was called and tried to find a compression
gets the number of times, the heuristic was called and tried to find a solution
compr | tree compression |
Definition at line 510 of file compr.c.
References assert(), SCIP_Compr::ncalls, and NULL.
Referenced by SCIPprintCompressionStatistics().
SCIP_Longint SCIPcomprGetNFound | ( | SCIP_COMPR * | compr | ) |
gets the number of tree compressions found by this compression
gets the number of compressions found by this compression
compr | tree compression |
Definition at line 520 of file compr.c.
References assert(), SCIP_Compr::nfound, and NULL.
Referenced by SCIPprintCompressionStatistics().
SCIP_Bool SCIPcomprIsInitialized | ( | SCIP_COMPR * | compr | ) |
is tree compression initialized?
compr | tree compression |
Definition at line 530 of file compr.c.
References assert(), SCIP_Compr::initialized, and NULL.
Referenced by SCIP_DECL_COMPREXEC().
SCIP_Real SCIPcomprGetSetupTime | ( | SCIP_COMPR * | compr | ) |
gets time in seconds used in this compression for setting up for next stages
gets time in seconds used in this heuristic for setting up for next stages
compr | tree compression |
Definition at line 540 of file compr.c.
References assert(), NULL, SCIPclockGetTime(), and SCIP_Compr::setuptime.
Referenced by SCIPprintCompressionStatistics().
SCIP_Real SCIPcomprGetTime | ( | SCIP_COMPR * | compr | ) |
gets time in seconds used in this compression
gets time in seconds used in this heuristic
compr | tree compression |
Definition at line 550 of file compr.c.
References assert(), SCIP_Compr::comprclock, NULL, and SCIPclockGetTime().
Referenced by SCIPprintCompressionStatistics().
SCIP_RETCODE SCIPincludeCompr | ( | SCIP * | scip, |
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 ) |
creates a tree compression and includes it in SCIP.
scip | SCIP data structure |
name | name of tree compression |
desc | description of tree compression |
priority | priority of the tree compression |
minnnodes | minimal number of nodes to call compression |
comprdata | tree compression data |
Definition at line 60 of file scip_compr.c.
References FALSE, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPcheckStage(), SCIPcomprCreate(), SCIPerrorMessage, SCIPfindCompr(), SCIPsetIncludeCompr(), and TRUE.
SCIP_RETCODE SCIPincludeComprBasic | ( | SCIP * | scip, |
SCIP_COMPR ** | compr, | ||
const char * | name, | ||
const char * | desc, | ||
int | priority, | ||
int | minnnodes, | ||
SCIP_DECL_COMPREXEC((*comprexec)) | , | ||
SCIP_COMPRDATA * | comprdata ) |
creates a tree compression and includes it in SCIP with its most fundamental callbacks. All non-fundamental (or optional) callbacks as, e. g., init and exit callbacks, will be set to NULL. Optional callbacks can be set via specific setter functions, see SCIPsetComprCopy(), SCIPsetComprFree(), SCIPsetComprInit(), SCIPsetComprExit(), SCIPsetComprInitsol(), and SCIPsetComprExitsol()
scip | SCIP data structure |
compr | pointer to tree compression |
name | name of tree compression |
desc | description of tree compression |
priority | priority of the tree compression |
minnnodes | minimal number of nodes to call the compression |
comprdata | tree compression data |
Definition at line 103 of file scip_compr.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPcheckStage(), SCIPcomprCreate(), SCIPerrorMessage, SCIPfindCompr(), SCIPsetIncludeCompr(), and TRUE.
Referenced by SCIPincludeComprLargestrepr(), and SCIPincludeComprWeakcompr().
SCIP_RETCODE SCIPsetComprCopy | ( | SCIP * | scip, |
SCIP_COMPR * | compr ) |
sets copy method of tree compression
scip | SCIP data structure |
compr | tree compression copy method of tree compression or NULL if you don't want to copy your plugin into sub-SCIPs |
Definition at line 141 of file scip_compr.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPcomprSetCopy(), and TRUE.
Referenced by SCIPincludeComprLargestrepr(), and SCIPincludeComprWeakcompr().
SCIP_RETCODE SCIPsetComprFree | ( | SCIP * | scip, |
SCIP_COMPR * | compr ) |
sets destructor method of tree compression
scip | SCIP data structure |
compr | tree compression destructor of tree compression |
Definition at line 157 of file scip_compr.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPcomprSetFree(), and TRUE.
Referenced by SCIPincludeComprLargestrepr(), and SCIPincludeComprWeakcompr().
SCIP_RETCODE SCIPsetComprInit | ( | SCIP * | scip, |
SCIP_COMPR * | compr ) |
sets initialization method of tree compression
scip | SCIP data structure |
compr | tree compression initialize tree compression |
Definition at line 173 of file scip_compr.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPcomprSetInit(), and TRUE.
SCIP_RETCODE SCIPsetComprExit | ( | SCIP * | scip, |
SCIP_COMPR * | compr ) |
sets deinitialization method of tree compression
scip | SCIP data structure |
compr | tree compression deinitialize tree compression |
Definition at line 189 of file scip_compr.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPcomprSetExit(), and TRUE.
Referenced by SCIPincludeComprLargestrepr(), and SCIPincludeComprWeakcompr().
SCIP_RETCODE SCIPsetComprInitsol | ( | SCIP * | scip, |
SCIP_COMPR * | compr ) |
sets solving process initialization method of tree compression
scip | SCIP data structure |
compr | tree compression solving process initialization method of tree compression |
Definition at line 205 of file scip_compr.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPcomprSetInitsol(), and TRUE.
SCIP_RETCODE SCIPsetComprExitsol | ( | SCIP * | scip, |
SCIP_COMPR * | compr ) |
sets solving process deinitialization method of tree compression
scip | SCIP data structure |
compr | tree compression solving process deinitialization method of tree compression |
Definition at line 221 of file scip_compr.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage(), SCIPcomprSetExitsol(), and TRUE.
SCIP_COMPR * SCIPfindCompr | ( | SCIP * | scip, |
const char * | name ) |
returns the tree compression of the given name, or NULL if not existing
scip | SCIP data structure |
name | name of tree compression |
Definition at line 237 of file scip_compr.c.
References assert(), NULL, and SCIPsetFindCompr().
Referenced by SCIPincludeCompr(), and SCIPincludeComprBasic().
SCIP_COMPR ** SCIPgetComprs | ( | SCIP * | scip | ) |
returns the array of currently available tree compression
scip | SCIP data structure |
Definition at line 250 of file scip_compr.c.
References assert(), NULL, and SCIPsetSortComprs().
Referenced by SCIP_DECL_DIALOGEXEC().
int SCIPgetNCompr | ( | SCIP * | scip | ) |
returns the number of currently available tree compression
scip | SCIP data structure |
Definition at line 263 of file scip_compr.c.
References assert(), and NULL.
Referenced by SCIP_DECL_DIALOGEXEC().
SCIP_RETCODE SCIPsetComprPriority | ( | SCIP * | scip, |
SCIP_COMPR * | compr, | ||
int | priority ) |
set the priority of a tree compression method
scip | SCIP data structure |
compr | compression |
priority | new priority of the tree compression |
Definition at line 274 of file scip_compr.c.
References assert(), NULL, SCIP_OKAY, and SCIPcomprSetPriority().
Referenced by SCIP_DECL_PARAMCHGD().