Hi,
I am not a Vensim User at this time but would like to first confirm that model simulations are able to write calculated values for particular variables to a storage space (table or ODBC) and then in the course of the simulation call-up those previous values by referencing time and variable identifiers to be used in the ongoing calculations of the simulations. So basically you can write the calculated value or input value of a variable to a database or table and then in a later time period in the simulation recall those values to other specified variables to be used in new calculations within the same simulation? It appears that the DATA informational keywords would be best suited to this requirement?
Thanks in advance
Exporting and importing time series data values within a simulation
-
- Junior Member
- Posts: 2
- Joined: Wed May 09, 2018 3:56 pm
- Vensim version: PLE
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: Exporting and importing time series data values within a simulation
You can certainly get calculations from previous time steps within Vensim during a simulation. Vensim has it's own internal storage.
There is no need to write to a database and then retrieve them. But you can write the calculations out to a database when the simulation is finished using Vensim DSS (via ODBC).
Why do you need to write to a database and retrive the same value during a simulation?
There is no need to write to a database and then retrieve them. But you can write the calculations out to a database when the simulation is finished using Vensim DSS (via ODBC).
Why do you need to write to a database and retrive the same value during a simulation?
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: Exporting and importing time series data values within a simulation
Writing to/from files or databases within a single simulation would cause a dramatic slowdown, though you could do it in an external function if you needed something that wasn't possible using Vensim's builtin functions. Far better to do it in memory if possible though.
/*
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
*/