<br><font size=2 face="sans-serif">Yiming,</font>
<br>
<br><font size=2 face="sans-serif">Normally you just point AMPL at the
solver. &nbsp;AMPL then calls the solver as -</font>
<br>
<br><font size=2 face="sans-serif">cbc xxxxxx.nl -AMPL</font>
<br>
<br><font size=2 face="sans-serif">which tells cbc that the xxxxxx.nl file
is ampl.</font>
<br>
<br><font size=2 face="sans-serif">You can add options just as for an mps
file but the format is different - so instead of -maxnodes 1000 the format
is maxnodes=1000</font>
<br>
<br><font size=2 face="sans-serif">John Forrest</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Yiming Yao &lt;yao3@llnl.gov&gt;</b>
</font>
<p><font size=1 face="sans-serif">11/01/2007 04:01 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">John J Forrest/Watson/IBM@IBMUS</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">coin-lpsolver@list.coin-or.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [Coin-lpsolver] LP input format
to CLP</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3>John,<br>
<br>
Thanks for the reply. <br>
<br>
Is there a sample c++ file that reads an AMPL model? If not, what should
be changed in the following code snippet so it can take an AMPL model as
input?<br>
<br>
int main (int argc, const char *argv[])<br>
{<br>
 <br>
 &nbsp;OsiClpSolverInterface solver1;<br>
 <br>
 &nbsp;// Read in model using argv[1]<br>
 &nbsp;// and assert that it is a clean model<br>
 &nbsp;std::string mpsFileName = &quot;../../Data/Sample/p0033.mps&quot;;<br>
 &nbsp;if (argc&gt;=2) mpsFileName = argv[1];<br>
 &nbsp;int numMpsReadErrors = solver1.readMps(mpsFileName.c_str(),&quot;&quot;);<br>
---<br>
}<br>
<br>
V/r,<br>
<br>
Yiming<br>
<br>
<br>
At 05:19 AM 11/1/2007, John J Forrest wrote:<br>
</font>
<br><font size=2>There is a GAMS interface - see GAMSlinks project on coin-or.</font><font size=3>
<br>
</font><font size=2><br>
Clp accepts LP format</font><font size=3> <br>
</font><font size=2><br>
Clp itself does not have a link to AMPL. &nbsp;However Cbc (which by default
uses Clp) does - so just use Cbc. &nbsp;To activate the AMPL linkages down
load Cbc then go to ThirdParty/ASL and do get.ASL before the configure.</font><font size=3>
<br>
</font><font size=2><br>
John Forrest</font><font size=3> <br>
<br>
</font><font size=1><b><br>
Yiming Yao &lt;yao3@llnl.gov&gt;</b> <br>
Sent by: coin-lpsolver-bounces@list.coin-or.org</font><font size=3> <br>
</font><font size=1><br>
10/31/2007 08:11 PM</font><font size=3> </font>
<div align=right>
<br><font size=1>To</font></div>
<br><font size=1>&lt;coin-lpsolver@list.coin-or.org&gt;</font><font size=3>
</font>
<div align=right>
<br><font size=1>cc<br>
Subject</font></div>
<br><font size=1>[Coin-lpsolver] LP input format to CLP</font><font size=3>
<br>
<br>
<br>
<br>
</font><font size=2 face="Courier New"><br>
Besides MPS, does CLP accept other model formats, say, AMPL?<br>
<br>
Thanks.<br>
_______________________________________________<br>
Coin-lpsolver mailing list<br>
Coin-lpsolver@list.coin-or.org</font><font size=2 color=blue face="Courier New"><u><br>
</u></font><a href="http://list.coin-or.org/mailman/listinfo/coin-lpsolver"><font size=2 color=blue face="Courier New"><u>http://list.coin-or.org/mailman/listinfo/coin-lpsolver</u></font></a><font size=3><br>
<br>
_______________________________________________<br>
Coin-lpsolver mailing list<br>
Coin-lpsolver@list.coin-or.org</font><font size=3 color=blue><u><br>
</u></font><a href="http://list.coin-or.org/mailman/listinfo/coin-lpsolver"><font size=3 color=blue><u>http://list.coin-or.org/mailman/listinfo/coin-lpsolver</u></font></a>
<br>
<br>