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)]
Can Lookups deal with variables in the output
-
- Senior Member
- Posts: 107
- Joined: Wed Nov 26, 2008 6:12 am
-
- Super Administrator
- Posts: 4827
- Joined: Wed Mar 05, 2003 3:10 am
Re: Can Lookups deal with variables in the output
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?
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
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
-
- Super Administrator
- Posts: 4827
- Joined: Wed Mar 05, 2003 3:10 am
Re: Can Lookups deal with variables in the output
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
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Re: Can Lookups deal with variables in the output
This can be done with VECTOR LOOKUP - http://www.vensim.com/documentation/fn_ ... lookup.htm
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/