Skip to content

memory leak in MixedIntegerLinearProgram coin backend #21825

@dimpase

Description

@dimpase

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions