52 #define MAXREPROPMARK 511 79 assert(num <= tree->childrensize);
105 assert(num <= tree->pathsize);
118 assert(tree !=
NULL);
129 assert(num <= tree->pendingbdchgssize);
144 assert(elem1 !=
NULL);
145 assert(elem2 !=
NULL);
162 assert(fork !=
NULL);
178 assert(fork !=
NULL);
180 assert(blkmem !=
NULL);
201 assert(subroot !=
NULL);
206 SCIPdebugMessage(
"captured LPI state of subroot %p %d times -> new nlpistateref=%d\n",
218 assert(subroot !=
NULL);
220 assert(blkmem !=
NULL);
240 assert(node !=
NULL);
242 SCIPdebugMessage(
"capture %d times LPI state of node #%" SCIP_LONGINT_FORMAT
" at depth %d (current: %d)\n",
255 SCIPerrorMessage(
"node for capturing the LPI state is neither fork nor subroot\n");
269 assert(node !=
NULL);
271 SCIPdebugMessage(
"release LPI state of node #%" SCIP_LONGINT_FORMAT
" at depth %d (current: %d)\n",
281 SCIPerrorMessage(
"node for releasing the LPI state is neither fork nor subroot\n");
294 assert(probingnode !=
NULL);
298 (*probingnode)->lpistate =
NULL;
301 (*probingnode)->ncols = (*probingnode)->ninitialcols;
302 (*probingnode)->nrows = (*probingnode)->ninitialrows;
303 (*probingnode)->origobjvars =
NULL;
304 (*probingnode)->origobjvals =
NULL;
305 (*probingnode)->nchgdobjs = 0;
307 SCIPdebugMessage(
"created probingnode information (%d cols, %d rows)\n", (*probingnode)->ncols, (*probingnode)->nrows);
321 assert(probingnode !=
NULL);
359 assert(probingnode !=
NULL);
360 assert(*probingnode !=
NULL);
363 if( (*probingnode)->lpistate !=
NULL )
369 if( (*probingnode)->nchgdobjs > 0 )
371 assert((*probingnode)->origobjvars !=
NULL);
372 assert((*probingnode)->origobjvals !=
NULL);
390 assert(junction !=
NULL);
391 assert(tree !=
NULL);
416 assert(pseudofork !=
NULL);
417 assert(blkmem !=
NULL);
418 assert(tree !=
NULL);
425 (*pseudofork)->addedcols =
NULL;
426 (*pseudofork)->addedrows =
NULL;
429 (*pseudofork)->nchildren = tree->
nchildren;
431 SCIPdebugMessage(
"creating pseudofork information with %d children (%d new cols, %d new rows)\n",
432 (*pseudofork)->nchildren, (*pseudofork)->naddedcols, (*pseudofork)->naddedrows);
434 if( (*pseudofork)->naddedcols > 0 )
438 (*pseudofork)->naddedcols) );
440 if( (*pseudofork)->naddedrows > 0 )
446 (*pseudofork)->naddedrows) );
449 for( i = 0; i < (*pseudofork)->naddedrows; ++i )
473 assert(pseudofork !=
NULL);
474 assert(*pseudofork !=
NULL);
475 assert((*pseudofork)->nchildren == 0);
476 assert(blkmem !=
NULL);
480 for( i = 0; i < (*pseudofork)->naddedrows; ++i )
503 assert(fork !=
NULL);
504 assert(blkmem !=
NULL);
505 assert(tree !=
NULL);
523 (*fork)->nlpistateref = 0;
524 (*fork)->addedcols =
NULL;
525 (*fork)->addedrows =
NULL;
528 (*fork)->nchildren = (
unsigned int) tree->
nchildren;
530 SCIPsetDebugMsg(
set,
"creating fork information with %u children (%d new cols, %d new rows)\n", (*fork)->nchildren, (*fork)->naddedcols, (*fork)->naddedrows);
532 if( (*fork)->naddedcols > 0 )
537 if( (*fork)->naddedrows > 0 )
545 for( i = 0; i < (*fork)->naddedrows; ++i )
566 assert(fork !=
NULL);
567 assert(*fork !=
NULL);
568 assert((*fork)->nchildren == 0);
569 assert((*fork)->nlpistateref == 0);
570 assert((*fork)->lpistate ==
NULL);
571 assert(blkmem !=
NULL);
576 for( i = (*fork)->naddedrows - 1; i >= 0; --i )
602 assert(subroot !=
NULL);
603 assert(blkmem !=
NULL);
604 assert(tree !=
NULL);
615 (*subroot)->nlpistateref = 0;
618 (*subroot)->nchildren = (
unsigned int) tree->
nchildren;
625 if( (*subroot)->ncols != 0 )
630 (*subroot)->cols =
NULL;
631 if( (*subroot)->nrows != 0 )
636 (*subroot)->rows =
NULL;
639 for( i = 0; i < (*subroot)->nrows; ++i )
660 assert(subroot !=
NULL);
661 assert(*subroot !=
NULL);
662 assert((*subroot)->nchildren == 0);
663 assert((*subroot)->nlpistateref == 0);
664 assert((*subroot)->lpistate ==
NULL);
665 assert(blkmem !=
NULL);
670 for( i = 0; i < (*subroot)->nrows; ++i )
691 assert(tree !=
NULL);
692 assert(sibling !=
NULL);
717 assert(tree !=
NULL);
718 assert(child !=
NULL);
740 assert(tree !=
NULL);
741 assert(child !=
NULL);
770 assert(node !=
NULL);
776 assert(blkmem !=
NULL);
778 assert(tree !=
NULL);
801 SCIPsetDebugMsg(
set,
"assigning parent #%" SCIP_LONGINT_FORMAT
" to node #%" SCIP_LONGINT_FORMAT
" at depth %d\n",
828 assert(node !=
NULL);
829 assert(blkmem !=
NULL);
830 assert(tree !=
NULL);
832 SCIPsetDebugMsg(
set,
"releasing parent-child relationship of node #%" SCIP_LONGINT_FORMAT
" at depth %d of type %d with parent #%" SCIP_LONGINT_FORMAT
" of type %d\n",
911 if( freeParent && !parent->
active )
923 SCIPsetDebugMsg(
set,
"unlinked node #%" SCIP_LONGINT_FORMAT
" in depth %d -> new effective root depth: %d\n",
939 assert(node !=
NULL);
942 (*node)->parent =
NULL;
943 (*node)->conssetchg =
NULL;
944 (*node)->domchg =
NULL;
948 (*node)->reoptid = 0;
951 (*node)->active =
FALSE;
952 (*node)->cutoff =
FALSE;
953 (*node)->reprop =
FALSE;
954 (*node)->repropsubtreemark = 0;
970 assert(node !=
NULL);
971 assert(blkmem !=
NULL);
973 assert(stat !=
NULL);
974 assert(tree !=
NULL);
990 (*node)->data.child.arraypos = -1;
1019 assert(node !=
NULL);
1020 assert(*node !=
NULL);
1021 assert(!(*node)->active);
1022 assert(blkmem !=
NULL);
1023 assert(tree !=
NULL);
1039 SCIPerrorMessage(
"cannot free focus node - has to be converted into a dead end first\n");
1048 assert((*node)->data.sibling.arraypos >= 0);
1049 assert((*node)->data.sibling.arraypos < tree->
nsiblings);
1050 assert(tree->
siblings[(*node)->data.sibling.arraypos] == *node);
1060 assert((*node)->data.child.arraypos >= 0);
1061 assert((*node)->data.child.arraypos < tree->
nchildren);
1062 assert(tree->
children[(*node)->data.child.arraypos] == *node);
1071 if( (*node)->data.leaf.lpstatefork !=
NULL )
1140 assert(node !=
NULL);
1141 assert(
set !=
NULL);
1142 assert(stat !=
NULL);
1143 assert(tree !=
NULL);
1145 if( set->reopt_enable )
1147 assert(reopt !=
NULL);
1161 if( node->
depth == 0 )
1164 if( set->misc_calcintegral )
1179 SCIPsetDebugMsg(
set,
"cutting off %s node #%" SCIP_LONGINT_FORMAT
" at depth %d (cutoffdepth: %d)\n",
1193 assert(node !=
NULL);
1194 assert(
set !=
NULL);
1195 assert(stat !=
NULL);
1196 assert(tree !=
NULL);
1206 SCIPsetDebugMsg(
set,
"marked %s node #%" SCIP_LONGINT_FORMAT
" at depth %d to be propagated again (repropdepth: %d)\n",
1217 assert(node !=
NULL);
1218 assert(tree !=
NULL);
1246 assert(tree !=
NULL);
1286 assert(node !=
NULL);
1294 assert(stat !=
NULL);
1295 assert(tree !=
NULL);
1297 assert(cutoff !=
NULL);
1300 initialreprop = node->
reprop;
1309 if( clockisrunning )
1334 SCIP_CALL(
SCIPpropagateDomains(blkmem,
set, stat, transprob, origprob, primal, tree, reopt, lp, branchcand,
1336 assert(!node->
reprop || *cutoff);
1353 SCIPsetDebugMsg(
set,
"repropagation %" SCIP_LONGINT_FORMAT
" at depth %u changed %" SCIP_LONGINT_FORMAT
" bounds (total reprop bound changes: %" SCIP_LONGINT_FORMAT
"), cutoff: %u\n",
1361 if( initialreprop && !(*cutoff) && stat->
nboundchgs > oldnboundchgs )
1365 SCIPsetDebugMsg(
set,
"initial repropagation at depth %u changed %" SCIP_LONGINT_FORMAT
" bounds -> repropagating subtree (new mark: %d)\n",
1388 if( clockisrunning )
1424 assert(node !=
NULL);
1426 assert(stat !=
NULL);
1427 assert(tree !=
NULL);
1429 assert(cutoff !=
NULL);
1431 SCIPsetDebugMsg(
set,
"activate node #%" SCIP_LONGINT_FORMAT
" at depth %d of type %d (reprop subtree mark: %u)\n",
1450 node->
reprop =
set->conf_enable &&
set->conf_useprop;
1464 SCIP_CALL(
nodeRepropagate(node, blkmem,
set, stat, transprob, origprob, primal, tree, reopt, lp, branchcand, conflict,
1465 eventfilter, eventqueue, cliquetable, &propcutoff) );
1466 *cutoff = *cutoff || propcutoff;
1487 assert(node !=
NULL);
1489 assert(tree !=
NULL);
1492 SCIPsetDebugMsg(
set,
"deactivate node #%" SCIP_LONGINT_FORMAT
" at depth %d of type %d (reprop subtree mark: %u)\n",
1554 assert(node !=
NULL);
1555 assert(cons !=
NULL);
1557 assert(tree !=
NULL);
1564 if( cons->
scip != set->scip )
1597 assert(node !=
NULL);
1598 assert(tree !=
NULL);
1599 assert(cons !=
NULL);
1627 assert(node !=
NULL );
1635 if( addedconsssize < *naddedconss )
1639 for( cons = 0; cons < *naddedconss; cons++ )
1652 assert(node !=
NULL);
1675 assert(tree !=
NULL);
1695 if( node->
depth == 0 )
1777 assert(node !=
NULL);
1782 || node->
depth == 0);
1783 assert(
set !=
NULL);
1784 assert(tree !=
NULL);
1787 assert(var !=
NULL);
1788 assert(node->
active || (infercons ==
NULL && inferprop ==
NULL));
1791 SCIPsetDebugMsg(
set,
"adding boundchange at node %llu at depth %u to variable <%s>: old bounds=[%g,%g], new %s bound: %g (infer%s=<%s>, inferinfo=%d)\n",
1798 inferboundtype = boundtype;
1829 newbound =
MIN(newbound, oldub);
1847 newbound =
MAX(newbound, oldlb);
1857 SCIPsetDebugMsg(
set,
" -> transformed to active variable <%s>: old bounds=[%g,%g], new %s bound: %g, obj: %g\n",
1869 int conflictingdepth;
1873 if( conflictingdepth >= 0 )
1876 assert(conflictingdepth > 0);
1877 assert(conflictingdepth < tree->pathlen);
1879 SCIPsetDebugMsg(
set,
" -> bound change <%s> %s %g violates current local bounds [%g,%g] since depth %d: remember for later application\n",
1905 assert(!probingchange);
1907 SCIPsetDebugMsg(
set,
" -> bound change in root node: perform global bound change\n");
1914 SCIPsetDebugMsg(
set,
"marked root node to be repropagated due to global bound change <%s>:[%g,%g] -> [%g,%g] found in depth %u\n",
1953 if( set->misc_exactsolve )
1967 0.0, infervar, infercons, inferprop, inferinfo, inferboundtype) );
2020 SCIP_CALL(
SCIPnodeAddBoundinfer(node, blkmem,
set, stat, transprob, origprob, tree, reopt, lp, branchcand, eventqueue,
2021 cliquetable, var, newbound, boundtype,
NULL,
NULL, 0, probingchange) );
2051 assert(node !=
NULL);
2056 || node->
depth == 0);
2057 assert(blkmem !=
NULL);
2058 assert(
set !=
NULL);
2059 assert(tree !=
NULL);
2062 assert(var !=
NULL);
2063 assert(node->
active || (infercons ==
NULL && inferprop ==
NULL));
2074 adjustedleft = left;
2075 adjustedright = right;
2089 SCIPsetDebugMsg(
set,
"adding hole (%g,%g) at node at depth %u to variable <%s>: bounds=[%g,%g], (infer%s=<%s>, inferinfo=%d)\n",
2120 assert(!probingchange);
2122 SCIPsetDebugMsg(
set,
" -> hole added in root node: perform global domain change\n");
2129 SCIPsetDebugMsg(
set,
"marked root node to be repropagated due to global added hole <%s>: (%g,%g) found in depth %u\n",
2139 SCIPerrorMessage(
"WARNING: currently domain holes can only be handled globally!\n");
2165 assert(node !=
NULL);
2169 assert(blkmem !=
NULL);
2171 SCIPsetDebugMsg(
set,
"adding hole (%g,%g) at node at depth %u of variable <%s>\n",
2175 NULL,
NULL, 0, probingchange, added) );
2203 assert(tree !=
NULL);
2206 for( i = 0; i < npendingbdchgs; ++i )
2218 if( conflictdepth == 0 )
2228 assert(conflictdepth == -1);
2289 assert(node !=
NULL);
2290 assert(stat !=
NULL);
2299 if( node->
depth == 0 )
2302 if( set->misc_calcintegral )
2309 assert(newbound >= lowerbound);
2331 assert(
set !=
NULL);
2339 if( set->misc_exactsolve )
2377 assert(node !=
NULL);
2378 assert(
set !=
NULL);
2404 assert(node !=
NULL);
2409 assert(cutoff !=
NULL);
2411 SCIPsetDebugMsg(
set,
"implication graph propagation of node #%" SCIP_LONGINT_FORMAT
" in depth %d\n",
2418 for( i = 0; i < nboundchgs && !(*cutoff); ++i )
2448 for( j = 0; j < nimpls; ++j )
2492 SCIP_CALL(
SCIPnodeAddBoundinfer(node, blkmem,
set, stat, transprob, origprob, tree, reopt, lp, branchcand,
2493 eventqueue, cliquetable, implvars[j], implbounds[j], impltypes[j],
NULL,
NULL, 0,
FALSE) );
2499 for( j = 0; j < ncliques; ++j )
2509 for( k = 0; k < nvars; ++k )
2519 if( vars[k] == var && values[k] == varfixing )
2525 if( values[k] ==
FALSE )
2550 SCIP_CALL(
SCIPnodeAddBoundinfer(node, blkmem,
set, stat, transprob, origprob, tree, reopt, lp, branchcand,
2580 assert(tree !=
NULL);
2581 assert(startdepth >= 0);
2582 assert(startdepth <= tree->pathlen);
2584 if( startdepth == 0 )
2595 for( i = startdepth; i < tree->
pathlen; ++i )
2597 node = tree->
path[i];
2598 assert(node !=
NULL);
2600 assert((
int)(node->
depth) == i);
2614 if( i < tree->pathlen-1 )
2694 assert(tree !=
NULL);
2709 assert(commonfork !=
NULL);
2710 assert(newlpfork !=
NULL);
2711 assert(newlpstatefork !=
NULL);
2712 assert(newsubroot !=
NULL);
2713 assert(cutoff !=
NULL);
2717 *newlpstatefork =
NULL;
2753 if( lpfork ==
NULL )
2761 *newlpfork = lpfork;
2763 lpstatefork = lpfork;
2766 lpstatefork = lpstatefork->
parent;
2767 if( lpstatefork ==
NULL )
2769 if( lpstatefork->
cutoff )
2775 *newlpstatefork = lpstatefork;
2777 subroot = lpstatefork;
2780 subroot = subroot->
parent;
2781 if( subroot ==
NULL )
2789 *newsubroot = subroot;
2809 assert(fork !=
NULL);
2814 assert(fork !=
NULL);
2825 if( lpstatefork ==
NULL 2831 assert(lpfork ==
NULL || !lpfork->
active || lpfork == fork);
2832 assert(lpstatefork ==
NULL || !lpstatefork->
active || lpstatefork == fork);
2833 assert(subroot ==
NULL || !subroot->
active || subroot == fork);
2846 assert(fork !=
NULL);
2856 if( lpfork ==
NULL )
2862 while( lpfork !=
NULL 2879 assert(lpfork ==
NULL 2888 if( lpstatefork ==
NULL )
2894 lpstatefork = lpfork;
2897 while( lpstatefork !=
NULL 2901 assert(lpstatefork->
active);
2902 lpstatefork = lpstatefork->
parent;
2910 assert(lpstatefork ==
NULL || (
int)(lpstatefork->
depth) <= fork->
depth);
2911 assert(lpstatefork ==
NULL || lpstatefork->
active);
2913 assert(lpstatefork ==
NULL 2916 assert(lpstatefork ==
NULL || (lpfork !=
NULL && lpstatefork->
depth <= lpfork->
depth));
2922 if( subroot ==
NULL )
2928 subroot = lpstatefork;
2936 subroot = subroot->
parent;
2945 assert(subroot ==
NULL || (lpstatefork !=
NULL && subroot->
depth <= lpstatefork->
depth));
2960 *newlpfork = lpfork;
2961 *newlpstatefork = lpstatefork;
2962 *newsubroot = subroot;
2965 while( fork !=
NULL )
3002 assert(tree !=
NULL);
3004 assert(fork ==
NULL || focusnode !=
NULL);
3007 assert(cutoff !=
NULL);
3014 focusnodedepth = (focusnode !=
NULL ? (int)focusnode->
depth : -1);
3015 forkdepth = (fork !=
NULL ? (int)fork->
depth : -1);
3016 assert(forkdepth <= focusnodedepth);
3017 assert(forkdepth < tree->pathlen);
3023 for( i = tree->
pathlen-1; i > forkdepth; --i )
3030 SCIP_CALL(
treeApplyPendingBdchgs(tree, reopt, blkmem,
set, stat, transprob, origprob, lp, branchcand, eventqueue, cliquetable) );
3034 while( focusnode != fork )
3036 assert(focusnode !=
NULL);
3037 assert(!focusnode->
active);
3038 assert(!focusnode->
cutoff);
3039 tree->
path[focusnode->
depth] = focusnode;
3040 focusnode = focusnode->
parent;
3049 assert(tree->
path[forkdepth] == fork);
3053 SCIP_CALL(
nodeRepropagate(fork, blkmem,
set, stat, transprob, origprob, primal, tree, reopt, lp, branchcand, conflict,
3054 eventfilter, eventqueue, cliquetable, cutoff) );
3056 assert(fork !=
NULL || !(*cutoff));
3069 for( i = forkdepth+1; i < focusnodedepth && !(*cutoff); ++i )
3076 SCIP_CALL(
nodeActivate(tree->
path[i], blkmem,
set, stat, transprob, origprob, primal, tree, reopt, lp, branchcand,
3077 conflict, eventfilter, eventqueue, cliquetable, cutoff) );
3084 if( !(*cutoff) && (i == focusnodedepth) )
3087 assert(tree->
pathlen == focusnodedepth);
3091 SCIP_CALL(
nodeActivate(tree->
path[focusnodedepth], blkmem,
set, stat, transprob, origprob, primal, tree, reopt, lp, branchcand,
3092 conflict, eventfilter, eventqueue, cliquetable, cutoff) );
3129 assert(subroot !=
NULL);
3132 assert(blkmem !=
NULL);
3133 assert(
set !=
NULL);
3141 assert(ncols == 0 || cols !=
NULL);
3142 assert(nrows == 0 || rows !=
NULL);
3144 for( c = 0; c < ncols; ++c )
3148 for( r = 0; r < nrows; ++r )
3174 assert(fork !=
NULL);
3177 assert(blkmem !=
NULL);
3178 assert(
set !=
NULL);
3186 assert(ncols == 0 || cols !=
NULL);
3187 assert(nrows == 0 || rows !=
NULL);
3189 for( c = 0; c < ncols; ++c )
3193 for( r = 0; r < nrows; ++r )
3219 assert(pseudofork !=
NULL);
3222 assert(blkmem !=
NULL);
3223 assert(
set !=
NULL);
3231 assert(ncols == 0 || cols !=
NULL);
3232 assert(nrows == 0 || rows !=
NULL);
3234 for( c = 0; c < ncols; ++c )
3238 for( r = 0; r < nrows; ++r )
3258 assert(tree !=
NULL);
3263 for( d = 0; d < tree->
pathlen; ++d )
3265 node = tree->
path[d];
3266 assert(node !=
NULL);
3267 assert((
int)(node->
depth) == d);
3277 if( d < tree->pathlen-1 )
3308 SCIPerrorMessage(
"node at depth %d on active path has to be of type JUNCTION, PSEUDOFORK, FORK, SUBROOT, FOCUSNODE, REFOCUSNODE, or PROBINGNODE, but is %d\n",
3317 #define treeCheckPath(tree) 3335 assert(tree !=
NULL);
3344 assert(blkmem !=
NULL);
3345 assert(
set !=
NULL);
3347 assert(initroot !=
NULL);
3349 SCIPsetDebugMsg(
set,
"load LP for current fork node #%" SCIP_LONGINT_FORMAT
" at depth %d\n",
3363 if( lpfork ==
NULL )
3376 assert(tree->
path[lpfork->
depth] == lpfork);
3377 lpforkdepth = lpfork->
depth;
3379 assert(lpforkdepth < tree->pathlen-1);
3403 assert(lpforkdepth < tree->pathlen);
3410 pathnode = tree->
path[d];
3411 assert(pathnode !=
NULL);
3412 assert((
int)(pathnode->
depth) == d);
3461 int lpstateforkdepth;
3464 assert(tree !=
NULL);
3474 assert(blkmem !=
NULL);
3475 assert(
set !=
NULL);
3478 SCIPsetDebugMsg(
set,
"load LP state for current fork node #%" SCIP_LONGINT_FORMAT
" at depth %d\n",
3485 if( lpstatefork ==
NULL )
3490 assert(lpstatefork->
active);
3491 assert(tree->
path[lpstatefork->
depth] == lpstatefork);
3492 lpstateforkdepth = lpstatefork->
depth;
3493 assert(lpstateforkdepth < tree->pathlen-1);
3494 assert(lpstateforkdepth <= tree->correctlpdepth);
3524 checkbdchgs =
FALSE;
3544 assert(d < tree->pathlen);
3583 assert(stat !=
NULL);
3584 assert(lpstatefork ==
NULL || lpstatefork->
depth < (*node)->depth);
3585 assert(lpstatefork ==
NULL || lpstatefork->
active ||
SCIPsetIsGE(
set, (*node)->lowerbound, cutoffbound));
3586 assert(lpstatefork ==
NULL 3591 SCIPsetDebugMsg(
set,
"convert node #%" SCIP_LONGINT_FORMAT
" at depth %d to leaf with lpstatefork #%" SCIP_LONGINT_FORMAT
" at depth %d\n",
3596 (*node)->data.leaf.lpstatefork = lpstatefork;
3603 pathnode = (*node)->
parent;
3604 while( pathnode !=
NULL && pathnode != lpstatefork )
3608 pathnode = pathnode->
parent;
3610 assert(pathnode == lpstatefork);
3615 if(
SCIPsetIsLT(
set, (*node)->lowerbound, cutoffbound) )
3628 if( set->reopt_enable )
3630 assert(reopt !=
NULL);
3640 assert(*node ==
NULL);
3670 assert(blkmem !=
NULL);
3671 assert(
set !=
NULL);
3672 assert(stat !=
NULL);
3673 assert(tree !=
NULL);
3680 needdel = (tree->
focusnode == tree->
root ?
set->price_delvarsroot :
set->price_delvars);
3697 for( i = 0; i < transprob->
nvars; i++ )
3699 var = transprob->
vars[i];
3700 assert(var !=
NULL);
3737 SCIPsetDebugMsg(
set,
"delvars at node %" SCIP_LONGINT_FORMAT
", deleted %d vars\n", stat->
nnodes, ndelvars);
3764 assert(blkmem !=
NULL);
3765 assert(tree !=
NULL);
3771 SCIPsetDebugMsg(
set,
"focusnode #%" SCIP_LONGINT_FORMAT
" to dead-end at depth %d\n",
3775 SCIP_CALL(
focusnodeCleanupVars(blkmem,
set, stat, eventqueue, transprob, origprob, tree, reopt, lp, branchcand, cliquetable,
TRUE) );
3803 assert(tree !=
NULL);
3809 SCIPsetDebugMsg(
set,
"focusnode #%" SCIP_LONGINT_FORMAT
" to leaf at depth %d\n",
3827 assert(tree !=
NULL);
3834 SCIPsetDebugMsg(
set,
"focusnode #%" SCIP_LONGINT_FORMAT
" to junction at depth %d\n",
3872 assert(blkmem !=
NULL);
3873 assert(tree !=
NULL);
3881 SCIPsetDebugMsg(
set,
"focusnode #%" SCIP_LONGINT_FORMAT
" to pseudofork at depth %d\n",
3885 SCIP_CALL(
focusnodeCleanupVars(blkmem,
set, stat, eventqueue, transprob, origprob, tree, reopt, lp, branchcand, cliquetable,
FALSE) );
3926 assert(blkmem !=
NULL);
3927 assert(tree !=
NULL);
3937 SCIPsetDebugMsg(
set,
"focusnode #%" SCIP_LONGINT_FORMAT
" to fork at depth %d\n",
3953 SCIP_CALL(
SCIPlpSolveAndEval(lp,
set, messagehdlr, blkmem, stat, eventqueue, eventfilter, transprob, -1LL,
FALSE,
FALSE,
TRUE, &lperror) );
3974 "(node %" SCIP_LONGINT_FORMAT
") numerical troubles: LP %" SCIP_LONGINT_FORMAT
" not optimal -- convert node into junction instead of fork\n",
3991 SCIP_CALL(
focusnodeCleanupVars(blkmem,
set, stat, eventqueue, transprob, origprob, tree, reopt, lp, branchcand, cliquetable,
FALSE) );
4041 assert(blkmem !=
NULL);
4042 assert(tree !=
NULL);
4052 SCIPsetDebugMsg(
set,
"focusnode #%" SCIP_LONGINT_FORMAT
" to subroot at depth %d\n",
4062 #ifdef SCIP_DISABLED_CODE 4077 SCIP_CALL(
SCIPlpSolveAndEval(lp,
set, messagehdlr, blkmem, stat, eventqueue, eventfilter, transprob, -1LL,
FALSE,
FALSE,
TRUE, &lperror) );
4081 assert(lp->
solved || lperror);
4098 "(node %" SCIP_LONGINT_FORMAT
") numerical troubles: LP %" SCIP_LONGINT_FORMAT
" not optimal -- convert node into junction instead of subroot\n",
4115 SCIP_CALL(
focusnodeCleanupVars(blkmem,
set, stat, eventqueue, transprob, origprob, tree, lp, branchcand, cliquetable,
FALSE) );
4122 SCIP_CALL( subrootCreate(&subroot, blkmem,
set, transprob, tree, lp) );
4161 assert(tree !=
NULL);
4162 assert(
set !=
NULL);
4163 assert(nnodes !=
NULL);
4164 assert(*nnodes == 0 || nodes !=
NULL);
4166 for( i = 0; i < *
nnodes; ++i )
4169 SCIP_CALL(
nodeToLeaf(&nodes[i], blkmem,
set, stat, eventqueue, tree, reopt, lp, lpstatefork, cutoffbound) );
4170 assert(nodes[i] ==
NULL);
4188 assert(tree !=
NULL);
4248 assert(node !=
NULL);
4249 assert(*node ==
NULL 4253 assert(*node ==
NULL || !(*node)->active);
4254 assert(stat !=
NULL);
4255 assert(tree !=
NULL);
4256 assert(!postponed || *node ==
NULL);
4260 assert(cutoff !=
NULL);
4262 SCIPsetDebugMsg(
set,
"focusing node #%" SCIP_LONGINT_FORMAT
" of type %d in depth %d\n",
4273 SCIPsetDebugMsg(
set,
"focus node: focusnodedepth=%d, forkdepth=%d, lpforkdepth=%d, lpstateforkdepth=%d, subrootdepth=%d, cutoff=%u\n",
4274 *node !=
NULL ? (*node)->depth : -1, fork !=
NULL ? fork->
depth : -1,
4276 subroot !=
NULL ? subroot->
depth : -1, *cutoff);
4281 assert(*node !=
NULL);
4289 if( set->reopt_enable )
4291 assert(reopt !=
NULL);
4304 assert(lpstatefork ==
NULL || lpfork !=
NULL);
4305 assert(subroot ==
NULL || lpstatefork !=
NULL);
4335 SCIP_CALL(
treeNodesToQueue(tree, reopt, blkmem,
set, stat, eventqueue, lp, tree->
children, &tree->
nchildren,
NULL, -
SCIPsetInfinity(
set)) );
4352 SCIP_CALL(
treeNodesToQueue(tree, reopt, blkmem,
set, stat, eventqueue, lp, tree->
children, &tree->
nchildren,
NULL, -
SCIPsetInfinity(
set)) );
4363 SCIP_CALL(
treeNodesToQueue(tree, reopt, blkmem,
set, stat, eventqueue, lp, tree->
siblings, &tree->
nsiblings, tree->
focuslpstatefork,
4377 assert(*node ==
NULL);
4389 SCIP_CALL(
focusnodeToDeadend(blkmem,
set, stat, eventqueue, transprob, origprob, tree, reopt, lp, branchcand,
4404 assert(oldcutoffdepth == INT_MAX);
4417 SCIP_CALL( focusnodeToSubroot(blkmem,
set, messagehdlr, stat, eventqueue, eventfilter, transprob, origprob, tree, lp, branchcand) );
4427 reopt, lp, branchcand, cliquetable) );
4456 branchcand, cliquetable) );
4490 SCIP_CALL(
focusnodeToDeadend(blkmem,
set, stat, eventqueue, transprob, origprob, tree, reopt, lp, branchcand, cliquetable) );
4493 assert(lpstatefork ==
NULL 4496 assert(childrenlpstatefork ==
NULL 4499 assert(lpfork ==
NULL 4510 SCIP_CALL(
treeNodesToQueue(tree, reopt, blkmem,
set, stat, eventqueue, lp, tree->
siblings, &tree->
nsiblings, tree->
focuslpstatefork,
4514 SCIP_CALL(
treeNodesToQueue(tree, reopt, blkmem,
set, stat, eventqueue, lp, tree->
children, &tree->
nchildren, childrenlpstatefork,
4530 SCIP_CALL(
treeNodesToQueue(tree, reopt, blkmem,
set, stat, eventqueue, lp, tree->
children, &tree->
nchildren, childrenlpstatefork,
4548 SCIP_CALL(
treeNodesToQueue(tree, reopt, blkmem,
set, stat, eventqueue, lp, tree->
siblings, &tree->
nsiblings, tree->
focuslpstatefork,
4562 SCIP_CALL(
treeNodesToQueue(tree, reopt, blkmem,
set, stat, eventqueue, lp, tree->
siblings, &tree->
nsiblings, tree->
focuslpstatefork,
4581 SCIP_CALL(
treeNodesToQueue(tree, reopt, blkmem,
set, stat, eventqueue, lp, tree->
children, &tree->
nchildren, childrenlpstatefork,
4604 assert(subroot ==
NULL || (lpstatefork !=
NULL && subroot->
depth <= lpstatefork->
depth));
4605 assert(lpstatefork ==
NULL || (lpfork !=
NULL && lpstatefork->
depth <= lpfork->
depth));
4606 assert(lpfork ==
NULL || (*node !=
NULL && lpfork->
depth < (*node)->depth));
4615 SCIP_CALL(
treeSwitchPath(tree, reopt, blkmem,
set, stat, transprob, origprob, primal, lp, branchcand, conflict,
4616 eventfilter, eventqueue, cliquetable, fork, *node, cutoff) );
4619 assert(*node ==
NULL || tree->
pathlen-1 <= (
int)(*node)->depth);
4624 int appliedeffectiverootdepth;
4627 assert(appliedeffectiverootdepth <= tree->effectiverootdepth);
4637 SCIPsetDebugMsg(
set,
"effective root is now at depth %d: applying constraint set and bound changes to global problem\n",
4644 SCIPsetDebugMsg(
set,
" -> applying constraint set changes of depth %d\n", d);
4682 assert(tree !=
NULL);
4683 assert(blkmem !=
NULL);
4687 (*tree)->root =
NULL;
4692 for( p = 0; p <= 1; ++p )
4697 (*tree)->ndivebdchanges[p] = 0;
4698 (*tree)->divebdchgsize[p] = 1;
4701 (*tree)->path =
NULL;
4702 (*tree)->focusnode =
NULL;
4703 (*tree)->focuslpfork =
NULL;
4704 (*tree)->focuslpstatefork =
NULL;
4705 (*tree)->focussubroot =
NULL;
4706 (*tree)->children =
NULL;
4707 (*tree)->siblings =
NULL;
4708 (*tree)->probingroot =
NULL;
4709 (*tree)->childrenprio =
NULL;
4710 (*tree)->siblingsprio =
NULL;
4711 (*tree)->pathnlpcols =
NULL;
4712 (*tree)->pathnlprows =
NULL;
4713 (*tree)->probinglpistate =
NULL;
4714 (*tree)->probinglpinorms =
NULL;
4715 (*tree)->pendingbdchgs =
NULL;
4716 (*tree)->pendingbdchgssize = 0;
4717 (*tree)->npendingbdchgs = 0;
4718 (*tree)->focuslpstateforklpcount = -1;
4719 (*tree)->childrensize = 0;
4720 (*tree)->nchildren = 0;
4721 (*tree)->siblingssize = 0;
4722 (*tree)->nsiblings = 0;
4723 (*tree)->pathlen = 0;
4724 (*tree)->pathsize = 0;
4725 (*tree)->effectiverootdepth = 0;
4726 (*tree)->appliedeffectiverootdepth = 0;
4727 (*tree)->correctlpdepth = -1;
4728 (*tree)->cutoffdepth = INT_MAX;
4729 (*tree)->repropdepth = INT_MAX;
4730 (*tree)->repropsubtreecount = 0;
4731 (*tree)->focusnodehaslp =
FALSE;
4732 (*tree)->probingnodehaslp =
FALSE;
4733 (*tree)->focuslpconstructed =
FALSE;
4734 (*tree)->cutoffdelayed =
FALSE;
4735 (*tree)->probinglpwasflushed =
FALSE;
4736 (*tree)->probinglpwassolved =
FALSE;
4737 (*tree)->probingloadlpistate =
FALSE;
4738 (*tree)->probinglpwasrelax =
FALSE;
4739 (*tree)->probingsolvedlp =
FALSE;
4740 (*tree)->forcinglpmessage =
FALSE;
4741 (*tree)->sbprobing =
FALSE;
4742 (*tree)->probinglpwasprimfeas =
TRUE;
4743 (*tree)->probinglpwasdualfeas =
TRUE;
4760 assert(tree !=
NULL);
4761 assert(*tree !=
NULL);
4762 assert((*tree)->nchildren == 0);
4763 assert((*tree)->nsiblings == 0);
4764 assert((*tree)->focusnode ==
NULL);
4773 for( p = 0; p <= 1; ++p )
4807 assert(tree !=
NULL);
4825 assert(var !=
NULL);
4866 assert(tree !=
NULL);
4894 SCIP_CALL(
treeNodesToQueue(tree, reopt, blkmem,
set, stat, eventqueue, lp, tree->
children, &tree->
nchildren,
NULL,
4922 assert(tree !=
NULL);
4934 SCIP_CALL(
SCIPnodeFocus(&tree->
root, blkmem,
set, messagehdlr, stat, transprob, origprob, primal, tree, reopt, lp, branchcand,
4935 conflict, conflictstore, eventfilter, eventqueue, cliquetable, &cutoff,
FALSE,
FALSE) );
4964 assert(tree !=
NULL);
4971 SCIP_CALL(
SCIPnodeFocus(&node, blkmem,
set, messagehdlr, stat, transprob, origprob, primal, tree, reopt, lp, branchcand,
4972 conflict, conflictstore, eventfilter, eventqueue, cliquetable, &cutoff,
FALSE,
FALSE) );
4989 assert(tree !=
NULL);
5003 assert(tree !=
NULL);
5004 assert(stat !=
NULL);
5037 assert(tree !=
NULL);
5038 assert(stat !=
NULL);
5057 for( i = tree->
nsiblings-1; i >= 0; --i )
5062 SCIPsetDebugMsg(
set,
"cut off sibling #%" SCIP_LONGINT_FORMAT
" at depth %d with lowerbound=%g at position %d\n",
5065 if( set->reopt_enable )
5067 assert(reopt !=
NULL);
5080 for( i = tree->
nchildren-1; i >= 0; --i )
5085 SCIPsetDebugMsg(
set,
"cut off child #%" SCIP_LONGINT_FORMAT
" at depth %d with lowerbound=%g at position %d\n",
5088 if( set->reopt_enable )
5090 assert(reopt !=
NULL);
5127 assert(
set !=
NULL);
5149 switch( set->nodesel_childsel )
5164 prio = targetvalue - varsol;
5167 prio = varrootsol - varsol;
5171 if( !isroot && haslp )
5172 prio *= (varrootsol - varsol + 1.0);
5175 SCIPerrorMessage(
"invalid child selection rule <%c>\n", set->nodesel_childsel);
5181 SCIPerrorMessage(
"invalid preferred branching direction <%d> of variable <%s>\n",
5198 switch( set->nodesel_childsel )
5213 prio = varsol - targetvalue;
5216 prio = varsol - varrootsol;
5220 if( !isroot && haslp )
5221 prio *= (varsol - varrootsol + 1.0);
5224 SCIPerrorMessage(
"invalid child selection rule <%c>\n", set->nodesel_childsel);
5235 SCIPerrorMessage(
"invalid preferred branching direction <%d> of variable <%s>\n",
5270 assert(tree !=
NULL);
5271 assert(var !=
NULL);
5294 if( estimateinc > 0.0 )
5295 estimate += estimateinc;
5347 assert(tree !=
NULL);
5348 assert(
set !=
NULL);
5349 assert(var !=
NULL);
5352 if( downchild !=
NULL )
5354 if( eqchild !=
NULL )
5356 if( upchild !=
NULL )
5381 val = (val - constant) / scalar;
5450 SCIPsetDebugMsg(
set,
"fixing continuous variable <%s> with value %g and bounds [%.15g, %.15g], priority %d (current lower bound: %g)\n",
5482 SCIPsetDebugMsg(
set,
"continuous branch on variable <%s> with bounds [%.15g, %.15g], priority %d (current lower bound: %g), node %p\n",
5508 SCIPsetDebugMsg(
set,
"continuous branch on variable <%s> with value %g, priority %d (current lower bound: %g)\n",
5533 center = (ub + lb) / 2.0;
5537 uplb = downub + 1.0;
5542 downub = uplb - 1.0;
5554 downub = fixval - 1.0;
5558 uplb = fixval + 1.0;
5560 SCIPsetDebugMsg(
set,
"integral branch on variable <%s> with value %g, priority %d (current lower bound: %g)\n",
5567 uplb = downub + 1.0;
5569 SCIPsetDebugMsg(
set,
"fractional branch on variable <%s> with value %g, root value %g, priority %d (current lower bound: %g)\n",
5587 SCIPsetDebugMsg(
set,
" -> creating child: <%s> <= %g (priority: %g, estimate: %g)\n",
5590 SCIP_CALL(
SCIPnodeAddBoundchg(node, blkmem,
set, stat, transprob, origprob, tree, reopt, lp, branchcand, eventqueue,
5595 if( downchild !=
NULL )
5604 SCIPsetDebugMsg(
set,
" -> creating child: <%s> == %g (priority: %g, estimate: %g)\n",
5609 SCIP_CALL(
SCIPnodeAddBoundchg(node, blkmem,
set, stat, transprob, origprob, tree, reopt, lp, branchcand, eventqueue,
5614 SCIP_CALL(
SCIPnodeAddBoundchg(node, blkmem,
set, stat, transprob, origprob, tree, reopt, lp, branchcand, eventqueue,
5620 if( eqchild !=
NULL )
5632 SCIPsetDebugMsg(
set,
" -> creating child: <%s> >= %g (priority: %g, estimate: %g)\n",
5635 SCIP_CALL(
SCIPnodeAddBoundchg(node, blkmem,
set, stat, transprob, origprob, tree, reopt, lp, branchcand, eventqueue,
5640 if( upchild !=
NULL )
5672 assert(tree !=
NULL);
5673 assert(
set !=
NULL);
5674 assert(var !=
NULL);
5682 if( downchild !=
NULL )
5684 if( upchild !=
NULL )
5739 SCIPsetDebugMsg(
set,
" -> creating child: <%s> <= %g (priority: %g, estimate: %g)\n",
5743 SCIP_CALL(
SCIPnodeAddBoundchg(node, blkmem,
set, stat, transprob, origprob, tree, reopt, lp, branchcand, eventqueue,
NULL,
5748 if( downchild !=
NULL )
5759 SCIPsetDebugMsg(
set,
" -> creating child: <%s> >= %g (priority: %g, estimate: %g)\n",
5763 SCIP_CALL(
SCIPnodeAddBoundchg(node, blkmem,
set, stat, transprob, origprob, tree, reopt, lp, branchcand, eventqueue,
5768 if( upchild !=
NULL )
5822 assert(tree !=
NULL);
5823 assert(
set !=
NULL);
5824 assert(var !=
NULL);
5826 assert(minwidth >= 0.0);
5837 SCIP_CALL(
SCIPtreeBranchVar(tree, reopt, blkmem,
set, stat, transprob, origprob, lp, branchcand, eventqueue, var, val,
5838 &downchild, &fixchild, &upchild) );
5840 if( nchildren !=
NULL )
5841 *nchildren = (downchild !=
NULL ? 1 : 0) + (fixchild !=
NULL ? 1 : 0) + (upchild !=
NULL ? 1 : 0);
5868 val = (val - constant) / scalar;
5942 else if( widthfactor == 1.0 )
5960 assert(widthfactor > 1.0);
5962 width *= (widthfactor - 1.0) / (
pow(widthfactor, (
SCIP_Real)(n/2)) - 1.0);
5964 width /= 0.5 + widthfactor * (
pow(widthfactor, (
SCIP_Real)(n/2)) - 1.0) / (widthfactor - 1.0);
5967 minwidth =
MAX(1.0, minwidth);
5968 if( width < minwidth )
5972 SCIPsetDebugMsg(
set,
"%d-ary branching on variable <%s> [%g, %g] around %g, initial width = %g\n",
5975 if( nchildren !=
NULL )
5982 left = val - width/2.0;
5983 right = val + width/2.0;
6000 SCIPsetDebugMsg(
set,
" -> creating middle child: %g <= <%s> <= %g (priority: %g, estimate: %g, width: %g)\n",
6001 left,
SCIPvarGetName(var), right, priority, estimate, right - left);
6004 SCIP_CALL(
SCIPnodeAddBoundchg(node, blkmem,
set, stat, transprob, origprob, tree, reopt, lp, branchcand,
6006 SCIP_CALL(
SCIPnodeAddBoundchg(node, blkmem,
set, stat, transprob, origprob, tree, reopt, lp, branchcand, eventqueue,
6011 if( nchildren !=
NULL )
6023 width *= widthfactor;
6031 if( right - left < 0.5 )
6048 for( i = 0; i < n; ++i )
6079 SCIPsetDebugMsg(
set,
" -> creating left child: %g <= <%s> <= %g (priority: %g, estimate: %g, width: %g)\n",
6085 SCIP_CALL(
SCIPnodeAddBoundchg(node, blkmem,
set, stat, transprob, origprob, tree, reopt, lp, branchcand, eventqueue,
6088 SCIP_CALL(
SCIPnodeAddBoundchg(node, blkmem,
set, stat, transprob, origprob, tree, reopt, lp, branchcand, eventqueue,
6093 if( nchildren !=
NULL )
6113 bnd = right + width;
6130 SCIPsetDebugMsg(
set,
" -> creating right child: %g <= <%s> <= %g (priority: %g, estimate: %g, width: %g)\n",
6131 right,
SCIPvarGetName(var), bnd, priority, estimate, bnd - right);
6134 SCIP_CALL(
SCIPnodeAddBoundchg(node, blkmem,
set, stat, transprob, origprob, tree, reopt, lp, branchcand, eventqueue,
6138 SCIP_CALL(
SCIPnodeAddBoundchg(node, blkmem,
set, stat, transprob, origprob, tree, reopt, lp, branchcand, eventqueue,
6144 if( nchildren !=
NULL )
6152 width *= widthfactor;
6161 #define ARRAYGROWTH 5 6171 int idx = preferred ? 0 : 1;
6174 assert(pos < tree->divebdchgsize[idx]);
6203 int idx = preferred ? 0 : 1;
6205 assert(variables !=
NULL);
6206 assert(directions !=
NULL);
6207 assert(values !=
NULL);
6208 assert(ndivebdchgs !=
NULL);
6223 for( p = 0; p < 2; ++p )
6243 assert(tree !=
NULL);
6246 assert(blkmem !=
NULL);
6247 assert(
set !=
NULL);
6258 assert(node !=
NULL);
6282 SCIPsetDebugMsg(
set,
"created probing root node #%" SCIP_LONGINT_FORMAT
" at depth %d\n",
6290 SCIPsetDebugMsg(
set,
"created probing child node #%" SCIP_LONGINT_FORMAT
" at depth %d, probing depth %d\n",
6324 assert(tree !=
NULL);
6330 SCIPsetDebugMsg(
set,
"probing started in depth %d (LP flushed: %u, LP solved: %u, solstat: %d), probing root in depth %d\n",
6399 assert(tree !=
NULL);
6434 assert(node !=
NULL);
6439 if( lpistate ==
NULL )
6450 if( lpistate !=
NULL )
6453 lpwasprimfeas, lpwasprimchecked, lpwasdualfeas, lpwasdualchecked) );
6457 if( lpinorms !=
NULL )
6478 assert(tree !=
NULL);
6520 assert(tree !=
NULL);
6536 assert(newpathlen >= 1);
6539 if( newpathlen < tree->pathlen )
6551 while( tree->
pathlen > newpathlen )
6600 assert(tree->
pathlen == newpathlen);
6628 SCIP_CALL(
treeApplyPendingBdchgs(tree, reopt, blkmem,
set, stat, transprob, origprob, lp, branchcand, eventqueue, cliquetable) );
6663 assert(tree !=
NULL);
6668 SCIP_CALL(
treeBacktrackProbing(tree, reopt, blkmem,
set, stat, transprob, origprob, lp, relaxation, primal, branchcand,
6669 eventqueue, eventfilter, cliquetable, probingdepth) );
6698 assert(tree !=
NULL);
6709 assert(
set !=
NULL);
6712 SCIP_CALL(
treeBacktrackProbing(tree, reopt, blkmem,
set, stat, transprob, origprob, lp, relaxation, primal, branchcand,
6713 eventqueue, eventfilter, cliquetable, -1) );
6759 SCIP_CALL(
SCIPlpSolveAndEval(lp,
set, messagehdlr, blkmem, stat, eventqueue, eventfilter, transprob, -1LL,
FALSE,
FALSE,
FALSE, &lperror) );
6763 "(node %" SCIP_LONGINT_FORMAT
") unresolved numerical troubles while resolving LP %" SCIP_LONGINT_FORMAT
" after probing\n",
6774 "LP was not resolved to a sufficient status after probing\n");
6809 SCIPsetDebugMsg(
set,
"clearing lp state at end of probing mode because LP was initially unsolved\n");
6843 assert(tree !=
NULL);
6869 assert(tree !=
NULL);
6896 assert(tree !=
NULL);
6899 assert(nodesel !=
NULL);
6923 assert(tree !=
NULL);
6926 assert(nodesel !=
NULL);
6945 assert(tree !=
NULL);
6962 assert(tree !=
NULL);
6965 assert(nodesel !=
NULL);
6973 bestnode = bestchild;
6975 bestnode = bestsibling;
6977 bestnode = bestleaf;
6993 assert(tree !=
NULL);
6994 assert(
set !=
NULL);
7033 assert(tree !=
NULL);
7034 assert(
set !=
NULL);
7049 lowerboundnode = tree->
children[i];
7064 lowerboundnode = tree->
siblings[i];
7071 return lowerboundnode;
7084 assert(tree !=
NULL);
7113 return nnodes == 0 ? 0.0 : lowerboundsum/
nnodes;
7129 #undef SCIPnodeGetType 7130 #undef SCIPnodeGetNumber 7131 #undef SCIPnodeGetDepth 7132 #undef SCIPnodeGetLowerbound 7133 #undef SCIPnodeGetEstimate 7134 #undef SCIPnodeGetDomchg 7135 #undef SCIPnodeGetParent 7136 #undef SCIPnodeGetConssetchg 7137 #undef SCIPnodeIsActive 7138 #undef SCIPnodeIsPropagatedAgain 7139 #undef SCIPtreeGetNLeaves 7140 #undef SCIPtreeGetNChildren 7141 #undef SCIPtreeGetNSiblings 7142 #undef SCIPtreeGetNNodes 7143 #undef SCIPtreeIsPathComplete 7144 #undef SCIPtreeProbing 7145 #undef SCIPtreeGetProbingRoot 7146 #undef SCIPtreeGetProbingDepth 7147 #undef SCIPtreeGetFocusNode 7148 #undef SCIPtreeGetFocusDepth 7149 #undef SCIPtreeHasFocusNodeLP 7150 #undef SCIPtreeSetFocusNodeLP 7151 #undef SCIPtreeIsFocusNodeLPConstructed 7152 #undef SCIPtreeInRepropagation 7153 #undef SCIPtreeGetCurrentNode 7154 #undef SCIPtreeGetCurrentDepth 7155 #undef SCIPtreeHasCurrentNodeLP 7156 #undef SCIPtreeGetEffectiveRootDepth 7157 #undef SCIPtreeGetRootNode 7158 #undef SCIPtreeProbingObjChanged 7159 #undef SCIPtreeMarkProbingObjChanged 7166 assert(node !=
NULL);
7176 assert(node !=
NULL);
7186 assert(node !=
NULL);
7188 return (
int) node->
depth;
7196 assert(node !=
NULL);
7206 assert(node !=
NULL);
7216 assert(node !=
NULL);
7227 assert(node !=
NULL);
7237 node->
reopttype = (
unsigned int) reopttype;
7247 assert(node !=
NULL);
7258 assert(node !=
NULL);
7259 assert(
id <= 536870911);
7271 assert(node !=
NULL);
7289 assert(node !=
NULL);
7291 count_branchings = (nbranchings !=
NULL);
7292 count_consprop = (nconsprop !=
NULL);
7293 count_prop = (nprop !=
NULL);
7296 if( count_branchings )
7298 if( count_consprop )
7336 int npseudobranchvars;
7338 assert(node !=
NULL);
7346 npseudobranchvars = 0;
7348 assert(boundchgs !=
NULL);
7349 assert(nboundchgs >= 0);
7354 for( i = nboundchgs-1; i >= 0; i--)
7365 npseudobranchvars++;
7370 return npseudobranchvars;
7389 assert(node !=
NULL);
7390 assert(vars !=
NULL);
7391 assert(bounds !=
NULL);
7392 assert(boundtypes !=
NULL);
7393 assert(nvars !=
NULL);
7394 assert(varssize >= 0);
7404 assert(boundchgs !=
NULL);
7405 assert(nboundchgs >= 0);
7410 for( i = nboundchgs-1; i >= 0; i--)
7426 if( varssize >= *nvars )
7430 for( i = i+1; i < nboundchgs; i++)
7441 vars[j] = boundchgs[i].
var;
7456 assert(node !=
NULL);
7477 assert(node !=
NULL);
7478 assert(branchvars !=
NULL);
7479 assert(branchbounds !=
NULL);
7480 assert(boundtypes !=
NULL);
7481 assert(nbranchvars !=
NULL);
7482 assert(branchvarssize >= 0);
7492 assert(boundchgs !=
NULL);
7493 assert(nboundchgs >= 0);
7498 for( i = 0; i < nboundchgs; i++)
7508 for( ; i < nboundchgs; i++)
7513 if( branchvarssize >= *nbranchvars )
7515 for( i = 0; i < *nbranchvars; i++)
7518 branchvars[i] = boundchgs[i].
var;
7520 branchbounds[i] = boundchgs[i].
newbound;
7537 assert(node !=
NULL);
7538 assert(branchvars !=
NULL);
7539 assert(branchbounds !=
NULL);
7540 assert(boundtypes !=
NULL);
7541 assert(nbranchvars !=
NULL);
7542 assert(branchvarssize >= 0);
7548 int nodenbranchvars;
7552 start = *nbranchvars < branchvarssize - 1 ? *nbranchvars : branchvarssize - 1;
7553 size = *nbranchvars > branchvarssize ? 0 : branchvarssize-(*nbranchvars);
7556 *nbranchvars += nodenbranchvars;
7575 assert(node !=
NULL);
7576 assert(parent !=
NULL);
7577 assert(branchvars !=
NULL);
7578 assert(branchbounds !=
NULL);
7579 assert(boundtypes !=
NULL);
7580 assert(nbranchvars !=
NULL);
7581 assert(branchvarssize >= 0);
7585 while( node != parent )
7587 int nodenbranchvars;
7591 start = *nbranchvars < branchvarssize - 1 ? *nbranchvars : branchvarssize - 1;
7592 size = *nbranchvars > branchvarssize ? 0 : branchvarssize-(*nbranchvars);
7595 *nbranchvars += nodenbranchvars;
7612 int conspropvarssize
7621 assert(node !=
NULL);
7622 assert(vars !=
NULL);
7623 assert(varbounds !=
NULL);
7624 assert(varboundtypes !=
NULL);
7625 assert(nconspropvars !=
NULL);
7626 assert(conspropvarssize >= 0);
7628 (*nconspropvars) = 0;
7636 assert(boundchgs !=
NULL);
7637 assert(nboundchgs >= 0);
7642 while( i < nboundchgs
7650 for(i = nskip; i < first_dual; i++)
7666 if( conspropvarssize >= *nconspropvars )
7670 for(i = nskip, pos = 0; i < first_dual; i++)
7676 vars[pos] = boundchgs[i].
var;
7678 varbounds[pos] = boundchgs[i].
newbound;
7709 assert(node !=
NULL);
7710 assert(vars !=
NULL);
7711 assert(varbounds !=
NULL);
7712 assert(varboundtypes !=
NULL);
7713 assert(nbranchvars !=
NULL);
7714 assert(branchvarssize >= 0);
7724 assert(boundchgs !=
NULL);
7725 assert(nboundchgs >= 0);
7729 while( i < nboundchgs
7737 for( ; i < nboundchgs; i++)
7750 if( branchvarssize >= *nbranchvars )
7753 for(i = first_dual, p = start; i < nboundchgs; i++)
7760 vars[p] = boundchgs[i].
var;
7762 varbounds[p] = boundchgs[i].
newbound;
7793 for( i = 0; i < nboundchgs; i++)
7803 if( nbranchings > 0 )
7839 assert(node !=
NULL);
7840 assert(branchvars !=
NULL);
7841 assert(branchbounds !=
NULL);
7842 assert(boundtypes !=
NULL);
7843 assert(nbranchvars !=
NULL);
7844 assert(branchvarssize >= 0);
7852 int nodenbranchvars;
7857 start = *nbranchvars < branchvarssize - 1 ? *nbranchvars : branchvarssize - 1;
7858 size = *nbranchvars > branchvarssize ? 0 : branchvarssize-(*nbranchvars);
7859 if( *nnodes < nodeswitchsize )
7860 nodeswitches[*
nnodes] = start;
7864 *nbranchvars += nodenbranchvars;
7877 assert(node1 !=
NULL);
7878 assert(node2 !=
NULL);
7892 return (node1 == node2);
7901 assert(node1 !=
NULL);
7902 assert(node2 !=
NULL);
7915 while( node1 != node2 )
7931 assert(node !=
NULL);
7941 assert(node !=
NULL);
7951 assert(node !=
NULL);
7961 assert(tree !=
NULL);
7971 assert(tree !=
NULL);
7981 assert(tree !=
NULL);
7991 assert(tree !=
NULL);
8001 assert(tree !=
NULL);
8018 assert(tree !=
NULL);
8031 assert(tree !=
NULL);
8044 assert(tree !=
NULL);
8061 assert(tree !=
NULL);
8078 assert(tree !=
NULL);
8089 assert(tree !=
NULL);
8099 assert(tree !=
NULL);
8109 assert(tree !=
NULL);
8119 assert(tree !=
NULL);
8136 assert(tree !=
NULL);
8153 assert(tree !=
NULL);
8164 assert(tree !=
NULL);
8175 assert(tree !=
NULL);
8186 assert(tree !=
NULL);
8197 assert(tree !=
NULL);
8208 assert(tree !=
NULL);
SCIP_RETCODE SCIPtreeClear(SCIP_TREE *tree, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_LP *lp)
static SCIP_RETCODE forkAddLP(SCIP_NODE *fork, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTQUEUE *eventqueue, SCIP_EVENTFILTER *eventfilter, SCIP_LP *lp)
SCIP_DECL_SORTPTRCOMP(SCIPnodeCompLowerbound)
enum SCIP_BoundType SCIP_BOUNDTYPE
SCIP_RETCODE SCIPtreeAddDiveBoundChange(SCIP_TREE *tree, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_BRANCHDIR dir, SCIP_Real value, SCIP_Bool preferred)
SCIP_RETCODE SCIPlpGetProvedLowerbound(SCIP_LP *lp, SCIP_SET *set, SCIP_Real *bound)
SCIP_RETCODE SCIPtreeCreatePresolvingRoot(SCIP_TREE *tree, SCIP_REOPT *reopt, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_PRIMAL *primal, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_CONFLICT *conflict, SCIP_CONFLICTSTORE *conflictstore, SCIP_EVENTFILTER *eventfilter, SCIP_EVENTQUEUE *eventqueue, SCIP_CLIQUETABLE *cliquetable)
void SCIPnodeGetParentBranchings(SCIP_NODE *node, SCIP_VAR **branchvars, SCIP_Real *branchbounds, SCIP_BOUNDTYPE *boundtypes, int *nbranchvars, int branchvarssize)
void SCIPnodeGetDualBoundchgs(SCIP_NODE *node, SCIP_VAR **vars, SCIP_Real *bounds, SCIP_BOUNDTYPE *boundtypes, int *nvars, int varssize)
SCIP_Real SCIPvarGetWorstBoundLocal(SCIP_VAR *var)
SCIP_Bool SCIPsetIsInfinity(SCIP_SET *set, SCIP_Real val)
void SCIPrelaxationUpdateVarObj(SCIP_RELAXATION *relaxation, SCIP_SET *set, SCIP_VAR *var, SCIP_Real oldobj, SCIP_Real newobj)
SCIP_RETCODE SCIPtreeEndProbing(SCIP_TREE *tree, SCIP_REOPT *reopt, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_LP *lp, SCIP_RELAXATION *relaxation, SCIP_PRIMAL *primal, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_EVENTFILTER *eventfilter, SCIP_CLIQUETABLE *cliquetable)
#define BMSfreeBlockMemoryArrayNull(mem, ptr, num)
internal methods for managing events
SCIP_RETCODE SCIPlpFreeNorms(SCIP_LP *lp, BMS_BLKMEM *blkmem, SCIP_LPINORMS **lpinorms)
SCIP_RETCODE SCIPnodepqBound(SCIP_NODEPQ *nodepq, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_Real cutoffbound)
SCIP_Bool lpwasdualchecked
SCIP_RETCODE SCIPnodeCreateChild(SCIP_NODE **node, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_TREE *tree, SCIP_Real nodeselprio, SCIP_Real estimate)
SCIP_VAR ** SCIPcliqueGetVars(SCIP_CLIQUE *clique)
SCIP_Bool SCIPsetIsLE(SCIP_SET *set, SCIP_Real val1, SCIP_Real val2)
SCIP_PSEUDOFORK * pseudofork
SCIP_RETCODE SCIPtreeBranchVar(SCIP_TREE *tree, SCIP_REOPT *reopt, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_VAR *var, SCIP_Real val, SCIP_NODE **downchild, SCIP_NODE **eqchild, SCIP_NODE **upchild)
int SCIPlpGetNNewrows(SCIP_LP *lp)
SCIP_Bool SCIPsetIsFeasZero(SCIP_SET *set, SCIP_Real val)
void SCIPvisualRepropagatedNode(SCIP_VISUAL *visual, SCIP_STAT *stat, SCIP_NODE *node)
static SCIP_RETCODE treeEnsurePendingbdchgsMem(SCIP_TREE *tree, SCIP_SET *set, int num)
unsigned int lpwasdualfeas
void SCIPvarMarkNotDeletable(SCIP_VAR *var)
SCIP_Bool SCIPtreeHasFocusNodeLP(SCIP_TREE *tree)
static SCIP_RETCODE junctionInit(SCIP_JUNCTION *junction, SCIP_TREE *tree)
SCIP_Bool SCIPlpDiving(SCIP_LP *lp)
SCIP_RETCODE SCIPconssetchgFree(SCIP_CONSSETCHG **conssetchg, BMS_BLKMEM *blkmem, SCIP_SET *set)
#define SCIPdebugRemoveNode(blkmem, set, node)
#define BMSfreeMemoryArrayNull(ptr)
SCIP_RETCODE SCIPlpShrinkRows(SCIP_LP *lp, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTQUEUE *eventqueue, SCIP_EVENTFILTER *eventfilter, int newnrows)
void SCIPlpSetIsRelax(SCIP_LP *lp, SCIP_Bool relax)
static SCIP_RETCODE probingnodeUpdate(SCIP_PROBINGNODE *probingnode, BMS_BLKMEM *blkmem, SCIP_TREE *tree, SCIP_LP *lp)
internal methods for branch and bound tree
SCIP_Real SCIPtreeCalcChildEstimate(SCIP_TREE *tree, SCIP_SET *set, SCIP_STAT *stat, SCIP_VAR *var, SCIP_Real targetvalue)
SCIP_RETCODE SCIPtreeBranchVarHole(SCIP_TREE *tree, SCIP_REOPT *reopt, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_VAR *var, SCIP_Real left, SCIP_Real right, SCIP_NODE **downchild, SCIP_NODE **upchild)
SCIP_Longint ndeactivatednodes
void SCIPtreeSetFocusNodeLP(SCIP_TREE *tree, SCIP_Bool solvelp)
SCIP_NODE * SCIPnodesGetCommonAncestor(SCIP_NODE *node1, SCIP_NODE *node2)
SCIP_RETCODE SCIPeventqueueProcess(SCIP_EVENTQUEUE *eventqueue, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_PRIMAL *primal, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTFILTER *eventfilter)
SCIP_BRANCHDIR SCIPvarGetBranchDirection(SCIP_VAR *var)
union SCIP_BoundChg::@11 data
SCIP_RETCODE SCIPlpFlush(SCIP_LP *lp, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTQUEUE *eventqueue)
SCIP_NODE * SCIPtreeGetLowerboundNode(SCIP_TREE *tree, SCIP_SET *set)
SCIP_Real SCIPsetFloor(SCIP_SET *set, SCIP_Real val)
SCIP_Bool SCIPsetIsFeasEQ(SCIP_SET *set, SCIP_Real val1, SCIP_Real val2)
SCIP_RETCODE SCIPlpRemoveAllObsoletes(SCIP_LP *lp, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_EVENTFILTER *eventfilter)
SCIP_Real SCIPnodeGetLowerbound(SCIP_NODE *node)
methods for implications, variable bounds, and cliques
SCIP_Real SCIPvarGetLbGlobal(SCIP_VAR *var)
int SCIPnodepqCompare(SCIP_NODEPQ *nodepq, SCIP_SET *set, SCIP_NODE *node1, SCIP_NODE *node2)
SCIP_Longint focuslpstateforklpcount
static SCIP_RETCODE pseudoforkCreate(SCIP_PSEUDOFORK **pseudofork, BMS_BLKMEM *blkmem, SCIP_TREE *tree, SCIP_LP *lp)
SCIP_RETCODE SCIPtreeSetNodesel(SCIP_TREE *tree, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_STAT *stat, SCIP_NODESEL *nodesel)
void SCIPgmlWriteArc(FILE *file, unsigned int source, unsigned int target, const char *label, const char *color)
static SCIP_RETCODE treeEnsurePathMem(SCIP_TREE *tree, SCIP_SET *set, int num)
internal methods for clocks and timing issues
SCIPInterval pow(const SCIPInterval &x, const SCIPInterval &y)
SCIP_BRANCHDIR * divebdchgdirs[2]
SCIP_BOUNDCHG * boundchgs
SCIP_Bool SCIPsetIsPositive(SCIP_SET *set, SCIP_Real val)
int SCIPtreeGetProbingDepth(SCIP_TREE *tree)
SCIP_RETCODE SCIPnodeDelCons(SCIP_NODE *node, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_TREE *tree, SCIP_CONS *cons)
SCIP_RETCODE SCIPnodeAddBoundinfer(SCIP_NODE *node, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_CLIQUETABLE *cliquetable, SCIP_VAR *var, SCIP_Real newbound, SCIP_BOUNDTYPE boundtype, SCIP_CONS *infercons, SCIP_PROP *inferprop, int inferinfo, SCIP_Bool probingchange)
SCIP_Real SCIPvarGetLbLocal(SCIP_VAR *var)
void SCIProwCapture(SCIP_ROW *row)
SCIP_CLIQUE ** SCIPvarGetCliques(SCIP_VAR *var, SCIP_Bool varfixing)
SCIP_PROBINGNODE * probingnode
SCIP_RETCODE SCIPtreeCreate(SCIP_TREE **tree, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_NODESEL *nodesel)
unsigned int repropsubtreemark
SCIP_NODE * SCIPnodeGetParent(SCIP_NODE *node)
void SCIPgmlWriteNode(FILE *file, unsigned int id, const char *label, const char *nodetype, const char *fillcolor, const char *bordercolor)
void SCIPnodeGetAddedConss(SCIP_NODE *node, SCIP_CONS **addedconss, int *naddedconss, int addedconsssize)
void SCIPnodeSetReoptID(SCIP_NODE *node, unsigned int id)
SCIP_RETCODE SCIPvarAddHoleGlobal(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_Real left, SCIP_Real right, SCIP_Bool *added)
interface methods for specific LP solvers
SCIP_Bool SCIPvarIsBinary(SCIP_VAR *var)
SCIP_NODE * SCIPtreeGetBestNode(SCIP_TREE *tree, SCIP_SET *set)
SCIP_Real SCIPsetInfinity(SCIP_SET *set)
SCIP_Longint nactiveconssadded
SCIP_NODE * SCIPtreeGetProbingRoot(SCIP_TREE *tree)
SCIP_Real SCIPvarGetSol(SCIP_VAR *var, SCIP_Bool getlpval)
SCIP_NODE * SCIPtreeGetBestChild(SCIP_TREE *tree, SCIP_SET *set)
SCIP_Real * divebdchgvals[2]
SCIP_Real SCIPvarGetRootSol(SCIP_VAR *var)
int SCIPnodepqLen(const SCIP_NODEPQ *nodepq)
SCIP_RETCODE SCIPlpFreeState(SCIP_LP *lp, BMS_BLKMEM *blkmem, SCIP_LPISTATE **lpistate)
void SCIPgmlWriteClosing(FILE *file)
SCIP_BOUNDTYPE SCIPboundchgGetBoundtype(SCIP_BOUNDCHG *boundchg)
unsigned int lpwasdualchecked
static SCIP_RETCODE subrootFree(SCIP_SUBROOT **subroot, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_LP *lp)
void SCIPclockStop(SCIP_CLOCK *clck, SCIP_SET *set)
static void forkCaptureLPIState(SCIP_FORK *fork, int nuses)
SCIP_LPINORMS * probinglpinorms
static SCIP_RETCODE focusnodeToLeaf(BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_NODE *lpstatefork, SCIP_Real cutoffbound)
static void treeRemoveSibling(SCIP_TREE *tree, SCIP_NODE *sibling)
SCIP_Bool SCIPsetIsFeasIntegral(SCIP_SET *set, SCIP_Real val)
SCIP_RETCODE SCIPdomchgUndo(SCIP_DOMCHG *domchg, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue)
SCIP_Real SCIPrelDiff(SCIP_Real val1, SCIP_Real val2)
SCIP_Bool probinglpwasdualchecked
void SCIPclockStart(SCIP_CLOCK *clck, SCIP_SET *set)
SCIP_Longint ncreatednodes
int SCIPsnprintf(char *t, int len, const char *s,...)
SCIP_Bool SCIPsetIsZero(SCIP_SET *set, SCIP_Real val)
SCIP_RETCODE SCIPeventqueueDelay(SCIP_EVENTQUEUE *eventqueue)
SCIP_NODE * SCIPnodepqGetLowerboundNode(SCIP_NODEPQ *nodepq, SCIP_SET *set)
static SCIP_RETCODE treeBacktrackProbing(SCIP_TREE *tree, SCIP_REOPT *reopt, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_LP *lp, SCIP_RELAXATION *relaxation, SCIP_PRIMAL *primal, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_EVENTFILTER *eventfilter, SCIP_CLIQUETABLE *cliquetable, int probingdepth)
enum SCIP_Retcode SCIP_RETCODE
SCIP_RETCODE SCIPtreeLoadLPState(SCIP_TREE *tree, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_LP *lp)
SCIP_RETCODE SCIPlpGetState(SCIP_LP *lp, BMS_BLKMEM *blkmem, SCIP_LPISTATE **lpistate)
int SCIPtreeGetCurrentDepth(SCIP_TREE *tree)
SCIP_Real SCIPnodepqGetLowerboundSum(SCIP_NODEPQ *nodepq)
int SCIPvarGetProbindex(SCIP_VAR *var)
int SCIPsetCalcMemGrowSize(SCIP_SET *set, int num)
SCIP_NODE * SCIPtreeGetFocusNode(SCIP_TREE *tree)
SCIP_Bool probinglpwasflushed
SCIP_Real SCIPvarGetAvgInferences(SCIP_VAR *var, SCIP_STAT *stat, SCIP_BRANCHDIR dir)
SCIP_RETCODE SCIPlpSolveAndEval(SCIP_LP *lp, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, BMS_BLKMEM *blkmem, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_EVENTFILTER *eventfilter, SCIP_PROB *prob, SCIP_Longint itlim, SCIP_Bool limitresolveiters, SCIP_Bool aging, SCIP_Bool keepsol, SCIP_Bool *lperror)
SCIP_ROW ** SCIPlpGetRows(SCIP_LP *lp)
SCIP_RETCODE SCIPlpCleanupAll(SCIP_LP *lp, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_EVENTFILTER *eventfilter, SCIP_Bool root)
SCIP_Bool probingsolvedlp
SCIP_RETCODE SCIPlpSetNorms(SCIP_LP *lp, BMS_BLKMEM *blkmem, SCIP_LPINORMS *lpinorms)
int SCIPnodeGetDepth(SCIP_NODE *node)
methods for creating output for visualization tools (VBC, BAK)
static SCIP_RETCODE treeAddChild(SCIP_TREE *tree, SCIP_SET *set, SCIP_NODE *child, SCIP_Real nodeselprio)
SCIP_Bool SCIPvarIsDeletable(SCIP_VAR *var)
int SCIPvarGetConflictingBdchgDepth(SCIP_VAR *var, SCIP_SET *set, SCIP_BOUNDTYPE boundtype, SCIP_Real bound)
#define BMSfreeMemory(ptr)
SCIP_RETCODE SCIPlpEndProbing(SCIP_LP *lp)
SCIP_NODESEL * SCIPnodepqGetNodesel(SCIP_NODEPQ *nodepq)
void SCIPvarAdjustLb(SCIP_VAR *var, SCIP_SET *set, SCIP_Real *lb)
static void treeChildrenToSiblings(SCIP_TREE *tree)
unsigned int lpwasdualfeas
SCIP_CONS ** disabledconss
static SCIP_RETCODE probingnodeFree(SCIP_PROBINGNODE **probingnode, BMS_BLKMEM *blkmem, SCIP_LP *lp)
SCIP_LPSOLSTAT SCIPlpGetSolstat(SCIP_LP *lp)
SCIP_Real SCIPsetCeil(SCIP_SET *set, SCIP_Real val)
static SCIP_RETCODE treeCreateProbingNode(SCIP_TREE *tree, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_LP *lp)
#define SCIPstatIncrement(stat, set, field)
internal methods for LP management
SCIP_Bool SCIPconsIsActive(SCIP_CONS *cons)
int SCIPvarGetNCliques(SCIP_VAR *var, SCIP_Bool varfixing)
SCIP_Bool SCIPtreeIsPathComplete(SCIP_TREE *tree)
SCIP_Bool SCIPtreeIsFocusNodeLPConstructed(SCIP_TREE *tree)
void SCIPnodeGetAncestorBranchings(SCIP_NODE *node, SCIP_VAR **branchvars, SCIP_Real *branchbounds, SCIP_BOUNDTYPE *boundtypes, int *nbranchvars, int branchvarssize)
internal methods for collecting primal CIP solutions and primal informations
SCIP_Bool SCIPconsIsGlobal(SCIP_CONS *cons)
int SCIPlpGetNCols(SCIP_LP *lp)
unsigned int lpwasprimchecked
SCIP_Bool SCIPsetIsGE(SCIP_SET *set, SCIP_Real val1, SCIP_Real val2)
internal methods for propagators
SCIP_Bool SCIPclockIsRunning(SCIP_CLOCK *clck)
SCIP_RETCODE SCIPnodepqInsert(SCIP_NODEPQ *nodepq, SCIP_SET *set, SCIP_NODE *node)
int SCIPtreeGetFocusDepth(SCIP_TREE *tree)
static SCIP_RETCODE pseudoforkAddLP(SCIP_NODE *pseudofork, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTQUEUE *eventqueue, SCIP_EVENTFILTER *eventfilter, SCIP_LP *lp)
enum SCIP_BranchDir SCIP_BRANCHDIR
SCIP_Longint SCIPnodeGetNumber(SCIP_NODE *node)
int SCIPtreeGetNChildren(SCIP_TREE *tree)
SCIP_NODE * SCIPtreeGetBestLeaf(SCIP_TREE *tree)
static SCIP_RETCODE nodeRepropagate(SCIP_NODE *node, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_PRIMAL *primal, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_CONFLICT *conflict, SCIP_EVENTFILTER *eventfilter, SCIP_EVENTQUEUE *eventqueue, SCIP_CLIQUETABLE *cliquetable, SCIP_Bool *cutoff)
SCIP_RETCODE SCIPnodeCutoff(SCIP_NODE *node, SCIP_SET *set, SCIP_STAT *stat, SCIP_TREE *tree, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_REOPT *reopt, SCIP_LP *lp, BMS_BLKMEM *blkmem)
unsigned int lpwasprimchecked
SCIP_Real SCIPvarGetUbGlobal(SCIP_VAR *var)
SCIP_Bool SCIPsetIsLT(SCIP_SET *set, SCIP_Real val1, SCIP_Real val2)
SCIP_VAR * SCIPvarGetProbvar(SCIP_VAR *var)
SCIP_Bool probinglpwassolved
SCIP_RETCODE SCIPlpCleanupNew(SCIP_LP *lp, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_EVENTFILTER *eventfilter, SCIP_Bool root)
SCIP_Real SCIPtreeCalcNodeselPriority(SCIP_TREE *tree, SCIP_SET *set, SCIP_STAT *stat, SCIP_VAR *var, SCIP_BRANCHDIR branchdir, SCIP_Real targetvalue)
SCIP_REOPTTYPE SCIPnodeGetReopttype(SCIP_NODE *node)
SCIP_Bool probingloadlpistate
static SCIP_RETCODE subrootConstructLP(SCIP_NODE *subroot, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTQUEUE *eventqueue, SCIP_EVENTFILTER *eventfilter, SCIP_LP *lp)
SCIP_Bool SCIPtreeProbing(SCIP_TREE *tree)
SCIP_RETCODE SCIPprobPerformVarDeletions(SCIP_PROB *prob, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_CLIQUETABLE *cliquetable, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand)
SCIP_RETCODE SCIPlpSetState(SCIP_LP *lp, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTQUEUE *eventqueue, SCIP_LPISTATE *lpistate, SCIP_Bool wasprimfeas, SCIP_Bool wasprimchecked, SCIP_Bool wasdualfeas, SCIP_Bool wasdualchecked)
SCIP_RETCODE SCIPvisualNewChild(SCIP_VISUAL *visual, SCIP_SET *set, SCIP_STAT *stat, SCIP_NODE *node)
void SCIPnodeUpdateLowerbound(SCIP_NODE *node, SCIP_STAT *stat, SCIP_SET *set, SCIP_TREE *tree, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_Real newbound)
SCIP_Real SCIPvarGetPseudocost(SCIP_VAR *var, SCIP_STAT *stat, SCIP_Real solvaldelta)
int SCIPlpGetNNewcols(SCIP_LP *lp)
#define BMSduplicateBlockMemoryArray(mem, ptr, source, num)
SCIP_RETCODE SCIPconssetchgApply(SCIP_CONSSETCHG *conssetchg, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, int depth, SCIP_Bool focusnode)
SCIP_Bool probingobjchanged
SCIP_RETCODE SCIPlpStartProbing(SCIP_LP *lp)
SCIP_RETCODE SCIPdomchgApplyGlobal(SCIP_DOMCHG *domchg, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_CLIQUETABLE *cliquetable, SCIP_Bool *cutoff)
SCIP_Bool SCIPnodesSharePath(SCIP_NODE *node1, SCIP_NODE *node2)
void SCIPnodeGetAncestorBranchingPath(SCIP_NODE *node, SCIP_VAR **branchvars, SCIP_Real *branchbounds, SCIP_BOUNDTYPE *boundtypes, int *nbranchvars, int branchvarssize, int *nodeswitches, int *nnodes, int nodeswitchsize)
#define BMSfreeMemoryArray(ptr)
static SCIP_RETCODE forkReleaseLPIState(SCIP_FORK *fork, BMS_BLKMEM *blkmem, SCIP_LP *lp)
static void treeFindSwitchForks(SCIP_TREE *tree, SCIP_NODE *node, SCIP_NODE **commonfork, SCIP_NODE **newlpfork, SCIP_NODE **newlpstatefork, SCIP_NODE **newsubroot, SCIP_Bool *cutoff)
internal methods for storing and manipulating the main problem
void SCIPmessagePrintVerbInfo(SCIP_MESSAGEHDLR *messagehdlr, SCIP_VERBLEVEL verblevel, SCIP_VERBLEVEL msgverblevel, const char *formatstr,...)
SCIP_Bool SCIPboundchgIsRedundant(SCIP_BOUNDCHG *boundchg)
SCIP_RETCODE SCIPdomchgMakeStatic(SCIP_DOMCHG **domchg, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTQUEUE *eventqueue, SCIP_LP *lp)
static SCIP_RETCODE pseudoforkFree(SCIP_PSEUDOFORK **pseudofork, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_LP *lp)
SCIP_RETCODE SCIPdomchgFree(SCIP_DOMCHG **domchg, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTQUEUE *eventqueue, SCIP_LP *lp)
SCIP_RETCODE SCIPvarChgObj(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_PROB *prob, SCIP_PRIMAL *primal, SCIP_LP *lp, SCIP_EVENTQUEUE *eventqueue, SCIP_Real newobj)
void SCIPnodeGetNDomchg(SCIP_NODE *node, int *nbranchings, int *nconsprop, int *nprop)
static SCIP_RETCODE treeAddPendingBdchg(SCIP_TREE *tree, SCIP_SET *set, SCIP_NODE *node, SCIP_VAR *var, SCIP_Real newbound, SCIP_BOUNDTYPE boundtype, SCIP_CONS *infercons, SCIP_PROP *inferprop, int inferinfo, SCIP_Bool probingchange)
SCIP_RETCODE SCIPlpAddCol(SCIP_LP *lp, SCIP_SET *set, SCIP_COL *col, int depth)
SCIP_Bool SCIPtreeInRepropagation(SCIP_TREE *tree)
SCIP_RETCODE SCIPnodeFocus(SCIP_NODE **node, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_PRIMAL *primal, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_CONFLICT *conflict, SCIP_CONFLICTSTORE *conflictstore, SCIP_EVENTFILTER *eventfilter, SCIP_EVENTQUEUE *eventqueue, SCIP_CLIQUETABLE *cliquetable, SCIP_Bool *cutoff, SCIP_Bool postponed, SCIP_Bool exitsolve)
#define SCIPdebugCheckInference(blkmem, set, node, var, newbound, boundtype)
SCIP_Bool SCIPsetIsRelEQ(SCIP_SET *set, SCIP_Real val1, SCIP_Real val2)
SCIP_RETCODE SCIPvarRelease(SCIP_VAR **var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTQUEUE *eventqueue, SCIP_LP *lp)
SCIP_RETCODE SCIPlpShrinkCols(SCIP_LP *lp, SCIP_SET *set, int newncols)
SCIP_COL ** SCIPlpGetCols(SCIP_LP *lp)
SCIP_LPISTATE * probinglpistate
SCIP_RETCODE SCIPnodepqSetNodesel(SCIP_NODEPQ **nodepq, SCIP_SET *set, SCIP_NODESEL *nodesel)
void SCIPnodeMarkPropagated(SCIP_NODE *node, SCIP_TREE *tree)
static SCIP_RETCODE focusnodeToPseudofork(BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_CLIQUETABLE *cliquetable)
SCIP_NODE * focuslpstatefork
const char * SCIPconsGetName(SCIP_CONS *cons)
void SCIPlpMarkSize(SCIP_LP *lp)
SCIP_RETCODE SCIPnodePrintAncestorBranchings(SCIP_NODE *node, FILE *file)
const char * SCIPvarGetName(SCIP_VAR *var)
SCIP_NODE * SCIPtreeGetBestSibling(SCIP_TREE *tree, SCIP_SET *set)
void SCIPnodeGetAncestorBranchingsPart(SCIP_NODE *node, SCIP_NODE *parent, SCIP_VAR **branchvars, SCIP_Real *branchbounds, SCIP_BOUNDTYPE *boundtypes, int *nbranchvars, int branchvarssize)
SCIP_Bool SCIPnodeIsPropagatedAgain(SCIP_NODE *node)
SCIP_Real SCIPsetFeasCeil(SCIP_SET *set, SCIP_Real val)
static void treeCheckPath(SCIP_TREE *tree)
SCIP_DOMCHG * SCIPnodeGetDomchg(SCIP_NODE *node)
SCIP_RETCODE SCIPlpAddRow(SCIP_LP *lp, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTQUEUE *eventqueue, SCIP_EVENTFILTER *eventfilter, SCIP_ROW *row, int depth)
SCIP_RETCODE SCIPtreeLoadLP(SCIP_TREE *tree, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTQUEUE *eventqueue, SCIP_EVENTFILTER *eventfilter, SCIP_LP *lp, SCIP_Bool *initroot)
enum SCIP_ReoptType SCIP_REOPTTYPE
int appliedeffectiverootdepth
static SCIP_RETCODE focusnodeToFork(BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_EVENTFILTER *eventfilter, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_CLIQUETABLE *cliquetable)
SCIP_Real SCIPvarGetLPSol(SCIP_VAR *var)
SCIP_Bool SCIPsetIsRelGT(SCIP_SET *set, SCIP_Real val1, SCIP_Real val2)
static void subrootCaptureLPIState(SCIP_SUBROOT *subroot, int nuses)
internal methods for node selectors and node priority queues
static SCIP_RETCODE treeEnsureChildrenMem(SCIP_TREE *tree, SCIP_SET *set, int num)
#define SCIP_PROPTIMING_ALWAYS
internal methods for global SCIP settings
internal methods for storing conflicts
SCIP_Bool SCIPsetIsFeasGE(SCIP_SET *set, SCIP_Real val1, SCIP_Real val2)
int SCIPlpGetNRows(SCIP_LP *lp)
SCIP_CONSSETCHG * SCIPnodeGetConssetchg(SCIP_NODE *node)
int SCIPnodeselCompare(SCIP_NODESEL *nodesel, SCIP_SET *set, SCIP_NODE *node1, SCIP_NODE *node2)
SCIP_RETCODE SCIPconsDisable(SCIP_CONS *cons, SCIP_SET *set, SCIP_STAT *stat)
SCIP_Bool probinglpwasprimchecked
internal methods for relaxators
SCIP_Bool SCIPsetIsEQ(SCIP_SET *set, SCIP_Real val1, SCIP_Real val2)
#define SCIPdebugCheckLbGlobal(scip, var, lb)
SCIP_Real SCIPlpGetObjval(SCIP_LP *lp, SCIP_SET *set, SCIP_PROB *prob)
SCIP_Longint ncreatednodesrun
SCIP_Bool SCIPsetIsFeasLE(SCIP_SET *set, SCIP_Real val1, SCIP_Real val2)
#define SCIPdebugCheckUbGlobal(scip, var, ub)
SCIP_RETCODE SCIProwRelease(SCIP_ROW **row, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_LP *lp)
SCIP_RETCODE SCIPnodepqFree(SCIP_NODEPQ **nodepq, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_TREE *tree, SCIP_LP *lp)
SCIP_Real SCIPtreeGetAvgLowerbound(SCIP_TREE *tree, SCIP_Real cutoffbound)
void SCIPvarAdjustBd(SCIP_VAR *var, SCIP_SET *set, SCIP_BOUNDTYPE boundtype, SCIP_Real *bd)
void SCIPtreeClearDiveBoundChanges(SCIP_TREE *tree)
#define BMSfreeBlockMemory(mem, ptr)
data structures and methods for collecting reoptimization information
internal methods for problem variables
void SCIPnodeSetEstimate(SCIP_NODE *node, SCIP_SET *set, SCIP_Real newestimate)
int SCIPnodeGetNDualBndchgs(SCIP_NODE *node)
static SCIP_RETCODE nodeReleaseParent(SCIP_NODE *node, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_TREE *tree, SCIP_LP *lp)
SCIP_BOUNDTYPE * SCIPvarGetImplTypes(SCIP_VAR *var, SCIP_Bool varfixing)
unsigned int boundchgtype
void SCIPnodePropagateAgain(SCIP_NODE *node, SCIP_SET *set, SCIP_STAT *stat, SCIP_TREE *tree)
SCIP_INFERENCEDATA inferencedata
SCIP_RETCODE SCIPlpClear(SCIP_LP *lp, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTQUEUE *eventqueue, SCIP_EVENTFILTER *eventfilter)
static SCIP_RETCODE treeUpdatePathLPSize(SCIP_TREE *tree, int startdepth)
int SCIPtreeGetEffectiveRootDepth(SCIP_TREE *tree)
void SCIPlpRecomputeLocalAndGlobalPseudoObjval(SCIP_LP *lp, SCIP_SET *set, SCIP_PROB *prob)
static SCIP_RETCODE treeSwitchPath(SCIP_TREE *tree, SCIP_REOPT *reopt, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_PRIMAL *primal, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_CONFLICT *conflict, SCIP_EVENTFILTER *eventfilter, SCIP_EVENTQUEUE *eventqueue, SCIP_CLIQUETABLE *cliquetable, SCIP_NODE *fork, SCIP_NODE *focusnode, SCIP_Bool *cutoff)
void SCIPvarCapture(SCIP_VAR *var)
SCIP_RETCODE SCIPreoptCheckCutoff(SCIP_REOPT *reopt, SCIP_SET *set, BMS_BLKMEM *blkmem, SCIP_NODE *node, SCIP_EVENTTYPE eventtype, SCIP_LP *lp, SCIP_LPSOLSTAT lpsolstat, SCIP_Bool isrootnode, SCIP_Bool isfocusnode, SCIP_Real lowerbound, int effectiverootdepth)
#define BMSallocBlockMemoryArray(mem, ptr, num)
SCIP_Bool lpwasprimchecked
int SCIPsetCalcPathGrowSize(SCIP_SET *set, int num)
SCIP_Bool focuslpconstructed
SCIP_Bool SCIPvarIsInLP(SCIP_VAR *var)
SCIP_Longint nearlybacktracks
SCIP_RETCODE SCIPtreeCreateRoot(SCIP_TREE *tree, SCIP_REOPT *reopt, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_LP *lp)
static SCIP_RETCODE nodeAssignParent(SCIP_NODE *node, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_TREE *tree, SCIP_NODE *parent, SCIP_Real nodeselprio)
SCIP_ROW ** SCIPlpGetNewrows(SCIP_LP *lp)
int SCIPvarGetBranchPriority(SCIP_VAR *var)
SCIP_RETCODE SCIPnodepqRemove(SCIP_NODEPQ *nodepq, SCIP_SET *set, SCIP_NODE *node)
void SCIPtreeGetDiveBoundChangeData(SCIP_TREE *tree, SCIP_VAR ***variables, SCIP_BRANCHDIR **directions, SCIP_Real **values, int *ndivebdchgs, SCIP_Bool preferred)
unsigned int lpwasdualchecked
static SCIP_RETCODE focusnodeCleanupVars(BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_CLIQUETABLE *cliquetable, SCIP_Bool inlp)
int SCIPvarGetNImpls(SCIP_VAR *var, SCIP_Bool varfixing)
#define BMSfreeBlockMemoryArray(mem, ptr, num)
SCIP_Bool SCIPlpDivingObjChanged(SCIP_LP *lp)
SCIP_Longint nrepropcutoffs
static SCIP_RETCODE probingnodeCreate(SCIP_PROBINGNODE **probingnode, BMS_BLKMEM *blkmem, SCIP_LP *lp)
SCIP_RETCODE SCIPnodepqCreate(SCIP_NODEPQ **nodepq, SCIP_SET *set, SCIP_NODESEL *nodesel)
static SCIP_RETCODE forkCreate(SCIP_FORK **fork, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_PROB *prob, SCIP_TREE *tree, SCIP_LP *lp)
SCIP_RETCODE SCIPboundchgApply(SCIP_BOUNDCHG *boundchg, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, int depth, int pos, SCIP_Bool *cutoff)
SCIP_VAR * SCIPboundchgGetVar(SCIP_BOUNDCHG *boundchg)
SCIP_Bool * SCIPcliqueGetValues(SCIP_CLIQUE *clique)
SCIP_RETCODE SCIPnodeAddHolechg(SCIP_NODE *node, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_TREE *tree, SCIP_EVENTQUEUE *eventqueue, SCIP_VAR *var, SCIP_Real left, SCIP_Real right, SCIP_Bool probingchange, SCIP_Bool *added)
SCIP_BOUNDCHG * SCIPdomchgGetBoundchg(SCIP_DOMCHG *domchg, int pos)
SCIP_RETCODE SCIPtreeStartProbing(SCIP_TREE *tree, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_LP *lp, SCIP_Bool strongbranching)
#define SCIP_EVENTTYPE_NODEINFEASIBLE
SCIP_Bool SCIPsetIsRelLT(SCIP_SET *set, SCIP_Real val1, SCIP_Real val2)
const char * SCIPnodeselGetName(SCIP_NODESEL *nodesel)
SCIP_NODE * SCIPnodepqFirst(const SCIP_NODEPQ *nodepq)
SCIP_Bool SCIPprobAllColsInLP(SCIP_PROB *prob, SCIP_SET *set, SCIP_LP *lp)
SCIP_Real SCIPvarGetObj(SCIP_VAR *var)
SCIP_RETCODE SCIPconshdlrsResetPropagationStatus(SCIP_SET *set, BMS_BLKMEM *blkmem, SCIP_CONSHDLR **conshdlrs, int nconshdlrs)
SCIP_RETCODE SCIPpropagateDomains(BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_PRIMAL *primal, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_CONFLICT *conflict, SCIP_CLIQUETABLE *cliquetable, int depth, int maxproprounds, SCIP_PROPTIMING timingmask, SCIP_Bool *cutoff)
SCIP_Bool probinglpwasrelax
SCIP_Bool SCIPtreeHasCurrentNodeLP(SCIP_TREE *tree)
SCIP_RETCODE SCIPvisualUpdateChild(SCIP_VISUAL *visual, SCIP_SET *set, SCIP_STAT *stat, SCIP_NODE *node)
SCIP_RETCODE SCIPnodeCaptureLPIState(SCIP_NODE *node, int nuses)
void SCIPlpSetSizeMark(SCIP_LP *lp, int nrows, int ncols)
static SCIP_RETCODE forkFree(SCIP_FORK **fork, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_LP *lp)
void SCIPnodeGetBdChgsAfterDual(SCIP_NODE *node, SCIP_VAR **vars, SCIP_Real *varbounds, SCIP_BOUNDTYPE *varboundtypes, int start, int *nbranchvars, int branchvarssize)
SCIP_NODESEL * SCIPtreeGetNodesel(SCIP_TREE *tree)
SCIP_Real * SCIPvarGetImplBounds(SCIP_VAR *var, SCIP_Bool varfixing)
SCIP_Bool SCIPsetIsFeasLT(SCIP_SET *set, SCIP_Real val1, SCIP_Real val2)
SCIP_RETCODE SCIPlpGetNorms(SCIP_LP *lp, BMS_BLKMEM *blkmem, SCIP_LPINORMS **lpinorms)
#define SCIP_MAXTREEDEPTH
SCIP_RETCODE SCIPnodeReleaseLPIState(SCIP_NODE *node, BMS_BLKMEM *blkmem, SCIP_LP *lp)
const char * SCIPpropGetName(SCIP_PROP *prop)
SCIP_RETCODE SCIPvarGetProbvarBound(SCIP_VAR **var, SCIP_Real *bound, SCIP_BOUNDTYPE *boundtype)
SCIP_CONSSETCHG * conssetchg
SCIP_RETCODE SCIPtreeFree(SCIP_TREE **tree, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_LP *lp)
SCIP_Real SCIPnodeGetEstimate(SCIP_NODE *node)
SCIP_Real SCIPlpGetModifiedPseudoObjval(SCIP_LP *lp, SCIP_SET *set, SCIP_PROB *prob, SCIP_VAR *var, SCIP_Real oldbound, SCIP_Real newbound, SCIP_BOUNDTYPE boundtype)
enum SCIP_NodeType SCIP_NODETYPE
static SCIP_RETCODE nodeToLeaf(SCIP_NODE **node, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_NODE *lpstatefork, SCIP_Real cutoffbound)
SCIP_VAR ** SCIPvarGetImplVars(SCIP_VAR *var, SCIP_Bool varfixing)
SCIP_Real SCIPsetFeasFloor(SCIP_SET *set, SCIP_Real val)
SCIP_DOMCHGBOUND domchgbound
SCIP_RETCODE SCIPvarChgBdGlobal(SCIP_VAR *var, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_CLIQUETABLE *cliquetable, SCIP_Real newbound, SCIP_BOUNDTYPE boundtype)
int SCIPtreeGetNSiblings(SCIP_TREE *tree)
int SCIPnodeGetNAddedConss(SCIP_NODE *node)
SCIP_Bool SCIPtreeProbingObjChanged(SCIP_TREE *tree)
SCIP_RETCODE SCIPtreeBranchVarNary(SCIP_TREE *tree, SCIP_REOPT *reopt, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_VAR *var, SCIP_Real val, int n, SCIP_Real minwidth, SCIP_Real widthfactor, int *nchildren)
static void treeNextRepropsubtreecount(SCIP_TREE *tree)
SCIP_Real SCIPnodepqGetLowerbound(SCIP_NODEPQ *nodepq, SCIP_SET *set)
SCIP_RETCODE SCIPlpSetCutoffbound(SCIP_LP *lp, SCIP_SET *set, SCIP_PROB *prob, SCIP_Real cutoffbound)
SCIP_NODE * SCIPtreeGetRootNode(SCIP_TREE *tree)
internal methods for main solving loop and node processing
SCIP_RETCODE SCIPconssetchgUndo(SCIP_CONSSETCHG *conssetchg, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat)
int SCIPdomchgGetNBoundchgs(SCIP_DOMCHG *domchg)
unsigned int SCIPnodeGetReoptID(SCIP_NODE *node)
static SCIP_RETCODE nodeDeactivate(SCIP_NODE *node, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_TREE *tree, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue)
SCIP_RETCODE SCIPnodeAddBoundchg(SCIP_NODE *node, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_CLIQUETABLE *cliquetable, SCIP_VAR *var, SCIP_Real newbound, SCIP_BOUNDTYPE boundtype, SCIP_Bool probingchange)
SCIP_RETCODE SCIPnodeAddHoleinfer(SCIP_NODE *node, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_TREE *tree, SCIP_EVENTQUEUE *eventqueue, SCIP_VAR *var, SCIP_Real left, SCIP_Real right, SCIP_CONS *infercons, SCIP_PROP *inferprop, int inferinfo, SCIP_Bool probingchange, SCIP_Bool *added)
SCIP_RETCODE SCIPconssetchgAddAddedCons(SCIP_CONSSETCHG **conssetchg, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_CONS *cons, int depth, SCIP_Bool focusnode, SCIP_Bool active)
SCIP_RETCODE SCIPtreeMarkProbingNodeHasLP(SCIP_TREE *tree, BMS_BLKMEM *blkmem, SCIP_LP *lp)
SCIP_NODE * SCIPtreeGetCurrentNode(SCIP_TREE *tree)
SCIP_RETCODE SCIPtreeBacktrackProbing(SCIP_TREE *tree, SCIP_REOPT *reopt, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_LP *lp, SCIP_RELAXATION *relaxation, SCIP_PRIMAL *primal, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_EVENTFILTER *eventfilter, SCIP_CLIQUETABLE *cliquetable, int probingdepth)
unsigned int updatedisable
public methods for message output
SCIP_Bool SCIPsetIsGT(SCIP_SET *set, SCIP_Real val1, SCIP_Real val2)
SCIP_VARSTATUS SCIPvarGetStatus(SCIP_VAR *var)
SCIP_RETCODE SCIPnodepqClear(SCIP_NODEPQ *nodepq, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_TREE *tree, SCIP_LP *lp)
static SCIP_RETCODE subrootReleaseLPIState(SCIP_SUBROOT *subroot, BMS_BLKMEM *blkmem, SCIP_LP *lp)
SCIP_RETCODE SCIPtreeFreePresolvingRoot(SCIP_TREE *tree, SCIP_REOPT *reopt, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_PRIMAL *primal, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_CONFLICT *conflict, SCIP_CONFLICTSTORE *conflictstore, SCIP_EVENTFILTER *eventfilter, SCIP_EVENTQUEUE *eventqueue, SCIP_CLIQUETABLE *cliquetable)
SCIP_NODETYPE SCIPnodeGetType(SCIP_NODE *node)
static SCIP_RETCODE nodeCreate(SCIP_NODE **node, BMS_BLKMEM *blkmem, SCIP_SET *set)
void SCIPvisualCutoffNode(SCIP_VISUAL *visual, SCIP_SET *set, SCIP_STAT *stat, SCIP_NODE *node, SCIP_Bool infeasible)
internal methods for problem statistics
void SCIPstatUpdatePrimalDualIntegral(SCIP_STAT *stat, SCIP_SET *set, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_Real upperbound, SCIP_Real lowerbound)
SCIP_VAR ** divebdchgvars[2]
SCIP_RETCODE SCIPdomchgApply(SCIP_DOMCHG *domchg, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, int depth, SCIP_Bool *cutoff)
SCIP_Bool SCIPsetIsFeasPositive(SCIP_SET *set, SCIP_Real val)
SCIP_RETCODE SCIPtreeLoadProbingLPState(SCIP_TREE *tree, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTQUEUE *eventqueue, SCIP_LP *lp)
SCIP_Longint nrepropboundchgs
SCIP_RETCODE SCIPvarGetProbvarHole(SCIP_VAR **var, SCIP_Real *left, SCIP_Real *right)
#define BMSallocMemory(ptr)
#define BMSreallocMemoryArray(ptr, num)
internal methods for constraints and constraint handlers
SCIP_NODE * SCIPtreeGetPrioChild(SCIP_TREE *tree)
SCIP_Bool SCIPlpIsRelax(SCIP_LP *lp)
static SCIP_RETCODE treeApplyPendingBdchgs(SCIP_TREE *tree, SCIP_REOPT *reopt, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_CLIQUETABLE *cliquetable)
SCIP_Bool SCIPnodeIsActive(SCIP_NODE *node)
SCIP_RETCODE SCIPnodeAddCons(SCIP_NODE *node, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_TREE *tree, SCIP_CONS *cons)
SCIP_Longint nactivatednodes
SCIP_Bool SCIPsetIsFeasGT(SCIP_SET *set, SCIP_Real val1, SCIP_Real val2)
SCIP_RETCODE SCIPnodeUpdateLowerboundLP(SCIP_NODE *node, SCIP_SET *set, SCIP_STAT *stat, SCIP_TREE *tree, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_LP *lp)
SCIP_VARTYPE SCIPvarGetType(SCIP_VAR *var)
void SCIPnodeSetReopttype(SCIP_NODE *node, SCIP_REOPTTYPE reopttype)
static SCIP_RETCODE treeNodesToQueue(SCIP_TREE *tree, SCIP_REOPT *reopt, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_LP *lp, SCIP_NODE **nodes, int *nnodes, SCIP_NODE *lpstatefork, SCIP_Real cutoffbound)
SCIP_RETCODE SCIPconssetchgMakeGlobal(SCIP_CONSSETCHG **conssetchg, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *prob, SCIP_REOPT *reopt)
SCIP_CLOCK * nodeactivationtime
SCIP_Real SCIPsetEpsilon(SCIP_SET *set)
SCIP_RETCODE SCIPconssetchgAddDisabledCons(SCIP_CONSSETCHG **conssetchg, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_CONS *cons)
SCIP_Bool probinglpwasprimfeas
SCIP_Real SCIPvarGetUbLocal(SCIP_VAR *var)
SCIP_Real SCIPtreeGetLowerbound(SCIP_TREE *tree, SCIP_SET *set)
int SCIPcliqueGetNVars(SCIP_CLIQUE *clique)
void SCIPgmlWriteOpening(FILE *file, SCIP_Bool directed)
void SCIPvarAdjustUb(SCIP_VAR *var, SCIP_SET *set, SCIP_Real *ub)
#define BMSallocBlockMemory(mem, ptr)
SCIP_RETCODE SCIPtreeCutoff(SCIP_TREE *tree, SCIP_REOPT *reopt, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_LP *lp, SCIP_Real cutoffbound)
SCIP_RETCODE SCIPlpiClearState(SCIP_LPI *lpi)
unsigned int lpwasprimfeas
SCIP_Bool SCIPeventqueueIsDelayed(SCIP_EVENTQUEUE *eventqueue)
SCIP_RETCODE SCIPprobDelVar(SCIP_PROB *prob, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTQUEUE *eventqueue, SCIP_VAR *var, SCIP_Bool *deleted)
common defines and data types used in all packages of SCIP
SCIP_Real SCIPlpGetModifiedProvedPseudoObjval(SCIP_LP *lp, SCIP_SET *set, SCIP_VAR *var, SCIP_Real oldbound, SCIP_Real newbound, SCIP_BOUNDTYPE boundtype)
void SCIPvisualMarkedRepropagateNode(SCIP_VISUAL *visual, SCIP_STAT *stat, SCIP_NODE *node)
SCIP_PENDINGBDCHG * pendingbdchgs
SCIP_Bool probingnodehaslp
struct BMS_BlkMem BMS_BLKMEM
int SCIPtreeGetNLeaves(SCIP_TREE *tree)
SCIP_RETCODE SCIPvarGetProbvarSum(SCIP_VAR **var, SCIP_SET *set, SCIP_Real *scalar, SCIP_Real *constant)
static void treeRemoveChild(SCIP_TREE *tree, SCIP_NODE *child)
SCIP_RETCODE SCIPconshdlrsStorePropagationStatus(SCIP_SET *set, SCIP_CONSHDLR **conshdlrs, int nconshdlrs)
SCIP_COL ** SCIPlpGetNewcols(SCIP_LP *lp)
SCIP_RETCODE SCIPnodePropagateImplics(SCIP_NODE *node, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_CLIQUETABLE *cliquetable, SCIP_Bool *cutoff)
static SCIP_RETCODE nodeActivate(SCIP_NODE *node, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_PRIMAL *primal, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_CONFLICT *conflict, SCIP_EVENTFILTER *eventfilter, SCIP_EVENTQUEUE *eventqueue, SCIP_CLIQUETABLE *cliquetable, SCIP_Bool *cutoff)
int SCIPtreeGetNNodes(SCIP_TREE *tree)
SCIP_Bool SCIPsetIsRelGE(SCIP_SET *set, SCIP_Real val1, SCIP_Real val2)
static SCIP_RETCODE focusnodeToDeadend(BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_CLIQUETABLE *cliquetable)
SCIP_Longint nprobholechgs
SCIP_Bool SCIPvarIsIntegral(SCIP_VAR *var)
void SCIPchildChgNodeselPrio(SCIP_TREE *tree, SCIP_NODE *child, SCIP_Real priority)
unsigned int lpwasprimfeas
void SCIPnodeGetConsProps(SCIP_NODE *node, SCIP_VAR **vars, SCIP_Real *varbounds, SCIP_BOUNDTYPE *varboundtypes, int *nconspropvars, int conspropvarssize)
SCIP_RETCODE SCIPnodeFree(SCIP_NODE **node, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_EVENTQUEUE *eventqueue, SCIP_TREE *tree, SCIP_LP *lp)
SCIP_RETCODE SCIPtreeCreateProbingNode(SCIP_TREE *tree, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_LP *lp)
void SCIPlpUnmarkDivingObjChanged(SCIP_LP *lp)
#define BMSreallocBlockMemoryArray(mem, ptr, oldnum, newnum)
SCIP_BOUNDCHG * boundchgs
SCIP_RETCODE SCIPdomchgAddBoundchg(SCIP_DOMCHG **domchg, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_VAR *var, SCIP_Real newbound, SCIP_BOUNDTYPE boundtype, SCIP_BOUNDCHGTYPE boundchgtype, SCIP_Real lpsolval, SCIP_VAR *infervar, SCIP_CONS *infercons, SCIP_PROP *inferprop, int inferinfo, SCIP_BOUNDTYPE inferboundtype)
static SCIP_RETCODE focusnodeToJunction(BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTQUEUE *eventqueue, SCIP_TREE *tree, SCIP_LP *lp)
void SCIPtreeMarkProbingObjChanged(SCIP_TREE *tree)
SCIP_Bool SCIPsetIsFeasNegative(SCIP_SET *set, SCIP_Real val)
SCIP_Bool probinglpwasdualfeas
SCIP_Bool SCIPvarIsActive(SCIP_VAR *var)
SCIP_NODE * SCIPtreeGetPrioSibling(SCIP_TREE *tree)