Repository navigation
Remove the COIN-OR and GLPK LP solver backends (HiGHS only) - #10565
Conversation
Standalone LPWrapper benchmark (edge-selection ILP, generalized assignment MIP, transportation LP) and a driver script that builds OpenMS once per LP_SOLVER backend, runs the full ctest suite and the benchmark. Refs #10551 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Lp4X9eVknrf2TxGnPgZpZt
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Lp4X9eVknrf2TxGnPgZpZt
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Lp4X9eVknrf2TxGnPgZpZt
- Always pass SolverParam::mip_gap to HiGHS. Previously it was only set when > 0, so the default (0) left HiGHS at its own mip_rel_gap of 1e-4 and solves could stop before proven optimality. - Set time_limit on every solve() call so a limit from a previous solve does not carry over. - Stage setColumnType() changes and apply them with one Highs::changeColsIntegrality() call on the next read, write or solve. Per-column changeColIntegrality() costs ~17 us per call; building a 50k-node decharger-like ILP drops from 4.3 s to 0.75 s. - Test that column types survive adding columns/rows and are honored by solve() on all backends. Refs #10551 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Lp4X9eVknrf2TxGnPgZpZt
On large binary set-packing ILPs (decharging-like), HiGHS spent most of its runtime in the probing and enumeration presolve rules building clique tables. Switching off both (either alone does not help) cuts the 50k-node benchmark instance from 70 s to 3.8 s with the same optimum, on par with COIN-OR; the GAP and LP benchmarks are unchanged or faster. lpbench: LPBENCH_MPS_DIR dumps edge-selection instances as MPS. Refs #10551 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Lp4X9eVknrf2TxGnPgZpZt
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Lp4X9eVknrf2TxGnPgZpZt
- LP_SOLVER defaults to HIGHS (system/vcpkg, else FetchContent). The former default AUTO is kept as an alias for HIGHS so existing build trees switch over. - LP_SOLVER=COIN/GLPK print a CMake deprecation warning; both will be removed in the next release. - vcpkg: highs is a default dependency; COIN-OR moves to the optional lp-coin feature (lp-glpk stays), lp-highs is no longer needed. - Update LPWrapper docs, developer FAQ and CHANGELOG. - Drop the lpbench/ benchmark harness from the tree (results are in #10551; the harness remains in this branch's history). Refs #10551 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Lp4X9eVknrf2TxGnPgZpZt
OpenMS is a CXX-only project, so the C compiler HiGHS enables can differ from the C++ compiler (e.g. clang vs. gcc). HiGHS turns on LTO by default, and the resulting mixed LTO objects fail to link (libhighs: 'file format not recognized'). Keep CMAKE_INTERPROCEDURAL_OPTIMIZATION off for the fetched HiGHS unless ENABLE_IPO set it. Refs #10551 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Lp4X9eVknrf2TxGnPgZpZt
…loor - FetchContent HiGHS is built static + PIC and linked into libOpenMS, so component installs (e.g. the macOS wheel) do not miss a libhighs.so. Its build settings (shared libs, LTO, tests, highs executable) are set as normal variables and restored, instead of forcing cache entries. - Require HiGHS >= 1.11 from the system/vcpkg; the enumeration presolve rule (HiGHS >= 1.13) is guarded by version. - Zero HiGHS' clocks before run(): its run clock accumulates over solves, so time_limit applied to the total instead of each solve(). - Keep lp-highs as a deprecated no-op vcpkg feature for existing scripts. - Remove unreachable LP_SOLVER branches; document the IndexOverflow thrown by setColumnType (HiGHS); update AGENTS.md and CHANGELOG. - Test writeProblem() without a prior getColumnType(), readProblem() discarding staged types, and the index check. Refs #10551 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Lp4X9eVknrf2TxGnPgZpZt
common-cmake-parameters and developer_faq still described the old AUTO default (COIN-OR, then GLPK, then HiGHS). Refs #10551 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Lp4X9eVknrf2TxGnPgZpZt
HiGHS is the only LP/MIP solver; COIN-OR and GLPK were deprecated in 3.7.0 (#10551). - LPWrapper: only the HiGHS implementation remains. SOLVER only has SOLVER_HIGHS, WriteFormat drops FORMAT_GLPK, and SolverParam keeps the fields HiGHS uses (mip_gap, time_limit, enable_presolve). - CMake: LP_SOLVER=COIN/GLPK fail with a clear message (HIGHS/AUTO are still accepted); remove FindCOIN/FindGLPK and the GLPK version defaults; drop OPENMS_HAS_COINOR/OPENMS_HAS_HIGHS/OPENMS_GLPK_VERSION* from config.h. - vcpkg: remove the lp-coin/lp-glpk features and the GLPK overlay port. - Packaging: drop COIN-OR/GLPK packages from the Dockerfile, the macOS wheel job and pyproject.toml. - Tests: drop the GLPK/COIN-OR branches and the GLPK-only LPWrapper_test.lp; LPWrapper_test no longer links HiGHS directly. - Docs: Doxygen install/FAQ pages, developer FAQ, AGENTS.md, CHANGELOG. Refs #10551 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Lp4X9eVknrf2TxGnPgZpZt
…in-glpk Conflicts in the Doxygen LP solver docs resolved in favor of this branch, which describes HiGHS as the only solver. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Lp4X9eVknrf2TxGnPgZpZt
|
CI note: Generated by Claude Code |
Resolve the CHANGELOG conflict by keeping both new 'OpenMS Library' entries. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Lp4X9eVknrf2TxGnPgZpZt
…oin-glpk Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Lp4X9eVknrf2TxGnPgZpZt
…olvers Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Lp4X9eVknrf2TxGnPgZpZt
Resolve the CHANGELOG conflict by keeping both new 'OpenMS Library' entries. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Lp4X9eVknrf2TxGnPgZpZt
…oin-glpk The docs fixes from the deprecation branch (getSolver() return value, vcpkg features for COIN/GLPK) conflict with this branch, which removes those backends; keep this branch's text. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Lp4X9eVknrf2TxGnPgZpZt
# Conflicts: # CHANGELOG
timosachsenberg
left a comment
There was a problem hiding this comment.
Reviewed the removal of COIN-OR/GLPK, the remaining HiGHS implementation, CMake dependency selection, and Python binding changes. I found no additional actionable correctness issue in those paths. The build and Python workflows passed. This is a static review; it does not validate the separately maintained conda recipe migration.
Conflicts came from #10563 being squash-merged into develop, plus the Xerces-C -> libxml2 switch (#10710). Resolutions: - LP solver code, CMake and docs: keep this branch (removal of COIN-OR/GLPK). - Dockerfiles, pyproject brew line, AGENTS.md: develop's libxml2 in place of Xerces-C, without the COIN-OR packages. - CHANGELOG: take develop's; entries are generated weekly now (#10646), so this PR no longer adds its own 3.8.0 section. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Atu9S441eWK9aiSkyP6PGE
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
HiGHS build and dependency configuration .devcontainer/Dockerfile, .github/workflows/pyopenms-wheels-cibuildwheel.yml, AGENTS.md, cmake/Modules/Find*.cmake, cmake/cmake_findExternalLibs.cmake, cmake/compiler_flags.cmake, dockerfiles/Dockerfile, doc/doxygen/..., doc/openms/docs/manual/develop/developer-faq.md, src/openms/include/OpenMS/config.h.in, src/pyOpenMS/pyproject.toml, vcpkg-overlays/ports/glpk/*, vcpkg.json |
CMake accepts HIGHS or AUTO, and locates HiGHS or fetches it. COIN-OR and GLPK discovery modules and vcpkg features are removed. Docker and macOS wheel setup no longer install the removed solver dependencies. Documentation describes HiGHS as the only backend. |
LPWrapper contract and implementation src/openms/include/OpenMS/DATASTRUCTURES/LPWrapper.h, src/openms/source/DATASTRUCTURES/LPWrapper.cpp |
LPWrapper removes backend-specific enums, parameters, and code paths. Model operations, solving, status, and file I/O now use HiGHS. The wrapper retains MIP gap, time limit, and presolve parameters. |
Integrations and validation src/openms/include/OpenMS/ANALYSIS/DECHARGING/ILPDCWrapper.h, src/openms/source/ANALYSIS/DECHARGING/ILPDCWrapper.cpp, src/pyOpenMS/bindings/bind_datastructures.cpp, src/tests/class_tests/openms/*, src/topp/OpenMSInfo.cpp |
Decharging no longer sets the removed backend-specific solver options. Tests expect HiGHS and remove backend-specific cases and fixtures. The binding comment and solver output identify HiGHS. |
Suggested labels: major
Suggested reviewers: cbielow, poshul, jpfeuffer
Priority:
Change: Other
Merge Risk: 
Minimal · up to 6ac7e
-
This change makes HiGHS the only LP solver and removes COIN-OR and GLPK support, so configuring with LP_SOLVER set to COIN or GLPK now fails with a clear error. No concrete merge-blocking risk was found. Confirm that CI passes after the latest merge of develop. The author also intends it for a release after 3.7.0.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passed-
Full details: Title check
-
Explanation
The title "Remove the COIN-OR and GLPK LP solver backends (HiGHS only)" matches the main change. The PR removes the COIN-OR and GLPK backends from the CMake configuration, vcpkg features, the GLPK overlay port, LPWrapper code, and tests, and makes HiGHS the only LP/MIP solver. The title is short, specific, and a teammate scanning history would understand the primary change.
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 18 functions across 6 files. (8 skipped: 8 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches: 💡 1
-
📝 Generate docstrings: 💡
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
A rabbit checks the solver’s name,
HiGHS now handles every frame.
Old backend paths hop out of sight,
Tests follow the single route aright.
The build files settle, neat and bright,
Then I nibble carrots through the night.
Comment @coderabbitai help to get the list of available commands.
…rget, autotools, gfortran) (#10800) COIN-OR was removed in #10565. It was the only dependency that pulled OpenBLAS and LAPACK into the vcpkg builds and the only one that built with autotools on Linux and macOS. With the vcpkg baseline of vcpkg-configuration.json, no port in the dependency closure of vcpkg.json (all features, overlay ports included, 167 ports) uses openblas, lapack or Fortran, and the only autotools-based one, libiconv, builds GNU libiconv only on Windows, iOS, BSD and old Android (on Linux and macOS it is an empty package; on Windows vcpkg brings its own MSYS2 autotools). hdf5 needs Fortran only with its fortran feature; OpenMS asks for cpp. - vcpkg triplets: remove the openblas -DTARGET blocks. x64-linux, arm64-linux, x64-linux-dynamic and arm64-linux-dynamic existed only for them (#10264) and are now identical to vcpkg's own triplets, so they are removed; the -dbg/-vcrel variants keep their own settings. - tools/ci/deps-ubuntu.sh, deps-macos.sh: no autoconf, autoconf-archive, automake, libtool. These scripts are also the install instructions (install-vcpkg.doxygen), whose text no longer asks for autotools. - tools/ci/build_openms_manylinux.sh: no autoconf-archive; the wheel bundles only libgomp now (no libgfortran/libquadmath). - Comments in the devcontainer, the wheel workflow and the license code (package_general.cmake, third_party_licenses.cmake): libgfortran came only through COIN-OR's LAPACK. The system-library license code stays as a safety net; with no such library it does nothing. The triplet changes alter vcpkg's ABI hashes on Linux, so the first CI run rebuilds the Linux vcpkg cache. Claude-Session: https://claude.ai/code/session_01Atu9S441eWK9aiSkyP6PGE Co-authored-by: Claude <[email protected]>
Description
Removes the COIN-OR and GLPK LP solver backends, which #10563 deprecated. HiGHS becomes the only LP/MIP solver. This is the second step of #10551.
Important
Meant for the release after 3.7.0. #10563 (the deprecation) is merged into
develop, so the diff now shows only the removal. Please don't merge this before 3.7.0 has shipped with the deprecation. There is no CHANGELOG entry in this PR: entries are generated weekly from the merged changes (#10646).Build system
LP_SOLVER=COIN/GLPKnow fail at configure time with a clear message.HIGHS/AUTOare still accepted, so existing build trees keep configuring.cmake/Modules/FindCOIN.cmakeandFindGLPK.cmake, plus the GLPK version defaults.config.hmacrosOPENMS_HAS_COINOR,OPENMS_HAS_COIN_INCLUDE_SUBDIR_IS_COIN,OPENMS_HAS_HIGHSandOPENMS_GLPK_VERSION*.lp-coin/lp-glpkfeatures and the GLPK overlay port.lp-highsstays as a no-op.dockerfiles/Dockerfile, the macOS wheel job andpyproject.toml's brew line.LPWrapper
#ifdefcode removed).LPWrapperis not wrapped in pyOpenMS, so Python is unaffected):SOLVERonly hasSOLVER_HIGHS.WriteFormatno longer hasFORMAT_GLPK.SolverParamkeeps only the fields HiGHS uses (mip_gap,time_limit,enable_presolve). The removed fields were read only by the GLPK path.ILPDCWrapperset several of them (cuts, feasibility pump, binarization); those lines are dropped, which changes nothing with HiGHS.LPWrapper_testno longer links HiGHS directly; it never used it. The GLPK-only test fileLPWrapper_test.lpis removed.Docs
common-cmake-parameters,developer_faq), the developer FAQ,AGENTS.md, theILPDCWrapperandOpenMSInfodocs, and the comments in the devcontainer and onNOMINMAX.Testing
develop: with HiGHS fetched by FetchContent (static) and with HiGHS from the system (1.14), the full build and fullctestsuite passed (2995/2995 each), and reconfiguring an existingLP_SOLVER=COINbuild tree failed with the new message.develop, incl. the squashed Make HiGHS the default LP solver; deprecate COIN-OR and GLPK #10563, Xerces-C → libxml2 and Arrow 24) is green: build-and-test on Ubuntu (g++, clang++, ARM), macOS and Windows, all wheel builds and wheel tests, cppcheck and the docs build.Follow-ups (not in this PR)
autoconf-archive, gfortran forlapack-reference). They may no longer be needed, but that has to be checked against the remaining vcpkg ports first.-DLP_SOLVER=COIN; it has to addhighsas a host dependency and drop the flag before this is merged (see Make HiGHS the default LP solver; deprecate COIN-OR and GLPK #10563).Checklist
🤖 Generated with Claude Code
https://claude.ai/code/session_01Atu9S441eWK9aiSkyP6PGE