Skip to content

[bazel] Highs 1.7.0 math_opt tests failed #4203

@Mizux

Description

@Mizux

This is a following of HiGhs integration

What version of OR-Tools and what language are you using?
Version: main (and v99bugfix aka incoming v9.10)
Language: C++

Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)
HiGHs test from math_opt/solvers

What operating system (Linux, Windows, ...) and version?
Linux/MacOS

What did you do?

git checkout main
bazel test -c opt ortools/math_opt/solvers:highs_solver_test

note: same with v99bugfix branch

What did you expect to see
all tests pass

What did you see instead?

bazel test -c opt ortools/math_opt/solvers:highs_solver_test
...
ortools/math_opt/solver_tests/status_tests.cc:112: Failure
Value of: _status_or_value2.ok()
  Actual: false
Expected: true
INTERNAL: primal feasibility status is not FEASIBILITY_STATUS_FEASIBLE, but primal feasible solution is returned.

[  FAILED  ] HighsStatusTest/StatusTest.PrimalAndDualInfeasible/1, where GetParam() = { solver_type: highs, parameters: lp_algorithm: LP_ALGORITHM_BARRIER presolve: EMPHASIS_OFF gscip { } gurobi { } glop { } cp_sat { } pdlp { } glpk { } highs { }, disallow_primal_or_dual_infeasible: false, supports_iteration_limit: true, use_integer_variables: false, supports_node_limit: false, support_interrupter: false, supports_one_thread: false } (0 ms)
...
INFO: Found 1 test target...
Target //ortools/math_opt/solvers:highs_solver_test up-to-date:
  bazel-bin/ortools/math_opt/solvers/highs_solver_test
INFO: Elapsed time: 52.607s, Critical Path: 41.15s
INFO: 181 processes: 185 linux-sandbox.
INFO: Build completed, 1 test FAILED, 181 total actions
//ortools/math_opt/solvers:highs_solver_test                             **FAILED in 12 out of 18 in 10.4s**
  Stats over 18 runs: max = 10.4s, min = 0.2s, avg = 2.9s, dev = 2.7s

DevNote:
HiGHs 1.4.1 seems to pass...
aka this patch

diff --git a/WORKSPACE b/WORKSPACE
index 0fd7395d25..6b53b2f24b 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -156,7 +156,7 @@ cc_library(
 
 git_repository(
     name = "highs",
-    branch = "v1.7.0",
+    branch = "v1.4.1",
     remote = "https://github.com/ERGO-Code/HiGHS.git",
 )
bazel test -c opt ortools/math_opt/solvers:highs_solver_test`
...
INFO: Build completed successfully, 181 total actions
//ortools/math_opt/solvers:highs_solver_test                             PASSED in 10.7s
 Stats over 10 runs: max = 10.7s, min = 0.2s, avg = 2.9s, dev = 3.2s

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions