Page 1 of 1

toggle / switch

Posted: Thu Jul 29, 2004 8:42 pm
by afsinbulbul
Hi, I am looking for a way to use a toggle or a switch to turn on or off one sector or one part of the model. It is different than partial simulation because I want this in the user intereface. To clearify let me give an example:

Suppose there are different market entrance strategies in your model and you want to give the user the flexibility of making a selection between them and the model will run the part selected accordingly.

I know how to do it using Stella (by running only selected sectors or by using a toggle tool) but I am new to Vensim and I would appreciate some help.

Posted: Fri Jul 30, 2004 7:01 am
by Pruyn
I don't know of any toggle tool in Vensim, but that could be me. The way I used to do it was creating some sort of switch variable ( e.g. switch = if then else ( input = 3, 1, 0).
I used this to block the input to the part when not in use. In my case no input meant no output. Otherwise you can also use it to block the output.
I used venapp to link names to values and to create an easier input/output system.

I hope this helps and I will keep track of the post, as I am interested in better solutions.

Posted: Fri Jul 30, 2004 8:08 am
by Administrator
>> I used this to block the input to the
>> part when not in use. In my case no
>> input meant no output.
Thats what I always do as well. I cannot think of a better solution.

Tony.