Add support for the HiGHS optimization solver#34
Merged
ryanjoneil merged 7 commits intomainfrom Jun 24, 2025
Merged
Conversation
Co-authored-by: ryanjoneil <6748953+ryanjoneil@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for the HiGHS optimization solver
Add support for the HiGHS optimization solver
Jun 24, 2025
ryanjoneil
requested changes
Jun 24, 2025
Owner
ryanjoneil
left a comment
There was a problem hiding this comment.
Code looks good. Let's make sure it works in GitHub Actions.
- Add
coin-or-HiGHSto the list of packages to install viadnf. - Create and set an environment variable for running HiGHS tests in the workflow (
RAMS_TEST_HIGHS: true). - Add HiGHS to the tests in
test/test_model.rb.
Co-authored-by: ryanjoneil <6748953+ryanjoneil@users.noreply.github.com>
Contributor
Author
All requested changes implemented in commit bfe6668:
HiGHS should now work properly in GitHub Actions CI/CD pipeline. |
ryanjoneil
approved these changes
Jun 24, 2025
Owner
|
Removes CPLEX since we can't test it and want to focus on OSS solvers. |
Copilot stopped work on behalf of
ryanjoneil due to an error
June 24, 2025 16:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds complete support for the HiGHS optimization solver to RAMS, allowing users to leverage this high-performance linear and mixed-integer programming solver.
Changes Made
Core Implementation
lib/rams/solvers/highs.rbimplementing the HiGHS interface following the existing RAMS solver patternlib/rams/model.rbto include HiGHS in the available solvers listTesting & Documentation
tests/test_solver_paths.rbdocs/03-solver-configuration.mdwith HiGHS examples and configuration optionsRAMS_SOLVER_PATH_HIGHSto customize HiGHS executable pathUsage
Users can now use HiGHS by setting the solver:
Custom Arguments
HiGHS-specific arguments can be passed through:
Custom Installation Path
For non-standard HiGHS installations:
export RAMS_SOLVER_PATH_HIGHS=/opt/highs/bin/highsCompatibility
Fixes #33.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
esm.ubuntu.com/usr/lib/apt/methods/https(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.