Hi, I would like to know a way to connect a linear solver other than MUMPS on Ipopt.
m = Model(Ipopt.Optimizer)
set_optimizer_attribute(m, "linear_solver", "ma86")
@variable(m, x <= 5)
@objective(m, Max, x)
JuMP.optimize!(m)
Error:
Exception of type: OPTION_INVALID in file "IpAlgBuilder.cpp" at line 349:
Exception message: Selected linear solver HSL_MA86 not available.
Tried to obtain HSL_MA86 from shared library "libhsl.dylib", but the following error occured:
dlopen(libhsl.dylib, 2): image not found
EXIT: Invalid option encountered.
I downloaded “coinhsl” library but I don’t know how to connect this to the installed IPOPT.
Any guidance would be highly appreciated. Thank you!
@odow I’ve been using IPOPT + HSL just fine thanks to your help.
As I’m switching to Julia 1.5 from 1.3, I’m having a very strange issue with IPOPT + HSL.
using JuMP, Ipopt
m = Model(Ipopt.Optimizer)
set_optimizer_attribute(m, "linear_solver", "ma86")
@variable(m, x <= 5)
@variable(m, y <= 45)
@objective(m, Max, x + y)
JuMP.optimize!(m)
This works just fine on Julia v1.3, but Julia v1.5 gives me the following error:
Exception of type: OPTION_INVALID in file "IpAlgBuilder.cpp" at line 349:
Exception message: Selected linear solver HSL_MA86 not available.
Tried to obtain HSL_MA86 from shared library "libhsl.dylib", but the following error occured:
dlopen(libhsl.dylib, 2): image not found
EXIT: Invalid option encountered.
This is very strange as Julia 1.3 does not have this issue on the same computer. And I do have libhsl.dylib in /usr/local/lib directory.
Update: The problem on my mac is solved after adding the following line in “.bash_profile” export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib/"
I still don’t understand how this resolves the issue, but it works for Julia 1.4-1.6 (Julia 1.3 did not have the issue).
However, the issue remains when I run my codes on Atom REPL while VScode does not have the issue.