Page 1 of 1

subscript equivalence

Posted: Wed Oct 17, 2007 5:17 pm
by jvalant
I’m using version 5.7 of the software.

I have set up and equivalence (Drug,toDrug) and I have a variable called switch grid which is arrayed by two subscripts Drug, and its equivalence toDrug. When I sum across or down I get the expected answer. However, when I multiply this variable by any constant I get "0" for the answer across all dimensions. Also, when I normalize this variable in another variable I also get "0" values in each subscripted output. Any idea as to what is causing this?

Posted: Wed Oct 17, 2007 5:27 pm
by Administrator
Can you post a sample model?

subscript equivalence

Posted: Wed Oct 17, 2007 5:34 pm
by jvalant
Yes

Posted: Wed Oct 17, 2007 6:11 pm
by Administrator
Try the attached model. Just needed to change some of the equations so that they had both [drug,todrug] instead of [drug,drug].

For example,
switch grid numbers[drug,todrug] = CONSTANT*SWITCH GRID[drug,drug]
was being calculated as

switch grid numbers[A,todrug] = CONSTANT*SWITCH GRID[A,A]
switch grid numbers[B,todrug] = CONSTANT*SWITCH GRID[B,B]
switch grid numbers[C,todrug] = CONSTANT*SWITCH GRID[C,C]

You need to include todrug on the right hand side of the equation to pick up the correct subscripts.

Hope this makes sense.

Tony.

[Edited on 17-10-2007 by Administrator]

subscript equivalence

Posted: Wed Oct 17, 2007 7:11 pm
by jvalant
Thanks for your help!