Re: [gecode-users] Saving memory with IntVarArrays

2009-03-01 Thread Guido Tack
Malcolm Ryan wrote: > Currently, I create an IntVarArray as: > > vars = IntVarArray(space, N); > > and then incrementally create variables as: > > vars[t] = IntVar(space, domainSet); > > My question is: does this actually save memory? I assume that creating > the array created N 'uninitialised' Int

[gecode-users] Saving memory with IntVarArrays

2009-03-01 Thread Malcolm Ryan
A question about IntVarArrays: I have a large CSP that I have coded to be constructed incrementally as the search proceeds to reduce memory usage. To simplify, lets say that I have an array of N variables for some large N, and each one is constrained by some relationship with its neighbours.