Can Lookups deal with variables in the output

Use this forum to post Vensim related questions.
Post Reply
karankhosla
Senior Member
Posts: 107
Joined: Wed Nov 26, 2008 6:12 am

Can Lookups deal with variables in the output

Post 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)]
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Can Lookups deal with variables in the output

Post 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?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Can Lookups deal with variables in the output

Post by Administrator »

And do you need to interpolate between the points at all?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
tomfid
Administrator
Posts: 3811
Joined: Wed May 24, 2006 4:54 am

Re: Can Lookups deal with variables in the output

Post by tomfid »

This can be done with VECTOR LOOKUP - http://www.vensim.com/documentation/fn_ ... lookup.htm
Post Reply