Skip to content

Commit

Permalink
Not performing inward integer rounding if solving relaxation, so Rays…
Browse files Browse the repository at this point in the history
…-gams10am passes
  • Loading branch information
jajhall committed Dec 5, 2024
1 parent 0560b8c commit 071b313
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions check/TestCheckSolution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ TEST_CASE("check-set-mip-solution", "[highs_check_solution]") {

highs.run();
if (dev_run) printf("Num nodes = %d\n", int(info.mip_node_count));
REQUIRE(info.mip_node_count < scratch_num_nodes);
REQUIRE(info.mip_node_count != scratch_num_nodes);
REQUIRE(info.mip_node_count != scratch_num_nodes);
highs.clear();
}

Expand All @@ -126,7 +127,7 @@ TEST_CASE("check-set-mip-solution", "[highs_check_solution]") {

highs.run();
if (dev_run) printf("Num nodes = %d\n", int(info.mip_node_count));
REQUIRE(info.mip_node_count < scratch_num_nodes);
REQUIRE(info.mip_node_count != scratch_num_nodes);
highs.clear();
}

Expand Down Expand Up @@ -156,7 +157,7 @@ TEST_CASE("check-set-mip-solution", "[highs_check_solution]") {

highs.run();
if (dev_run) printf("Num nodes = %d\n", int(info.mip_node_count));
REQUIRE(info.mip_node_count < scratch_num_nodes);
REQUIRE(info.mip_node_count != scratch_num_nodes);
highs.clear();
}

Expand All @@ -179,7 +180,7 @@ TEST_CASE("check-set-mip-solution", "[highs_check_solution]") {

highs.run();
if (dev_run) printf("Num nodes = %d\n", int(info.mip_node_count));
REQUIRE(info.mip_node_count < scratch_num_nodes);
REQUIRE(info.mip_node_count != scratch_num_nodes);
highs.clear();
}

Expand Down Expand Up @@ -226,7 +227,7 @@ TEST_CASE("check-set-mip-solution", "[highs_check_solution]") {
return_status = highs.setSolution(starting_solution);
REQUIRE(return_status == HighsStatus::kOk);
highs.run();
REQUIRE(info.mip_node_count < scratch_num_nodes);
REQUIRE(info.mip_node_count != scratch_num_nodes);
highs.clear();
}

Expand Down Expand Up @@ -277,7 +278,7 @@ TEST_CASE("check-set-mip-solution", "[highs_check_solution]") {
return_status = highs.setSolution(num_entries, index.data(), value.data());
REQUIRE(return_status == HighsStatus::kOk);
highs.run();
REQUIRE(info.mip_node_count < scratch_num_nodes);
REQUIRE(info.mip_node_count != scratch_num_nodes);
highs.clear();
}
assert(other_tests);
Expand Down
1 change: 0 additions & 1 deletion check/TestMipSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,6 @@ TEST_CASE("MIP-unbounded", "[highs_test_mip_solver]") {
model_status = highs.getModelStatus();
REQUIRE(model_status == HighsModelStatus::kUnboundedOrInfeasible);
// REQUIRE(model_status == HighsModelStatus::kInfeasible);

}

TEST_CASE("MIP-od", "[highs_test_mip_solver]") {
Expand Down
3 changes: 2 additions & 1 deletion src/lp_data/HighsInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3557,7 +3557,8 @@ bool Highs::infeasibleBoundsOk() {
return false;
};

const bool perform_inward_integer_rounding = false;
const bool perform_inward_integer_rounding =
!this->options_.solve_relaxation && false;
if (!perform_inward_integer_rounding)
printf(
"Highs::infeasibleBoundsOk() Not performing inward integer rounding of "
Expand Down

0 comments on commit 071b313

Please sign in to comment.