Skip to content

Commit f7b0cce

Browse files
a-andresvigerske
authored andcommitted
Replace CoinAbs by std::abs
1 parent 2181672 commit f7b0cce

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/OsiCommonTest/OsiSimplexAPITest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,15 +520,15 @@ void testReducedGradient(const OsiSolverInterface *si)
520520
break;
521521
}
522522
case OsiSimplex_isFree: {
523-
OSIUNITTEST_ASSERT_ERROR(CoinAbs(testcbarj) <= dualTol,
523+
OSIUNITTEST_ASSERT_ERROR(std::abs(testcbarj) <= dualTol,
524524
if (OsiUnitTest::verbosity >= 1)
525525
std::cout
526526
<< " cbar<" << j << "> = " << cbarj << " should be zero for a NBFR variable." << std::endl,
527527
solverName, "testReducedGradient");
528528
break;
529529
}
530530
case OsiSimplex_basic: {
531-
OSIUNITTEST_ASSERT_ERROR(CoinAbs(testcbarj) <= dualTol,
531+
OSIUNITTEST_ASSERT_ERROR(std::abs(testcbarj) <= dualTol,
532532
if (OsiUnitTest::verbosity >= 1)
533533
std::cout
534534
<< " cbar<" << j << "> = " << cbarj << " should be zero for a basic variable." << std::endl,

src/OsiCommonTest/OsiSolverInterfaceTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2427,7 +2427,7 @@ void testReducedCosts(const OsiSolverInterface *emptySi,
24272427
break;
24282428
}
24292429
case CoinWarmStartBasis::isFree: {
2430-
if (CoinAbs(testcbarj) > dualTol) {
2430+
if (std::abs(testcbarj) > dualTol) {
24312431
testcbarj_ok = false;
24322432
if (OsiUnitTest::verbosity >= 1) {
24332433
std::cout
@@ -2439,7 +2439,7 @@ void testReducedCosts(const OsiSolverInterface *emptySi,
24392439
break;
24402440
}
24412441
case CoinWarmStartBasis::basic: {
2442-
if (CoinAbs(testcbarj) > dualTol) {
2442+
if (std::abs(testcbarj) > dualTol) {
24432443
testcbarj_ok = false;
24442444
if (OsiUnitTest::verbosity >= 1) {
24452445
std::cout

0 commit comments

Comments
 (0)