<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>[]'s<br></font><br><div class="gmail_quote">
On Tue, Feb 8, 2011 at 3:26 PM, John Forrest <span dir="ltr"><<a href="mailto:john.forrest@fastercoin.com">john.forrest@fastercoin.com</a>></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>
> Just a question about the level of GMPL support: last time I tried, only<br>
> Symphony parsed also the reporting parts of the .mod files (printing of<br>
> the results etc) - Cbc simply ignored them.<br>
> Has it improved now? And if not, are there any plans to do it? (Solving<br>
> a problem does not really help, if one cannot print the results<br>
> afterwards..)<br>
><br>
> Regards,<br>
> Michal<br>
><br>
><br>
> On 07/02/11 19:06, Ted Ralphs wrote:<br>
> > This is not really the right mailing list for question about CBC, so<br>
> > I'm cc'ing the Cbc list. All of the COIN-OR projects can read GMPL in<br>
> > principle if the code is built with GLPK present. The ability to read<br>
> > GMPL files is provided in the CoinUtils project through a link to<br>
> > GLPK. With Cbc, if you specify the model and data files with a "%" in<br>
> > between as your input file name, it will read them as GMPL, i.e.,<br>
> ><br>
> > cbc sample.mod%sample.dat<br>
> ><br>
> > To build cbc with GMPL support using the autotools, you would go into<br>
> > the ThirdParty/Glpk directory and run the command<br>
> ><br>
> > ./get.Glpk<br>
> ><br>
> > This will download the source for the proper version of Glpk. Then<br>
> > just configure and build as usual. The Glpk source will be<br>
> > auto-detected, built, and linked. We cannot distribute binaries that<br>
> > include this capability because of restrictions imposed by the GPL.<br>
> > Feel free to post further questions to either the Cbc list or the<br>
> > CoinUtils list, as appropriate.<br>
> ><br>
> > Cheers,<br>
> ><br>
> > Ted<br>
> ><br>
> > On Mon, Feb 7, 2011 at 12:10 PM, Brian Borchers<<a href="mailto:borchers@nmt.edu">borchers@nmt.edu</a>> wrote:<br>
> >><br>
> >>><br>
> >>> Message: 1<br>
> >>> Date: Mon, 7 Feb 2011 10:02:58 +0530<br>
> >>> From: "ranganaths"<<a href="mailto:ranganath.s@excelindia.com">ranganath.s@excelindia.com</a>><br>
> >>> Subject: [Clp] GNUMath Prog<br>
> >>> To:<<a href="mailto:clp@list.coin-or.org">clp@list.coin-or.org</a>><br>
> >>> Message-ID:<001201cbc680$192379e0$4b6a6da0$@<a href="mailto:s@excelindia.com">s@excelindia.com</a>><br>
> >>> Content-Type: text/plain; charset="us-ascii"<br>
> >>><br>
> >>> Hello,<br>
> >>><br>
> >>><br>
> >>><br>
> >>> Does COIN-OR BC(CBC) accept the input model in the<br>
> >>> GNUMathProg format?<br>
> >>><br>
> >>><br>
> >><br>
> >> You can use glpk to convert a model from GNU Math Prog format to MPS format<br>
> >> and then use the MPS file as input into the COIN-OR tools.<br>
> >><br>
> >><br>
> >><br>
> >> --<br>
> >> Brian Borchers <a href="mailto:borchers@nmt.edu">borchers@nmt.edu</a><br>
> >> Department of Mathematics <a href="http://www.nmt.edu/%7Eborchers/" target="_blank">http://www.nmt.edu/~borchers/</a><br>
> >> New Mexico Tech Phone: (575) 322-2592<br>
> >> Socorro, NM 87801 FAX: (575) 835-5366<br>
> >><br>
> >> _______________________________________________<br>
> >> Clp mailing list<br>
> >> <a href="mailto:Clp@list.coin-or.org">Clp@list.coin-or.org</a><br>
> >> <a href="http://list.coin-or.org/mailman/listinfo/clp" target="_blank">http://list.coin-or.org/mailman/listinfo/clp</a><br>
> >><br>
> >><br>
> ><br>
> ><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>
><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>"Computer science is no more about computers than astronomy <br>
is about telescopes." Edsger Dijkstra<br> <br>