subscripted variable

Use this forum to post Vensim related questions.
Post Reply
addor
Senior Member
Posts: 50
Joined: Mon Oct 27, 2003 9:45 am

subscripted variable

Post by addor »

I have a subscripted variable, say P[sub], that is defined in this way:

P[sub1] = E at time = 1
P[sub2] = E at time = 2
and so on

E is a normal auxilary variable. How can I tell this Vensim ?

Thanks.
Peter
Lee Jones

Post by Lee Jones »

Peter,

Is your intention to allocate the value taken by E at time=1 to subscript element #1, then the value of E at time=2 to subscript element #2 etc?

If so, see the attached model for a solution.

Regards

Lee

PS Welcome to the forum, I hope you will try to help answer fellow Vensim user questions with us!
Attachments
forum1.mdl
(1.51 KiB) Downloaded 468 times
Post Reply