-
Notifications
You must be signed in to change notification settings - Fork 0
Add support for the HiGHS optimization solver #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: ryanjoneil <6748953+ryanjoneil@users.noreply.github.com>
ryanjoneil
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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>
All requested changes implemented in commit bfe6668:
HiGHS should now work properly in GitHub Actions CI/CD pipeline. |
|
Removes CPLEX since we can't test it and want to focus on OSS solvers. |
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.