Skip to content

Commit

Permalink
missing tolerances on test
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhforrest committed Jan 16, 2024
1 parent 4f7d054 commit 3dfe466
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Cgl/src/CglPreProcess/CglPreProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4586,7 +4586,7 @@ CglPreProcess::modified(OsiSolverInterface *model,
lower1[1] = CoinMax(lower1[1], u / el[1][1]);
upper1[1] = CoinMin(upper1[1], l / el[1][1]);
}
if (CoinMin(lower1[0], lower1[1]) > colLower[1]) {
if (CoinMin(lower1[0], lower1[1]) > colLower[1] + 1.0e-6) {
#if CBC_USEFUL_PRINTING > 0
printf("for jColumn1 0-bounds %g,%g 1-bounds %g,%g\n",
lower1[0], upper1[0], lower1[1], upper1[1]);
Expand All @@ -4601,7 +4601,7 @@ CglPreProcess::modified(OsiSolverInterface *model,
colLower[1] = value;
newModel->setColLower(jColumn1, value);
}
if (CoinMax(upper1[0], upper1[1]) < colUpper[1]) {
if (CoinMax(upper1[0], upper1[1]) < colUpper[1] - 1.0e-6) {
#if CBC_USEFUL_PRINTING > 0
printf("for jColumn1 0-bounds %g,%g 1-bounds %g,%g\n",
lower1[0], upper1[0], lower1[1], upper1[1]);
Expand All @@ -4616,7 +4616,7 @@ CglPreProcess::modified(OsiSolverInterface *model,
colUpper[1] = value;
newModel->setColUpper(jColumn1, value);
}
if (lower1[0] > colUpper[1] || upper1[0] < colLower[1]) {
if (lower1[0] > colUpper[1] + 1.0e-6 || upper1[0] < colLower[1] - 1.0e-6) {
#if CBC_USEFUL_PRINTING > 0
printf("for jColumn1 0-bounds %g,%g 1-bounds %g,%g\n",
lower1[0], upper1[0], lower1[1], upper1[1]);
Expand All @@ -4626,7 +4626,7 @@ CglPreProcess::modified(OsiSolverInterface *model,
newModel->setColLower(iColumn, 1.0);
nMarkRow = 0; // stop looking
}
if (lower1[1] > colUpper[1] || upper1[1] < colLower[1]) {
if (lower1[1] > colUpper[1] + 1.0e-6 || upper1[1] < colLower[1] - 1.0e-6) {
#if CBC_USEFUL_PRINTING > 0
printf("for jColumn1 0-bounds %g,%g 1-bounds %g,%g\n",
lower1[0], upper1[0], lower1[1], upper1[1]);
Expand All @@ -4636,7 +4636,7 @@ CglPreProcess::modified(OsiSolverInterface *model,
newModel->setColLower(iColumn, 0.0);
nMarkRow = 0; // stop looking
}
if (colLower[0] > colUpper[0] || colLower[1] > colUpper[1] + 1.0e-6) {
if (colLower[0] > colUpper[0] + 1.0e-6 || colLower[1] > colUpper[1] + 1.0e-6) {
#if CBC_USEFUL_PRINTING > 0
printf("** infeasible\n");
#endif
Expand Down

0 comments on commit 3dfe466

Please sign in to comment.