<br><font size=2 face="sans-serif">Kish,</font>
<br>
<br><font size=2 face="sans-serif">Yes - send me the file.</font>
<br>
<br><font size=2 face="sans-serif">Thanks</font>
<br>
<br><font size=2 face="sans-serif">John</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Kish Shen &lt;kish.shen@crosscoreop.com&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: coin-discuss-bounces@list.coin-or.org</font>
<p><font size=1 face="sans-serif">11/02/2006 11:28 AM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
Discussions about open source software for Operations Research &nbsp; &nbsp;
&nbsp; &nbsp;&lt;coin-discuss@list.coin-or.org&gt;</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">coin-discuss@list.coin-or.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">[Coin-discuss] arithmetic exception
when using Cbc</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>Hi,<br>
<br>
I am getting an arithmetic exception when using Cbc/Clp through OsiClp.
The crash happens in<br>
CbcModel.cpp, in gcd (line 84 in the copy I am using):<br>
<br>
 &nbsp;while (remainder) {<br>
 &nbsp; &nbsp;remainder = b % a;<br>
 &nbsp; &nbsp;b = a;<br>
 &nbsp; &nbsp;a = remainder;<br>
 &nbsp;}<br>
 &nbsp;return b;<br>
<br>
The crash happens &nbsp;in doing the % operation, I assume because a =
-1.<br>
<br>
This is within a call to a call to CbcModel's branchAndBound().<br>
<br>
I am using Cbc/Clp as an MP solver for the Constraint Logic Programming
Language ECLiPSe,<br>
for which I am providing an interface. The original problem occurs in a
program of one of our<br>
users, and it happens after repeated solving and modification of the problem.<br>
<br>
I have extracted the C/C++ calls to Osi/Cbc that reproduce this problem
without ECLiPSe. The<br>
file is quite big, nearly 300K in size, so I am not including it with this
message.<br>
<br>
I get this error with a copy of the development branch of Cbc I donwloaded
on 2006-08-17. I have<br>
just tried to run the same code with the latest development branch which
I downloaded <br>
today (2006-11-02), but the program aborts much earlier. I haven't been
able to look at why this<br>
happens yet.<br>
<br>
Does this problem look like it might be something that I am doing wrong,
or something that<br>
might have been fixed since August? <br>
<br>
I guess John Forrest might be interested in looking at the code that give
this problem. Do<br>
please let me know, and I can send the code to you.<br>
<br>
Thanks in advance for any information and help!<br>
<br>
Kish Shen<br>
<br>
<br>
_______________________________________________<br>
Coin-discuss mailing list<br>
Coin-discuss@list.coin-or.org<br>
http://list.coin-or.org/mailman/listinfo/coin-discuss<br>
</font></tt>
<br>