Page 1 of 1

Can Lookups deal with variables in the output

Posted: Mon Apr 28, 2014 6:02 am
by karankhosla
Is it possible to define a lookup table so that it chooses the output as a variable in the model rather than a number; so for example:

The lookup data set would be some thing like [(1, VarA), (2,VarB), (3, VarC)]

Re: Can Lookups deal with variables in the output

Posted: Mon Apr 28, 2014 8:10 am
by Administrator
There is no way I know of to do this.

How many variables do you need to choose from? And are they individual variables or part of a subscripted parameter?

Re: Can Lookups deal with variables in the output

Posted: Mon Apr 28, 2014 8:10 am
by Administrator
And do you need to interpolate between the points at all?

Re: Can Lookups deal with variables in the output

Posted: Mon Apr 28, 2014 2:08 pm
by tomfid
This can be done with VECTOR LOOKUP - http://www.vensim.com/documentation/fn_ ... lookup.htm