Open danielasun opened 2 years ago
@danielasun I faced the same issue some time ago and I couldn't figure out how to fix it.
As a workaround, I installed HSL using ThirdParty-HSL and got HSL solvers to work.
Hope it helps in the meantime.
@gmsanchez Thank you so much! Using ThirdParty-HSL ended up working for me, I still had to do the manual symbolic linking to libhsl.so but otherwise pretty painless! Thanks again.
I downloaded ubantu 22.04 on the official website of ubantu and installed it in the virtual machine. Then I downloaded the anaconda 3 environment in the system and created the environment of Python 37 in the env folder. In the environment of Python 37, PIP install casadi. Then I completed the compilation of HSL and generated the include and Lib folders according to the operation of thirdparty. However, when I ran my code here, I still prompted that Ma57 was an invalid option,@gmsanchez,please help me.
Hi, I'm using Casadi installed with pip and trying to use the HSL solvers with IPOPT.
I followed the instructions at https://github.com/casadi/casadi/wiki/Obtaining-HSL and made sure to add my install location for the hsl shared library:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
However, during execution when trying to use nlpsol I am getting the following error:
I saw a couple of other issues referencing this but it seemed most people's issues went away after using the compiler flags or renaming libcoinhsl.so to libhsl.so
Thanks in advance for any assistance you can provide troubleshooting this.