[gecode-users] Memory issues with repeated execution of the script

Jan Kelbel kelbelj at fel.cvut.cz
Wed Jun 15 17:33:03 CEST 2011


Hi,

I found the following strange behavior of Gecode 3.5.0 when using 32bit 
windows binaries in Win XP and MS Visual Studio 2008:

When the problem is infeasible and the total number of used nodes is 0, 
some memory is not released, and when the script is executed repeatedly, 
the consumed memory increases.
See the attached file, which is queens.cpp from the examples, where are 
two added lines denoted by comment //JK: ...

When nodes > 0
for example, use constraint
   rel(*this,q[0] ==q[1]);
instead of
   rel(*this,q[0] > n);
then the memory consumption is not increasing.

Am I using Gecode in a wrong way?

Cheers, Jan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: queens.cpp
URL: <http://www.gecode.org/pipermail/users/attachments/20110615/f5433e73/attachment.ksh>


More information about the users mailing list