From f7b0ccef50bfc83143bedcc2c1f604daa9605be3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= Date: Thu, 15 Aug 2024 10:12:26 +0200 Subject: [PATCH] Replace CoinAbs by std::abs --- src/OsiCommonTest/OsiSimplexAPITest.cpp | 4 ++-- src/OsiCommonTest/OsiSolverInterfaceTest.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/OsiCommonTest/OsiSimplexAPITest.cpp b/src/OsiCommonTest/OsiSimplexAPITest.cpp index 62c71298..ea6c8523 100644 --- a/src/OsiCommonTest/OsiSimplexAPITest.cpp +++ b/src/OsiCommonTest/OsiSimplexAPITest.cpp @@ -520,7 +520,7 @@ void testReducedGradient(const OsiSolverInterface *si) break; } case OsiSimplex_isFree: { - OSIUNITTEST_ASSERT_ERROR(CoinAbs(testcbarj) <= dualTol, + OSIUNITTEST_ASSERT_ERROR(std::abs(testcbarj) <= dualTol, if (OsiUnitTest::verbosity >= 1) std::cout << " cbar<" << j << "> = " << cbarj << " should be zero for a NBFR variable." << std::endl, @@ -528,7 +528,7 @@ void testReducedGradient(const OsiSolverInterface *si) break; } case OsiSimplex_basic: { - OSIUNITTEST_ASSERT_ERROR(CoinAbs(testcbarj) <= dualTol, + OSIUNITTEST_ASSERT_ERROR(std::abs(testcbarj) <= dualTol, if (OsiUnitTest::verbosity >= 1) std::cout << " cbar<" << j << "> = " << cbarj << " should be zero for a basic variable." << std::endl, diff --git a/src/OsiCommonTest/OsiSolverInterfaceTest.cpp b/src/OsiCommonTest/OsiSolverInterfaceTest.cpp index d33f6736..3793e0fa 100644 --- a/src/OsiCommonTest/OsiSolverInterfaceTest.cpp +++ b/src/OsiCommonTest/OsiSolverInterfaceTest.cpp @@ -2427,7 +2427,7 @@ void testReducedCosts(const OsiSolverInterface *emptySi, break; } case CoinWarmStartBasis::isFree: { - if (CoinAbs(testcbarj) > dualTol) { + if (std::abs(testcbarj) > dualTol) { testcbarj_ok = false; if (OsiUnitTest::verbosity >= 1) { std::cout @@ -2439,7 +2439,7 @@ void testReducedCosts(const OsiSolverInterface *emptySi, break; } case CoinWarmStartBasis::basic: { - if (CoinAbs(testcbarj) > dualTol) { + if (std::abs(testcbarj) > dualTol) { testcbarj_ok = false; if (OsiUnitTest::verbosity >= 1) { std::cout