Skip to content

Commit

Permalink
math_opt: disable broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Jul 31, 2024
1 parent 86e8274 commit 50fc54f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ortools/math_opt/solver_tests/ip_parameter_tests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,9 @@ TEST_P(LargeInstanceIpParameterTest, IterationLimit) {
}

TEST_P(LargeInstanceIpParameterTest, NodeLimit) {
if (GetParam().solver_type == SolverType::kHighs) {
GTEST_SKIP() << "Ignoring this test as Highs 1.7+ returns unimplemented";
}
ASSERT_OK_AND_ASSIGN(std::unique_ptr<Model> model, Load23588());
SolveParameters params = GetParam().base_parameters;
params.node_limit = 1;
Expand Down Expand Up @@ -1219,6 +1222,9 @@ TEST_P(LargeInstanceIpParameterTest, BestBoundLimit) {
}

TEST_P(LargeInstanceIpParameterTest, SolutionLimit) {
if (GetParam().solver_type == SolverType::kHighs) {
GTEST_SKIP() << "Ignoring this test as Highs 1.7+ returns unimplemented";
}
ASSERT_OK_AND_ASSIGN(std::unique_ptr<Model> model, Load23588());
SolveParameters params = GetParam().base_parameters;
params.solution_limit = 1;
Expand Down
6 changes: 6 additions & 0 deletions ortools/math_opt/solver_tests/status_tests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ TEST_P(StatusTest, PrimalAndDualInfeasible) {
<< "Ignoring this test as GLPK gets stuck in presolve for IP's "
"with a primal-dual infeasible LP relaxation.";
}
if (GetParam().solver_type == SolverType::kHighs) {
GTEST_SKIP() << "Ignoring this test as Highs 1.7+ returns error.";
}

Model model;
const Variable x1 =
Expand Down Expand Up @@ -373,6 +376,9 @@ TEST_P(StatusTest, IncompleteIpSolve) {
GTEST_SKIP() << "Ignoring this test as it is an IP-only test and requires "
"support for node_limit.";
}
if (GetParam().solver_type == SolverType::kHighs) {
GTEST_SKIP() << "Ignoring this test as Highs 1.7+ returns MODEL_INVALID";
}
ASSERT_OK_AND_ASSIGN(const std::unique_ptr<const Model> model, Load23588());
SolveArguments args = {
.parameters = {.enable_output = true, .node_limit = 1}};
Expand Down

0 comments on commit 50fc54f

Please sign in to comment.