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
subscripted variable
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!
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