<br><font size=2 face="sans-serif">Changed code so should be okay with
g++ 3.3.4</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Jeff Linderoth &lt;jtl3@lehigh.edu&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: coin-lpsolver-admin@www-124.southbury.usf.ibm.com</font>
<p><font size=1 face="sans-serif">09/24/2004 09:44 AM</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@www-124.southbury.usf.ibm.com</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] Weird (compiler?)
bug...</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>Hi All,<br>
<br>
Is anyone else using g++ 3.3.4 with Clp? I just ran across a very, very,<br>
strange bug that cost me a couple hours...<br>
<br>
The ClpModel::maximumIterations() method was always returning 0. (?!)<br>
<br>
In ClpModel::hitMaximumIterations(), the lines:<br>
<br>
 &nbsp;std::cout &lt;&lt; &quot;Number iterations: &quot; &lt;&lt; numberIterations_
&lt;&lt; std::endl;<br>
 &nbsp;std::cout &lt;&lt; &quot;Function Max Iterations: &quot; &lt;&lt;
maximumIterations() &lt;&lt;<br>
std::endl;<br>
 &nbsp;std::cout &lt;&lt; &quot;intParam_[0] = &quot; &lt;&lt; intParam_[ClpMaxNumIteration]
&lt;&lt;<br>
std::endl;<br>
 &nbsp;std::cout &lt;&lt; &quot;intParam_[1] = &quot; &lt;&lt; intParam_[1]
&lt;&lt; std::endl;<br>
<br>
Produced:<br>
<br>
Number iterations: 17<br>
Function Max Iterations: 0<br>
intParam_[0] = 99999999<br>
intParam_[1] = 9999999<br>
<br>
It only happens when I tried to link Clp (and OsiClp) in with some other<br>
libraries (MINTO, in particular)<br>
<br>
Maybe an inlining problem(?) &nbsp;<br>
<br>
Just wanted to give a heads up or see if anyone had anyone had any<br>
useful advice.<br>
<br>
Cheers,<br>
-Jeff<br>
<br>
<br>
<br>
-- <br>
------------------------------------------------------------<br>
Jeff Linderoth &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; O: 610-758-4879<br>
Asst. Professor &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>
Industrial and Systems Engineering &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;jtl3@lehigh.edu<br>
Lehigh University &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; www.lehigh.edu/~jtl3 &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;<br>
<br>
_______________________________________________<br>
Coin-lpsolver mailing list<br>
Coin-lpsolver@www-124.ibm.com<br>
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/coin-lpsolver<br>
</tt></font>
<br>