[Osi] [Clp] set row solution (activities)

Hok Go Hok.Go at qrm.com
Thu Aug 13 18:18:00 EDT 2009

Disgusting solution but you could create a class that inherits from clpsimplex, provides functions to set rowactivity (protected) and cast to it.

From: clp-bounces at list.coin-or.org [mailto:clp-bounces at list.coin-or.org] On Behalf Of Matthew Galati
Sent: Thursday, August 13, 2009 5:14 PM
To: Lou Hafer
Cc: osi at list.coin-or.org; clp at list.coin-or.org
Subject: Re: [Clp] [Osi] set row solution (activities)

I think setRowPrice sets the dual solution - not the (primal) row solution.

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.

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_.


       Osi.setColSolution and Osi.setRowPrice will set the column and row
solution, respectively.  Row activity should follow from setColSolution.

       Based on the Osi unit test, OsiClp ignores imposed row and column
solutions (at least, they are not immediately reflected in the results returned
for row activity and reduced costs).


Osi mailing list
Osi at list.coin-or.org<mailto:Osi at list.coin-or.org>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/osi/attachments/20090813/5fb06468/attachment.html>

More information about the Osi mailing list