True. That&#39;s a design question. <br><br>In fact there is a note in OsiCpx that says you must set both concurrently as of CPX7. <br><br>Ok - then I need setColSolution to update rowActivity_ itself, or, overload setColSolution to accept a col and row solution. Basically, I just need some way to set row activities - so that when a CGL is called (like MIR) and asks for row activities, it gets back the correct value.<br>

<br><div class="gmail_quote"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The row activity is determined by the column solution, so how could it<br>


make sense to set it independently?<br>
<br>
Ted<br>
<br>
2009/8/13 Matthew Galati &lt;<a href="mailto:magh@lehigh.edu">magh@lehigh.edu</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Why not just add a method to ClpModel that sets rowActivity_ and then a method to OsiClp that sets row solution?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;&gt; Disgusting solution but you could create a class that inherits from clpsimplex, provides functions to set rowactivity (protected) and cast to it.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; From: <a href="mailto:clp-bounces@list.coin-or.org">clp-bounces@list.coin-or.org</a> [mailto:<a href="mailto:clp-bounces@list.coin-or.org">clp-bounces@list.coin-or.org</a>] On Behalf Of Matthew Galati<br>
&gt;&gt; Sent: Thursday, August 13, 2009 5:14 PM<br>
&gt;&gt; To: Lou Hafer<br>
&gt;&gt; Cc: <a href="mailto:osi@list.coin-or.org">osi@list.coin-or.org</a>; <a href="mailto:clp@list.coin-or.org">clp@list.coin-or.org</a><br>
&gt;&gt; Subject: Re: [Clp] [Osi] set row solution (activities)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I think setRowPrice sets the dual solution - not the (primal) row solution.<br>
&gt;&gt;<br>
&gt;&gt; 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>


&gt;&gt;<br>
&gt;&gt; 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>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Matt,<br>
&gt;&gt;<br>
&gt;&gt;        Osi.setColSolution and Osi.setRowPrice will set the column and row<br>
&gt;&gt; solution, respectively.  Row activity should follow from setColSolution.<br>
&gt;&gt;<br>
&gt;&gt;        Based on the Osi unit test, OsiClp ignores imposed row and column<br>
&gt;&gt; solutions (at least, they are not immediately reflected in the results returned<br>
&gt;&gt; for row activity and reduced costs).<br>
&gt;&gt;<br>
&gt;&gt;                                                Lou<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Osi mailing list<br>
&gt;&gt; <a href="mailto:Osi@list.coin-or.org">Osi@list.coin-or.org</a><br>
&gt;&gt; <a href="http://list.coin-or.org/mailman/listinfo/osi" target="_blank">http://list.coin-or.org/mailman/listinfo/osi</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Osi mailing list<br>
&gt; <a href="mailto:Osi@list.coin-or.org">Osi@list.coin-or.org</a><br>
&gt; <a href="http://list.coin-or.org/mailman/listinfo/osi" target="_blank">http://list.coin-or.org/mailman/listinfo/osi</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">Dr. Ted Ralphs<br>
Associate Professor, Lehigh University<br>
(610) 628-1280<br>
ted &#39;at&#39; lehigh &#39;dot&#39; edu<br>
<a href="http://coral.ie.lehigh.edu/%7Eted" target="_blank">coral.ie.lehigh.edu/~ted</a><br>
</div></div></blockquote></div><br>