set subscript value

Use this forum to post Vensim related questions.
Post Reply
yusuke
Member
Posts: 46
Joined: Sun Apr 27, 2008 11:41 pm

set subscript value

Post by yusuke »

Hello. This is my first time to post.

I want to set subscript value which get from simulation value.

In Attachment model "subsample.mdl",
Price is changing in simulation.
I want to get Price value from time1 to time4.
and set this SeasonPrice[season]=value1,value2,value3,value4

Please advice me .
Attachments
subsample.mdl
(2.33 KiB) Downloaded 258 times
Wilson
Administrator
Posts: 51
Joined: Thu Mar 06, 2003 5:05 am

Post by Wilson »

There are many ways of doing this. I have attached a revised version of your model with one such method. See if it helps.

It's probably easier you use a lookup table, but I find this a little more flexible if the number of subscript elements is likely to change.

I increased the final time to two years
Attachments
subsample2.mdl
(4.26 KiB) Downloaded 244 times
yusuke
Member
Posts: 46
Joined: Sun Apr 27, 2008 11:41 pm

Post by yusuke »

Thank you, Wilson .

I understand that subscript is powerful tool,
but it is not alway useful to use this.
Before your post, I think to use subscript though in model.

Now, I try to chage my model ,and I find out
not to use subscript .
It is very nice which can use PLE soft.

very thank from yusuke
Post Reply