Dear experts,
I need model a variable that maintains a constant value (but obtained from a random variable) that lasts for 365 days and repeats periodically every 365 days.
What I want to simulate is a constant but random value every 365 days, and that the function keeps that value constant for 365 days.
I used a function based on PULSE TRAIN and RANDOM PINK NOISE, but I get a continuous random function while I need a discrete function lasting 365.
Could you please help me with that?
Thank you very much.
Help with PULSE TRAIN and random variable
Help with PULSE TRAIN and random variable
- Attachments
-
- PULSE_test.mdl
- (1.29 KiB) Downloaded 13 times
Re: Help with PULSE TRAIN and random variable
Try this instead ...
You can also use SAMPLE IF TRUE for this (though I think it's not available in all versions).
You can also use SAMPLE IF TRUE for this (though I think it's not available in all versions).
/*
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: Help with PULSE TRAIN and random variable
Thank you very much for the solution @tomfid!
Iam working with PLE+ version. SAMPLE IF TRUE is available in these version. Conceptually, how can I use it?
Iam working with PLE+ version. SAMPLE IF TRUE is available in these version. Conceptually, how can I use it?
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: Help with PULSE TRAIN and random variable
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: Help with PULSE TRAIN and random variable
Thank you @administrator.
I read the syntax and help from the documentation Help. But I was referring to how the recommendation can be implemented for the specific problem I raised.
I read the syntax and help from the documentation Help. But I was referring to how the recommendation can be implemented for the specific problem I raised.
-
- Super Administrator
- Posts: 4590
- Joined: Wed Mar 05, 2003 3:10 am
Re: Help with PULSE TRAIN and random variable
SAMPLE IF TRUE will hold a value until something is "true". So create a variable that equals 1 every 365 days, and use that in the call to SAMPLE IF TRUE.
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: Help with PULSE TRAIN and random variable
thank you very much @Administrator ![Very Happy :D](./images/smilies/icon_biggrin.gif)
![Very Happy :D](./images/smilies/icon_biggrin.gif)