[Coin-lpsolver] Packed Matrix to CbcModel

Kyle Ellrott kellrott at csbl.bmb.uga.edu
Tue May 23 17:17:58 EDT 2006


Thanks, that worked.

I had originally tried
   OsiSolverInterface *osiSiref = new OsiSolverInterface() ;
but, of course, that threw a bunch of errors about undefined virtual  
functions.

Never though to try it your way ;-)

Kyle


> Kyle,
>
>> I forget the details of using '&' in the function declaration.
>
> 	I usually find myself running a couple of quick trials when trying to
> remember how this goes.  In the case of a reference parameter, best  
> to have an
> actual variable as the parameter, so that there's something for the  
> reference
> parameter to grab onto.  For example, this will compile on my system:
>
>   OsiSolverInterface *osiSiref = new OsiClpSolverInterface() ;
>
>   model->assignSolver(osiSiref) ;
>
> There are circumstances where a compiler can figure out what to do,  
> given an
> expression passed as a reference parameter, but might as well help  
> it, eh?
>
>   						Lou
>
> _______________________________________________
> Coin-lpsolver mailing list
> Coin-lpsolver at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-lpsolver




More information about the Clp mailing list