[Coin-discuss] Question about memory semantics of OsiSolverInterface::setWarmStart

Jonathan Eckstein jeckstei at rutcor.rutgers.edu
Wed Aug 24 21:38:53 EDT 2005


A quick and possibly foolish question: after calling

   OsiSolverInterface::setWarmStart(const CoinWarmStart* warmstart)

when is it OK to delete/destruct/deallocate the object *warmstart?  Or 
does the solver interface "take ownership" of the memory?  I am 
particularly interested in the case of passing a CoinWarmStartBasis 
object to CLP, but a general answer to the question would also be of 
interest.  The online class descriptions do not go into this level of 
detail.

    Thanks,

       Jonathan




More information about the Coin-discuss mailing list