<br><font size=2 face="sans-serif">Paulo,</font>
<br>
<br><font size=2 face="sans-serif">I don't see why the time should have
increased compared to setObjectiveAndRefresh as I was just doing part of
that code.</font>
<br>
<br><font size=2 face="sans-serif">However I was being stupid. &nbsp;I
had put in the dual update but in an odd place in the sequence of the code
AND with a bug. &nbsp;So I have taken out the extra parameter I put in
yesterday and it should be faster.</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>&quot;Paulo J. S. Silva&quot;
&lt;pjssilva@ime.usp.br&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/08/2006 03:45 PM</font>
<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-lpsolver@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">Re: [Coin-lpsolver] Shouldn't primalPivotResult
update reduced costs?</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2><br>
&gt; primalPivotResult is just the last part of a primal iteration in Clp<br>
&gt; (as no other solver implements it). &nbsp;Normally the reduced costs
are<br>
&gt; updated at the beginning of the next iteration. &nbsp;However I agree
that<br>
&gt; if you are using primalPivotResult you would expect the reduced costs<br>
&gt; to be updated. &nbsp;I have added an extra parameter to primalPivotResult<br>
&gt; to update dual solution which defaults to false so that nobody will
be<br>
&gt; affected. &nbsp;Tell me if it does not do what you want? <br>
<br>
It is working now, thanks. However, the time for a primalPivotResult<br>
increased a lot (it was multiplied by 2). I'll e-mail you personally on<br>
this subject as the discussion may not be relevant for everybody.<br>
<br>
&gt; I have always been a little uneasy about the &quot;build your own
simplex&quot;<br>
&gt; parts of OsiSolverInterface and assuming that only Clp will ever<br>
&gt; implement it, it may be better to approach it in a different way.
&nbsp;If<br>
&gt; I knew how people use this interface I could add a virtual class to<br>
&gt; Clp - rather like ClpEventHandler which would modify the behavior
of<br>
&gt; Clp without continually entering and leaving it. &nbsp;This would
be more<br>
&gt; robust and faster. <br>
<br>
IMHO, if only Clp is going to implement this part of the interface, you<br>
are probably be right. I wrote my code using Osi, instead of using pure<br>
Clp, with the hope to test some day the &quot;same&quot; code with other
solver. <br>
I'll take a closer look at ClpEventHandler and pure Clp. I was only<br>
using it through OsiInterface until now.<br>
<br>
Best,<br>
<br>
Paulo<br>
<br>
_______________________________________________<br>
Coin-lpsolver mailing list<br>
Coin-lpsolver@list.coin-or.org<br>
http://list.coin-or.org/mailman/listinfo/coin-lpsolver<br>
</font></tt>
<br>