# Using HSL library for IPOPT in PowerModels.jl

**URL:** https://discourse.julialang.org/t/using-hsl-library-for-ipopt-in-powermodels-jl/81796
**Category:** Optimization (Mathematical)
**Tags:** question
**Created:** [May 27, 2022, 4:16pm UTC](https://discourse.julialang.org/t/using-hsl-library-for-ipopt-in-powermodels-jl/81796 "2022-05-27T16:16:41Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![aaldik](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@aaldik](https://discourse.julialang.org/u/aaldik)
#### Post date: [May 27, 2022, 4:16pm UTC](https://discourse.julialang.org/t/using-hsl-library-for-ipopt-in-powermodels-jl/81796/1 "2022-05-27T16:16:41Z")

</div>

Hello

I would like to ask how to use the HSL library with the solver IPOPT that is used in the library PowerModels.jl.

---

<div class="post-metadata">

### Author: ![ccoffrin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ccoffrin/32/400_2.png) [@ccoffrin](https://discourse.julialang.org/u/ccoffrin)
#### Post date: [May 27, 2022, 8:41pm UTC](https://discourse.julialang.org/t/using-hsl-library-for-ipopt-in-powermodels-jl/81796/2 "2022-05-27T20:41:49Z")

</div>

Follow the instructions in this README for setting up Ipopt.jl with HSL, then use Ipopt with PowerModels as you normally would.

> **[GitHub - jump-dev/Ipopt.jl: Julia interface to the Ipopt nonlinear solver](https://github.com/jump-dev/Ipopt.jl)**
>
> Julia interface to the Ipopt nonlinear solver. Contribute to jump-dev/Ipopt.jl development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![aaldik](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@aaldik](https://discourse.julialang.org/u/aaldik)
#### Post date: [May 27, 2022, 8:48pm UTC](https://discourse.julialang.org/t/using-hsl-library-for-ipopt-in-powermodels-jl/81796/3 "2022-05-27T20:48:30Z")

</div>

Thanks Dr.Coffrin. I’m familiar with this link, however, it seems that these instructions are for Linux. Is there a set of instructions for Windows?

---

<div class="post-metadata">

### Author: ![ccoffrin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ccoffrin/32/400_2.png) [@ccoffrin](https://discourse.julialang.org/u/ccoffrin)
#### Post date: [May 27, 2022, 9:16pm UTC](https://discourse.julialang.org/t/using-hsl-library-for-ipopt-in-powermodels-jl/81796/4 "2022-05-27T21:16:55Z")

</div>

Not that I am aware of, but @odow can confirm for sure.

Clear instructions to get Ipopt+HSL working on windows would be a great contribution to the community as I understand the current situation.

---

<div class="post-metadata">

### Author: ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)
#### Post date: [May 27, 2022, 10:26pm UTC](https://discourse.julialang.org/t/using-hsl-library-for-ipopt-in-powermodels-jl/81796/5 "2022-05-27T22:26:04Z")

</div>

I don’t have a Windows machine, so I haven’t tried or tested HSL on Windows. If you get it working, some instructions would be great 😄
