[Coin-lpsolver] Packed Matrix to CbcModel
Kyle Ellrott
kellrott at csbl.bmb.uga.edu
Wed May 24 11:01:09 EDT 2006
Yeah, looking at the way the data goes, this stems from the fact that
the original ClpModel prototype doesn't have an 'assign' method.
Rather it only has 'loadProblem' methods. I can't see any way to get
a packed matrix description into the ClpModel (or ClpSimplex) method
without duplicating the data.
Is there another way I should try?
Kyle
Lou Wrote:
> Kyle,
>
> I can speak to the assignSolver question; I'll let John tackle the
> assignProblem issue (the answer may well be specific to clp).
Kyle Wrote:
>
>>
>> As I understand it, the next problem is that
>> OsiClpSolverInterface::assignProblem takes a CoinPackedMatrix,
>> passes it to OsiClpSolverInterface::loadProblem (which uses it to
>> create a ClpSimplex object), and then deletes the originals. This
>> is my main concern, because this action causes a duplication event
>> on the matrix, and the row/column boundaries and objective
>> function,so for a period of time, the program has two copies of
>> the data in memory.
>>
>> Is there any way that I can go from a packed matrix description to
>> a CbcModel without ever duplicating the data?
>>
>>
>
More information about the Clp
mailing list