Subscripts and arrays
Posted: Mon Mar 15, 2004 2:23 pm
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
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