[Ipopt] Using HSL 2013 with pyipopt python module?

Tony Kelman kelman at berkeley.edu
Mon Sep 1 13:34:08 EDT 2014


Guy,

It’s probably an Ipopt compilation issue with the binaries you downloaded. The error “Do not know how to handle shared libraries on this operating system” comes from this line https://projects.coin-or.org/Ipopt/browser/releases/3.11.0/Ipopt/src/contrib/LinearSolverLoader/LibraryHandler.c#L34 because the define ERROR_LOADLIB was set here - https://projects.coin-or.org/Ipopt/browser/releases/3.11.0/Ipopt/src/contrib/LinearSolverLoader/LibraryHandler.h#L29

Apparently neither of HAVE_WINDOWS_H and HAVE_DLFCN_H were defined when the Ipopt library you’re using was compiled. You’ll need a different one. There are some older downloads at http://www.coin-or.org/download/binary/ and I have some MinGW DLL’s I made last year that may work for you, try https://dl.dropboxusercontent.com/u/8244638/bonmin_win32.zip or https://dl.dropboxusercontent.com/u/8244638/bonmin_win64.zip (includes Ipopt, Cbc, and Bonmin). I haven’t tested these with Python. Do you (or anybody else on the list) know whether pyipopt requires a Visual Studio-compiled Ipopt DLL, or if it can also work with a MinGW DLL?

I also just built a set of cross-compiled binaries on the opensuse build service, I can give you links to those but they’re done as separate packages for ASL, Lapack, Mumps, Ipopt, and you need to get libgcc, libgfortran etc. There’s a package in Julia that automates this, which you might be interested in trying out.

-Tony


From: Guy Charles 
Sent: Monday, September 01, 2014 9:53 AM
To: ipopt at list.coin-or.org 
Subject: [Ipopt] Using HSL 2013 with pyipopt python module?

Hi,

 

I'm having issues using the pyiopt module with an external HSL library (on Windows), and was hoping someone may know what I need to do to remedy this?>

 

I'm using the pyipopt python module ( https://github.com/xuy/pyipopt ), which works fine with the last version of ipopt dlls taken from the binaries downloads (http://www.coin-or.org/Binaries/Ipopt/Ipopt-3.11.0-Win32-Win64-dll.7z) .  I'm now running into some problems using mumps and would like to use the HSL routines instead - e.g. ma57 which works well on a similar problem in Matlab.  I've tried with the latest HSL 2013 libraries, both a prebuilt dll that was given to me, and a locally built version from the HSL source code.  Either way I get the following problem:

 

 



 

 

Has anyone come across this issue, or got any suggestions on what the problem is?  Is it an operating system (windows 7) issue, or Python, or Ipopt? 

 

 

Thanks in advance,

 

Guy

 

 

 

 

GUY CHARLES

Senior Simulation & Modelling Engineer

 

Red Bull Technology Ltd.
Building 1, Bradbourne Drive
Tilbrook, Milton Keynes, UK
MK7 8BJ


______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________



--------------------------------------------------------------------------------
_______________________________________________
Ipopt mailing list
Ipopt at list.coin-or.org
http://list.coin-or.org/mailman/listinfo/ipopt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20140901/8494228a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 20408 bytes
Desc: not available
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20140901/8494228a/attachment-0001.png>


More information about the Ipopt mailing list