<html>
<body>
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>
&nbsp;<br>
&nbsp; OsiClpSolverInterface solver1;<br>
&nbsp;<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><br>
<blockquote type=cite class=cite cite=""><font size=2>There is a GAMS
interface - see GAMSlinks project on coin-or.</font> <br><br>
<font size=2>Clp accepts LP format</font> <br><br>
<font size=2>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> <br><br>
<font size=2>John Forrest</font> <br><br>
<br>
<font size=1><b>Yiming Yao &lt;yao3@llnl.gov&gt;</b> </font><br>
<font size=1>Sent by: coin-lpsolver-bounces@list.coin-or.org</font>
<br><br>
<font size=1>10/31/2007 08:11 PM</font> <br>
<div align="right"><font size=1>To<br>
</div>
&lt;coin-lpsolver@list.coin-or.org&gt;</font> <br>
<div align="right"><font size=1>cc<br>
Subject<br>
</div>
[Coin-lpsolver] LP input format to CLP</font> <br><br>
<br><br>
<br>
<tt><font face="Courier New, Courier" size=2>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<br>
<a href="http://list.coin-or.org/mailman/listinfo/coin-lpsolver" eudora="autourl">http://list.coin-or.org/mailman/listinfo/coin-lpsolver</a><br>
</font></tt><br>
_______________________________________________<br>
Coin-lpsolver mailing list<br>
Coin-lpsolver@list.coin-or.org<br>
<a href="http://list.coin-or.org/mailman/listinfo/coin-lpsolver" eudora="autourl">http://list.coin-or.org/mailman/listinfo/coin-lpsolver</a></blockquote></body>
<br>
</html>