Detailed Description
event handler for tree size estimation and restarts
This event handler plugin provides different methods for approximating the current fraction of the search that has already been completed and for estimating the total tree size at completion. It can trigger restarts of the current run if the current run seems hopeless.
For details about the available approximations of search completion, please see
Anderson, Hendel, Le Bodic, Pfetsch Estimating The Size of Branch-and-Bound Trees under preparation
This code is a largely enriched version of a code that was used for clairvoyant restarts, see
Anderson, Hendel, Le Bodic, Viernickel Clairvoyant Restarts in Branch-and-Bound Search Using Online Tree-Size Estimation AAAI-19: Proceedings of the Thirty-Third AAAI Conference on Artificial Intelligence, 2018
Definition in file event_estim.c.
#include <string.h>
#include "blockmemshell/memory.h"
#include "scip/event_estim.h"
#include "scip/prop_symmetry.h"
#include "scip/pub_disp.h"
#include "scip/pub_event.h"
#include "scip/pub_fileio.h"
#include "scip/pub_message.h"
#include "scip/pub_misc.h"
#include "scip/pub_tree.h"
#include "scip/scip_disp.h"
#include "scip/scip_event.h"
#include "scip/scip_general.h"
#include "scip/scip_mem.h"
#include "scip/scip_message.h"
#include "scip/scip_nlp.h"
#include "scip/scip_numerics.h"
#include "scip/scip_param.h"
#include "scip/scip_pricer.h"
#include "scip/scip_sol.h"
#include "scip/scip_solve.h"
#include "scip/scip_solvingstats.h"
#include "scip/scip_table.h"
#include "scip/scip_timing.h"
#include "scip/scip_tree.h"
#include "scip/type_disp.h"
#include "scip/type_event.h"
#include "scip/type_message.h"
#include "scip/type_misc.h"
#include "scip/type_retcode.h"
#include "scip/type_stat.h"
#include "scip/type_table.h"
Go to the source code of this file.
Data Structures | |
struct | DoubleExpSmooth |
struct | TreeProfileStats |
struct | TreeProfile |
struct | TreeData |
struct | SubtreeSumGap |
struct | TimeSeries |
struct | NodeInfo |
struct | SCIP_RegForest |
Typedefs | |
typedef enum RestartPolicy | RESTARTPOLICY |
typedef struct DoubleExpSmooth | DOUBLEEXPSMOOTH |
typedef struct TimeSeries | TIMESERIES |
typedef struct TreeData | TREEDATA |
typedef enum TsPos | TSPOS |
typedef struct SCIP_RegForest | SCIP_REGFOREST |
typedef struct TreeProfileStats | TREEPROFILESTATS |
typedef struct TreeProfile | TREEPROFILE |
typedef struct SubtreeSumGap | SUBTREESUMGAP |
typedef struct NodeInfo | NODEINFO |
Enumerations | |
enum | RestartPolicy { RESTARTPOLICY_NEVER = 0, RESTARTPOLICY_ALWAYS = 1, RESTARTPOLICY_ESTIMATION = 2, RESTARTPOLICY_COMPLETION = 3 } |
enum | TsPos { TSPOS_NONE = -1, TSPOS_GAP = 0, TSPOS_TREEWEIGHT = 1, TSPOS_LFREQ = 2, TSPOS_SSG = 3, TSPOS_OPEN = 4 } |
Macro Definition Documentation
◆ EVENTHDLR_NAME
#define EVENTHDLR_NAME "estim" |
Definition at line 73 of file event_estim.c.
◆ EVENTHDLR_DESC
#define EVENTHDLR_DESC "event handler for tree size estimation and restarts" |
Definition at line 74 of file event_estim.c.
◆ EVENTTYPE_ESTIM
#define EVENTTYPE_ESTIM (SCIP_EVENTTYPE_NODEDELETE | SCIP_EVENTTYPE_NODEBRANCHED) |
Definition at line 75 of file event_estim.c.
◆ RESTARTPOLICY_CHAR_NEVER
#define RESTARTPOLICY_CHAR_NEVER 'n' |
Definition at line 92 of file event_estim.c.
Referenced by getRestartPolicy().
◆ RESTARTPOLICY_CHAR_ALWAYS
#define RESTARTPOLICY_CHAR_ALWAYS 'a' |
Definition at line 93 of file event_estim.c.
Referenced by getRestartPolicy().
◆ RESTARTPOLICY_CHAR_COMPLETION
#define RESTARTPOLICY_CHAR_COMPLETION 'c' |
Definition at line 94 of file event_estim.c.
Referenced by getRestartPolicy().
◆ RESTARTPOLICY_CHAR_ESTIMATION
#define RESTARTPOLICY_CHAR_ESTIMATION 'e' |
Definition at line 95 of file event_estim.c.
Referenced by getRestartPolicy().
◆ DES_USETRENDINLEVEL
#define DES_USETRENDINLEVEL TRUE |
Should the trend be used in the level update?
Definition at line 97 of file event_estim.c.
Referenced by doubleExpSmoothInit().
◆ TABLE_NAME
#define TABLE_NAME "estim" |
Definition at line 100 of file event_estim.c.
◆ TABLE_DESC
#define TABLE_DESC "tree size estimations statistics table" |
Definition at line 101 of file event_estim.c.
◆ TABLE_POSITION
#define TABLE_POSITION 18500 |
the position of the statistics table
Definition at line 102 of file event_estim.c.
◆ TABLE_EARLIEST_STAGE
#define TABLE_EARLIEST_STAGE SCIP_STAGE_INIT |
output of the statistics table is only printed from this stage onwards
Definition at line 103 of file event_estim.c.
◆ DISP_NAME
#define DISP_NAME "completed" |
Definition at line 106 of file event_estim.c.
◆ DISP_DESC
#define DISP_DESC "completion of search in percent (based on tree size estimation)" |
Definition at line 107 of file event_estim.c.
◆ DISP_HEADER
#define DISP_HEADER "compl." |
Definition at line 108 of file event_estim.c.
◆ DISP_WIDTH
#define DISP_WIDTH 8 |
the width of the display column
Definition at line 109 of file event_estim.c.
◆ DISP_PRIORITY
#define DISP_PRIORITY 110000 |
the priority of the display column
Definition at line 110 of file event_estim.c.
◆ DISP_POSITION
#define DISP_POSITION 30100 |
the relative position of the display column
Definition at line 111 of file event_estim.c.
◆ DISP_STRIPLINE
#define DISP_STRIPLINE TRUE |
the default for whether the display column should be separated with a line from its right neighbor
Definition at line 112 of file event_estim.c.
◆ INITIALSIZE
#define INITIALSIZE 100 |
Definition at line 115 of file event_estim.c.
Referenced by subtreeSumGapCreate().
◆ SESCOEFF
#define SESCOEFF 0.75 |
coefficient of single exponential smoothing of estimation
Definition at line 116 of file event_estim.c.
Referenced by timeSeriesUpdateSmoothEstimation().
◆ DES_ALPHA_TREEWEIGHT
#define DES_ALPHA_TREEWEIGHT 0.65 |
Definition at line 119 of file event_estim.c.
Referenced by includeTimeseries().
◆ DES_BETA_TREEWEIGHT
#define DES_BETA_TREEWEIGHT 0.15 |
Definition at line 120 of file event_estim.c.
Referenced by includeTimeseries().
◆ DES_ALPHA_GAP
#define DES_ALPHA_GAP 0.6 |
Definition at line 122 of file event_estim.c.
Referenced by includeTimeseries().
◆ DES_BETA_GAP
#define DES_BETA_GAP 0.15 |
Definition at line 123 of file event_estim.c.
Referenced by includeTimeseries().
◆ DES_ALPHA_LEAFFREQUENCY
#define DES_ALPHA_LEAFFREQUENCY 0.3 |
Definition at line 125 of file event_estim.c.
Referenced by includeTimeseries().
◆ DES_BETA_LEAFFREQUENCY
#define DES_BETA_LEAFFREQUENCY 0.33 |
Definition at line 126 of file event_estim.c.
Referenced by includeTimeseries().
◆ DES_ALPHA_SSG
#define DES_ALPHA_SSG 0.6 |
Definition at line 128 of file event_estim.c.
Referenced by includeTimeseries().
◆ DES_BETA_SSG
#define DES_BETA_SSG 0.15 |
Definition at line 129 of file event_estim.c.
Referenced by includeTimeseries().
◆ DES_ALPHA_OPENNODES
#define DES_ALPHA_OPENNODES 0.6 |
Definition at line 131 of file event_estim.c.
Referenced by includeTimeseries().
◆ DES_BETA_OPENNODES
#define DES_BETA_OPENNODES 0.15 |
Definition at line 132 of file event_estim.c.
Referenced by includeTimeseries().
◆ MAX_REGFORESTSIZE
#define MAX_REGFORESTSIZE 10000000 |
size limit (number of nodes) for regression forest
Definition at line 134 of file event_estim.c.
Referenced by SCIPregForestFromFile().
◆ COMPLETIONTYPE_AUTO
#define COMPLETIONTYPE_AUTO 'a' |
automatic (regression forest if available, else monotone regression on binary and SSG on nonbinary trees)
Definition at line 139 of file event_estim.c.
Referenced by getSearchCompletion().
◆ COMPLETIONTYPE_REGFOREST
#define COMPLETIONTYPE_REGFOREST 'r' |
regression forest (must be provided by user)
Definition at line 140 of file event_estim.c.
Referenced by getSearchCompletion().
◆ COMPLETIONTYPE_MONOREG
#define COMPLETIONTYPE_MONOREG 'm' |
monotone regression (using tree weight and SSG)
Definition at line 141 of file event_estim.c.
Referenced by getSearchCompletion().
◆ COMPLETIONTYPE_TREEWEIGHT
#define COMPLETIONTYPE_TREEWEIGHT 'w' |
use tree weight value as approximation of search tree completion
Definition at line 142 of file event_estim.c.
Referenced by getSearchCompletion().
◆ COMPLETIONTYPE_SSG
#define COMPLETIONTYPE_SSG 's' |
use SSG value as approximation of search tree completion
Definition at line 143 of file event_estim.c.
Referenced by getSearchCompletion().
◆ COMPLETIONTYPE_GAP
#define COMPLETIONTYPE_GAP 'g' |
use gap value as approximation of search tree completion
Definition at line 144 of file event_estim.c.
Referenced by getSearchCompletion().
◆ ESTIMMETHOD_COMPL
#define ESTIMMETHOD_COMPL 'c' |
estimation based on projection of current search completion
Definition at line 148 of file event_estim.c.
◆ ESTIMMETHOD_WBE
#define ESTIMMETHOD_WBE 'b' |
weighted backtrack estimation
Definition at line 149 of file event_estim.c.
◆ ESTIMMETHOD_ENSMBL
#define ESTIMMETHOD_ENSMBL 'e' |
estimation based on an ensemble of the individual estimations
Definition at line 150 of file event_estim.c.
◆ ESTIMMETHOD_GAP
#define ESTIMMETHOD_GAP 'g' |
estimation based on double exponential smoothing for open nodes
Definition at line 151 of file event_estim.c.
◆ ESTIMMETHOD_LFREQ
#define ESTIMMETHOD_LFREQ 'l' |
estimation based on double exponential smoothing for leaf frequency
Definition at line 152 of file event_estim.c.
◆ ESTIMMETHOD_OPEN
#define ESTIMMETHOD_OPEN 'o' |
estimation based on double exponential smoothing for open nodes
Definition at line 153 of file event_estim.c.
◆ ESTIMMETHOD_SSG
#define ESTIMMETHOD_SSG 's' |
estimation based on double exponential smoothing for sum of subtree gaps
Definition at line 154 of file event_estim.c.
◆ ESTIMMETHOD_TPROF
#define ESTIMMETHOD_TPROF 't' |
estimation based on tree profile method
Definition at line 155 of file event_estim.c.
◆ ESTIMMETHOD_TREEWEIGHT
#define ESTIMMETHOD_TREEWEIGHT 'w' |
estimation based on double exponential smoothing for tree weight
Definition at line 156 of file event_estim.c.
◆ ESTIMMETHODS
#define ESTIMMETHODS "bceglostw" |
Definition at line 158 of file event_estim.c.
◆ TREEPROFILE_MINSIZE
#define TREEPROFILE_MINSIZE 512 |
minimum size (depth) that tree profile can hold
Definition at line 161 of file event_estim.c.
Referenced by createTreeProfile().
◆ SSG_STARTPRIMBOUND
#define SSG_STARTPRIMBOUND SCIP_INVALID |
initial value of primal bound used within SSG
Definition at line 162 of file event_estim.c.
Referenced by getSearchCompletion(), and subtreeSumGapReset().
◆ NTIMESERIES
#define NTIMESERIES 5 |
Definition at line 191 of file event_estim.c.
Referenced by freeTimeSeries(), getEnsembleEstimation(), printReport(), and updateTimeseries().
◆ DEFAULT_USELEAFTS
#define DEFAULT_USELEAFTS TRUE |
Use leaf nodes as basic observations for time series, or all nodes?
Definition at line 234 of file event_estim.c.
◆ DEFAULT_REPORTFREQ
#define DEFAULT_REPORTFREQ -1 |
report frequency on estimation: -1: never, 0: always, k >= 1: k times evenly during search
Definition at line 235 of file event_estim.c.
◆ DEFAULT_REGFORESTFILENAME
#define DEFAULT_REGFORESTFILENAME "-" |
default file name of user regression forest in RFCSV format
Definition at line 236 of file event_estim.c.
◆ DEFAULT_COEFMONOWEIGHT
#define DEFAULT_COEFMONOWEIGHT 0.3667 |
coefficient of tree weight in monotone approximation of search completion
Definition at line 237 of file event_estim.c.
◆ DEFAULT_COEFMONOSSG
#define DEFAULT_COEFMONOSSG 0.6333 |
coefficient of 1 - SSG in monotone approximation of search completion
Definition at line 238 of file event_estim.c.
◆ DEFAULT_COMPLETIONTYPE
#define DEFAULT_COMPLETIONTYPE COMPLETIONTYPE_AUTO |
default computation of search tree completion
Definition at line 239 of file event_estim.c.
◆ DEFAULT_ESTIMMETHOD
#define DEFAULT_ESTIMMETHOD ESTIMMETHOD_TREEWEIGHT |
default tree size estimation method: (c)ompletion, (e)nsemble, time series forecasts on either (g)ap, (l)eaf frequency, (o)open nodes, tree (w)eight, (s)sg, or (t)ree profile or w(b)e
Definition at line 240 of file event_estim.c.
◆ DEFAULT_TREEPROFILE_ENABLED
#define DEFAULT_TREEPROFILE_ENABLED FALSE |
Should the event handler collect data?
Definition at line 245 of file event_estim.c.
◆ DEFAULT_TREEPROFILE_MINNODESPERDEPTH
#define DEFAULT_TREEPROFILE_MINNODESPERDEPTH 20.0 |
minimum average number of nodes at each depth before producing estimations
Definition at line 246 of file event_estim.c.
◆ DEFAULT_RESTARTPOLICY
#define DEFAULT_RESTARTPOLICY 'e' |
default restart policy: (a)lways, (c)ompletion, (e)stimation, (n)ever
Definition at line 247 of file event_estim.c.
◆ DEFAULT_RESTARTLIMIT
#define DEFAULT_RESTARTLIMIT 1 |
default restart limit
Definition at line 248 of file event_estim.c.
◆ DEFAULT_MINNODES
#define DEFAULT_MINNODES 1000L |
minimum number of nodes before restart
Definition at line 249 of file event_estim.c.
◆ DEFAULT_COUNTONLYLEAVES
#define DEFAULT_COUNTONLYLEAVES FALSE |
should only leaves count for the minnodes parameter?
Definition at line 250 of file event_estim.c.
◆ DEFAULT_RESTARTFACTOR
#define DEFAULT_RESTARTFACTOR 50.0 |
factor by which the estimated number of nodes should exceed the current number of nodes
Definition at line 251 of file event_estim.c.
◆ DEFAULT_RESTARTNONLINEAR
#define DEFAULT_RESTARTNONLINEAR FALSE |
whether to apply a restart when nonlinear constraints are present
Definition at line 252 of file event_estim.c.
◆ DEFAULT_RESTARTACTPRICERS
#define DEFAULT_RESTARTACTPRICERS FALSE |
whether to apply a restart when active pricers are used
Definition at line 253 of file event_estim.c.
◆ DEFAULT_HITCOUNTERLIM
#define DEFAULT_HITCOUNTERLIM 50 |
limit on the number of successive samples to really trigger a restart
Definition at line 254 of file event_estim.c.
◆ DEFAULT_SSG_NMAXSUBTREES
#define DEFAULT_SSG_NMAXSUBTREES -1 |
the maximum number of individual SSG subtrees; the old split is kept if a new split exceeds this number of subtrees ; -1: no limit
Definition at line 255 of file event_estim.c.
◆ DEFAULT_SSG_NMINNODESLASTSPLIT
#define DEFAULT_SSG_NMINNODESLASTSPLIT 0L |
minimum number of nodes to process between two consecutive SSG splits
Definition at line 258 of file event_estim.c.
◆ DECL_TIMESERIESUPDATE
#define DECL_TIMESERIESUPDATE | ( | x | ) |
update callback of time series
Definition at line 323 of file event_estim.c.
Referenced by getEstimCompletion().
Typedef Documentation
◆ RESTARTPOLICY
typedef enum RestartPolicy RESTARTPOLICY |
Definition at line 90 of file event_estim.c.
◆ DOUBLEEXPSMOOTH
typedef struct DoubleExpSmooth DOUBLEEXPSMOOTH |
Definition at line 175 of file event_estim.c.
◆ TIMESERIES
typedef struct TimeSeries TIMESERIES |
time series data structure for leaf time series
These time series are the basic ingredient for tree size estimation via forecasting.
This general class represents concrete time series such as the closed gap, tree weight, and leaf frequency. Through callbacks for data (de-)initialization and value queries, it provides a common interface to which double exponential smoothing or window forecasts can be applied.
Definition at line 185 of file event_estim.c.
◆ TREEDATA
data structure for convenient access of tree information
Definition at line 188 of file event_estim.c.
◆ TSPOS
Definition at line 204 of file event_estim.c.
◆ SCIP_REGFOREST
typedef struct SCIP_RegForest SCIP_REGFOREST |
regression forest data structure
Definition at line 207 of file event_estim.c.
◆ TREEPROFILESTATS
typedef struct TreeProfileStats TREEPROFILESTATS |
Definition at line 218 of file event_estim.c.
◆ TREEPROFILE
typedef struct TreeProfile TREEPROFILE |
Definition at line 231 of file event_estim.c.
◆ SUBTREESUMGAP
typedef struct SubtreeSumGap SUBTREESUMGAP |
Definition at line 295 of file event_estim.c.
◆ NODEINFO
Definition at line 357 of file event_estim.c.
Enumeration Type Documentation
◆ RestartPolicy
enum RestartPolicy |
enumerator for available restart policies
Definition at line 82 of file event_estim.c.
◆ TsPos
enum TsPos |
time series position in event handler time series array
Definition at line 194 of file event_estim.c.
Function Documentation
◆ real2String()
|
static |
convert number to string and treat SCIP_INVALID as '-'
- Parameters
-
num number to convert to string buf string buffer digits number of decimal digits
Definition at line 376 of file event_estim.c.
References SCIP_INVALID, SCIP_MAXSTRLEN, SCIPregForestFree(), and SCIPsnprintf().
Referenced by printReport().
◆ SCIPregForestFree()
|
static |
free a regression forest data structure
- Parameters
-
regforest regression forest data structure
Definition at line 394 of file event_estim.c.
Referenced by real2String().
◆ SCIPregForestPredict()
|
static |
make a prediction with regression forest
- Parameters
-
regforest regression forest data structure datapoint a data point that matches the dimension of this regression forest
Definition at line 416 of file event_estim.c.
References SCIP_RegForest::child, SCIP_RegForest::dim, SCIP_RegForest::nbegin, SCIP_RegForest::ntrees, NULL, SCIP_Real, SCIPdebugMessage, SCIPregForestFromFile(), SCIP_RegForest::splitidx, and SCIP_RegForest::value.
Referenced by getSearchCompletion().
◆ SCIPregForestFromFile()
|
static |
read a regression forest from an rfcsv file
TODO improve this parser to better capture wrong user input, e.g., if the dimension is wrong
- Parameters
-
regforest regression forest data structure filename name of file with the regression forest data
Definition at line 463 of file event_estim.c.
References BMSallocMemory, BMSallocMemoryArray, SCIP_RegForest::child, SCIP_RegForest::dim, FALSE, isEqualTreeProfileStats(), MAX_REGFORESTSIZE, SCIP_RegForest::nbegin, SCIP_RegForest::ntrees, NULL, SCIP_ALLOC, SCIP_Bool, SCIP_INVALIDDATA, SCIP_MAXSTRLEN, SCIP_NOFILE, SCIP_OKAY, SCIPdebugMessage, SCIPerrorMessage, SCIPfclose(), SCIPfeof(), SCIPfgets(), SCIPfopen(), SCIPsnprintf(), SCIPstrToRealValue(), SCIP_RegForest::size, SCIP_RegForest::splitidx, TRUE, and SCIP_RegForest::value.
Referenced by SCIPregForestPredict().
◆ isEqualTreeProfileStats()
|
static |
compare two tree profile statistics for equality
- Parameters
-
stats first tree profile statistics other other tree profile statistics
Definition at line 589 of file event_estim.c.
References copyTreeProfileStats(), TreeProfileStats::lastfulldepth, TreeProfileStats::maxdepth, TreeProfileStats::maxwaistdepth, TreeProfileStats::minwaistdepth, and NULL.
Referenced by predictTotalSizeTreeProfile(), and SCIPregForestFromFile().
◆ copyTreeProfileStats()
|
static |
copy source tree profile into destination
- Parameters
-
dest destination tree profile statistics src source tree profile statistics
Definition at line 605 of file event_estim.c.
References TreeProfileStats::lastfulldepth, TreeProfileStats::maxdepth, TreeProfileStats::maxwaistdepth, TreeProfileStats::minwaistdepth, NULL, and resetTreeProfileStats().
Referenced by isEqualTreeProfileStats(), and predictTotalSizeTreeProfile().
◆ resetTreeProfileStats()
|
static |
reset tree profile statistics
- Parameters
-
treeprofilestats tree profile statistics
Definition at line 621 of file event_estim.c.
Referenced by copyTreeProfileStats(), and createTreeProfile().
◆ extendMemoryTreeProfile()
|
static |
extend tree profile to deeper tree
- Parameters
-
scip SCIP data structure treeprofile tree profile data structure mindepth minimum depth that the tree profile should hold
Definition at line 633 of file event_estim.c.
References BMSclearMemoryArray, createTreeProfile(), NULL, TreeProfile::profile, TreeProfile::profilesize, SCIP_CALL, SCIP_Longint, SCIP_OKAY, SCIPallocClearMemoryArray, SCIPcalcMemGrowSize(), and SCIPreallocMemoryArray.
Referenced by createTreeProfile(), and updateTreeProfile().
◆ createTreeProfile()
|
static |
create a tree profile
- Parameters
-
scip SCIP data structure treeprofile pointer to store tree profile data structure
Definition at line 668 of file event_estim.c.
References extendMemoryTreeProfile(), freeTreeProfile(), NULL, resetTreeProfileStats(), SCIP_CALL, SCIP_OKAY, SCIPallocMemory, and TREEPROFILE_MINSIZE.
Referenced by extendMemoryTreeProfile().
◆ freeTreeProfile()
|
static |
free a tree profile
- Parameters
-
scip SCIP data structure treeprofile pointer to tree profile data structure
Definition at line 692 of file event_estim.c.
References NULL, SCIPfreeMemory, SCIPfreeMemoryArray, and updateTreeProfile().
Referenced by createTreeProfile().
◆ updateTreeProfile()
|
static |
update tree profile
- Parameters
-
scip SCIP data structure treeprofile tree profile data structure node node that should be added to the profile
Definition at line 712 of file event_estim.c.
References extendMemoryTreeProfile(), TreeProfileStats::lastfulldepth, TreeProfileStats::maxdepth, TreeProfileStats::maxwaistdepth, TreeProfileStats::minwaistdepth, NULL, predictTotalSizeTreeProfile(), TreeProfile::profile, SCIP_CALL, SCIP_Longint, SCIP_OKAY, SCIP_Real, SCIPdebugMsg, SCIPnodeGetDepth(), and TreeProfile::stats.
Referenced by freeTreeProfile().
◆ predictTotalSizeTreeProfile()
|
static |
make a prediction of the total tree size based on the current tree profile
- Parameters
-
scip SCIP data structure treeprofile tree profile data structure minnodesperdepth minimum number of average nodes per depth to make a prediction
Definition at line 778 of file event_estim.c.
References copyTreeProfileStats(), isEqualTreeProfileStats(), TreeProfile::lastestimate, TreeProfile::lastestimatestats, TreeProfileStats::lastfulldepth, TreeProfileStats::maxdepth, TreeProfileStats::maxwaistdepth, TreeProfileStats::minwaistdepth, NULL, SCIP_Real, SCIPdebugMsg, SCIPgetNNodes(), TreeProfile::stats, and subtreeSumGapDelSubtrees().
Referenced by printReport(), and updateTreeProfile().
◆ subtreeSumGapDelSubtrees()
|
static |
clean subtrees stored as priority queues
- Parameters
-
scip SCIP data structure ssg subtree sum gap data structure
Definition at line 850 of file event_estim.c.
References SubtreeSumGap::nsubtrees, NULL, SCIPfreeBlockMemory, SCIPfreeBlockMemoryArray, SCIPpqueueElems(), SCIPpqueueFree(), SCIPpqueueNElems(), SubtreeSumGap::subtreepqueues, and subtreeSumGapReset().
Referenced by predictTotalSizeTreeProfile(), subtreeSumGapFree(), subtreeSumGapReset(), and subtreeSumGapSplit().
◆ subtreeSumGapReset()
|
static |
reset subtree sum gap
- Parameters
-
scip SCIP data structure ssg subtree sum gap data structure
Definition at line 890 of file event_estim.c.
References SubtreeSumGap::nodelastsplit, SubtreeSumGap::nodes2info, SubtreeSumGap::nsubtrees, NULL, SubtreeSumGap::pblastsplit, SubtreeSumGap::scalingfactor, SCIP_CALL, SCIP_OKAY, SCIPhashmapRemoveAll(), SSG_STARTPRIMBOUND, SubtreeSumGap::subtreepqueues, subtreeSumGapCreate(), subtreeSumGapDelSubtrees(), and SubtreeSumGap::value.
Referenced by resetTreeData(), subtreeSumGapCreate(), and subtreeSumGapDelSubtrees().
◆ subtreeSumGapCreate()
|
static |
create a subtree sum gap
- Parameters
-
scip SCIP data structure ssg pointer to store subtree sum gap data structure
Definition at line 914 of file event_estim.c.
References INITIALSIZE, NULL, SCIP_CALL, SCIP_OKAY, SCIPallocMemory, SCIPblkmem(), SCIPhashmapCreate(), subtreeSumGapFree(), and subtreeSumGapReset().
Referenced by createTreeData(), and subtreeSumGapReset().
◆ subtreeSumGapFree()
|
static |
free a subtree sum gap
- Parameters
-
scip SCIP data structure ssg pointer to store subtree sum gap data structure
Definition at line 937 of file event_estim.c.
References NULL, SCIP_DECL_SORTPTRCOMP(), SCIPfreeMemory, SCIPhashmapFree(), and subtreeSumGapDelSubtrees().
Referenced by freeTreeData(), and subtreeSumGapCreate().
◆ SCIP_DECL_SORTPTRCOMP()
|
static |
compare two node infos by comparing their lower bound
Definition at line 955 of file event_estim.c.
Referenced by subtreeSumGapFree().
◆ SCIP_DECL_PQUEUEELEMCHGPOS()
|
static |
position change callback of element in priority queue
Definition at line 970 of file event_estim.c.
◆ subtreeSumGapStoreNode()
|
static |
store node in SSG data structure
- Parameters
-
scip SCIP data structure ssg subtree sum gap data structure node node that should be stored subtreeidx subtree index of that node
Definition at line 980 of file event_estim.c.
References NodeInfo::lowerbound, NodeInfo::node, SubtreeSumGap::nodes2info, NULL, NodeInfo::pos, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPallocBlockMemory, SCIPdebugMsg, SCIPhashmapExists(), SCIPhashmapInsert(), SCIPnodeGetLowerbound(), SCIPnodeGetNumber(), SCIPpqueueCreate(), SCIPpqueueElems(), SCIPpqueueInsert(), SCIPpqueueNElems(), NodeInfo::subtreeidx, SubtreeSumGap::subtreepqueues, and subtreeSumGapSplit().
Referenced by subtreeSumGapInsertChildren(), and subtreeSumGapSplit().
◆ subtreeSumGapSplit()
|
static |
split the open nodes of the current tree
- Parameters
-
scip SCIP data structure ssg subtree sum gap data structure addfocusnode should the focus node be a subtree, too?
Definition at line 1029 of file event_estim.c.
References calcGap(), DoubleExpSmooth::n, nnodes, SubtreeSumGap::nodes2info, SubtreeSumGap::nsubtrees, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPallocClearBlockMemoryArray, SCIPdebugMsg, SCIPgetFocusNode(), SCIPgetOpenNodesData(), SCIPhashmapRemoveAll(), SubtreeSumGap::subtreepqueues, subtreeSumGapDelSubtrees(), and subtreeSumGapStoreNode().
Referenced by subtreeSumGapStoreNode(), and subtreeSumGapUpdate().
◆ calcGap()
compute a gap between a lower bound and the current upper bound
- Parameters
-
scip SCIP data structure lowerbound lower bound value
Definition at line 1097 of file event_estim.c.
References MAX, REALABS, SCIP_Real, SCIPgetPrimalbound(), SCIPgetUpperbound(), SCIPisEQ(), SCIPisInfinity(), SCIPretransformObj(), and subtreeSumGapRemoveNode().
Referenced by subtreeSumGapComputeFromScratchEfficiently(), subtreeSumGapInsertChildren(), subtreeSumGapRemoveNode(), and subtreeSumGapSplit().
◆ subtreeSumGapRemoveNode()
|
static |
remove node from the subtree sum gap (because it has been solved by branching or is a leaf)
- Parameters
-
scip SCIP data structure ssg subtree sum gap data structure node node that should be removed
Definition at line 1130 of file event_estim.c.
References calcGap(), NodeInfo::lowerbound, SubtreeSumGap::nodes2info, SubtreeSumGap::nsubtrees, NULL, NodeInfo::pos, SubtreeSumGap::scalingfactor, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPdebugMsg, SCIPfreeBlockMemory, SCIPhashmapGetImage(), SCIPhashmapRemove(), SCIPinfinity(), SCIPisLE(), SCIPnodeGetNumber(), SCIPnodeGetParent(), SCIPpqueueDelPos(), SCIPpqueueElems(), SCIPpqueueFirst(), SCIPpqueueNElems(), NodeInfo::subtreeidx, SubtreeSumGap::subtreepqueues, subtreeSumGapInsertChildren(), and SubtreeSumGap::value.
Referenced by calcGap(), subtreeSumGapInsertChildren(), and subtreeSumGapUpdate().
◆ subtreeSumGapInsertChildren()
|
static |
insert children into subtree sum gap
- Parameters
-
scip SCIP data structure ssg subtree sum gap data structure
Definition at line 1201 of file event_estim.c.
References calcGap(), NodeInfo::lowerbound, MAX, DoubleExpSmooth::n, SubtreeSumGap::nodes2info, SubtreeSumGap::nsubtrees, NULL, REALABS, SubtreeSumGap::scalingfactor, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPdebugMsg, SCIPfreeBufferArray, SCIPgetChildren(), SCIPgetFocusNode(), SCIPgetLowerbound(), SCIPgetOpenNodesData(), SCIPgetPrimalbound(), SCIPgetUpperbound(), SCIPhashmapExists(), SCIPhashmapGetImage(), SCIPinfinity(), SCIPisEQ(), SCIPisInfinity(), SCIPnodeGetNumber(), SCIPnodeGetParent(), SCIPretransformObj(), NodeInfo::subtreeidx, subtreeSumGapComputeFromScratchEfficiently(), subtreeSumGapRemoveNode(), subtreeSumGapStoreNode(), and SubtreeSumGap::value.
Referenced by subtreeSumGapRemoveNode(), and subtreeSumGapUpdate().
◆ subtreeSumGapComputeFromScratchEfficiently()
|
static |
compute subtree sum gap from scratch efficiently (linear effort in the number of subtrees)
- Parameters
-
scip SCIP data structure ssg subtree sum gap data structure updatescaling should the scaling factor be updated?
Definition at line 1366 of file event_estim.c.
References calcGap(), NodeInfo::lowerbound, MAX, SubtreeSumGap::nsubtrees, NULL, SubtreeSumGap::scalingfactor, SCIP_OKAY, SCIP_Real, SCIPgetLowerbound(), SCIPgetUpperbound(), SCIPisInfinity(), SCIPpqueueFirst(), SubtreeSumGap::subtreepqueues, subtreeSumGapUpdate(), and SubtreeSumGap::value.
Referenced by subtreeSumGapInsertChildren(), and subtreeSumGapUpdate().
◆ subtreeSumGapUpdate()
|
static |
update the subtree sum gap after a node event (branching or deletion of a node)
- Parameters
-
scip SCIP data structure ssg subtree sum gap data structure node the corresponding node nchildren number of children nsolvednodes number of solved nodes so far, used as a time stamp
Definition at line 1423 of file event_estim.c.
References FALSE, SubtreeSumGap::nmaxsubtrees, SubtreeSumGap::nminnodeslastsplit, SubtreeSumGap::nodelastsplit, SubtreeSumGap::nsubtrees, NULL, SubtreeSumGap::pblastsplit, resetTreeData(), SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_INITSOLVE, SCIP_STAGE_SOLVED, SCIPdebugMsg, SCIPgetFocusNode(), SCIPgetNChildren(), SCIPgetNLeaves(), SCIPgetNSiblings(), SCIPgetPrimalbound(), SCIPgetStage(), SCIPgetUpperbound(), SCIPisEQ(), SCIPisInfinity(), SCIPwasNodeLastBranchParent(), subtreeSumGapComputeFromScratchEfficiently(), subtreeSumGapInsertChildren(), subtreeSumGapRemoveNode(), subtreeSumGapSplit(), TRUE, and SubtreeSumGap::value.
Referenced by subtreeSumGapComputeFromScratchEfficiently(), and updateTreeData().
◆ resetTreeData()
|
static |
reset tree data
- Parameters
-
scip SCIP data structure treedata tree data
Definition at line 1505 of file event_estim.c.
References createTreeData(), TreeData::ninner, TreeData::nleaves, TreeData::nnodes, TreeData::nopen, TreeData::nvisited, SCIP_CALL, SCIP_OKAY, TreeData::ssg, subtreeSumGapReset(), and TreeData::weight.
Referenced by createTreeData(), and subtreeSumGapUpdate().
◆ createTreeData()
|
static |
create tree data structure
- Parameters
-
scip SCIP data structure treedata pointer to store tree data
Definition at line 1525 of file event_estim.c.
References freeTreeData(), NULL, resetTreeData(), SCIP_CALL, SCIP_OKAY, SCIPallocMemory, and subtreeSumGapCreate().
Referenced by resetTreeData().
◆ freeTreeData()
free tree data structure
- Parameters
-
scip SCIP data structure treedata pointer to tree data
Definition at line 1544 of file event_estim.c.
References NULL, SCIPfreeMemory, subtreeSumGapFree(), and updateTreeData().
Referenced by createTreeData().
◆ updateTreeData()
|
static |
update tree data structure after a node has been solved/is about to be deleted
- Parameters
-
scip SCIP data structure treedata tree data node the corresponding node nchildren the number of children
Definition at line 1560 of file event_estim.c.
References TreeData::ninner, TreeData::nleaves, TreeData::nnodes, TreeData::nopen, NULL, TreeData::nvisited, pow(), SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPisInRestart(), SCIPnodeGetDepth(), TreeData::ssg, subtreeSumGapUpdate(), treeDataGetWbe(), and TreeData::weight.
Referenced by freeTreeData().
◆ treeDataGetWbe()
get weighted backtrack estimation from this tree data
- Parameters
-
treedata tree data
Definition at line 1596 of file event_estim.c.
Referenced by getEnsembleEstimation(), printReport(), and updateTreeData().
◆ doubleExpSmoothReset()
|
static |
reset double exponential smoothing
- Parameters
-
des double exponential smoothing data structure initialvalue the initial value
Definition at line 1635 of file event_estim.c.
References doubleExpSmoothInit(), DoubleExpSmooth::initialvalue, DoubleExpSmooth::level, DoubleExpSmooth::n, SCIP_INVALID, SCIP_Real, and DoubleExpSmooth::trend.
◆ doubleExpSmoothInit()
|
static |
initialize a double exponential smoothing data structure
- Parameters
-
des double exponential smoothing data structure x1 the first sample value
Definition at line 1648 of file event_estim.c.
References DES_USETRENDINLEVEL, doubleExpSmoothUpdate(), DoubleExpSmooth::initialvalue, DoubleExpSmooth::level, DoubleExpSmooth::n, NULL, SCIP_Real, DoubleExpSmooth::trend, and DoubleExpSmooth::usetrendinlevel.
Referenced by doubleExpSmoothReset(), and doubleExpSmoothUpdate().
◆ doubleExpSmoothUpdate()
|
static |
update a double exponential smoothing data structure
- Parameters
-
des double exponential smoothing data structure xnew new sample value
Definition at line 1666 of file event_estim.c.
References DoubleExpSmooth::alpha, DoubleExpSmooth::beta, doubleExpSmoothGetTrend(), doubleExpSmoothInit(), DoubleExpSmooth::level, DoubleExpSmooth::n, SCIP_Real, DoubleExpSmooth::trend, and DoubleExpSmooth::usetrendinlevel.
Referenced by doubleExpSmoothInit(), and timeSeriesUpdate().
◆ doubleExpSmoothGetTrend()
|
static |
get the current trend (slope) computed by this double exponential smoothing
- Parameters
-
des double exponential smoothing data structure
Definition at line 1688 of file event_estim.c.
Referenced by doubleExpSmoothUpdate(), getSearchCompletion(), printReport(), and timeSeriesEstimate().
◆ timeSeriesReset()
|
static |
reset time series
- Parameters
-
timeseries pointer to store time series
Definition at line 1702 of file event_estim.c.
Referenced by resetTimeSeries(), and timeSeriesCreate().
◆ timeSeriesCreate()
|
static |
create a time series object
- Parameters
-
scip SCIP data structure timeseries pointer to store time series name name of this time series targetvalue target value of this time series initialvalue the initial value of time series alpha alpha parameter (level weight) for double exponential smoothing beta beta parameter (level weight) for double exponential smoothing
Definition at line 1717 of file event_estim.c.
References DoubleExpSmooth::alpha, DoubleExpSmooth::beta, BMSduplicateMemoryArray, TimeSeries::des, TimeSeries::estimation, DoubleExpSmooth::initialvalue, TimeSeries::initialvalue, TimeSeries::name, NULL, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPallocMemory, SCIPallocMemoryArray, SCIPdebugMsg, TimeSeries::targetvalue, timeSeriesFree(), timeSeriesReset(), TimeSeries::vals, and TimeSeries::valssize.
Referenced by includeTimeseries().
◆ timeSeriesFree()
|
static |
free a time series
- Parameters
-
scip SCIP data structure timeseries pointer to time series
Definition at line 1766 of file event_estim.c.
References BMSfreeMemoryArray, NULL, SCIP_Real, SCIPfreeMemory, SCIPfreeMemoryArray, and timeSeriesGetValue().
Referenced by freeTimeSeries(), and timeSeriesCreate().
◆ timeSeriesGetValue()
|
static |
get current value of time series
- Parameters
-
timeseries time series
Definition at line 1786 of file event_estim.c.
Referenced by getSearchCompletion(), printReport(), timeSeriesEstimate(), timeSeriesFree(), and updateTimeseries().
◆ timeSeriesGetTargetValue()
|
static |
get target value (which this time series reaches at the end of the solution process)
- Parameters
-
timeseries time series
Definition at line 1797 of file event_estim.c.
Referenced by timeSeriesEstimate().
◆ timeSeriesGetResolution()
|
static |
get resolution of time series
- Parameters
-
timeseries time series
Definition at line 1806 of file event_estim.c.
Referenced by printReport(), and timeSeriesEstimate().
◆ timeSeriesEstimate()
|
static |
estimate tree size at which time series reaches target value
- Parameters
-
timeseries time series treedata tree data for fallback estimation
Definition at line 1815 of file event_estim.c.
References TimeSeries::des, doubleExpSmoothGetTrend(), EPSZ, TreeData::nnodes, TimeSeries::nobs, TimeSeries::nvals, TreeData::nvisited, SCIP_Real, timeSeriesGetResolution(), timeSeriesGetTargetValue(), timeSeriesGetValue(), timeSeriesUpdateSmoothEstimation(), DoubleExpSmooth::trend, and TimeSeries::useleafts.
Referenced by getEnsembleEstimation(), printReport(), and timeSeriesUpdate().
◆ timeSeriesUpdateSmoothEstimation()
|
static |
update time series smoothened estimation
- Parameters
-
timeseries time series estimation estimation value
Definition at line 1854 of file event_estim.c.
References SCIP_INVALID, SCIP_Real, SESCOEFF, TimeSeries::smoothestimation, and timeSeriesGetSmoothEstimation().
Referenced by timeSeriesEstimate(), and timeSeriesUpdate().
◆ timeSeriesGetSmoothEstimation()
|
static |
get smooth estimation of time series
- Parameters
-
timeseries time series
Definition at line 1870 of file event_estim.c.
Referenced by printReport(), and timeSeriesUpdateSmoothEstimation().
◆ timeSeriesResample()
|
static |
resample to lower resolution
- Parameters
-
timeseries time series
Definition at line 1879 of file event_estim.c.
Referenced by timeSeriesUpdate().
◆ timeSeriesUpdate()
|
static |
update time series
- Parameters
-
scip SCIP data structure timeseries time series treedata tree data isleaf are we at a leaf node?
Definition at line 1906 of file event_estim.c.
References TimeSeries::currentvalue, TimeSeries::des, doubleExpSmoothUpdate(), TimeSeries::estimation, TimeSeries::nobs, NULL, TimeSeries::nvals, TimeSeries::resolution, SCIP_CALL, SCIP_OKAY, SCIP_Real, timeSeriesEstimate(), timeSeriesGetName(), timeSeriesResample(), timeSeriesUpdateSmoothEstimation(), TimeSeries::useleafts, TimeSeries::vals, and TimeSeries::valssize.
Referenced by updateTimeseries().
◆ timeSeriesGetName()
|
static |
get name of time series
- Parameters
-
timeseries time series
Definition at line 1955 of file event_estim.c.
Referenced by printReport(), timeSeriesUpdate(), and updateTimeseries().
◆ resetTimeSeries()
|
static |
reset all time series
- Parameters
-
eventhdlrdata event handler data
Definition at line 1964 of file event_estim.c.
References freeTimeSeries(), NULL, timeSeriesReset(), and TimeSeries::useleafts.
◆ freeTimeSeries()
|
static |
free all time series
- Parameters
-
scip SCIP data structure eventhdlrdata event handler data
Definition at line 1987 of file event_estim.c.
References getEnsembleEstimation(), NTIMESERIES, NULL, SCIP_Real, and timeSeriesFree().
Referenced by resetTimeSeries().
◆ getEnsembleEstimation()
|
static |
get ensemble tree size estimation as a combination of the individual time series estimations
the coefficients have been computed based on a nonlinear fit on a broad set of publicly available MIP instances; please refer to the publication at the top of this file for further details.
- Parameters
-
eventhdlrdata event handler data
Definition at line 2009 of file event_estim.c.
References getSearchCompletion(), nnodes, TreeData::nnodes, NTIMESERIES, NULL, SCIP_Real, timeSeriesEstimate(), treeDataGetWbe(), TSPOS_GAP, TSPOS_LFREQ, TSPOS_OPEN, TSPOS_SSG, TSPOS_TREEWEIGHT, and TreeData::weight.
Referenced by freeTimeSeries().
◆ getSearchCompletion()
|
static |
get approximation of search tree completion depending on the selected method
- Parameters
-
eventhdlrdata event handler data completed pointer to store the search tree completion
Definition at line 2104 of file event_estim.c.
References COMPLETIONTYPE_AUTO, COMPLETIONTYPE_GAP, COMPLETIONTYPE_MONOREG, COMPLETIONTYPE_REGFOREST, COMPLETIONTYPE_SSG, COMPLETIONTYPE_TREEWEIGHT, doubleExpSmoothGetTrend(), getEstimCompletion(), NULL, SubtreeSumGap::pblastsplit, SCIP_Bool, SCIP_OKAY, SCIP_PARAMETERWRONGVAL, SCIP_Real, SCIPABORT, SCIPerrorMessage, SCIPregForestPredict(), TreeData::ssg, SSG_STARTPRIMBOUND, timeSeriesGetValue(), TSPOS_GAP, TSPOS_LFREQ, TSPOS_OPEN, TSPOS_SSG, TSPOS_TREEWEIGHT, SubtreeSumGap::value, and TreeData::weight.
Referenced by getEnsembleEstimation(), getEstimCompletion(), printReport(), and shouldApplyRestartCompletion().
◆ getEstimCompletion()
|
static |
tree size estimation based on search tree completion
- Parameters
-
scip SCIP data structure eventhdlrdata event handler data estim pointer to store the estimation value
Definition at line 2190 of file event_estim.c.
References DECL_TIMESERIESUPDATE, getSearchCompletion(), SCIP_CALL, SCIP_OKAY, SCIP_Real, and SCIPgetNNodes().
Referenced by getSearchCompletion().
◆ DECL_TIMESERIESUPDATE() [1/5]
|
static |
update callback at nodes
Definition at line 2212 of file event_estim.c.
◆ DECL_TIMESERIESUPDATE() [2/5]
|
static |
update callback at nodes
Definition at line 2253 of file event_estim.c.
◆ DECL_TIMESERIESUPDATE() [3/5]
|
static |
update callback at nodes
Definition at line 2262 of file event_estim.c.
◆ DECL_TIMESERIESUPDATE() [4/5]
|
static |
update callback at nodes
Definition at line 2274 of file event_estim.c.
References TreeData::nvisited.
◆ DECL_TIMESERIESUPDATE() [5/5]
|
static |
update callback at nodes
Definition at line 2286 of file event_estim.c.
◆ includeTimeseries()
|
static |
include time series to forecast into event handler
- Parameters
-
scip SCIP data structure eventhdlrdata event handler data
Definition at line 2298 of file event_estim.c.
References DES_ALPHA_GAP, DES_ALPHA_LEAFFREQUENCY, DES_ALPHA_OPENNODES, DES_ALPHA_SSG, DES_ALPHA_TREEWEIGHT, DES_BETA_GAP, DES_BETA_LEAFFREQUENCY, DES_BETA_OPENNODES, DES_BETA_SSG, DES_BETA_TREEWEIGHT, getRestartPolicy(), NULL, SCIP_CALL, SCIP_OKAY, timeSeriesCreate(), TSPOS_GAP, TSPOS_LFREQ, TSPOS_OPEN, TSPOS_SSG, and TSPOS_TREEWEIGHT.
◆ getRestartPolicy()
|
static |
get restartpolicy based on the value of the restart parameter
- Parameters
-
eventhdlrdata event handler data
Definition at line 2331 of file event_estim.c.
References isRestartApplicable(), RESTARTPOLICY_ALWAYS, RESTARTPOLICY_CHAR_ALWAYS, RESTARTPOLICY_CHAR_COMPLETION, RESTARTPOLICY_CHAR_ESTIMATION, RESTARTPOLICY_CHAR_NEVER, RESTARTPOLICY_COMPLETION, RESTARTPOLICY_ESTIMATION, RESTARTPOLICY_NEVER, SCIP_Bool, and SCIPerrorMessage.
Referenced by includeTimeseries(), and shouldApplyRestart().
◆ isRestartApplicable()
|
static |
check if a restart is applicable considering limit and threshold user parameters
- Parameters
-
scip SCIP data structure eventhdlrdata event handler data
Definition at line 2355 of file event_estim.c.
References FALSE, nnodes, SCIP_Bool, SCIP_Longint, SCIPgetNActivePricers(), SCIPgetSymmetryNGenerators(), SCIPisNLPConstructed(), SCIPisOrbitalfixingEnabled(), shouldApplyRestartCompletion(), and TRUE.
Referenced by getRestartPolicy().
◆ shouldApplyRestartCompletion()
|
static |
should a restart be applied based on the value of the selected completion method?
- Parameters
-
scip SCIP data structure eventhdlrdata event handler data
Definition at line 2392 of file event_estim.c.
References FALSE, getSearchCompletion(), NULL, SCIP_Bool, SCIP_CALL_ABORT, SCIP_Real, SCIP_VERBLEVEL_FULL, SCIPstatistic, SCIPverbMessage(), shouldApplyRestartEstimation(), and TRUE.
Referenced by isRestartApplicable(), and shouldApplyRestart().
◆ shouldApplyRestartEstimation()
|
static |
should a restart be applied based on the value of the selected completion method?
- Parameters
-
scip SCIP data structure eventhdlrdata event handler data
Definition at line 2418 of file event_estim.c.
References FALSE, NULL, SCIP_Bool, SCIP_Real, SCIP_VERBLEVEL_FULL, SCIPgetTreesizeEstimation(), SCIPstatistic, SCIPverbMessage(), shouldApplyRestart(), and TRUE.
Referenced by shouldApplyRestart(), and shouldApplyRestartCompletion().
◆ shouldApplyRestart()
|
static |
check if a restart should be performed based on the given restart policy
- Parameters
-
scip SCIP data structure eventhdlrdata event handler data
Definition at line 2455 of file event_estim.c.
References FALSE, getRestartPolicy(), RESTARTPOLICY_ALWAYS, RESTARTPOLICY_COMPLETION, RESTARTPOLICY_ESTIMATION, RESTARTPOLICY_NEVER, SCIP_Bool, shouldApplyRestartCompletion(), shouldApplyRestartEstimation(), TRUE, and updateTimeseries().
Referenced by shouldApplyRestartEstimation().
◆ updateTimeseries()
|
static |
update all time series
- Parameters
-
scip SCIP data structure eventhdlrdata event handler data treedata tree data isleaf are we at a leaf node?
Definition at line 2485 of file event_estim.c.
References NTIMESERIES, NULL, printReport(), SCIP_CALL, SCIP_OKAY, SCIPdebugMsg, timeSeriesGetName(), timeSeriesGetValue(), and timeSeriesUpdate().
Referenced by shouldApplyRestart().
◆ printReport()
|
static |
print a treesize estimation report into the string buffer
- Parameters
-
scip SCIP data structure eventhdlrdata event handler data strbuf string buffer reportnum report number, or 0 to omit number
Definition at line 2513 of file event_estim.c.
References TimeSeries::des, doubleExpSmoothGetTrend(), getSearchCompletion(), MAX, TreeData::ninner, TreeData::nleaves, TreeData::nnodes, TreeData::nopen, NTIMESERIES, NULL, TreeData::nvisited, predictTotalSizeTreeProfile(), real2String(), SCIP_CALL_ABORT, SCIP_DECL_EVENTCOPY(), SCIP_Longint, SCIP_MAXSTRLEN, SCIP_Real, SCIPgetSolvingTime(), SCIPgetTreesizeEstimation(), SCIPsnprintf(), timeSeriesEstimate(), timeSeriesGetName(), timeSeriesGetResolution(), timeSeriesGetSmoothEstimation(), timeSeriesGetValue(), treeDataGetWbe(), DoubleExpSmooth::trend, and TreeData::weight.
Referenced by updateTimeseries().
◆ SCIP_DECL_EVENTCOPY()
|
static |
copy method for event handler plugins (called when SCIP copies plugins)
Definition at line 2601 of file event_estim.c.
Referenced by printReport().
◆ SCIP_DECL_EVENTFREE()
|
static |
destructor of event handler to free user data (called when SCIP is exiting)
Definition at line 2612 of file event_estim.c.
◆ SCIP_DECL_EVENTINIT()
|
static |
initialization method of event handler (called after problem was transformed)
Definition at line 2630 of file event_estim.c.
◆ SCIP_DECL_EVENTEXIT()
|
static |
deinitialization method of event handler (called before transformed problem is freed)
Definition at line 2650 of file event_estim.c.
◆ SCIP_DECL_EVENTINITSOL()
|
static |
solving process initialization method of event handler (called when branch and bound process is about to begin)
Definition at line 2664 of file event_estim.c.
◆ SCIP_DECL_EVENTEXITSOL()
|
static |
solving process deinitialization method of event handler (called before branch and bound process data is freed)
Definition at line 2694 of file event_estim.c.
◆ SCIP_DECL_EVENTEXEC()
|
static |
execution method of event handler
Definition at line 2711 of file event_estim.c.
◆ SCIP_DECL_TABLEOUTPUT()
|
static |
output method of statistics table to output file stream 'file'
Definition at line 2814 of file event_estim.c.
◆ SCIP_DECL_DISPOUTPUT()
|
static |
output method of search tree completion display column to output file stream 'file'
Definition at line 2833 of file event_estim.c.
◆ SCIPincludeEventHdlrEstim()
SCIP_RETCODE SCIPincludeEventHdlrEstim | ( | SCIP * | scip | ) |
creates event handler for tree size estimation
- Parameters
-
scip SCIP data structure
Definition at line 2863 of file event_estim.c.
Referenced by SCIPincludeDefaultPlugins().
◆ SCIPgetTreesizeEstimation()
return an estimation of the final tree size
- Parameters
-
scip SCIP data structure
Definition at line 2979 of file event_estim.c.
Referenced by printReport(), and shouldApplyRestartEstimation().