Skip to content
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

Merged
merged 4 commits into from
Jun 7, 2024

Conversation

avdudchenko
Copy link
Contributor

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.

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"
Copy link
Collaborator

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@moorepants
Copy link
Collaborator

One comment for adjustment, but otherwise thanks for the helpful addition!

@moorepants
Copy link
Collaborator

The test failures are because scipy 1.13 broke things. If you change to scipy>1.8.0,<1.13 to .github/workflows/tests.yml:

https://github.com/mechmotum/cyipopt/blob/master/.github/workflows/tests.yml#L58

the tests should pass.

@avdudchenko
Copy link
Contributor Author

avdudchenko commented Jun 7, 2024

The test failures are because scipy 1.13 broke things. If you change to scipy>1.8.0,<1.13 to .github/workflows/tests.yml:

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.

Run mamba install -q -y -c conda-forge "ipopt=3.14" "numpy>=1.21.5" "pkg-config>=0.29.2" "setuptools>=44.1.1" "scipy>1.8.0,<1.13" "pytest>=6.2.5" "cython=0.29.*" mamba install -q -y -c conda-forge "ipopt=3.14" "numpy>=1.21.5" "pkg-config>=0.29.2" "setuptools>=44.1.1" "scipy>1.8.0,<1.13" "pytest>=6.2.5" "cython=0.29.*" mamba list pytest shell: C:\Program Files\Git\bin\bash.EXE -l {0} env: INPUT_RUN_POST: true CONDA: C:\Miniconda3 CONDA_PKGS_DIR: C:\Users\runneradmin\conda_pkgs_dir IPOPTWINDIR: USECONDAFORGEIPOPT bash: line 1: 1.13: No such file or directory Error: Process completed with exit code 1.

@moorepants
Copy link
Collaborator

You don't have to debug that. I'll work on it.

@moorepants moorepants merged commit 44536e2 into mechmotum:master Jun 7, 2024
32 of 42 checks passed
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