Skip to content

Commit b785eca

Browse files
committed
Need to use check/instances model in unit_tests mip-race
1 parent f01c30c commit b785eca

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

check/TestMipSolver.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,15 +1003,16 @@ TEST_CASE("issue-2432", "[highs_test_mip_solver]") {
10031003
}
10041004

10051005
TEST_CASE("mip-race", "[highs_test_mip_solver]") {
1006-
const std::string model =
1007-
"fiball"; //"neos-3381206-awhea"; //bell5";//"flugpl";
1006+
const std::string model = "flugpl";
1007+
// "fiball";
1008+
// "neos-3381206-awhea";
10081009
const std::string model_file =
1009-
// std::string(HIGHS_DIR) + "/check/instances/" + model + ".mps";
1010-
"/srv/miplib2017/" + model + ".mps.gz";
1010+
std::string(HIGHS_DIR) + "/check/instances/" + model + ".mps";
1011+
//"/srv/miplib2017/" + model + ".mps.gz";
10111012
Highs h;
1012-
// h.setOptionValue("output_flag", dev_run);
1013+
h.setOptionValue("output_flag", dev_run);
10131014
h.setOptionValue("mip_race_concurrency", 4);
1014-
// h.setOptionValue("mip_race_read_solutions", false);
1015+
h.setOptionValue("mip_race_read_solutions", false);
10151016
REQUIRE(h.readModel(model_file) == HighsStatus::kOk);
10161017
REQUIRE(h.run() == HighsStatus::kOk);
10171018
}

highs/mip/HighsMipSolver.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ HighsMipSolver::HighsMipSolver(HighsCallback& callback,
6767
HighsMipSolver::~HighsMipSolver() = default;
6868

6969
void HighsMipSolver::run() {
70-
if (!submip)
71-
printf("HighsMipSolver::run() with random_seed = %d\n",
72-
int(options_mip_->random_seed));
7370
modelstatus_ = HighsModelStatus::kNotset;
7471

7572
if (submip) {

0 commit comments

Comments
 (0)