We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc662c1 commit 64aa9bcCopy full SHA for 64aa9bc
src/scip/benderscut_opt.c
@@ -309,6 +309,7 @@ SCIP_RETCODE computeMIRForOptimalityCut(
309
for( i = 0; i < nvars; i++ )
310
{
311
rowinds[i] = SCIPvarGetProbindex(vars[i]);
312
+ assert(rowinds[i] >= 0);
313
rowvals[i] = -vals[i];
314
}
315
src/scip/cuts.c
@@ -9275,6 +9275,7 @@ SCIP_RETCODE constructSNFRelaxation(
9275
9276
probidx = rowinds[i];
9277
/* variable should be binary */
9278
+ assert(probidx >= 0);
9279
assert(probidx < nbinvars);
9280
9281
/* binary variable was processed together with a non-binary variable */
0 commit comments