Skip to content

Commit f82842d

Browse files
committed
clear valgrind ipx
1 parent 9c04f1b commit f82842d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

check/TestIpm.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,4 @@ TEST_CASE("test-2087", "[highs_ipm]") {
162162
REQUIRE(first_ipm_iteration_count == h.getInfo().ipm_iteration_count);
163163

164164
h.resetGlobalScheduler(true);
165-
166165
}

check/TestIpx.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#include "lp_data/HighsStatus.h"
99
#include "parallel/HighsParallel.h"
1010

11+
#include "Highs.h"
12+
1113
// Example for using IPX from its C++ interface. The program solves the Netlib
1214
// problem afiro.
1315

@@ -45,6 +47,7 @@ TEST_CASE("test-ipx", "[highs_ipx]") {
4547
ipx::Parameters parameters;
4648
if (!dev_run) parameters.display = 0;
4749
parameters.highs_logging = false;
50+
parameters.timeless_log = false;
4851
lps.SetParameters(parameters);
4952

5053
// Solve the LP.
@@ -87,4 +90,8 @@ TEST_CASE("test-ipx", "[highs_ipx]") {
8790
REQUIRE(fabs(ipx_col_value[11] - 339.9) < 1);
8891

8992
(void)(info); // surpress unused variable.
93+
94+
// hack to reset global scheduler
95+
Highs h;
96+
h.resetGlobalScheduler(true);
9097
}

0 commit comments

Comments
 (0)