Use of ma57 in casadi 2.4.1 32bit under win7

1,024 views
Skip to first unread message

Marco Gabiccini

unread,
Nov 3, 2015, 5:03:14 AM11/3/15
to CasADi
Dear All,

I am facing a problem in using HSL ma57 in casadi 2.4.1 32bit version under win7.

I have downloaded an authorized copy of precompiled 32bit .dll routines from http://www.hsl.rl.ac.uk/ipopt/

However, when I run with the option to use ma57 I get the error:

Exception of type: OPTION_INVALID in file "../../../../Ipopt/src/Algorithm/IpAlgBuilder.cpp" at line 345:
 Exception message: Selected linear solver MA57 not available.
Tried to obtain MA57 from shared library "libhsl.so", but the following error occured:
Windows error while loading dynamic library libhsl.so, error = 126.
(see http://msdn.microsoft.com/en-us/library/ms681381%28v=vs.85%29.aspx)


EXIT: Invalid option encountered.
                   proc           wall      num mean             mean
                   time           time     evals       proc time        wall time
    main loop     0.001 [s]      0.001 [s] 

I also tried to rename libhsl.dll to libhsl.so but this does not solve the problem. Any suggestion?

Thanks for your help,
Marco

Gil Serrancolí

unread,
Jun 9, 2016, 5:41:13 AM6/9/16
to CasADi
Dear all,

I guess that I have the same problem. I have downloaded the precompiled 32bit.dll. I added the User variable LD_LIBRARY_PATH with the path to the libraries, as well as I added the same directory to the PATH variable. I get the following when I try to run casadi with ma57 solver:

Exception of type: OPTION_INVALID in file "../../../../Ipopt/src/Algorithm/IpAlgBuilder.cpp" at line 345:
 Exception message: Selected linear solver MA57 not available.
Tried to obtain MA57 from shared library "libhsl.dll", but the following error occured:
Windows error while loading dynamic library libhsl.dll, error = 126.

Does anyone know how to fix this issue?

Thank you very much in advance.

Regards,

Gil

Joris Gillis

unread,
Jun 9, 2016, 9:07:38 AM6/9/16
to CasADi
Dear Gil,

The prebuilt coinhsl packages should work on Windows for Python 32-bit when the directory is on the PATH.

I just tried 'coinhsl-win32-openblas-2014.01.10' on Windows 10 with 'casadi-py27-np1.9.1-v3.0.0.tar.gz' casadi binary, and that runs at least.

Have you openend a fresh terminal after setting the PATH? Can you detail your setup more?


Best regards,
  Joris

Gil Serrancolí

unread,
Jun 9, 2016, 12:11:00 PM6/9/16
to CasADi
Dear Joris,

I forgot to mention that I am using Matlab (R2015a at 64bits) interface with Windows 7. I am also using "coinhsl-win32-openblas-2014.01.10". Regarding the version of CasADi: "casadi-matlabR2014b-v3.0.0".

Is it possible to use solver ma57 with CasADi through the Matlab interface?

Thank you very much.

Gil

Joris Gillis

unread,
Jun 10, 2016, 1:48:07 AM6/10/16
to CasADi
Hi,

Unfortunately you're out of luck then. Matlab needs a 64-bibt build, which you cannot download.
Furthermore, the hsl library that Matlab ships is incompatible with CasADi.

If you're brave, you can attempt to compile it yourself.
Here is the cross-build script that we use succesfully ourselves: https://github.com/casadi/testbot/blob/master/recipes/mingw64_coinhsl.sh


Best regards,
   Joris
Reply all
Reply to author
Forward
0 new messages