Skip to content

Commit 11bf83b

Browse files
committed
Merge remote-tracking branch 'origin/v9-minor'
2 parents de48a57 + db1b67e commit 11bf83b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scip/cons_nonlinear.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1362,7 +1362,7 @@ SCIP_RETCODE createCons(
13621362
conshdlrdata = SCIPconshdlrGetData(conshdlr);
13631363
assert(conshdlrdata != NULL);
13641364

1365-
if( local && SCIPgetDepth(scip) != 0 )
1365+
if( local && SCIPgetStage(scip) == SCIP_STAGE_SOLVING && SCIPgetDepth(scip) != 0 )
13661366
{
13671367
SCIPerrorMessage("Locally valid nonlinear constraints are not supported, yet.\n");
13681368
return SCIP_INVALIDCALL;

0 commit comments

Comments
 (0)