Skip to content

Commit

Permalink
Update HSL_jll.jl instructions in the README.md (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrolho authored Jun 6, 2023
1 parent 95fb3f6 commit f66f888
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,14 @@ To improve performance, Ipopt supports a number of linear solvers.
### HSL

Obtain a license and download `HSL_jll.jl` from [https://licences.stfc.ac.uk/product/julia-hsl](https://licences.stfc.ac.uk/product/julia-hsl).

There are two versions available: LBT and OpenBLAS. LBT is the recommended option
for Julia >= v1.9.

Install this download into your current environment using:
```julia
import Pkg
Pkg.dev("/full/path/to/HSL_jll.jl")
Pkg.develop(path = "/full/path/to/HSL_jll.jl")
```

Then, use a linear solver in HSL by setting the `hsllib` and `linear_solver`
Expand All @@ -249,6 +253,15 @@ set_attribute(model, "hsllib", HSL_jll.libhsl_path)
set_attribute(model, "linear_solver", "ma86")
```

#### macOS users

Due to the security policy of macOS, Mac users may need to delete the quarantine
attribute of the ZIP archive before extracting. For example:
```raw
xattr -d com.apple.quarantine lbt_HSL_jll.jl-2023.5.26.zip
xattr -d com.apple.quarantine openblas_HSL_jll.jl-2023.5.26.zip
```

### Pardiso

Download Pardiso from [https://www.pardiso-project.org](https://www.pardiso-project.org).
Expand Down

0 comments on commit f66f888

Please sign in to comment.