[Ipopt] example.for asks for MA_47
Stefan Vigerske
stefan at math.hu-berlin.de
Tue Jul 4 06:08:29 EDT 2017
Hi,
it sounds as if HSL has reorganized the MA27 and MA47 source files
sometime in the last 10 years, so the old Ipopt 2.3 configure doesn't
know anymore how to build the HSL source. You would thus have to dig
into the Ipopt 2.3 build system to update it for the current HSL
sources, or make your own customized Makefile.
Ipopt 2.3 is no longer maintained - and that for over 10 years now.
If you want to call Ipopt from Fortran, consider using the Fortran
interface or the current Ipopt:
https://www.coin-or.org/Ipopt/documentation/node25.html
Stefan
On 07/03/2017 02:25 PM, Daniel Feenberg wrote:
>
>
> On Tue, 27 Jun 2017, Stefan Vigerske wrote:
>
>> Hi,
>>
>> I don't think there is still support for the Fortran version of Ipopt.
>> That said, it seems to use MA47 if option QSYMSOLV is set to 0. This
>> is the default only if MA27 and MA57 are not available. So maybe check
>
> I think MA27 is available. Does it need to be anywhere except:
>
> ls ./IPOPT/ipopt/ma27*
> ./IPOPT/ipopt/ma27_call.o
> ./IPOPT/ipopt/ma27_call.F
>
>> whether configure correctly recognized the HSL library. It
>
> Ipopt configure reports;
>
> checking for ./OTHERS/HSL/ma47ad.f... no
>
> which might mean that I haven't copied ma47ad.f to the correct location,
> however the ./ma47-1.0.0/src directory contains only:
>
> ddeps.f libma47.a ma47d.o ma47s.o Makefile.am sdeps.f
> ddeps.o ma47d.f ma47s.f Makefile Makefile.in sdeps.o
>
> and no ma47ad.f for me to copy over. A similar situation applies to
> ma27ad.f - that file doesn't seem to be in the tar distribution for
> Ipopt itself. I did move libma47.a to /usr/lib64. No change.
>
> I really want to get this working, because I am quite enthusiastic about
> my project and a colleague has found Ipoptr to work well for the same
> problem.
>
>> could also be that the 11 years old configure script that comes with
>> Ipopt for Fortran does not work correctly anymore on current systems.
>
>>
>> Stefan
>>
>> On 06/26/2017 11:06 PM, Daniel Feenberg wrote:
>>>
>>> I was able to follow the instructions to install ipopt on our Linux
>>> system, configure and make both completed without complaint after I
>>> obtains the HSL license and lib/include files.
>>>
>>> Nevetheless, when I compile and run the example.f program, I get an
>>> error
>>> from IPOPT:
>>>
>>> ma47_call: Compiled without MA47 - cannot execute this option
>>> init_mem: GET_STEP_FULL returns IERR = 97
>>> ipopt: ESTIMATE_WS returns IERR = 97
>>>
>>> An error occoured after -1 Iterations.
>>> The error code is 97
>>>
>>> The license came with a link to download a library, which apparently
>>> contains:
>>>
>>> 2011-09-11
>>> Testing pre-release. Contains following package versions:
>>> * MC19 1989-03-09
>>> * HSL_MC68 v3.2.0
>>> * MA27 2003-03-19
>>> * MA28 1993-06-21
>>> * MA57 v3.7.0
>>> * HSL_MA77 v5.7.0
>>> * HSL_MA86 v1.2.0
>>>
>>> so no MA_47. The Makefiles includes these lines related to MA_47:
>>>
>>> Makefile: BUILDMA47_FALSE =
>>> Makefile: BUILDMA47_TRUE = #
>>> Makefile.in:BUILDMA47_FALSE = @BUILDMA47_FALSE@
>>> Makefile.in:BUILDMA47_TRUE = @BUILDMA47_TRUE@
>>>
>>> but I don't really want to insist on MA47 - I'd rather use MA77 which
>>> should be available. What should I do? I don't see any parameters in
>>> the
>>> fortran code that will help, and I don't think I can compile with MA_47
>>> with source not available. I must be wrong about one of those
>>> statements,
>>> though.
>>>
>>> Any help much appreciated - I haven't worked with nonlinear optimizers
>>> since 1978.
>>>
>>> Thanks
>>> daniel feenberg
>>> NBER
>>> Cambridge MA
>>>
>>> _______________________________________________
>>> Ipopt mailing list
>>> Ipopt at list.coin-or.org
>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__list.coin-2Dor.org_mailman_listinfo_ipopt&d=DwICAg&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=BRcuJnQr5NAzU29t80hk2rsLc4vrlRySBDabuq0O1ZI&m=57EzbIb1lZWTr3fdjpzyWZAc19e7ZjirjqngTqBb2K0&s=4qlCGDJyG3EauH1fhuTz92vyVVB3zID--HwZUSwnxSA&e=
>>
>>
>>
>> --
>> http://www.gams.com/~stefan
>>
>>
>
--
http://www.gams.com/~stefan
More information about the Ipopt
mailing list