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 Dec 19, 2024
2 parents 49cd0df + dc76d68 commit ca3b387
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/scip/cons_nonlinear.c
Original file line number Diff line number Diff line change
Expand Up @@ -3469,7 +3469,7 @@ SCIP_RETCODE detectNlhdlrs(

assert(conss != NULL || nconss == 0);
assert(nconss >= 0);
assert(SCIPgetStage(scip) == SCIP_STAGE_PRESOLVING || SCIPgetStage(scip) == SCIP_STAGE_INITSOLVE || SCIPgetStage(scip) == SCIP_STAGE_SOLVING); /* should only be called in presolve or initsolve or consactive */
assert(SCIPgetStage(scip) >= SCIP_STAGE_PRESOLVING && SCIPgetStage(scip) <= SCIP_STAGE_SOLVING); /* should only be called in presolve or initsolve or consactive */

conshdlrdata = SCIPconshdlrGetData(conshdlr);
assert(conshdlrdata != NULL);
Expand Down
6 changes: 6 additions & 0 deletions src/scip/reopt.c
Original file line number Diff line number Diff line change
Expand Up @@ -8163,6 +8163,9 @@ SCIP_RETCODE SCIPreoptSaveGlobalBounds(
/* store the global bounds */
for( int i = 0; i < nvars; ++i )
{
if( SCIPvarIsRelaxationOnly(vars[i]) )
continue;

assert(!SCIPhashmapExists(reopt->glblb, (void*)vars[i]));
assert(!SCIPhashmapExists(reopt->glbub, (void*)vars[i]));

Expand Down Expand Up @@ -8246,6 +8249,9 @@ SCIP_RETCODE SCIPreoptInstallBounds(
SCIP_Real lb;
SCIP_Real ub;

if( SCIPvarIsRelaxationOnly(vars[i]) )
continue;

assert(SCIPhashmapExists(reopt->glblb, (void*)vars[i]));
assert(SCIPhashmapExists(reopt->glbub, (void*)vars[i]));

Expand Down

0 comments on commit ca3b387

Please sign in to comment.