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_delete_prob(lp)
glp_free_env() :the resulte is 0

On Thu, Sep 8, 2011 at 6:50 PM, Robbie Morrison <[email protected]> wrote:

>
> ------------------------------------------------------------
> To:           help-glpk <[email protected]>
> Subject:      [Help-glpk] release memory
> From:         name name <[email protected]>
> 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.
>
> [snip]
>
> 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) : [email protected]
> Webmail (preferred)           : [email protected]
> [from Webmail client]
>
>
>
_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to