<font face="arial,helvetica,sans-serif">Hi Forrest/Ted,<br> <br>To write LPs in MathProg is much easier and practical than write a C++ program to generate the model. It is a great language to quickly test different formulations.<br>
<br>Easy access to this feature would clearly allow many newcomers to use CBC.<br><br>If this could be included in the default CBC distribution, it would be a nice addition.<br><br>[]&#39;s<br></font><br><div class="gmail_quote">
On Tue, Feb 8, 2011 at 3:26 PM, John Forrest <span dir="ltr">&lt;<a href="mailto:john.forrest@fastercoin.com">john.forrest@fastercoin.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Is there interest in having better gmpl-cbc connectivity?<br>
<br>
I can get cbc to model sudoku.mod and print the report in<br>
glpk/example/sudoku.mod - but it aborts on a memory leak after report.<br>
This is because memory was not free when problem was read in in<br>
CoinMpsIO.cpp - I can fix but it needs a few more hours.<br>
<font color="#888888"><br>
John Forrest<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
<br>
On Tue, 2011-02-08 at 09:14 +0100, Michal Kaut wrote:<br>
&gt; Just a question about the level of GMPL support: last time I tried, only<br>
&gt; Symphony parsed also the reporting parts of the .mod files (printing of<br>
&gt; the results etc) - Cbc simply ignored them.<br>
&gt; Has it improved now? And if not, are there any plans to do it? (Solving<br>
&gt; a problem does not really help, if one cannot print the results<br>
&gt; afterwards..)<br>
&gt;<br>
&gt; Regards,<br>
&gt; Michal<br>
&gt;<br>
&gt;<br>
&gt; On 07/02/11 19:06, Ted Ralphs wrote:<br>
&gt; &gt; This is not really the right mailing list for question about CBC, so<br>
&gt; &gt; I&#39;m cc&#39;ing the Cbc list. All of the COIN-OR projects can read GMPL in<br>
&gt; &gt; principle if the code is built with GLPK present. The ability to read<br>
&gt; &gt; GMPL files is provided in the CoinUtils project through a link to<br>
&gt; &gt; GLPK. With Cbc, if you specify the model and data files with a &quot;%&quot; in<br>
&gt; &gt; between as your input file name, it will read them as GMPL, i.e.,<br>
&gt; &gt;<br>
&gt; &gt; cbc sample.mod%sample.dat<br>
&gt; &gt;<br>
&gt; &gt; To build cbc with GMPL support using the autotools, you would go into<br>
&gt; &gt; the ThirdParty/Glpk directory and run the command<br>
&gt; &gt;<br>
&gt; &gt; ./get.Glpk<br>
&gt; &gt;<br>
&gt; &gt; This will download the source for the proper version of Glpk. Then<br>
&gt; &gt; just configure and build as usual. The Glpk source will be<br>
&gt; &gt; auto-detected, built, and linked. We cannot distribute binaries that<br>
&gt; &gt; include this capability because of restrictions imposed by the GPL.<br>
&gt; &gt; Feel free to post further questions to either the Cbc list or the<br>
&gt; &gt; CoinUtils list, as appropriate.<br>
&gt; &gt;<br>
&gt; &gt; Cheers,<br>
&gt; &gt;<br>
&gt; &gt; Ted<br>
&gt; &gt;<br>
&gt; &gt; On Mon, Feb 7, 2011 at 12:10 PM, Brian Borchers&lt;<a href="mailto:borchers@nmt.edu">borchers@nmt.edu</a>&gt;  wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Message: 1<br>
&gt; &gt;&gt;&gt; Date: Mon, 7 Feb 2011 10:02:58 +0530<br>
&gt; &gt;&gt;&gt; From: &quot;ranganaths&quot;&lt;<a href="mailto:ranganath.s@excelindia.com">ranganath.s@excelindia.com</a>&gt;<br>
&gt; &gt;&gt;&gt; Subject: [Clp] GNUMath Prog<br>
&gt; &gt;&gt;&gt; To:&lt;<a href="mailto:clp@list.coin-or.org">clp@list.coin-or.org</a>&gt;<br>
&gt; &gt;&gt;&gt; Message-ID:&lt;001201cbc680$192379e0$4b6a6da0$@<a href="mailto:s@excelindia.com">s@excelindia.com</a>&gt;<br>
&gt; &gt;&gt;&gt; Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Hello,<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;                 Does COIN-OR BC(CBC) accept the input model in the<br>
&gt; &gt;&gt;&gt; GNUMathProg format?<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; You can use glpk to convert a model from GNU Math Prog format to MPS format<br>
&gt; &gt;&gt; and then use the MPS file as input into the COIN-OR tools.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; --<br>
&gt; &gt;&gt; Brian Borchers                          <a href="mailto:borchers@nmt.edu">borchers@nmt.edu</a><br>
&gt; &gt;&gt; Department of Mathematics      <a href="http://www.nmt.edu/%7Eborchers/" target="_blank">http://www.nmt.edu/~borchers/</a><br>
&gt; &gt;&gt; New Mexico Tech                       Phone: (575) 322-2592<br>
&gt; &gt;&gt; Socorro, NM 87801                   FAX: (575) 835-5366<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; Clp mailing list<br>
&gt; &gt;&gt; <a href="mailto:Clp@list.coin-or.org">Clp@list.coin-or.org</a><br>
&gt; &gt;&gt; <a href="http://list.coin-or.org/mailman/listinfo/clp" target="_blank">http://list.coin-or.org/mailman/listinfo/clp</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Cbc mailing list<br>
&gt; <a href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a><br>
&gt; <a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a><br>
&gt;<br>
<br>
<br>
_______________________________________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>=============================================================<br>Haroldo Gambini Santos<br>Computing Department - Universidade Federal de Ouro Preto - UFOP<br>
email: haroldo [at ] <a href="http://iceb.ufop.br">iceb.ufop.br</a><br>home/research page: <a href="http://www.iceb.ufop.br/decom/prof/haroldo/">http://www.iceb.ufop.br/decom/prof/haroldo/</a><br> <br>&quot;Computer science is no more about computers than astronomy <br>
is about telescopes.&quot; Edsger Dijkstra<br> <br>