Please, the best way for you seems to be to actually read a little in
"Modeling and Programming with Gecode".

 

In MPG, you will find a discussion of how to use arrays with Gecode, which
are of course dynamic (in particular, familiarize yourself with how variable
arrays differ from variable argument arrays). And of course, many (if not
most) examples use dynamic argument arrays.

 

Without serious reading there is no chance to progress in your project.

 

Christian

 

--

Christian Schulte, KTH, web.it.kth.se/~cschulte/

 

From: [email protected] [mailto:[email protected]] On Behalf
Of hamideh izadyar
Sent: Tuesday, August 02, 2011 9:51 PM
To: [email protected]
Subject: [gecode-users] Using Dynamic Arrays in GECODE

 

Hi,

I want to use dynamic arrays in my gecode model. We I new the array and pass
it to the gecode class, it says "Heap Memory Exhausted". I investigated all
gecode examples. All of them use constant and static arrays. In my project
the size and content of arrays varies. Why do you used const arrays in
gecode models? How can I use dynamic arrays without memory exhaustion?

 

Thanks for your reply.

Best Regards

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

Hamideh Izadyar
Graduate Student
Computer Engineering Dep.
Sharif University of Technology
http://ce.sharif.edu/~izadyar 

_______________________________________________
Gecode users mailing list
[email protected]
https://www.gecode.org/mailman/listinfo/gecode-users

Reply via email to