Please enable JavaScript to view this site.

Vensim Help

 

Reference modes can be very helpful in conceptualizing your model and capturing information from others.  This can best be shown by working through a simple example.  We will consider the problem of keeping a factory running in the face of reductions in the labor force responsible for maintaining the factory.  Our basic dynamic hypothesis is that decreased workforce will tend have a stronger effect than expected as repair requirements take away from the ability to perform maintenance.

We start by putting up variables that clearly are important to understanding this problem.

ØStart a new model (using the default time bounds).
ØAdd the variables number of repairs required and total maintenance workforce to the diagram.  You should have something like this:

ØSelect the Reference Mode editing tool then click on number of repairs required.  
ØRespond No to the query (this will be explained later):

You will be asked to name the reference mode:

The default name of "ReferenceMode" and is fine.  You can choose a different name and it is possible to have as many as eight different reference modes associated with a model.

 

ØClick "OK" in the Reference Mode Name dialog.

This will open a dialog box that is almost the same as the Lookup editor:

Unlike the Lookup editor the x-axis is interpreted as the Time axis, and there is also a dropdown at the bottom (labeled RefMode:) that allows you to move between different reference modes (you can define up to eight) and create new ones.  For this example we will only use a single reference mode.

The default time axis in our model  runs from 0 to 100.  This is not appropriate for our problem, and we want to set it to run for 24 months.  

ØClick on Cancel.
ØSelect the menu item Model>Settings and in the Model Settings dialog change FINAL TIME to be 24.  Click on OK.

 

ØClick on number of repairs required again to open the Reference Mode editing dialog. (Again answer no to making this a data variable).
ØEnter the pairs (0,100), (6,100), (12,300), (18,500), (24,500).  Your dialog should look like:

ØClick on OK to close the dialog.

 

ØClick on total maintenance workforce.
ØClick on Yes to make this a Data variable.

A Data variable is a time varying model input, also called an exogenous variable.  When you say yes to making total maintenance workforce a data variable this means Vensim will look to a data file to find values for it and not compute it.  If you have not specified a data file for simulation, Vensim assigns the first reference mode file you create to be a data file.  You can change this later from the toolbar in simulation setup mode or from the advanced tab of the simulation control dialog.  We make the workforce a data variable because the purpose of the model is to understand what happens when this changes.

 

ØThe workforce started at 10, but was cut in half over 6 months.  Enter the pairs (0,10), (6,5), (24,5) to represent this.
ØClock on OK to close the dialog.

You model should look like: