[Cbc] Variables Names and Preprocess

Robinson robmnk at gmail.com
Thu Mar 26 11:32:17 EDT 2009


Thanks!

1) Yes it works!

2) I do preprocessing passing arguments to CbcMain1 like in driver4.cpp but
I will start experimenting on this.

On Wed, Mar 25, 2009 at 4:38 AM, John J Forrest <jjforre at us.ibm.com> wrote:

> 1) Setting CbcModel::setSpecialOptions(32|specialOptions()) should make
> CbcModel keep names. Not sure if it still works.
>
> 2) If you do preprocessing outside CbcModel::branchAndBound and pass in
> CglPreProcess xxxxxx into MyHeuristic before adding MyHeuristic to CbcModel
> then you can use xxxxxx.originalColumns() to see which ones were kept. You
> could also access xxxxxx.originalModel() to get at names, which may be a
> cleaner method than 1).
>
> John Forrest
>
> [image: Inactive hide details for Robinson ---03/20/2009 04:11:08
> PM---Hello everyone!]Robinson ---03/20/2009 04:11:08 PM---Hello everyone!
>
>
> From:
> Robinson <robmnk at gmail.com>
> To:
> cbc at list.coin-or.org
> Date:
> 03/20/2009 04:11 PM
> Subject:
> [Cbc] Variables Names and Preprocess
> ------------------------------
>
>
>
> Hello everyone!
> I'm having some troubles (2 in fact) and I hope someone could guide me.
>
> 1) Suppose I've created a class MyHeuristic extended from CbcHeuristic.
> Now, would I be able to recover the variables names from inside
> MyHeuristic::solution(...) method? I've wrote my code based on driver4.cpp.
> Even setting osidiscipline to 2 it won't work. It prints the default names
> only (from solution(...) method).
>
> 2) There is a way(inside Cbc) to know which columns were dropped after the
> preprocess?
>
> Thanks!
>
> --
>
> robinson minali nakamura_______________________________________________
> Cbc mailing list
> Cbc at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cbc
>
>
>
> _______________________________________________
> Cbc mailing list
> Cbc at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cbc
>
>


-- 

robinson minali nakamura
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/cbc/attachments/20090326/d2cf809c/attachment.html 


More information about the Cbc mailing list