<br><font size=2 face="sans-serif">Done in ClpModel constructors</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Matthew Galati &lt;magh@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">01/21/2004 04:38 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@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] CoinSeedRandom</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>Hi CLP,<br>
<br>
Debugging some code using CLP, I was getting different answers from two
<br>
consecutive runs on the same problem set. Seems CLP has some randomness
<br>
built in through several calls to CoinDrand48(), which calls drand48().<br>
<br>
According to the man on drand48<br>
&quot;The srand48(), seed48() &nbsp;and &nbsp;lcong48() &nbsp;functions
&nbsp;are &nbsp;initialization<br>
 &nbsp; &nbsp; &nbsp; functions, &nbsp;one &nbsp;of &nbsp;which &nbsp;should
&nbsp;be &nbsp;called &nbsp;before using <br>
drand48()&quot;<br>
<br>
That is, I am not sure what drand48 uses if it is not first initialized,
<br>
maybe the current timestamp(?). I don't see any reference to <br>
CoinSeedRandom in CLP or OsiClp. The user can force this by calling <br>
CoinSeedRandom(some constant) before any solver call to CLP. Maybe the
<br>
CLP constructor should seed the random number generator to some <br>
constant, for the sake of repeatability/testing/debugging.? Or, maybe we
<br>
can make this a parameter or compiler option.<br>
<br>
Matt<br>
<br>
-- <br>
Matthew Galati<br>
ISE Lehigh University<br>
IBM Service Parts Solutions<br>
610.758.4042 (Office)<br>
610.882.0779 (Home)<br>
magh@lehigh.edu, magal11@us.ibm.com<br>
http://sagan.ie.lehigh.edu/mgalati/<br>
<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>