Skip to content

Commit

Permalink
remove assert that no longer needs to hold
Browse files Browse the repository at this point in the history
- requiredsize can be larger than final number of ntrafolinvars due to
  cancelation
- see also !3409#note_256099
  • Loading branch information
svigerske committed Nov 26, 2024
1 parent 2169baf commit 58cbae3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/scip/cons_sos1.c
Original file line number Diff line number Diff line change
Expand Up @@ -2812,7 +2812,6 @@ SCIP_RETCODE tightenVarsBoundsSOS1(
SCIP_CALL( SCIPreallocBufferArray(scip, &trafolinvals, requiredsize + 1) );

SCIP_CALL( SCIPgetProbvarLinearSum(scip, trafolinvars, trafolinvals, &ntrafolinvars, requiredsize, &constant, &requiredsize) );
assert( requiredsize <= ntrafolinvars );
}
if( !SCIPisInfinity(scip, -trafolhs) )
trafolhs -= constant;
Expand Down

0 comments on commit 58cbae3

Please sign in to comment.