That sounds good - can someone add it? Currently, I had to hack OsiClp/Clp to get it to work.<br><br>Also, I think, Osi should provide a &quot;setRowActivity()&quot; in case the user already calculated it. Then in some debug mode, it should check that your input is in sync with the current colsol.<br>

<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;">I agree with Ted. There should be a recomputeRowActivity() or something similar that uses the current colsol and updates the row activities.<br>


<br>
--Laci<div><div></div><div class="h5"><br>
<br>
On Thu, 13 Aug 2009, Matthew Galati wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
True. That&#39;s a design question.<br>
<br>
In fact there is a note in OsiCpx that says you must set both concurrently<br>
as of CPX7.<br>
<br>
Ok - then I need setColSolution to update rowActivity_ itself, or, overload<br>
setColSolution to accept a col and row solution. Basically, I just need some<br>
way to set row activities - so that when a CGL is called (like MIR) and asks<br>
for row activities, it gets back the correct value.<br>
<br>
<br>
The row activity is determined by the column solution, so how could it<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
make sense to set it independently?<br>
<br>
Ted<br>
<br>
2009/8/13 Matthew Galati &lt;<a href="mailto:magh@lehigh.edu" target="_blank">magh@lehigh.edu</a>&gt;:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Why not just add a method to ClpModel that sets rowActivity_ and then a<br>
</blockquote>
method to OsiClp that sets row solution?<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Disgusting solution but you could create a class that inherits from<br>
</blockquote></blockquote>
clpsimplex, provides functions to set rowactivity (protected) and cast to<br>
it.<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<br>
<br>
<br>
From: <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>]<br>
</blockquote></blockquote>
On Behalf Of Matthew Galati<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


Sent: Thursday, August 13, 2009 5:14 PM<br>
To: Lou Hafer<br>
Cc: <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>
Subject: Re: [Clp] [Osi] set row solution (activities)<br>
<br>
<br>
<br>
I think setRowPrice sets the dual solution - not the (primal) row<br>
</blockquote></blockquote>
solution.<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<br>
Internally, it is the rowActivity_ array that needs to be set - that is<br>
</blockquote></blockquote>
what is returned by getRowActivity(). That is why you are not seeing it come<br>
back - you are actually setting the duals with setRowPrice.<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<br>
I am not sure what it does to internals, but I think all you need is a<br>
</blockquote></blockquote>
method &quot;setRowSolution&quot; and do a memcpy into rowActivity_.<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<br>
<br>
<br>
<br>
Matt,<br>
<br>
       Osi.setColSolution and Osi.setRowPrice will set the column and<br>
</blockquote></blockquote>
row<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


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<br>
</blockquote></blockquote>
returned<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


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><br>
<br>
<br>
</blockquote>
<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><br>
<br>
<br>
</blockquote>
<br>
<br>
<br>
--<br>
Dr. Ted Ralphs<br>
Associate Professor, Lehigh University<br>
(610) 628-1280<br>
ted &#39;at&#39; lehigh &#39;dot&#39; edu<br>
</div></div><a href="http://coral.ie.lehigh.edu/%7Eted" target="_blank">coral.ie.lehigh.edu/~ted</a> &lt;<a href="http://coral.ie.lehigh.edu/%7Eted" target="_blank">http://coral.ie.lehigh.edu/%7Eted</a>&gt;<br>
<br>
</blockquote>
<br>
</blockquote>
</blockquote></div><br>