Page 1 of 1

set subscript value

Posted: Fri Sep 12, 2008 2:54 am
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 .

Posted: Fri Sep 12, 2008 8:54 am
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

Posted: Sun Sep 14, 2008 9:35 am
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