Why not just add a method to ClpModel that sets rowActivity_ and then a method to OsiClp that sets row solution?<br><br><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div link="blue" vlink="purple" lang="EN-US"><div><p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Disgusting solution but you could create a class that inherits
from clpsimplex, provides functions to set rowactivity (protected) and cast to
it.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:clp-bounces@list.coin-or.org" target="_blank">clp-bounces@list.coin-or.org</a> [mailto:<a href="mailto:clp-bounces@list.coin-or.org" target="_blank">clp-bounces@list.coin-or.org</a>] <b>On Behalf
Of </b>Matthew Galati<br>
<b>Sent:</b> Thursday, August 13, 2009 5:14 PM<br>
<b>To:</b> Lou Hafer<br>
<b>Cc:</b> <a href="mailto:osi@list.coin-or.org" target="_blank">osi@list.coin-or.org</a>; <a href="mailto:clp@list.coin-or.org" target="_blank">clp@list.coin-or.org</a><br>
<b>Subject:</b> Re: [Clp] [Osi] set row solution (activities)</span></p>

</div><div><div></div><div class="h5">

<p> </p>

<p style="margin-bottom: 12pt;">I think setRowPrice sets the
dual solution - not the (primal) row solution.<br>
<br>
Internally, it is the rowActivity_ array that needs to be set - that is what is
returned by getRowActivity(). That is why you are not seeing it come back - you
are actually setting the duals with setRowPrice.<br>
<br>
I am not sure what it does to internals, but I think all you need is a method
&quot;setRowSolution&quot; and do a memcpy into rowActivity_.<br>
<br>
<br>
</p>

<div>

<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204); border-width: medium medium medium 1pt; padding: 0in 0in 0in 6pt; margin-left: 4.8pt; margin-right: 0in;">



<p> </p>

<p>Matt,<br>
<br>
       Osi.setColSolution and Osi.setRowPrice will set the
column and row<br>
solution, respectively.  Row activity should follow from setColSolution.<br>
<br>
       Based on the Osi unit test, OsiClp ignores imposed
row and column<br>
solutions (at least, they are not immediately reflected in the results returned<br>
for row activity and reduced costs).<br>
<br>
                     
                     
   Lou<br>
<br>
_______________________________________________<br>
Osi mailing list<br>
<a href="mailto:Osi@list.coin-or.org" target="_blank">Osi@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/osi" target="_blank">http://list.coin-or.org/mailman/listinfo/osi</a></p>

</blockquote>

</div>

<p> </p>

</div></div></div>

</div>


</blockquote></div><br>