<br><font size=2 face="sans-serif">Thanks Francois.</font>
<br>
<br><font size=2 face="sans-serif">John Forrest</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>François Galea &lt;Francois.Galea@prism.uvsq.fr&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: coin-lpsolver-bounces@list.coin-or.org</font>
<p><font size=1 face="sans-serif">06/27/2005 12:54 PM</font>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif">coin-lpsolver@list.coin-or.org</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">[Coin-lpsolver] bug in ClpModel</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>there is a small bug in the copyColumnNames / copyRowNames
methods in <br>
ClpModel.cpp.<br>
<br>
I corrected it in the attached patch.<br>
<br>
<br>
-- <br>
François Galea<br>
Equipe OPALE - Laboratoire PRiSM<br>
Université de Versailles-Saint Quentin en Yvelines<br>
45 av Etats-Unis F-78035 Versailles CEDEX<br>
Tél. : +33 1 39 25 40 50<br>
--- COIN/Clp/ClpModel.cpp.orig &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; 2005-06-27 18:46:56.000000000 +0200<br>
+++ COIN/Clp/ClpModel.cpp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; 2005-06-27 18:47:32.000000000 +0200<br>
@@ -2806,7 +2806,7 @@<br>
 &nbsp; int iRow;<br>
 &nbsp; for (iRow=first; iRow&lt;last;iRow++) {<br>
 &nbsp; &nbsp; rowNames_[iRow]= rowNames[iRow-first];<br>
- &nbsp; &nbsp;maxLength = CoinMax(maxLength,(unsigned int) strlen(rowNames_[iRow].c_str()));<br>
+ &nbsp; &nbsp;maxLength = CoinMax(maxLength,(unsigned int) strlen(rowNames_[iRow-first].c_str()));<br>
 &nbsp; }<br>
 &nbsp; // May be too big - but we would have to check both rows and columns
to be exact<br>
 &nbsp; lengthNames_=(int) maxLength;<br>
@@ -2822,7 +2822,7 @@<br>
 &nbsp; int iColumn;<br>
 &nbsp; for (iColumn=first; iColumn&lt;last;iColumn++) {<br>
 &nbsp; &nbsp; columnNames_[iColumn]= columnNames[iColumn-first];<br>
- &nbsp; &nbsp;maxLength = CoinMax(maxLength,(unsigned int) strlen(columnNames_[iColumn].c_str()));<br>
+ &nbsp; &nbsp;maxLength = CoinMax(maxLength,(unsigned int) strlen(columnNames_[iColumn-first].c_str()));<br>
 &nbsp; }<br>
 &nbsp; // May be too big - but we would have to check both rows and columns
to be exact<br>
 &nbsp; lengthNames_=(int) maxLength;<br>
@@ -2838,7 +2838,7 @@<br>
 &nbsp; int iRow;<br>
 &nbsp; for (iRow=first; iRow&lt;last;iRow++) {<br>
 &nbsp; &nbsp; rowNames_[iRow]= rowNames[iRow-first];<br>
- &nbsp; &nbsp;maxLength = CoinMax(maxLength,(unsigned int) strlen(rowNames[iRow]));<br>
+ &nbsp; &nbsp;maxLength = CoinMax(maxLength,(unsigned int) strlen(rowNames[iRow-first]));<br>
 &nbsp; }<br>
 &nbsp; // May be too big - but we would have to check both rows and columns
to be exact<br>
 &nbsp; lengthNames_=(int) maxLength;<br>
@@ -2854,7 +2854,7 @@<br>
 &nbsp; int iColumn;<br>
 &nbsp; for (iColumn=first; iColumn&lt;last;iColumn++) {<br>
 &nbsp; &nbsp; columnNames_[iColumn]= columnNames[iColumn-first];<br>
- &nbsp; &nbsp;maxLength = CoinMax(maxLength,(unsigned int) strlen(columnNames[iColumn]));<br>
+ &nbsp; &nbsp;maxLength = CoinMax(maxLength,(unsigned int) strlen(columnNames[iColumn-first]));<br>
 &nbsp; }<br>
 &nbsp; // May be too big - but we would have to check both rows and columns
to be exact<br>
 &nbsp; lengthNames_=(int) maxLength;<br>
_______________________________________________<br>
Coin-lpsolver mailing list<br>
Coin-lpsolver@list.coin-or.org<br>
http://list.coin-or.org/mailman/listinfo/coin-lpsolver<br>
</tt></font>
<br>