<html><body>
<p>Matt,<br>
<br>
Thanks.<br>
<br>
As to getBasics - the two sets of information are different - but I will modify to point out options to user.<br>
<br>
John<br>
<br>
<img width="16" height="16" src="cid:1__=0ABBFCBEDFA6A5B18f9e8a93df938@us.ibm.com" border="0" alt="Inactive hide details for Matthew Galati ---09/10/2009 12:37:54 AM---Here is a fix. It was just missing an initialization in Cb"><font color="#424282">Matthew Galati ---09/10/2009 12:37:54 AM---Here is a fix. It was just missing an initialization in CbcRounding constructor. [magala@orclus71 sr</font><br>
<br>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFCBEDFA6A5B18f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">From:</font></td><td width="100%"><img width="1" height="1" src="cid:2__=0ABBFCBEDFA6A5B18f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">Matthew Galati &lt;Matthew.Galati@sas.com&gt;</font></td></tr>

<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFCBEDFA6A5B18f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">To:</font></td><td width="100%"><img width="1" height="1" src="cid:2__=0ABBFCBEDFA6A5B18f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">Matthew Galati &lt;magh@lehigh.edu&gt;</font></td></tr>

<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFCBEDFA6A5B18f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">Cc:</font></td><td width="100%" valign="middle"><img width="1" height="1" src="cid:2__=0ABBFCBEDFA6A5B18f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">&quot;cbc@list.coin-or.org&quot; &lt;cbc@list.coin-or.org&gt;</font></td></tr>

<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFCBEDFA6A5B18f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">Date:</font></td><td width="100%"><img width="1" height="1" src="cid:2__=0ABBFCBEDFA6A5B18f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">09/10/2009 12:37 AM</font></td></tr>

<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFCBEDFA6A5B18f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">Subject:</font></td><td width="100%"><img width="1" height="1" src="cid:2__=0ABBFCBEDFA6A5B18f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">Re: [Cbc] failure in small IP</font></td></tr>

<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFCBEDFA6A5B18f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2" color="#5F5F5F">Sent by:</font></td><td width="100%"><img width="1" height="1" src="cid:2__=0ABBFCBEDFA6A5B18f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">cbc-bounces@list.coin-or.org</font></td></tr>
</table>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<font color="#1F497D" face="Calibri">Here is a fix. It was just missing an initialization in CbcRounding constructor.</font><br>
<font color="#1F497D" face="Calibri"> </font><br>
<font color="#1F497D" face="Calibri"> </font><br>
<font color="#1F497D" face="Calibri"> </font><br>
<font color="#1F497D" face="Calibri">[magala@orclus71 src]$ svn diff CbcHeuristic.cpp</font><br>
<font color="#1F497D" face="Calibri">Index: CbcHeuristic.cpp</font><br>
<font color="#1F497D" face="Calibri">===================================================================</font><br>
<font color="#1F497D" face="Calibri">--- CbcHeuristic.cpp    (revision 1223)</font><br>
<font color="#1F497D" face="Calibri">+++ CbcHeuristic.cpp    (working copy)</font><br>
<font color="#1F497D" face="Calibri">@@ -1538,6 +1538,9 @@</font><br>
<font color="#1F497D" face="Calibri"> {</font><br>
<font color="#1F497D" face="Calibri">   // Get a copy of original matrix (and by row for rounding);</font><br>
<font color="#1F497D" face="Calibri">   assert(model.solver());</font><br>
<font color="#1F497D" face="Calibri">+  down_=NULL;</font><br>
<font color="#1F497D" face="Calibri">+  up_=NULL;</font><br>
<font color="#1F497D" face="Calibri">+  equal_=NULL;</font><br>
<font color="#1F497D" face="Calibri">   if (model.solver()-&gt;getNumRows()) {</font><br>
<font color="#1F497D" face="Calibri">     matrix_ = *model.solver()-&gt;getMatrixByCol();</font><br>
<font color="#1F497D" face="Calibri">     matrixByRow_ = *model.solver()-&gt;getMatrixByRow();</font><br>
<font color="#1F497D" face="Calibri"> </font><br>
<font color="#1F497D" face="Calibri"> </font><br>
<font color="#1F497D" face="Calibri"> </font><br>
<b><font face="Tahoma">From:</font></b><font face="Tahoma"> Matthew Galati [</font><font face="Tahoma"><a href="mailto:magh@lehigh.edu">mailto:magh@lehigh.edu</a></font><font face="Tahoma">] </font><b><font face="Tahoma"><br>
Sent:</font></b><font face="Tahoma"> Thursday, September 10, 2009 12:19 AM</font><b><font face="Tahoma"><br>
To:</font></b><font face="Tahoma"> Matthew Galati</font><b><font face="Tahoma"><br>
Cc:</font></b><font face="Tahoma"> cbc@list.coin-or.org</font><b><font face="Tahoma"><br>
Subject:</font></b><font face="Tahoma"> Re: [Cbc] failure in small IP</font><br>
<font size="4" face="Times New Roman"> </font><br>
<font size="4" face="Times New Roman">The run with cbc executable that does not fail was using a May 2009 version of code. <br>
<br>
Using the current trunk it fails (same as when using CbcMain1):</font>
<p><font size="4" face="Times New Roman">[magala@orclus71 src]$ ./cbc ~/subProb.n0.c0.p1.b0.lp</font>
<p><font size="4" face="Times New Roman">Coin Cbc and Clp Solver version 1.2trunk, build Sep 10 2009</font>
<p><font size="4" face="Times New Roman">command line - ./cbc /users/magala/subProb.n0.c0.p1.b0.lp (default strategy 1)</font>
<p><font size="4" face="Times New Roman">Continuous objective value is 46.6667 - 0.00 seconds</font>
<p><font size="4" face="Times New Roman">Cgl0003I 20 fixed, 0 tightened bounds, 0 strengthened rows, 0 substitutions</font>
<p><font size="4" face="Times New Roman">Cgl0003I 5 fixed, 0 tightened bounds, 0 strengthened rows, 8 substitutions</font>
<p><font size="4" face="Times New Roman">Cgl0003I 0 fixed, 0 tightened bounds, 0 strengthened rows, 8 substitutions</font>
<p><font size="4" face="Times New Roman">Cgl0004I processed model has 0 rows, 0 columns (0 integer) and 0 elements</font>
<p><font size="4" face="Times New Roman">Segmentation fault</font><br>
<font size="4" face="Times New Roman"><br>
<br>
</font>
<p><font size="4" face="Times New Roman">The following small IP fails using the CbcMain1 interface. It is a unique case, because all rows and cols are removed by presolver.</font>
<p><font size="4" face="Times New Roman"> </font>
<p><a href="http://coral.ie.lehigh.edu/%7Emagh/tmp/subProb.n0.c0.p1.b0.lp" target="_blank"><u><font size="4" color="#0000FF" face="Times New Roman">http://coral.ie.lehigh.edu/~magh/tmp/subProb.n0.c0.p1.b0.lp</font></u></a>
<p><font size="4" face="Times New Roman"> </font>
<p><a href="https://projects.coin-or.org/Cbc/ticket/79" target="_blank"><u><font size="4" color="#0000FF" face="Times New Roman">https://projects.coin-or.org/Cbc/ticket/79</font></u></a>
<p><font size="4" face="Times New Roman"> </font>
<p><font size="4" face="Times New Roman">          CbcModel cbc(*subprobSI);</font>
<p><font size="4" face="Times New Roman">          CbcMain0(cbc);</font>
<p><font size="4" face="Times New Roman">          const char * argv[] = {&quot;cbc&quot;,&quot;-solve&quot;,&quot;-quit&quot;};</font>
<p><font size="4" face="Times New Roman">          CbcMain1(3, argv, cbc);</font>
<p><font size="4" face="Times New Roman">         </font>
<p><font size="4" face="Times New Roman">Coin Cbc and Clp Solver version 1.2trunk, build Sep  9 2009</font>
<p><font size="4" face="Times New Roman">command line - cbc -solve -quit (default strategy 1)</font>
<p><font size="4" face="Times New Roman">Continuous objective value is 46.6667 - 0.00 seconds</font>
<p><font size="4" face="Times New Roman">Cgl0003I 20 fixed, 0 tightened bounds, 0 strengthened rows, 0 substitutions</font>
<p><font size="4" face="Times New Roman">Cgl0003I 5 fixed, 0 tightened bounds, 0 strengthened rows, 8 substitutions</font>
<p><font size="4" face="Times New Roman">Cgl0003I 0 fixed, 0 tightened bounds, 0 strengthened rows, 8 substitutions</font>
<p><font size="4" face="Times New Roman">Cgl0004I processed model has 0 rows, 0 columns (0 integer) and 0 elements</font>
<p><font size="4" face="Times New Roman"> </font>
<p><font size="4" face="Times New Roman">gdb gives:</font>
<p><font size="4" face="Times New Roman"> </font>
<p><font size="4" face="Times New Roman">Program received signal SIGSEGV, Segmentation fault.</font>
<p><font size="4" face="Times New Roman">0x0000003ffa871f6b in free () from /lib64/libc.so.6</font>
<p><font size="4" face="Times New Roman">(gdb) where</font>
<p><font size="4" face="Times New Roman">#0  0x0000003ffa871f6b in free () from /lib64/libc.so.6</font>
<p><font size="4" face="Times New Roman">#1  0x000000000057bc41 in ~CbcRounding (this=0x7fffec90c080)</font>
<p><font size="4" face="Times New Roman">    at ../../../Cbc/src/CbcHeuristic.cpp:1552</font>
<p><font size="4" face="Times New Roman">#2  0x00000000004ae837 in doHeuristics (model=0x1d1f3e00, type=1)</font>
<p><font size="4" face="Times New Roman">    at ../../../Cbc/src/CbcSolver.cpp:3479</font>
<p><font size="4" face="Times New Roman">#3  0x00000000004c7776 in CbcMain1 (argc=3, argv=0x7fffec9150c0,</font>
<p><font size="4" face="Times New Roman">    model=@0x7fffec914bb0, callBack=0x4a734c &lt;dummyCallBack&gt;)</font>
<p><font size="4" face="Times New Roman">    at ../../../Cbc/src/CbcSolver.cpp:6680</font>
<p><font size="4" face="Times New Roman">#4  0x00000000004db968 in CbcMain1 (argc=3, argv=0x7fffec9150c0,</font>
<p><font size="4" face="Times New Roman">    model=@0x7fffec914bb0) at ../../../Cbc/src/CbcSolver.cpp:3099</font>
<p><font size="4" face="Times New Roman"> </font>
<p><font size="4" face="Times New Roman"> </font>
<p><font size="4" face="Times New Roman"> </font>
<p><font size="4" face="Times New Roman">Note, if I run it from the command line using cbc executable, the error does not occur.</font>
<p><font size="4" face="Times New Roman"> </font>
<p><font size="4" face="Times New Roman">[magala@orclus71 MMKP]$ ~/COIN/coin-Cbc/build-g/bin/cbc subProb.n0.c0.p1.b0.lp</font>
<p><font size="4" face="Times New Roman">Coin Cbc and Clp Solver version 1.2trunk, build May 27 2009</font>
<p><font size="4" face="Times New Roman">command line - /users/magala/COIN/coin-Cbc/build-g/bin/cbc subProb.n0.c0.p1.b0.lp (default strategy 1)</font>
<p><font size="4" face="Times New Roman">Continuous objective value is 46.6667 - 0.00 seconds</font>
<p><font size="4" face="Times New Roman">Cgl0003I 20 fixed, 0 tightened bounds, 0 strengthened rows, 0 substitutions</font>
<p><font size="4" face="Times New Roman">Cgl0003I 5 fixed, 0 tightened bounds, 0 strengthened rows, 8 substitutions</font>
<p><font size="4" face="Times New Roman">Cgl0003I 0 fixed, 0 tightened bounds, 0 strengthened rows, 8 substitutions</font>
<p><font size="4" face="Times New Roman">Cgl0004I processed model has 0 rows, 0 columns (0 integer) and 0 elements</font>
<p><font size="4" face="Times New Roman">Cbc3007W No integer variables - nothing to do</font>
<p><font size="4" face="Times New Roman">Cuts at root node changed objective from 46.6667 to -1.79769e+308</font>
<p><font size="4" face="Times New Roman">Probing was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)</font>
<p><font size="4" face="Times New Roman">Gomory was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)</font>
<p><font size="4" face="Times New Roman">Knapsack was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)</font>
<p><font size="4" face="Times New Roman">Clique was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)</font>
<p><font size="4" face="Times New Roman">MixedIntegerRounding2 was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)</font>
<p><font size="4" face="Times New Roman">FlowCover was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)</font>
<p><font size="4" face="Times New Roman">TwoMirCuts was tried 0 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)</font>
<p><font size="4" face="Times New Roman">Result - Finished objective 46.66667 after 0 nodes and 0 iterations - took 0.00 seconds (total time 0.01)</font>
<p><font size="4" face="Times New Roman">Total time 0.01</font><br>
<font size="4" face="Times New Roman"><br>
_______________________________________________<br>
Cbc mailing list</font><u><font size="4" color="#0000FF" face="Times New Roman"><br>
</font></u><a href="mailto:Cbc@list.coin-or.org"><u><font size="4" color="#0000FF" face="Times New Roman">Cbc@list.coin-or.org</font></u></a><u><font size="4" color="#0000FF" face="Times New Roman"><br>
</font></u><a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank"><u><font size="4" color="#0000FF" face="Times New Roman">http://list.coin-or.org/mailman/listinfo/cbc</font></u></a><br>
<font size="4" face="Times New Roman"> </font><tt>_______________________________________________<br>
Cbc mailing list<br>
Cbc@list.coin-or.org<br>
</tt><tt><a href="http://list.coin-or.org/mailman/listinfo/cbc">http://list.coin-or.org/mailman/listinfo/cbc</a></tt><tt><br>
</tt><br>
<br>
</body></html>