True. That'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 <<a href="mailto:magh@lehigh.edu">magh@lehigh.edu</a>>:<br>
<div><div></div><div class="h5">> 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>
>> Disgusting solution but you could create a class that inherits from clpsimplex, provides functions to set rowactivity (protected) and cast to it.<br>
>><br>
>><br>
>><br>
>> 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>
>> Sent: Thursday, August 13, 2009 5:14 PM<br>
>> To: Lou Hafer<br>
>> 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>
>> Subject: Re: [Clp] [Osi] set row solution (activities)<br>
>><br>
>><br>
>><br>
>> 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 "setRowSolution" and do a memcpy into rowActivity_.<br>
>><br>
>><br>
>><br>
>><br>
>> 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">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>
><br>
> _______________________________________________<br>
> Osi mailing list<br>
> <a href="mailto:Osi@list.coin-or.org">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>
<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 'at' lehigh 'dot' edu<br>
<a href="http://coral.ie.lehigh.edu/%7Eted" target="_blank">coral.ie.lehigh.edu/~ted</a><br>
</div></div></blockquote></div><br>