Hi,<br><br>I am an extreme newbie to COIN, but we have a number of ampl models that we would like to run on a system where we don't have ampl, and we would like to use CLP and CBC as solvers. I had found a message on this list about being able to read in GMPL models, so I reformatted one to the point where this command line works:
<br><br>glpsol -m test.mod<br><br>The next step, I think, is to load it into a Coin model, so that I can use COIN solvers. I wrote this tiny test program:<br><br>#include &quot;CoinMpsIO.hpp&quot;<br>int main(int argc, char* argv[])
<br>{<br>&nbsp; CoinMpsIO m;<br>&nbsp; m.readGMPL(&quot;test.mod&quot;);<br>}<br><br>I compiled and ran this and it seemed to *almost* load the model correctly; but then it seg faulted:<br><br>[gardner@master1 cma]$ test_gmpl<br>Reading model section from 
test.mod...<br>Reading data section from test.mod...<br>7706 lines were read<br>Generating total_cost_mip...<br>Generating demand_const_1...<br>Generating relational_const_1...<br>Generating mcg_const_1...<br>Model has been successfully generated
<br>Segmentation fault<br><br>Here is the stack trace from gdb:<br><br>(gdb) where<br>#0&nbsp; 0xb7f7f007 in CoinMessageHandler::message (this=0x0, messageNumber=1,<br>&nbsp;&nbsp;&nbsp; normalMessage=@0xbffff794) at CoinMessageHandler.cpp:440
<br>#1&nbsp; 0xb7f8f328 in CoinMpsIO::readGMPL (this=0xbffff710,<br>&nbsp;&nbsp;&nbsp; modelName=0x8060b98 &quot;test.mod&quot;, dataName=0x0, keepNames=false)<br>&nbsp;&nbsp;&nbsp; at CoinMpsIO.cpp:2711<br>#2&nbsp; 0x0804938f in main (argc=1, argv=0xbffff844) at test_gmpl.cpp:6
<br><br>Is this an actual bug, or am I just doing something stupid?<br><br>Thanks for any help!<br><br>- Gardner<br><br>