Skip to content

Commit bf8b831

Browse files
committed
Merge remote-tracking branch 'origin/v10-minor'
2 parents 8c36faa + 2b51024 commit bf8b831

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/scip/cuts.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,8 @@ SCIP_RETCODE cutTightenCoefsQuad(
14551455
if( SCIPisGT(scip, maxact - maxabsintval, QUAD_TO_DBL(*cutrhs)) )
14561456
return SCIP_OKAY;
14571457

1458+
/* first sort indices, so that in the following sort, the order for coefficients with same absolute value does not depend on how cutinds was initially ordered */
1459+
SCIPsortInt(cutinds, *cutnnz);
14581460
SCIPsortDownInd(cutinds, compareAbsCoefsQuad, (void*) cutcoefs, *cutnnz);
14591461

14601462
/* loop over the integral variables and try to tighten the coefficients; see cons_linear for more details */
@@ -2336,6 +2338,8 @@ SCIP_RETCODE cutTightenCoefs(
23362338
if( SCIPisGT(scip, maxact - maxabsintval, QUAD_TO_DBL(*cutrhs)) )
23372339
return SCIP_OKAY;
23382340

2341+
/* first sort indices, so that in the following sort, the order for coefficients with same absolute value does not depend on how cutinds was initially ordered */
2342+
SCIPsortInt(cutinds, *cutnnz);
23392343
SCIPsortDownInd(cutinds, compareAbsCoefs, (void*) cutcoefs, *cutnnz);
23402344

23412345
/* loop over the integral variables and try to tighten the coefficients; see cons_linear for more details */

0 commit comments

Comments
 (0)