Skip to content

Commit b1f3cd7

Browse files
authored
Merge pull request #2663 from fwesselm/fix-2173-2
Fix 2173
2 parents b49beaa + 1e7d0b2 commit b1f3cd7

File tree

4 files changed

+3368
-24
lines changed

4 files changed

+3368
-24
lines changed

check/TestMipSolver.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,3 +1292,16 @@ TEST_CASE("issue-2585", "[highs_test_mip_solver]") {
12921292
const double optimal_objective = -175.91;
12931293
solve(highs, kHighsOnString, require_model_status, optimal_objective);
12941294
}
1295+
1296+
TEST_CASE("issue-2173", "[highs_test_mip_solver]") {
1297+
std::string filename =
1298+
std::string(HIGHS_DIR) + "/check/instances/issue-2173.mps";
1299+
Highs highs;
1300+
highs.setOptionValue("output_flag", dev_run);
1301+
highs.setOptionValue("mip_rel_gap", 0);
1302+
highs.setOptionValue("mip_abs_gap", 0);
1303+
highs.readModel(filename);
1304+
const HighsModelStatus require_model_status = HighsModelStatus::kOptimal;
1305+
const double optimal_objective = -26770.8075489;
1306+
solve(highs, kHighsOnString, require_model_status, optimal_objective);
1307+
}

0 commit comments

Comments
 (0)