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 Aug 5, 2024
2 parents 033a839 + 70b3734 commit 6bd0ccb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/src/lpi/solve.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,13 @@ SCIP_RETCODE checkData(
cr_assert_float_eq(lpiobj[j], obj[j], EPS, "Violation of objective coefficient %d: %g != %g\n", j, lpiobj[j], obj[j]);

cr_assert( lpibeg[j] == beg[j] );

/* LP-solvers sometimes permute the nonzero entries per column (e.g., XPRESS with barrier) - we therefore sort them */
if ( j < ncols - 1 )
i = lpibeg[j+1] - lpibeg[j];
else
i = lpinnonz2 - lpibeg[j];
SCIPsortIntReal(&lpiind[lpibeg[j]], &lpival[lpibeg[j]], i);
}

/* compare matrix */
Expand Down

0 comments on commit 6bd0ccb

Please sign in to comment.