[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] release memory

From: name name
Subject: Re: [Help-glpk] release memory
Date: Fri, 9 Sep 2011 09:28:18 +0200

I use ubuntu and run glpk with terminal.

when I run 1 example I the memory after termination of programme is 120mb and If I run 5 times (in a for) the memory use is 300mb.

after termination I have

glp_free_env() :the resulte is 0

On Thu, Sep 8, 2011 at 6:50 PM, Robbie Morrison <address@hidden> wrote:

To:           help-glpk <address@hidden>
Subject:      [Help-glpk] release memory
From:         name name <address@hidden>
Date:         Thu, 8 Sep 2011 17:35:59 +0200

> Hello,
> I have some problem with releasing memory in scala.
> after solving model I use GLPK.glp_free_env() but the
> memory doesn't decries.


Hello again Onor

Did you check the return code from GLPK.glp_free_env()?

The GLPK manual states:

 The routine 'glp_free_env' returns one of the following codes:
 0 = termination successful
 1 = environment is inactive (was not initialized).

GLPK also provides the function 'glp_mem_usage' to
report on memory usage.  If a wrapper is provided to
this call, then that could be useful for troubleshooting
your issue.

HTH too, Robbie
Robbie Morrison
PhD student -- policy-oriented energy system simulation
Technical University of Berlin (TU-Berlin), Germany
University email (redirected) : address@hidden
Webmail (preferred)           : address@hidden
[from Webmail client]

reply via email to

[Prev in Thread] Current Thread [Next in Thread]