[Osi] OsiCbc, CbcMain

Matthew Galati matthew.galati at gmail.com
Tue Feb 22 11:47:08 EST 2011


Yes.

To deal with argc/argv, you need to include all the parameters for Cbc as
Osi paramaters. And then inside branchAndBound you pull form Osi parameters
to build that string.





On Tue, Feb 22, 2011 at 11:43 AM, Lou Hafer <lou at cs.sfu.ca> wrote:

> Matt,
>
>        Interesting suggestion. As you say, the current best practice for
> cbc is
>
>  CbcModel cbc(*m_osi);
>  CbcMain0(cbc);
>  CbcMain1(argc, argv, cbc);
>
>         The equivalent with OsiCbc would be
>
>  OsiXXXSolverInterface m_osi() ;
>  OsiCbcSolverInterface m_osicbc(m_osi) ;
>  CbcMain0(m_osi.modelPtr()) ;
>  CbcMain1(argc, argv, m_osi.modelPtr()) ;
>
> So you could rewrite OsiCbcSolverInterface::branchAndBound() to do
> something
> like this:
>
>  OsiCbcSolverInterface::branchAndBound()
>  { << set up argc, argv somehow >>
>   CbcMain0(modelPtr_) ;
>   CbcMain1(argc, argv, modelPtr_) ; }
>
> Might be useful. Try it and see if it works for you.
>
>                                                        Lou
>
>
>
> _______________________________________________
> Osi mailing list
> Osi at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/osi
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/osi/attachments/20110222/04a716b3/attachment.html>


More information about the Osi mailing list