46#define NODESEL_NAME "estimate"
47#define NODESEL_DESC "best estimate search"
48#define NODESEL_STDPRIORITY 200000
49#define NODESEL_MEMSAVEPRIORITY 100
56#define DEFAULT_MINPLUNGEDEPTH -1
57#define DEFAULT_MAXPLUNGEDEPTH -1
58#define DEFAULT_MAXPLUNGEQUOT 0.25
60#define DEFAULT_BESTNODEFREQ 10
61#define DEFAULT_BREADTHFIRSTDEPTH -1
62#define DEFAULT_PLUNGEOFFSET 0
66struct SCIP_NodeselData
76 int breadthfirstdepth;
168 bestnodefreq = (nodeseldata->bestnodefreq == 0 ? INT_MAX : nodeseldata->bestnodefreq);
175 nodeseldata->plungeoffset);
187 minplungedepth = nodeseldata->minplungedepth;
188 maxplungedepth = nodeseldata->maxplungedepth;
189 maxplungequot = nodeseldata->maxplungequot;
190 if( minplungedepth == -1 )
194 minplungedepth += 10;
195 if( maxplungedepth >= 0 )
196 minplungedepth =
MIN(minplungedepth, maxplungedepth);
198 if( maxplungedepth == -1 )
200 maxplungedepth =
MAX(maxplungedepth, minplungedepth);
204 if( plungedepth > maxplungedepth )
207 SCIPdebugMsg(
scip,
"plungedepth: [%d,%d], cur: %d -> abort plunging\n", minplungedepth, maxplungedepth, plungedepth);
230 cutoffbound = lowerbound + 0.2 * (cutoffbound - lowerbound);
233 if( plungedepth < minplungedepth )
238 maxbound = lowerbound + maxplungequot * (cutoffbound - lowerbound);
241 SCIPdebugMsg(
scip,
"plungedepth: [%d,%d], cur: %d, bounds: [%g,%g], maxbound: %g\n",
242 minplungedepth, maxplungedepth, plungedepth, lowerbound, cutoffbound, maxbound);
343 if( depth1 < depth2 )
345 else if( depth1 > depth2 )
378 nodeselSelectEstimate, nodeselCompEstimate, nodeseldata) );
387 "nodeselection/estimate/minplungedepth",
388 "minimal plunging depth, before new best node may be selected (-1 for dynamic setting)",
391 "nodeselection/estimate/maxplungedepth",
392 "maximal plunging depth, before new best node is forced to be selected (-1 for dynamic setting)",
395 "nodeselection/estimate/maxplungequot",
396 "maximal quotient (estimate - lowerbound)/(cutoffbound - lowerbound) where plunging is performed",
399 "nodeselection/estimate/bestnodefreq",
400 "frequency at which the best node instead of the best estimate is selected (0: never)",
403 "nodeselection/estimate/breadthfirstdepth",
404 "depth until breadth-first search is applied",
407 "nodeselection/estimate/plungeoffset",
408 "number of nodes before doing plunging the first time",
#define SCIP_STRINGEQ(name, reference, retcode)
#define SCIP_LONGINT_FORMAT
SCIP_RETCODE SCIPincludeNodeselEstimate(SCIP *scip)
SCIP_RETCODE SCIPaddIntParam(SCIP *scip, 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 SCIPaddRealParam(SCIP *scip, const char *name, const char *desc, SCIP_Real *valueptr, SCIP_Bool isadvanced, SCIP_Real defaultvalue, SCIP_Real minvalue, SCIP_Real maxvalue, SCIP_DECL_PARAMCHGD((*paramchgd)), SCIP_PARAMDATA *paramdata)
#define SCIPfreeBlockMemory(scip, ptr)
#define SCIPallocBlockMemory(scip, ptr)
SCIP_NODETYPE SCIPnodeGetType(SCIP_NODE *node)
SCIP_Real SCIPnodeGetLowerbound(SCIP_NODE *node)
SCIP_Real SCIPnodeGetEstimate(SCIP_NODE *node)
int SCIPnodeGetDepth(SCIP_NODE *node)
SCIP_RETCODE SCIPincludeNodeselBasic(SCIP *scip, SCIP_NODESEL **nodesel, const char *name, const char *desc, int stdpriority, int memsavepriority, SCIP_DECL_NODESELSELECT((*nodeselselect)), SCIP_DECL_NODESELCOMP((*nodeselcomp)), SCIP_NODESELDATA *nodeseldata)
void SCIPnodeselSetData(SCIP_NODESEL *nodesel, SCIP_NODESELDATA *nodeseldata)
SCIP_RETCODE SCIPsetNodeselFree(SCIP *scip, SCIP_NODESEL *nodesel,)
SCIP_NODESELDATA * SCIPnodeselGetData(SCIP_NODESEL *nodesel)
SCIP_RETCODE SCIPsetNodeselCopy(SCIP *scip, SCIP_NODESEL *nodesel,)
const char * SCIPnodeselGetName(SCIP_NODESEL *nodesel)
SCIP_Longint SCIPgetNSolsFound(SCIP *scip)
int SCIPgetMaxDepth(SCIP *scip)
SCIP_Longint SCIPgetNNodes(SCIP *scip)
SCIP_Longint SCIPgetNStrongbranchLPIterations(SCIP *scip)
SCIP_Real SCIPgetLowerbound(SCIP *scip)
SCIP_Longint SCIPgetNNodeLPIterations(SCIP *scip)
SCIP_Real SCIPgetCutoffbound(SCIP *scip)
SCIP_Real SCIPinfinity(SCIP *scip)
SCIP_Bool SCIPisInfinity(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisGT(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisEQ(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisLT(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_NODE * SCIPgetBestSibling(SCIP *scip)
SCIP_NODE * SCIPgetBestChild(SCIP *scip)
SCIP_NODE * SCIPgetPrioSibling(SCIP *scip)
int SCIPgetDepth(SCIP *scip)
SCIP_NODE * SCIPgetBestNode(SCIP *scip)
int SCIPgetPlungeDepth(SCIP *scip)
SCIP_NODE * SCIPgetBestboundNode(SCIP *scip)
SCIP_NODE * SCIPgetPrioChild(SCIP *scip)
assert(minobj< SCIPgetCutoffbound(scip))
#define NODESEL_MEMSAVEPRIORITY
#define NODESEL_STDPRIORITY
#define DEFAULT_MAXPLUNGEDEPTH
#define DEFAULT_BESTNODEFREQ
#define DEFAULT_PLUNGEOFFSET
#define DEFAULT_BREADTHFIRSTDEPTH
#define DEFAULT_MINPLUNGEDEPTH
#define DEFAULT_MAXPLUNGEQUOT
node selector for best estimate search
public methods for message output
public methods for node selectors
public methods for branch and bound tree
public methods for memory management
public methods for message handling
public methods for node selector plugins
public methods for numerical tolerances
public methods for SCIP parameter handling
public methods for querying solving statistics
public methods for the branch-and-bound tree
#define SCIP_DECL_NODESELCOMP(x)
struct SCIP_Nodesel SCIP_NODESEL
#define SCIP_DECL_NODESELCOPY(x)
#define SCIP_DECL_NODESELSELECT(x)
#define SCIP_DECL_NODESELFREE(x)
struct SCIP_NodeselData SCIP_NODESELDATA
enum SCIP_Retcode SCIP_RETCODE
struct SCIP_Node SCIP_NODE
enum SCIP_NodeType SCIP_NODETYPE