Skip to content

Commit b6a528e

Browse files
authored
Merge pull request #2107 from fwesselm/fix-2095
Fix 2095
2 parents 2dfbec1 + a1d4c07 commit b6a528e

File tree

4 files changed

+893
-23
lines changed

4 files changed

+893
-23
lines changed

check/TestPresolve.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,3 +639,13 @@ TEST_CASE("presolve-slacks", "[highs_test_presolve]") {
639639
REQUIRE(h.getPresolvedLp().num_col_ == 2);
640640
REQUIRE(h.getPresolvedLp().num_row_ == 2);
641641
}
642+
643+
TEST_CASE("presolve-issue-2095", "[highs_test_presolve]") {
644+
std::string model_file =
645+
std::string(HIGHS_DIR) + "/check/instances/issue-2095.mps";
646+
Highs highs;
647+
highs.setOptionValue("output_flag", dev_run);
648+
highs.readModel(model_file);
649+
REQUIRE(highs.presolve() == HighsStatus::kOk);
650+
REQUIRE(highs.getModelPresolveStatus() == HighsPresolveStatus::kReduced);
651+
}

0 commit comments

Comments
 (0)