#13205: make LP return bounds on variables
--------------------------------------+-------------------------------------
Reporter: dimpase | Owner: ncohen
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.2
Component: linear programming | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: #13148 | Stopgaps:
--------------------------------------+-------------------------------------
Comment (by ncohen):
> OK, I can move this function into {{{GenericBackend}}}.
> Would this work for you?
Well, that's the point : the GenericBackend class already has such methods
that let you read/set variables bounds from their ID. And of course at
this level everything is done through ID.
> hmm, I thought that one just cannot have {{{__del__}}} in these classes,
and then they would be garbage-collected just fine...
Yep, they were garbage-collected but you had to wait for the garbage
collector to be called, which is not all the time. A user complained of
memory leaks when solving many many many LP in a loop (solving a LP for
all graphs on n vertices), and this was one source of problems. When youi
remove cyclic dependencies the objects are deallocated without any call to
the garbage collector, and in his case it made a difference.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13205#comment:11>
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.