<p dir="ltr">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.</p>
<p dir="ltr">Or you can look at <a href="https://github.com/ampl/mp">https://github.com/ampl/mp</a> which also contains a more modern C++ NL reader (the classic ASL is in C).</p>
<div class="gmail_quote">On Jan 27, 2016 10:02 AM, "Horand Gassmann" <<a href="mailto:Horand.Gassmann@dal.ca">Horand.Gassmann@dal.ca</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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.<br>
<br>
-------------------------------------------------------<br>
<br>
Horand I. Gassmann, Professor<br>
<br>
Kenneth C. Rowe School of Business, Dalhousie University<br>
6100 University Avenue, PO Box 15000<br>
Halifax, Nova Scotia, Canada, B3H 4R2<br>
ph. <a href="tel:%28902%29%20494-1844" value="+19024941844">(902) 494-1844</a><br>
fax <a href="tel:%28902%29%20494-1107" value="+19024941107">(902) 494-1107</a><br>
<br>
<a href="http://myweb.dal.ca/gassmann/" rel="noreferrer" target="_blank">http://myweb.dal.ca/gassmann/</a><br>
________________________________________<br>
From: Ipopt [<a href="mailto:ipopt-bounces@coin-or.org">ipopt-bounces@coin-or.org</a>] on behalf of Ian Washington [<a href="mailto:washinid@mcmaster.ca">washinid@mcmaster.ca</a>]<br>
Sent: January-27-16 1:58 PM<br>
To: <a href="mailto:ipopt@list.coin-or.org">ipopt@list.coin-or.org</a><br>
Subject: Re: [Ipopt] C++ interface and .nl files<br>
<br>
Short answer is NO.<br>
<br>
You should look into modeling tools like Pyomo or Casadi. You can find<br>
examples in each respective package.<br>
<br>
Ian.<br>
<br>
<br>
On 01/27/2016 09:54 AM, Gianpaolo Gulletta wrote:<br>
> Hi ,<br>
><br>
> I have Ipopt 3.12.4 and I would like to know if there is the possibility<br>
> to read a .nl file through c++ code and solve the problem.<br>
> As far as I know there are not examples about it, therefore I would<br>
> really appreciate a example code to understand how it works.<br>
><br>
> Thank you very much.<br>
><br>
> Best Regards,<br>
><br>
<br>
_______________________________________________<br>
Ipopt mailing list<br>
<a href="mailto:Ipopt@list.coin-or.org">Ipopt@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/ipopt" rel="noreferrer" target="_blank">http://list.coin-or.org/mailman/listinfo/ipopt</a><br>
<br>
_______________________________________________<br>
Ipopt mailing list<br>
<a href="mailto:Ipopt@list.coin-or.org">Ipopt@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/ipopt" rel="noreferrer" target="_blank">http://list.coin-or.org/mailman/listinfo/ipopt</a><br>
</blockquote></div>