Dimensions are used for defining dimensions of array variables.
- Enumerations — where enumeration is a list of named items allowing you to refer to the array elements. For example, if you are working with a population model, you can define age characteristics as Age enumeration with elements: Child, Teenager, Adult, Aged.
- Ranges — where ranges are interval definitions that can be used to specify dimensions for array variables. When you define an array using enumerations, you can refer to the elements of the array using self-descriptive names of enumeration elements. When defining arrays using numerical ranges, you access array elements by index numbers.
- Sub-dimensions — where sub-dimensions allow defining sub-ranges of dimensions. It is very useful when you have some particular sub-dimension referred in multiple places of your model, for example in sub-arrays definitions. Rather than dealing with sub-dimension definitions, you may simply create such sub-dimension once and then refer to it by its name whenever you need this sub-dimension definition. You can define sub-dimension both for enumerations and ranges as well.
To create a dimension
- Drag the Dimension element from the System Dynamics palette to the graphical diagram.
- The New Dimension dialog box opens. Specify the name of the new dimension in the Name box.
- Choose Enumeration option from the Define as group of buttons.
- Enter the names of the enumeration items in the Specify items table. To remove an item, select it in the table and click the button.
- Click Finish to complete the process.
To create a range
- Drag the Dimension element from the System Dynamics palette to the graphical diagram.
- The New Dimension dialog box opens. Specify the name of the new dimension in the Name box.
- Choose Range option from the Define as group of buttons.
- Specify the elements of the range by entering the expression in the Range edit box, i.e 1-100.
- Click Finish to complete the process.
To define a sub-dimension, you should specify the elements of original dimension you want to include in the sub-dimension.
To create a sub-dimension
- Drag the Dimension element from the System Dynamics palette to the graphical diagram.
- The New Dimension dialog box opens. Specify the name of the new dimension in the Name box.
- Choose Sub-dimension of option from the Define as group of buttons.
- Choose the original dimension from the drop-down-list to the right.
- Specify the dimension elements you want to include in the sub-dimension.
- If the original dimension is an enumeration, set check boxes in the Select elements table to the left of the enumeration elements you want to include in your sub-dimension. To remove an element, clear the corresponding check box.
- If the original dimension is a range, type in the expression defining the resulting sub-range in the edit box, i.e 1-5, 17-29.
- Click Finish to complete the process.
-
How can we improve this article?
-