mechmotum / cyipopt

Cython interface for the interior point optimzer IPOPT
Eclipse Public License 2.0
227 stars 54 forks source link

Add install instructions for HSL on windows #254

Closed avdudchenko closed 3 months ago

avdudchenko commented 3 months ago

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.

moorepants commented 3 months ago

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

moorepants commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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