Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v9-minor'
Browse files Browse the repository at this point in the history
  • Loading branch information
scip-ci committed Oct 28, 2024
2 parents 086f9c9 + 5092692 commit b4117b7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/scip/branch_allfullstrong.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,12 @@ SCIP_RETCODE branch(
/* update the lower bounds in the children */
if( allcolsinlp && !exactsolve )
{
if( bestdownvalid )
if( downchild != NULL && bestdownvalid )
{
SCIP_CALL( SCIPupdateNodeLowerbound(scip, downchild, bestdown) );
SCIPdebugMsg(scip, " -> down child's lowerbound: %g\n", SCIPnodeGetLowerbound(downchild));
}
if( bestupvalid )
if( upchild != NULL && bestupvalid )
{
SCIP_CALL( SCIPupdateNodeLowerbound(scip, upchild, bestup) );
SCIPdebugMsg(scip, " -> up child's lowerbound: %g\n", SCIPnodeGetLowerbound(upchild));
Expand Down
11 changes: 4 additions & 7 deletions src/scip/branch_fullstrong.c
Original file line number Diff line number Diff line change
Expand Up @@ -637,25 +637,22 @@ SCIP_DECL_BRANCHEXECLP(branchExeclpFullstrong)
SCIPdebugMsg(scip, " -> %d candidates, selected candidate %d: variable <%s> (solval=%g, down=%g, up=%g, score=%g)\n",
nlpcands, bestcand, SCIPvarGetName(var), lpcandssol[bestcand], bestdown, bestup, bestscore);
SCIP_CALL( SCIPbranchVarVal(scip, var, val, &downchild, NULL, &upchild) );
assert(downchild != NULL);
assert(upchild != NULL);

/* update the lower bounds in the children */
if( allcolsinlp && !exactsolve )
{
if( bestdownvalid )
if( downchild != NULL && bestdownvalid )
{
SCIP_CALL( SCIPupdateNodeLowerbound(scip, downchild, bestdown) );
SCIPdebugMsg(scip, " -> down child's lowerbound: %g\n", SCIPnodeGetLowerbound(downchild));
}
if( bestupvalid )
if( upchild != NULL && bestupvalid )
{
SCIP_CALL( SCIPupdateNodeLowerbound(scip, upchild, bestup) );
SCIPdebugMsg(scip, " -> up child's lowerbound: %g\n", SCIPnodeGetLowerbound(upchild));
}
}

SCIPdebugMsg(scip, " -> down child's lowerbound: %g\n", SCIPnodeGetLowerbound(downchild));
SCIPdebugMsg(scip, " -> up child's lowerbound: %g\n", SCIPnodeGetLowerbound(upchild));

*result = SCIP_BRANCHED;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/scip/branch_vanillafullstrong.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,12 +497,12 @@ SCIP_DECL_BRANCHEXECLP(branchExeclpVanillafullstrong)
/* update the lower bounds in the children */
if( !branchruledata->idempotent && allcolsinlp && !exactsolve )
{
if( bestdownvalid )
if( downchild != NULL && bestdownvalid )
{
SCIP_CALL( SCIPupdateNodeLowerbound(scip, downchild, bestdown) );
SCIPdebugMsg(scip, " -> down child's lowerbound: %g\n", SCIPnodeGetLowerbound(downchild));
}
if( bestupvalid )
if( upchild != NULL && bestupvalid )
{
SCIP_CALL( SCIPupdateNodeLowerbound(scip, upchild, bestup) );
SCIPdebugMsg(scip, " -> up child's lowerbound: %g\n", SCIPnodeGetLowerbound(upchild));
Expand Down

0 comments on commit b4117b7

Please sign in to comment.