Good morning or afternoon,
My apologies if this was already treated, but I couldn't find easily an answer. Is there any possibility to define a subrange, or a new subscript, that would automatically modify its elements, in case the variables subscripted with the first subscript answer certain conditions during the simulation?
General example: I need only some elements of a subscript S (a subrange SR) to use in a new calculation in the model. But the elements selected to be included in SR are conditional. Sometimes I will need such selected subscripts elements, and sometimes others.
More illustrative example: I want to calculate the money required for candies selected at the store. But the candies selection is evolving during the simulation. If I use a simple conditional IF THEN ELSE, I don't know how to avoid having to attribute a price anyway to the candies not selected.
Thank you very much in advance!
Creating an "evolving" subscript or subrange?
Re: Creating an "evolving" subscript or subrange?
You may be able to do what you need with VECTOR SELECT or VECTOR ELM MAP. For really dynamic lists, you need Ventity instead.
/*
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
*/
Re: Creating an "evolving" subscript or subrange?
Thank you Tom, I think Ventity may well be the answer in this case, so for now I'll try to find an alternative modeling path to represent as closely as possible the process in Vensim (^^).
Re: Creating an "evolving" subscript or subrange?
In Vensim, you can still do this, just at the cost of running some subscript elements that are empty (0) part of the time. Example:
/*
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
*/