[Coin-discuss] accessing the Clp solver from Cbc/Clp

J P Fasano jpfasano at us.ibm.com
Wed Jun 28 00:35:14 EDT 2006


> The situation I am thinking of is when I am using Clp within Cbc, i.e.
using
> OsiCbcSolverInterface.  In this case, getModelPtr() returns the pointer
to
> the  CbcModel, not the ClpModel.
Ok.  How about using:
      OsiSolverInterface * OsiCbcSolverInterface::getRealSolverPtr () const
see:
http://www.coin-or.org/Doxygen/Osi/class_osi_cbc_solver_interface.html#z178_1

JP

coin-discuss-bounces at list.coin-or.org wrote on 06/28/2006 12:13:03 AM:

> Thanks for your reply!
>
> On Wednesday 28 June 2006 04:59, J P Fasano wrote:
> > > If Clp is being used, is there anyway to access the solver directly
(i.e.
> > >
> > > the ClpModel pointer)?
> >
> > Yes.
> > Use method OsiClpSolverInterface::getModelPtr().
> > see:
www.coin-or.org/Doxygen/Osi/class_osi_clp_solver_interface.html#z216_0
> >
> The situation I am thinking of is when I am using Clp within Cbc, i.e.
using
> OsiCbcSolverInterface.  In this case, getModelPtr() returns the pointer
to
> the  CbcModel, not the ClpModel.
>
> Cheers,
>
> Kish
>
> > JP
> >
> > _______________________________________________
> > Coin-discuss mailing list
> > Coin-discuss at list.coin-or.org
> > http://list.coin-or.org/mailman/listinfo/coin-discuss
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-discuss




More information about the Coin-discuss mailing list