Skip to content

Remove the COIN-OR and GLPK LP solver backends (HiGHS only) - #10565

Merged
timosachsenberg merged 21 commits into
developfrom
claude/remove-coin-glpk
Oct 30, 2026
Merged

timosachsenberg merged 21 commits into
developfrom
claude/remove-coin-glpk

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

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/GLPK now fail at configure time with a clear message. HIGHS/AUTO are still accepted, so existing build trees keep configuring.
  • Removed cmake/Modules/FindCOIN.cmake and FindGLPK.cmake, plus the GLPK version defaults.
  • Removed the config.h macros OPENMS_HAS_COINOR, OPENMS_HAS_COIN_INCLUDE_SUBDIR_IS_COIN, OPENMS_HAS_HIGHS and OPENMS_GLPK_VERSION*.
  • vcpkg: removed the lp-coin/lp-glpk features and the GLPK overlay port. lp-highs stays as a no-op.
  • Packaging: dropped the COIN-OR/GLPK packages from dockerfiles/Dockerfile, the macOS wheel job and pyproject.toml's brew line.

LPWrapper

  • Only the HiGHS implementation remains (about 800 lines of #ifdef code removed).
  • API changes (LPWrapper is not wrapped in pyOpenMS, so Python is unaffected):
    • SOLVER only has SOLVER_HIGHS.
    • WriteFormat no longer has FORMAT_GLPK.
    • SolverParam keeps only the fields HiGHS uses (mip_gap, time_limit, enable_presolve). The removed fields were read only by the GLPK path. ILPDCWrapper set several of them (cuts, feasibility pump, binarization); those lines are dropped, which changes nothing with HiGHS.
  • LPWrapper_test no longer links HiGHS directly; it never used it. The GLPK-only test file LPWrapper_test.lp is removed.

Docs

  • Updated the Doxygen pages (common-cmake-parameters, developer_faq), the developer FAQ, AGENTS.md, the ILPDCWrapper and OpenMSInfo docs, and the comments in the devcontainer and on NOMINMAX.

Testing

  • Locally, before the latest merges of develop: with HiGHS fetched by FetchContent (static) and with HiGHS from the system (1.14), the full build and full ctest suite passed (2995/2995 each), and reconfiguring an existing LP_SOLVER=COIN build tree failed with the new message.
  • CI on the current head (after merging 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)

  • The vcpkg overlay triplets' OpenBLAS settings and their comment ("OpenMS calls BLAS only through COIN-OR's LAPACK"), and the CI tool installs for the COIN-OR ports (autotools/autoconf-archive, gfortran for lapack-reference). They may no longer be needed, but that has to be checked against the remaining vcpkg ports first.
  • The bioconda recipe still passes -DLP_SOLVER=COIN; it has to add highs as 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

  • Make sure that you are listed in the AUTHORS file
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes
  • Updated or added python bindings for changed or new classes (Tick if no updates were necessary.)

🤖 Generated with Claude Code

https://claude.ai/code/session_01Atu9S441eWK9aiSkyP6PGE

claude added 13 commits October 13, 2026 15:45
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
- 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
- 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

Copy link
Copy Markdown
Contributor Author

CI note: test-wheels (3.11, windows-latest) failed in the actions/checkout step, before any test ran: error: RPC failed; curl 56 Recv failure: Connection was reset / fatal: could not fetch … from promisor remote. That is a network failure between the runner and GitHub, not something in this PR's diff, so there's nothing to fix in the PR. I'll re-run the failed job once when the rest of the wheel workflow run has finished; GitHub refuses the re-run while the run is still in progress.


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
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

@timosachsenberg timosachsenberg left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
@timosachsenberg
timosachsenberg marked this pull request as ready for review October 29, 2026 19:21
@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ab1ce787-a788-418e-bb06-e7340ec49946
Commits

Reviewing files that changed from the base of the PR and between eaccd16 and 6ac7e98.

Files selected for processing: 27
  • .devcontainer/Dockerfile
  • .github/workflows/pyopenms-wheels-cibuildwheel.yml
  • AGENTS.md
  • cmake/Modules/FindCOIN.cmake
  • cmake/Modules/FindGLPK.cmake
  • cmake/cmake_findExternalLibs.cmake
  • cmake/compiler_flags.cmake
  • doc/doxygen/install/common-cmake-parameters.doxygen
  • doc/doxygen/public/developer_faq.doxygen
  • doc/openms/docs/manual/develop/developer-faq.md
  • dockerfiles/Dockerfile
  • src/openms/include/OpenMS/ANALYSIS/DECHARGING/ILPDCWrapper.h
  • src/openms/include/OpenMS/DATASTRUCTURES/LPWrapper.h
  • src/openms/include/OpenMS/config.h.in
  • src/openms/source/ANALYSIS/DECHARGING/ILPDCWrapper.cpp
  • src/openms/source/DATASTRUCTURES/LPWrapper.cpp
  • src/pyOpenMS/bindings/bind_datastructures.cpp
  • src/pyOpenMS/pyproject.toml
  • src/tests/class_tests/openms/CMakeLists.txt
  • src/tests/class_tests/openms/data/LPWrapper_test.lp
  • src/tests/class_tests/openms/source/LPWrapper_test.cpp
  • src/topp/OpenMSInfo.cpp
  • vcpkg-overlays/ports/glpk/configure.ac.patch
  • vcpkg-overlays/ports/glpk/glpk.pc.in
  • vcpkg-overlays/ports/glpk/portfile.cmake
  • vcpkg-overlays/ports/glpk/vcpkg.json
  • vcpkg.json
Files with no reviewable changes: 13
  • vcpkg-overlays/ports/glpk/vcpkg.json
  • vcpkg-overlays/ports/glpk/glpk.pc.in
  • cmake/Modules/FindGLPK.cmake
  • vcpkg-overlays/ports/glpk/portfile.cmake
  • src/tests/class_tests/openms/CMakeLists.txt
  • doc/doxygen/install/common-cmake-parameters.doxygen
  • dockerfiles/Dockerfile
  • .github/workflows/pyopenms-wheels-cibuildwheel.yml
  • vcpkg-overlays/ports/glpk/configure.ac.patch
  • src/tests/class_tests/openms/data/LPWrapper_test.lp
  • src/openms/include/OpenMS/config.h.in
  • src/openms/source/ANALYSIS/DECHARGING/ILPDCWrapper.cpp
  • cmake/Modules/FindCOIN.cmake

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

Walkthrough

The pull request removes COIN-OR and GLPK as LP solver backends. CMake now locates or fetches HiGHS, and LPWrapper uses HiGHS for model operations, solving, status, and file I/O. Tests, integrations, dependency definitions, and documentation are updated.

Changes: HiGHS-only LP solver

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: Normal

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: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning 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. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 ove…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
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.

❤️ Share

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.

@timosachsenberg
timosachsenberg merged commit ad5c885 into develop Oct 30, 2026
33 checks passed
@timosachsenberg
timosachsenberg deleted the claude/remove-coin-glpk branch October 30, 2026 05:38
poshul pushed a commit that referenced this pull request Nov 3, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants