How do I change the variables in a time-step simulation without starting the simulation from the beginning?

#1

So I’ve made this simple UI for my Vensim model with the interface builder, and everything’s been working great until now. But now, the problem I have faced is that every time I run the model and want to change the “playable” variables slightly, the simulation starts from the beginning instead of continuing from where I left off.

As the main point of the simulation is to show how the variables affect the outcomes in every step, it is crucial to be able to change the variables on the fly.

So is there a way to make the sim not restart the run every time a variable is changed?

0 Likes

#2

Hi,

I’d be happy to take a look - can you let me know your account and project (or link to the simulation)?

-Naren

0 Likes

#3

Unfortunately I cannot share the actual Vensim model, as it is a work in progress and should stay private untill further notice. But I have made a simple bass diffusion model that drives home the same point, as that too resets every time the users goes to change the variables.

Link to the bass diffusion UI: https://forio.com/app/krautio/bass_tryout

0 Likes

#4

Hi,

The issue is that decisions in Turn-by-turn simulations need to be set-up as ‘gaming variables’ in Vensim; constants are only allowed to be set in step 0, and not every step.

We’ll add a feature to our platform to display an intelligible error message in this case instead of silently failing, but regardless if you use gaming variables for your decisions it should no longer reset. Let us know if you have questions.

-Naren

0 Likes