Recording specific time from simulation

Use this forum to post Vensim related questions.
Post Reply
nzligul
Junior Member
Posts: 14
Joined: Thu Oct 27, 2022 12:10 pm
Vensim version: DSS

Recording specific time from simulation

Post by nzligul »

Hi,

I'm building a model for vaccine prioritization. There are different priority groups and different vaccine doses. For a priority group to start first dose, the vaccinated stock of the previous group must exceed a certain threshold. I solved this creating a binary variable using IF THEN ELSE statement. However, for proceeding second dose I need the time when this threshold is exceeded. Because I should assign an interval between doses. In short, how can I record a time when a specific logical statement in the model is true during simulation? I need this for further dynamics.

Kind regards,
Nazli
Kind regards,
Nazli
Administrator
Super Administrator
Posts: 4844
Joined: Wed Mar 05, 2003 3:10 am

Re: Recording specific time from simulation

Post by Administrator »

You can use SAMPLE IF TRUE.
https://www.vensim.com/documentation/fn ... _true.html

It has an example in the help to show how to calculate "starting 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
Post Reply