Modeling How-To's > Working with Variables and Attributes > Defining a Variable

Defining a Variable

You want to define a variable for use in making decisions or collecting information during the simulation.

 

The model used for this example, as well as all of the modeling "how-to" examples, can be found in the ProModel Solutions Café (http://www.promodel.com/solutionscafe/howto/).

Solution

  1. Click on the View Variables button in the Model Elements section of the Process Simulator ribbon if using Visio 2013 or 2010, or select Variables from the Process Simulator menu if using Visio 2003 or 2007.
  2. In the table that appears, click on the Variables tab (which is the default tab).
  3. Enter the name you want to give to the variable.
  4. Specify the data type which determines whether the variable is going to represent integer (whole number) values or real (decimal) values.
  5. Specify the initial value you want the variable to have at the start of the simulation.
  6. If you are going to collect statistics on the values the variable gets assigned, you can select the type of statistic (simple average or time-weighted average).
  7. If you want the value of the variable to show up on the layout during the simulation, check the Graphic box.
Example

You would like to define a variable called vDefectives to keep track of the number of defectives that are rejected at an activity.


© 2014 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com