Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memory leak in MixedIntegerLinearProgram coin backend #21825

Open
dimpase opened this issue Nov 4, 2016 · 3 comments
Open

memory leak in MixedIntegerLinearProgram coin backend #21825

dimpase opened this issue Nov 4, 2016 · 3 comments

Comments

@dimpase
Copy link
Member

dimpase commented Nov 4, 2016

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

@dimpase dimpase added this to the sage-7.5 milestone Nov 4, 2016
@seblabbe
Copy link
Contributor

seblabbe commented Nov 4, 2016

comment:2

Importing the description from #21826. A little bit simplified version of code causing the leak.

@seblabbe

This comment has been minimized.

@mkoeppe mkoeppe removed this from the sage-7.5 milestone Dec 29, 2022
@mkoeppe
Copy link
Contributor

mkoeppe commented Mar 27, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants