[Ipopt] C++ interface and .nl files

Anthony D. Kelman kelman at berkeley.edu
Wed Jan 27 13:06:08 EST 2016


Ipopt has a command line driver that uses ASL to load .nl files, adapting
that same code into a C++ library wouldn't be hard.

Or you can look at https://github.com/ampl/mp which also contains a more
modern C++ NL reader (the classic ASL is in C).
On Jan 27, 2016 10:02 AM, "Horand Gassmann" <Horand.Gassmann at dal.ca> wrote:

> This is actually not true. David Gay made available and maintains the AMPL
> Solver Library ASL, which can be downloaded from COIN-OR. The OS project
> has an interface to Ipopt that uses ASL and provides support for .nl files,
> even if Ipopt does not do so directly.
>
> -------------------------------------------------------
>
> Horand I. Gassmann, Professor
>
> Kenneth C. Rowe School of Business, Dalhousie University
> 6100 University Avenue, PO Box 15000
> Halifax, Nova Scotia, Canada, B3H 4R2
> ph. (902) 494-1844
> fax (902) 494-1107
>
> http://myweb.dal.ca/gassmann/
> ________________________________________
> From: Ipopt [ipopt-bounces at coin-or.org] on behalf of Ian Washington [
> washinid at mcmaster.ca]
> Sent: January-27-16 1:58 PM
> To: ipopt at list.coin-or.org
> Subject: Re: [Ipopt] C++ interface and .nl files
>
> Short answer is NO.
>
> You should look into modeling tools like Pyomo or Casadi. You can find
> examples in each respective package.
>
> Ian.
>
>
> On 01/27/2016 09:54 AM, Gianpaolo Gulletta wrote:
> > Hi ,
> >
> > I have Ipopt 3.12.4 and I would like to know if there is the possibility
> > to read a .nl file through c++ code and solve the problem.
> > As far as I know there are not examples about it, therefore I would
> > really appreciate a example code to understand how it works.
> >
> > Thank you very much.
> >
> > Best Regards,
> >
>
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt
>
> _______________________________________________
> 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/20160127/4c927cde/attachment.html>


More information about the Ipopt mailing list