Skip to content

Commit

Permalink
Added comments to IP-infeasible-unbounded test case
Browse files Browse the repository at this point in the history
  • Loading branch information
jajhall committed Nov 7, 2024
1 parent 9e57225 commit 7aede2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions check/TestMipSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -679,12 +679,16 @@ TEST_CASE("IP-infeasible-unbounded", "[highs_test_mip_solver]") {
highs.run();
HighsModelStatus required_model_status;
if (k == 0) {
// Presolve off
if (l == 0) {
// MIP solver proves infeasiblilty
required_model_status = HighsModelStatus::kInfeasible;
} else {
// Relaxation is unbounded, but origin is feasible
required_model_status = HighsModelStatus::kUnbounded;
}
} else {
// Presolve on, and identifies primal infeasible or unbounded
required_model_status = HighsModelStatus::kUnboundedOrInfeasible;
}
REQUIRE(highs.getModelStatus() == required_model_status);
Expand Down

0 comments on commit 7aede2a

Please sign in to comment.