[Cbc] Questions about originalColumns method of CbcModel
John Forrest
john.forrest at fastercoin.com
Tue Oct 18 11:43:26 EDT 2011
Noam,
I presume you are passing a command line into solver. If it has
-preprocess strategy
then at present originalColumns_ is not set. It probably should be e.g
after line 630 of CbcStrategy.cpp -
model.setOriginalColumns(process.originalColumns(),numberColumns);
With normal preprocessing then setOriginalColumns should be called at
3871 or 3875 (2.7/trunk) - check that code gets there.
Also make sure that your code is pointing to processed CbcModel not
original one.
John Forrest
On Mon, 2011-10-17 at 14:08 -0500, Noam Goldberg wrote:
> Hello,
>
> I am running with Cbc using settings similar to driver3.cpp the examples directory.
> I have my own Cgl cut generator implemented and would like to use CbcModel::originalColumns() method to try to map from the processed columns that I am getting through OsiSolverInterface object passed to the generateCuts() method back to the original columns. However it seems that the original columns is not set i.e. NULL is being returned.
> Also is there a method for obtaining the inverse "processedColumns"?
>
> Thank you in advance,
> Noam
>
> _______________________________________________
> Cbc mailing list
> Cbc at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cbc
>
More information about the Cbc
mailing list