compr.c File Reference Detailed Descriptionmethods for tree compressions Definition in file compr.c. #include <assert.h> #include <string.h> #include "scip/def.h" #include "scip/set.h" #include "scip/clock.h" #include "scip/paramset.h" #include "scip/scip.h" #include "scip/compr.h" #include "scip/reopt.h" #include "scip/pub_message.h" #include "scip/pub_misc.h" #include "scip/struct_compr.h" Go to the source code of this file. Function Documentation
compares two compression methods w. r. to their delay positions and their priority Definition at line 41 of file compr.c. References NULL, and SCIP_Compr::priority.
comparison method for sorting heuristics w.r.t. to their name Definition at line 53 of file compr.c. References SCIPcomprGetName().
method to call, when the priority of a compression was changed Definition at line 60 of file compr.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPparamGetData(), SCIPparamGetInt(), and SCIPsetComprPriority().
copies the given tree compression to a new scip
Definition at line 74 of file compr.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPcomprGetName(), and SCIPdebugMessage.
creates a tree compression
Definition at line 93 of file compr.c. References BMSallocMemory, BMSduplicateMemoryArray, FALSE, NULL, paramname, SCIP_ALLOC, SCIP_CALL, SCIP_CLOCKTYPE_DEFAULT, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPclockCreate(), SCIPsetAddIntParam(), SCIPsnprintf(), and TRUE. Referenced by SCIPincludeCompr(), and SCIPincludeComprBasic().
calls destructor and frees memory of tree compression
Definition at line 157 of file compr.c. References BMSfreeMemory, BMSfreeMemoryArray, NULL, SCIP_CALL, SCIP_OKAY, and SCIPclockFree().
initializes tree compression
Definition at line 183 of file compr.c. References SCIP_Compr::comprclock, SCIP_Compr::initialized, SCIP_Compr::name, SCIP_Compr::ncalls, SCIP_Compr::nfound, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPclockReset(), SCIPclockStart(), SCIPclockStop(), SCIPerrorMessage, SCIP_Compr::setuptime, and TRUE. Referenced by SCIPsetInitPlugins().
calls exit method of tree compression
Definition at line 222 of file compr.c. References FALSE, SCIP_Compr::initialized, SCIP_Compr::name, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPclockStart(), SCIPclockStop(), SCIPerrorMessage, and SCIP_Compr::setuptime. Referenced by SCIPsetExitPlugins().
calls execution method of tree compression
Definition at line 252 of file compr.c. References SCIP_Compr::comprclock, SCIP_Compr::minnnodes, SCIP_Compr::name, SCIP_Compr::ncalls, SCIP_Compr::nfound, NULL, SCIP_CALL, SCIP_DIDNOTFIND, SCIP_DIDNOTRUN, SCIP_INVALIDRESULT, SCIP_OKAY, SCIP_SUCCESS, SCIPclockStart(), SCIPclockStop(), SCIPdebugMessage, SCIPerrorMessage, and SCIPreoptGetNLeaves(). Referenced by compressReoptTree().
gets user data of tree compression
Definition at line 306 of file compr.c. References SCIP_Compr::comprdata, and NULL. Referenced by SCIP_DECL_COMPREXEC(), SCIP_DECL_COMPREXIT(), and SCIP_DECL_COMPRFREE().
sets user data of tree compression; user has to free old data in advance!
Definition at line 316 of file compr.c. References SCIP_Compr::comprdata, and NULL. Referenced by SCIP_DECL_COMPRFREE().
sets copy callback of tree compression
Definition at line 329 of file compr.c. References NULL. Referenced by SCIPsetComprCopy().
sets destructor callback of tree compression
Definition at line 340 of file compr.c. References NULL. Referenced by SCIPsetComprFree().
sets initialization callback of tree compression
Definition at line 351 of file compr.c. References NULL. Referenced by SCIPsetComprInit().
sets deinitialization callback of tree compression
Definition at line 362 of file compr.c. References NULL. Referenced by SCIPsetComprExit().
sets solving process initialization callback of tree compression
Definition at line 373 of file compr.c. References NULL. Referenced by SCIPsetComprInitsol().
sets solving process deinitialization callback of tree compression
Definition at line 384 of file compr.c. References NULL. Referenced by SCIPsetComprExitsol().
should the compression be executed at the given depth, number of nodes
Definition at line 395 of file compr.c. References SCIP_Compr::minnnodes, and NULL.
gets name of tree compression
Definition at line 409 of file compr.c. References SCIP_Compr::name, and NULL. Referenced by compressReoptTree(), printCompressionStatistics(), SCIP_DECL_COMPRCOPY(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_SORTPTRCOMP(), SCIPcomprCopyInclude(), and SCIPsetSortHeurs().
gets description of tree compression
Definition at line 419 of file compr.c. References SCIP_Compr::desc, and NULL. Referenced by SCIP_DECL_DIALOGEXEC().
gets priority of tree compression
Definition at line 429 of file compr.c. References NULL, and SCIP_Compr::priority. Referenced by SCIP_DECL_DIALOGEXEC().
sets priority of tree compression
Definition at line 439 of file compr.c. References FALSE, NULL, and SCIP_Compr::priority. Referenced by SCIPsetComprPriority().
gets minimal number of nodes for calling tree compression (returns -1, if no node threshold exists)
Definition at line 453 of file compr.c. References SCIP_Compr::minnnodes, and NULL. Referenced by constructCompression(), and SCIP_DECL_DIALOGEXEC().
gets the number of times, the heuristic was called and tried to find a solution
Definition at line 463 of file compr.c. References SCIP_Compr::ncalls, and NULL. Referenced by printCompressionStatistics().
gets the number of compressions found by this compression
Definition at line 473 of file compr.c. References SCIP_Compr::nfound, and NULL. Referenced by printCompressionStatistics().
is tree compression initialized?
Definition at line 483 of file compr.c. References SCIP_Compr::initialized, and NULL. Referenced by SCIP_DECL_COMPREXEC(), and SCIPsetFindHeur().
gets time in seconds used in this heuristic for setting up for next stages
Definition at line 493 of file compr.c. References NULL, SCIPclockGetTime(), and SCIP_Compr::setuptime. Referenced by printCompressionStatistics().
gets time in seconds used in this heuristic
Definition at line 503 of file compr.c. References SCIP_Compr::comprclock, NULL, and SCIPclockGetTime(). Referenced by printCompressionStatistics(). |