Google Groups Home
Help | Sign in
Garbage Collection in Mosel? How to free memory??
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
cees  
View profile
 More options 30 Apr, 12:04
From: cees <tstra...@gmail.com>
Date: Wed, 30 Apr 2008 04:04:31 -0700 (PDT)
Local: Wed 30 Apr 2008 12:04
Subject: Garbage Collection in Mosel? How to free memory??

How can I undo the declaration of variables, respectively,
constraints, if they becom superfluous? I don't want to override them,
I want to delete them and free related memory! Anyone an idea?

Thanks a lot!!!

-------------------

This thread replaces the undermentioned:

"Hi! My optimization model is extended stepwise, that is, it is set-up
and solved for a specific planning horizon and extended afterwards to
cover more periods. This is done to simulate a rolling horizon
environment. Therefore, in each simultion run the optimization model
is extended with new constraints and variables. Only in under special
circumstance some already inialized constraints in variable are
superfluous. I would like to delete these not needed constraints and
variables, because for large simulation instances the model exceeds
the available RAM of my computer and Xpress terminates. There are a
lot of not needed constraints, because preprocessing always reduces
the problem size strongly.

How do I delete constraints and variables? Does a corresponding
function to "create" exist? Or could I use "sethidden"? I could image
that the latter doesn't help to reduce memory usage...

 Thanks a lot!"


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Oakley  
View profile
 More options 30 Apr, 12:23
From: "Chris Oakley" <chris.oak...@dashoptimization.com>
Date: Wed, 30 Apr 2008 12:23:06 +0100
Local: Wed 30 Apr 2008 12:23
Subject: RE: Garbage Collection in Mosel? How to free memory??
The basic rule is: a variable is automatically deleted when it is no longer
referenced (e.g. local variable of a subroutine or deleted from a dynamic
array using
'delcell') _and_ does not appear in any constraint (note that bounds and
is_* are constraints). Similarly, a constraint is deleted if it is no longer
referenced and is empty (to clear a constraint give it the value 0:
myctr:=0).

________________________________
Dash Optimization - part of Fair Isaac
tel: +44 1926 315862
www.dashoptimization.com
optimization everywhere


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cees  
View profile
 More options 30 Apr, 13:09
From: cees <tstra...@gmail.com>
Date: Wed, 30 Apr 2008 05:09:46 -0700 (PDT)
Local: Wed 30 Apr 2008 13:09
Subject: Re: Garbage Collection in Mosel? How to free memory??
Thanks!!

On 30 Apr., 13:23, "Chris Oakley" <chris.oak...@dashoptimization.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google