Use the following procedures to create, edit, and delete array dimensions and elements.
Note: For information on how to assign dimensions to existing variables and how to define values/equations for array elements, see Creating Arrayed Variables.
From the Interface, Model, or Equation menu, choose Array Editor.
The Array Editor will open.
To create a new dimension, click the button below the "Array dimensions" list.
A new row will appear in the "Array Dimensions" list.
In the "Name" column, type a name for the new dimension.
Note: You can also add a new dimension and its label elements by copying and pasting them from a spreadsheet, comma-separated list, or tab-separated list. For more information, see To Create a Dimension by Importing Label Elements.
In the "Indexed by" column, select the type of dimension you're creating: Number or Label.
In the "Size" column, select the number of elements you want to create for the dimension.
For a Label dimension, the corresponding number of rows will appear in the "Dimension Element Labels" list.
Type the name for each element in the "Dimension element labels" list.
Note: You can also paste label elements from a spreadsheet, comma-separated list, or tab-separated list. For more information, see To Paste Copied Label Elements.
Now you can assign the dimension to variables in your model.
Use the following procedures to edit dimensions and elements in the Array Editor.
Notes: Plan your dimensions and elements carefully before you assign them to variables. Changes you make to dimensions and elements apply to all variables the dimensions are assigned to.
When you add new element labels to a dimension that's assigned to one or more variables, we recommend that you add the labels to the end of the list rather than inserting them between existing labels.
Use the following procedure to create a dimension and its label elements by copying a list of label elements from a spreadsheet, comma-separated list, or tab-separated list (either a row or column from a spreadsheet will work).
In the Array Editor, click the button under the "Array dimensions" list (the one on the left hand side of the dialog).
A new dimension will appear with a default name in the "Array dimensions" list, and the copied label elements will appear in the "Dimension element labels" list.
Use the following procedure to copy a list of label elements from a spreadsheet, comma-separated list, or tab-separated list.
Select where in the list of element labels you want to paste the new elements:
Select nothing in the existing list: The entire list will be replaced.
Select a single entry in the existing list: The new elements will be inserted below the one you have selected.
Select multiple entries in the existing list: The new elements will replace the ones you have selected. To select multiple elements click on the first one you want to select and then, holding down the shift key, click on the last.
Click the button. The copied elements will appear in the list of elements.
Notes: Each element label must be unique. If you paste element labels that have the same names as existing ones, the software pastes the new labels, but gives them the next sequential default element names ("Element 1", "Element 2", etc.).
If you overwrite existing labels and select fewer labels than you paste, the software overwrites the selected labels, then adds any remaining pasted labels to the list without deleting additional labels.