[Ipopt-tickets] [Ipopt] #191: Compiling a shared library with HSL

Ipopt coin-trac at coin-or.org
Tue Jan 8 02:32:29 EST 2013


#191: Compiling a shared library with HSL
---------------------+------------------------
  Reporter:  guest   |      Owner:  ipopt-team
      Type:  defect  |     Status:  new
  Priority:  normal  |  Component:  Ipopt
   Version:  3.10    |   Severity:  normal
Resolution:          |   Keywords:
---------------------+------------------------

Comment (by guest):

 Thanks, Stefan.  I copied the files ma19ad.f, ma27ad.f and ma57ad.f into
 ThirdParty/HSL, configured did a make both in ThirdParty/HSL and I
 obtained the library file libcoinhsl.1.3.3.dylib.

 Next, I placed this file as itself as well as its renamed version
 (libhsl.dylib) in the directory
 /Users/yalcinkaya/build/Ipopt-3.10.3/build/lib.

 I defined the DYLD_LIBRARY_PATH in the .profile file to be the above
 directory, and this was reconfirmed after I entered echo
 $DYLD_LIBRARY_PATH in the command line.

 Then I ran Ipopt with the option "linear_solver=ma57".  However I got the
 following error message:

 Ipopt 3.10.3: linear_solver=ma57

 Exception of type: OPTION_INVALID in file
 "../../../../Ipopt/src/Algorithm/IpAlgBuilder.cpp" at line 330:

  Exception message: Selected linear solver MA57 not available.

 Tried to obtain MA57 from shared library "libhsl.dylib", but the following
 error occured:

 dlopen(libhsl.dylib, 2): image not found


 EXIT: Invalid option encountered.

 Error at _cmdno 6 executing "solve" command

 (file bioreactor_mobj_single.mod, line 90, offset 2767):

 can't open /var/folders/nm/t5z10swj65zdqmwnzmv3_t2h0000gn/T/at74947.sol

 ----------------

 Is it the renaming what causes the problem?  I thought of linking
 libhsl.dylib to libcoinhsl.1.3.3.dylib, but this doesn't seem to be an
 easy thing to do on MacOSX, as far as I can tell after a search.

-- 
Ticket URL: <https://projects.coin-or.org/ticket/191#comment:8>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.



More information about the Ipopt-tickets mailing list