Error while using ma27 solver #681
Replies: 2 comments 9 replies
-
Maybe set My guess is that |
Beta Was this translation helpful? Give feedback.
-
Thanks for instructions: I have a project with multiple files and other imported libraries and usually I run it within pycharm. here is a sample from the output, it looks like searching in /home/user/ThirdParty-HSL/coinhsl/lib 64256: search path=glibc-hwcaps/x86-64-v3:glibc-hwcaps/x86-64-v2:tls/haswell/x86_64:tls/haswell:tls/x86_64:tls:haswell/x86_64:haswell:x86_64::/home/user/ThirdParty-HSL/coinhsl/lib (LD_LIBRARY_PATH) |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have a python program that uses CasADi and IPOPT.
The code runs as required sith mumps solvers, but when i tried to use ma27, i have some problems.
I get the HSL packages from their offecial website.
extracted and compiled them follwoing the steps in CasADi
https://github.com/casadi/casadi/wiki/Obtaining-HSL
"
extraction folder: /home/user/ThirdParty-HSL/coinhsl
then I created the symbolic link to obtain libhsl.so as required
ln -s /usr/local/lib/libcoinhsl.so /usr/local/lib/libhsl.so
then to make IOPOT see the solvers i added the environment variable using
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
when using: echo $LD_LIBRARY_PATH i get:
:/usr/local/lib:/home/user/ThirdParty-HSL/coinhsl/lib
now when using ('nlpsol_opts': {'ipopt.linear_solver': 'MA27'}) within the code to use ma27 i got them message:
Exception of type: DYNAMIC_LIBRARY_FAILURE in file "/work/build/external_projects/src/ipopt-external/src/Common/IpLibraryLoader.cpp" at line 72:
Exception message: libhsl.so: cannot open shared object file: No such file or directory
EXIT: Library loading failure.
It seems that the paths could be found but it could not load the library. I don't know whya and I almost tried everything, but did not work.
I am using ubuntu 22.04
python 3.10 - Anaconda
pycharm environment
CasADi 3.6.3
and I think all required packages and compilers are installed as required.
I have been working to overcome this problem but with no success, and it is now driving me craizy
could you please advise me what to do? and if some one has similar problem how he solved it?
Beta Was this translation helpful? Give feedback.
All reactions