Timesteps and lookups

Use this forum to post Vensim related questions.
Post Reply
skjold
Junior Member
Posts: 5
Joined: Fri Apr 21, 2006 1:21 pm

Timesteps and lookups

Post by skjold »

Hi,

I'm a new user of Vensim. I'm trying to create a model that should simulate a year on a hour by hour basis.

I have tried to create some lookup variable with 8760 time step. Every time I do this, I get this error message:

"Memory allocation failure - subblock"

Then a message with "aborting Vensim" appears and the program close down.

Why is this? I have tried to create lookups with only 4000 steps and this doesn’t appear to be a problem. Isn’t Vensim able to handle more than this?

If you could tell me how to overcome this problem I would really appreciate it.

Best regards,

Skjold from DK
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post by bob@vensim.com »

There is a limit to the number of pairs in a Lookup - and a Lookup is a avery ineffecient means for storing a large number of points. If you simply have data, then use a Data variable for this.
LAUJJL
Senior Member
Posts: 1427
Joined: Fri May 23, 2003 10:09 am
Vensim version: DSS

time steps

Post by LAUJJL »

Hi Skjold

If you have Vensim pro you can try something like the model joined.
Regards.
JJ
Attachments
calendar.mdl
(1.8 KiB) Downloaded 298 times
skjold
Junior Member
Posts: 5
Joined: Fri Apr 21, 2006 1:21 pm

Post by skjold »

Thank you for your helpfuld answers. The use of data variables did the trick.

Best regards

Skjold
Post Reply