<html><body>
<p>Sebastian,<br>
<br>
I think I had fixed those errors in my copy of trunk.  Owing to lack of bandwidth I had not checked in.  Do new changes help?<br>
<br>
John Forrest<br>
<br>
<img width="16" height="16" src="cid:1__=0ABBFCCEDFC2A1978f9e8a93df938@us.ibm.com" border="0" alt="Inactive hide details for &quot;Sebastian Theophil&quot; ---10/28/2009 07:12:04 AM---Hi, I'm trying to avoid the accumulation of rounding"><font color="#424282">&quot;Sebastian Theophil&quot; ---10/28/2009 07:12:04 AM---Hi, I'm trying to avoid the accumulation of rounding errors by repeatedly</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__=0ABBFCCEDFC2A1978f9e8a93df938@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__=0ABBFCCEDFC2A1978f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">&quot;Sebastian Theophil&quot; &lt;stheophil@think-cell.com&gt;</font></td></tr>

<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFCCEDFC2A1978f9e8a93df938@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__=0ABBFCCEDFC2A1978f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">&lt;clp@list.coin-or.org&gt;</font></td></tr>

<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFCCEDFC2A1978f9e8a93df938@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__=0ABBFCCEDFC2A1978f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">10/28/2009 07:12 AM</font></td></tr>

<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFCCEDFC2A1978f9e8a93df938@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__=0ABBFCCEDFC2A1978f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">[Clp] Crash in ClpDualRowSteepest copy ctor</font></td></tr>

<tr valign="top"><td width="1%"><img width="96" height="1" src="cid:2__=0ABBFCCEDFC2A1978f9e8a93df938@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__=0ABBFCCEDFC2A1978f9e8a93df938@us.ibm.com" border="0" alt=""><br>
<font size="2">clp-bounces@list.coin-or.org</font></td></tr>
</table>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<tt>Hi,<br>
<br>
<br>
I'm trying to avoid the accumulation of rounding errors by repeatedly<br>
solving the same solver object. I also want to avoid having to<br>
reassemble the same constraint system over and over again. So I make a<br>
copy of a previous solver, change constraints, resolve and throw the<br>
copy away again. This seems to trigger some unexpected test cases:<br>
<br>
- OsiClpSolverInterface copy ctor makes a copy of the ClpSimplex*<br>
modelPtr_ <br>
- ClpSimplex copy ctor calls ClpSimplex::gutsOfCopy <br>
- which makes a copy of dualRowPivot_ and primalColumnPivot_<br>
<br>
Both contain a copy to their parent ClpSimplex* that has previously been<br>
set by ClpDualRowPivot::saveWeights<br>
<br>
The ClpDualRowSteepest and ClpDualRowPivot copy ctors simply copy the<br>
ClpSimplex* which may be okay in many circumstances but it is certainly<br>
wrong when called from the ClpSimplex copy ctor. <br>
<br>
Is it safe to call <br>
<br>
 &nbsp;dualRowPivot_ = rhs.dualRowPivot_-&gt;clone(false);<br>
 &nbsp;primalColumnPivot_ = rhs.primalColumnPivot_-&gt;clone(false);<br>
<br>
<br>
in ClpSimplex::gutsOfCopy and thus prevent any data from being copied? <br>
<br>
Thanks<br>
Sebastian<br>
<br>
--<br>
Sebastian Theophil . stheophil@think-cell.com<br>
Software Engineer<br>
 <br>
think-cell Software GmbH . Invalidenstr. 34 . 10115 Berlin, Germany <br>
</tt><tt><a href="http://www.think-cell.com">http://www.think-cell.com</a></tt><tt>&nbsp;. phone +49-30-666473-10 . toll-free (US) +1-800-891-8091<br>
Directors: Dr. Markus Hannebauer, Dr. Arno Schoedl . Amtsgericht Berlin-Charlottenburg, HRB 85229<br>
<br>
<br>
_______________________________________________<br>
Clp mailing list<br>
Clp@list.coin-or.org<br>
</tt><tt><a href="http://list.coin-or.org/mailman/listinfo/clp">http://list.coin-or.org/mailman/listinfo/clp</a></tt><tt><br>
</tt><br>
<br>
</body></html>