Dear vensim forum,
Hi, I'm a newbie in systems dynamic & vensim. I've downloaded vensim PLE for
creating a very simple model. I need a (integer) variabel that (automatically) varies (increment) 0,1,2,3,...10
along with the initial time (from 0) to final time (100) with step of 1.
step : 0, 1, 2, 3, 4, 5, 6, 7,....., 100
output function: 0, 1, 2, 3, 4, 5, 6, 7,....., 100
I want to know if vensim has the function for that?
Thank for your help.
Regards,
Eddy
vensim function
-
- Super Administrator
- Posts: 4573
- Joined: Wed Mar 05, 2003 3:10 am
Re: vensim function
There is an INTEGER function, does that do what you need?
Or simply use the variable "time".
Or simply use the variable "time".
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: vensim function
Create a stock, with inflow 1/TIME STEP?
/*
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: vensim function
Or just use INTEGER(Time).
However, you should avoid creating something that's tied to a particular time step. http://metasd.com/2017/11/discrete-time-stinks/
However, you should avoid creating something that's tied to a particular time step. http://metasd.com/2017/11/discrete-time-stinks/
/*
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: vensim function
Thank to all the reply. I've just found the answer.
The answer is giving a variabel and let the equation -->TIME BASE (0,1)
The answer is giving a variabel and let the equation -->TIME BASE (0,1)
Re: vensim function
x=TIME BASE(0,1)
is the same as
x = Time
when INITIAL TIME=0 and TIME STEP=1.
is the same as
x = Time
when INITIAL TIME=0 and TIME STEP=1.
/*
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
*/