heur.h File Reference Detailed Descriptioninternal methods for primal heuristics Definition in file heur.h. #include "scip/def.h" #include "blockmemshell/memory.h" #include "scip/type_retcode.h" #include "scip/type_result.h" #include "scip/type_set.h" #include "scip/type_primal.h" #include "scip/type_heur.h" #include "scip/pub_heur.h" #include "scip/stat.h" Go to the source code of this file. Function Documentation
create a set of diving heuristic settings
Definition at line 176 of file heur.c. References BMSallocMemory, BMSduplicateMemoryArray, FALSE, heurAddDiveset(), NULL, paramname, SCIP_ALLOC, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_REAL_MAX, SCIPdivesetReset(), SCIPheurGetName(), SCIPsetAddBoolParam(), SCIPsetAddIntParam(), SCIPsetAddRealParam(), SCIPsnprintf(), and TRUE. Referenced by SCIPcreateDiveset().
resets diving settings counters
Definition at line 85 of file heur.c. References SCIP_Diveset::maxdepth, SCIP_Diveset::maxsoldepth, SCIP_Diveset::mindepth, SCIP_Diveset::minsoldepth, SCIP_Diveset::nbestsolsfound, SCIP_Diveset::ncalls, SCIP_Diveset::nlpiterations, SCIP_Diveset::nlps, SCIP_Diveset::nsolcalls, SCIP_Diveset::nsolsfound, NULL, SCIP_Diveset::totaldepth, SCIP_Diveset::totalnbacktracks, SCIP_Diveset::totalnnodes, and SCIP_Diveset::totalsoldepth. Referenced by SCIPdivesetCreate(), and SCIPheurInit().
update diveset statistics and global diveset statistics
Definition at line 108 of file heur.c. References MAX, SCIP_Diveset::maxdepth, SCIP_Diveset::maxsoldepth, MIN, SCIP_Diveset::mindepth, SCIP_Diveset::minsoldepth, SCIP_Diveset::nbestsolsfound, SCIP_Diveset::ncalls, SCIP_Stat::ndivesetcalls, SCIP_Diveset::nsolcalls, SCIP_Diveset::nsolsfound, NULL, SCIP_Diveset::totaldepth, SCIP_Stat::totaldivesetdepth, SCIP_Diveset::totalnbacktracks, SCIP_Diveset::totalnnodes, and SCIP_Diveset::totalsoldepth. Referenced by SCIPupdateDivesetStats().
get the candidate score and preferred rounding direction for a candidate variable
Definition at line 599 of file heur.c. References SCIP_Diveset::divetypemask, NULL, SCIP_CALL, and SCIP_OKAY. Referenced by SCIPgetDivesetScore().
update diveset LP statistics, should be called after every LP solved by this diving heuristic
Definition at line 573 of file heur.c. References SCIP_Stat::ndivesetlpiterations, SCIP_Stat::ndivesetlps, SCIP_Diveset::nlpiterations, and SCIP_Diveset::nlps. Referenced by SCIPupdateDivesetLPStats().
copies the given primal heuristic to a new scip
Definition at line 624 of file heur.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, and SCIPheurGetName(). Referenced by SCIPsetCopyPlugins().
creates a primal heuristic
Definition at line 643 of file heur.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 SCIPincludeHeur(), and SCIPincludeHeurBasic().
calls destructor and frees memory of primal heuristic
Definition at line 728 of file heur.c. References BMSfreeMemory, BMSfreeMemoryArray, BMSfreeMemoryArrayNull, divesetFree(), NULL, SCIP_CALL, SCIP_OKAY, and SCIPclockFree().
initializes primal heuristic
Definition at line 762 of file heur.c. References SCIP_Heur::delaypos, SCIP_Heur::divesets, SCIP_Heur::heurclock, SCIP_Heur::initialized, SCIP_Heur::name, SCIP_Heur::nbestsolsfound, SCIP_Heur::ncalls, SCIP_Heur::ndivesets, SCIP_Heur::nsolsfound, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPclockReset(), SCIPclockStart(), SCIPclockStop(), SCIPdivesetReset(), SCIPerrorMessage, SCIP_Heur::setuptime, and TRUE. Referenced by SCIPsetInitPlugins().
calls exit method of primal heuristic
Definition at line 812 of file heur.c. References FALSE, SCIP_Heur::initialized, SCIP_Heur::name, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPclockStart(), SCIPclockStop(), SCIPerrorMessage, and SCIP_Heur::setuptime. Referenced by SCIPsetExitPlugins().
informs primal heuristic that the branch and bound process is being started
Definition at line 842 of file heur.c. References SCIP_Heur::delaypos, FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPclockStart(), SCIPclockStop(), and SCIP_Heur::setuptime. Referenced by SCIPsetExitprePlugins().
informs primal heuristic that the branch and bound process data is being freed
Definition at line 872 of file heur.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPclockStart(), SCIPclockStop(), and SCIP_Heur::setuptime. Referenced by SCIPsetInitsolPlugins().
should the heuristic be executed at the given depth, frequency, timing, ...
Definition at line 896 of file heur.c. References SCIP_Heur::delaypos, FALSE, SCIP_Heur::freq, SCIP_Heur::freqofs, SCIP_Heur::maxdepth, SCIP_Bool, SCIP_HEURTIMING_AFTERLPNODE, SCIP_HEURTIMING_AFTERLPPLUNGE, SCIP_HEURTIMING_AFTERPSEUDONODE, SCIP_HEURTIMING_AFTERPSEUDOPLUNGE, SCIP_HEURTIMING_BEFOREPRESOL, SCIP_HEURTIMING_DURINGPRESOLLOOP, SCIP_Heur::timingmask, and TRUE. Referenced by SCIPheurExec(), and SCIPprimalHeuristics().
calls execution method of primal heuristic
Definition at line 958 of file heur.c. References SCIP_Heur::delaypos, FALSE, SCIP_Heur::freq, SCIP_Heur::freqofs, SCIP_Heur::heurclock, SCIP_Heur::maxdepth, SCIP_Heur::name, SCIP_Primal::nbestsolsfound, SCIP_Heur::nbestsolsfound, SCIP_Heur::ncalls, SCIP_Primal::nsolsfound, SCIP_Heur::nsolsfound, NULL, SCIP_Bool, SCIP_CALL, SCIP_DELAYED, SCIP_DIDNOTFIND, SCIP_DIDNOTRUN, SCIP_FOUNDSOL, SCIP_HEURTIMING_BEFOREPRESOL, SCIP_HEURTIMING_DURINGPRESOLLOOP, SCIP_INVALIDRESULT, SCIP_Longint, SCIP_OKAY, SCIPclockStart(), SCIPclockStop(), SCIPdebugMessage, SCIPerrorMessage, and SCIPheurShouldBeExecuted(). Referenced by SCIPprimalHeuristics(). sets priority of primal heuristic
Definition at line 1218 of file heur.c. References FALSE, NULL, and SCIP_Heur::priority. Referenced by SCIPsetHeurPriority().
sets copy callback of primal heuristic
Definition at line 1081 of file heur.c. References NULL. Referenced by SCIPsetHeurCopy().
sets destructor callback of primal heuristic
Definition at line 1092 of file heur.c. References NULL. Referenced by SCIPsetHeurFree().
sets initialization callback of primal heuristic
Definition at line 1103 of file heur.c. References NULL. Referenced by SCIPsetHeurInit().
sets deinitialization callback of primal heuristic
Definition at line 1114 of file heur.c. References NULL. Referenced by SCIPsetHeurExit().
sets solving process initialization callback of primal heuristic
Definition at line 1125 of file heur.c. References NULL. Referenced by SCIPsetHeurInitsol().
sets solving process deinitialization callback of primal heuristic
Definition at line 1136 of file heur.c. References NULL. Referenced by SCIPsetHeurExitsol(). enables or disables all clocks of
Definition at line 1313 of file heur.c. References SCIP_Heur::heurclock, NULL, SCIPclockEnableOrDisable(), and SCIP_Heur::setuptime. Referenced by SCIPsetSetReoptimizationParams(). |