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 Sep 20, 2024
2 parents 87df8f3 + 75eeedc commit 3d1036b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Build system
Miscellaneous
-------------

- Event `BESTSOLFOUND` is thrown before scanning the current node list and removing nodes potentially throwing the `NODEDELETE` event
- reorder events: BESTSOLFOUND/NODE_FEASIBLE is now processed before the nodes are cut off and before NODE_DELETE events are processed

@section RN912 SCIP 9.1.2
*************************
Expand Down
10 changes: 6 additions & 4 deletions src/scip/solve.c
Original file line number Diff line number Diff line change
Expand Up @@ -5269,16 +5269,18 @@ SCIP_RETCODE SCIPsolveCIP(
SCIP_CALL( addCurrentSolution(blkmem, set, messagehdlr, stat, origprob, transprob, primal, relaxation, tree, reopt,
lp, eventqueue, eventfilter, FALSE) );

/* issue NODEFEASIBLE event */
SCIP_CALL( SCIPeventChgType(&event, SCIP_EVENTTYPE_NODEFEASIBLE) );
SCIP_CALL( SCIPeventChgNode(&event, focusnode) );
SCIP_CALL( SCIPeventProcess(&event, set, NULL, NULL, NULL, eventfilter) );


/* update the cutoff pointer if the new solution made the cutoff bound equal to the lower bound */
SCIP_CALL( applyBounding(blkmem, set, stat, transprob, origprob, primal, tree, reopt, lp, branchcand, eventqueue, conflict, cliquetable, &cutoff) );

/* increment number of feasible leaf nodes */
stat->nfeasleaves++;

/* issue NODEFEASIBLE event */
SCIP_CALL( SCIPeventChgType(&event, SCIP_EVENTTYPE_NODEFEASIBLE) );
SCIP_CALL( SCIPeventChgNode(&event, focusnode) );
SCIP_CALL( SCIPeventProcess(&event, set, NULL, NULL, NULL, eventfilter) );

if( set->reopt_enable )
{
Expand Down

0 comments on commit 3d1036b

Please sign in to comment.