#12004: copying a linear program using Coin solver consumes enormous amounts of
memory
----------------------------------+-----------------------------------------
   Reporter:  john_perry          |          Owner:  ncohen                     
           
       Type:  defect              |         Status:  new                        
           
   Priority:  major               |      Milestone:  sage-4.8                   
           
  Component:  linear programming  |       Keywords:  linear programming, Coin, 
copy, memory
Work_issues:                      |       Upstream:  N/A                        
           
   Reviewer:                      |         Author:  john_perry                 
           
     Merged:                      |   Dependencies:                             
           
----------------------------------+-----------------------------------------

Comment(by john_perry):

 I figured out how to implement the copy constructor: in the .pxd file,
 declare under `cdef cppclass c_OsiCbcSolverInterface
 "OsiCbcSolverInterface"`
 {{{
   c_OsiCbcSolverInterface(c_OsiCbcSolverInterface &si)
 }}}
 In the .pyx file, I then call
 {{{
         p.si = new
 c_OsiCbcSolverInterface(<c_OsiCbcSolverInterface>self.si)
 }}}
 It runs, but we still get exponential growth of memory.

 I'm running out of ideas here. Do you have a copy of the Coin source, and
 can you see if there is exponential growth if we do the same thing there?

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12004#comment:12>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to