I am trying to create a vector for grouping some variables. I think I can use the Subscript function but my problem is that I need to use variables, and not contants, as the arguments of the subscripted variable.
Following the example on the users guide (Ch 17), my problem is as follows:
We have a subscript Task, so
Task: design, prototype, build
then we have a variable in which we use the subscript
task size[task]=180, 250,500 => here I need to use variables, no constants like 180, because the value I need to use here is changing on every simulation step. What I need is something like:
Task Size[Task]= Size1, Size2, Size3, where Size1, Size2 and Size3 are variables in my model.
thanks for your help
Subscripts and arrays
-
- Super Administrator
- Posts: 4827
- Joined: Wed Mar 05, 2003 3:10 am
You can define multiple equations
task size[task1]=Size1
task size[task2]=Size2
task size[task3]=Size3
or if Size is subscripted,
task size[task]=Size[task]
More detailed information is at the following link.
http://www.vensim.com/documentation/html/21265.htm
Or look at
http://www.vensim.com/documentation/vensim.htm
And search for "Multiple equations".
Hope this helps,
Tony.
task size[task1]=Size1
task size[task2]=Size2
task size[task3]=Size3
or if Size is subscripted,
task size[task]=Size[task]
More detailed information is at the following link.
http://www.vensim.com/documentation/html/21265.htm
Or look at
http://www.vensim.com/documentation/vensim.htm
And search for "Multiple equations".
Hope this helps,
Tony.