-
Notifications
You must be signed in to change notification settings - Fork 56
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
Add install instructions for HSL on windows #254
Conversation
docs/source/install.rst
Outdated
Once the DLL files are placed you should be able to access the HSL solvers using solver options, in pyomo:: | ||
|
||
solver = pyo.SolverFactory("cyipopt") | ||
solver.config.options["linear_solver"] = "ma27" |
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.
pyomo is a different library, so can you change this to: problem.add_option('linear_solver', 'ma57')
which is the syntax of cyipopt.
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.
Done.
One comment for adjustment, but otherwise thanks for the helpful addition! |
The test failures are because scipy 1.13 broke things. If you change to https://github.com/mechmotum/cyipopt/blob/master/.github/workflows/tests.yml#L58 the tests should pass. |
I tried that, but not sure where I am configuring it wrong (says file not found). ( I never really worked with github workflows or mamba.) also trying scipy>1.8.0,<1.13.0. but doubt that is the issue.
|
You don't have to debug that. I'll work on it. |
This adds simple instructions on how to add HSL binaries to windows conda install of cyipopt. - tested only on my machine, so hopefully it works for others.