-
-
Notifications
You must be signed in to change notification settings - Fork 655
Open
Description
As reported here; running the following in a loop leads to memory growth.
def get_polytope():
q = MixedIntegerLinearProgram(maximization=False, solver='Coin')
w = q.new_variable(real=True, nonnegative=True)
q.add_constraint(w[0]==0)
def fill_memory(n):
for i in xrange(n):
P = get_polytope()
sage: get_memory_usage()
288.58984375
sage: fill_memory(2000); get_memory_usage()
300.5859375
sage: fill_memory(2000); get_memory_usage()
302.5859375
sage: fill_memory(2000); get_memory_usage()
303.5859375
sage: fill_memory(2000); get_memory_usage()
305.5859375
This appears to be coin
-specific.
CC: @mkoeppe
Component: linear programming
Issue created by migration from https://trac.sagemath.org/ticket/21825