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

Kish Shen kish.shen at crosscoreop.com
Wed Jun 28 00:48:00 EDT 2006


On Wednesday 28 June 2006 05:35, J P Fasano wrote:
> > 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

This returns an OsiSolverInterface *, which doesn't have a getModelPtr(), or 
is there someway of getting from this to OsiClpSolverInterface? [this may 
reflect my lack of knowledge on C++, rather than anything else]

Cheers,

Kish 



More information about the Coin-discuss mailing list