This case applies when you have a variable in a fixed-membership submodel which has a small number of instances. A typical example might be a submodel whose job is to hold the values for each of several crop types. The number of crop types is probably small.
On the model diagram
- Open up the equation dialogue for the variable, by double-clicking on it.
- Click the radio button labelled "File Parameter".
- Close the equation dialogue window.
Note that the variable now appears with a tail, showing the change in its status. Note also that it is black, even though you have not supplied a value for it.
When you come to run the model
Simile will produce a File Parameter dialogue window, and this will contain an entry for this variable.
- Click in the associated edit field, and type in a n pairs of values, where n is the number of submodel instances. The first value of each pair should be the number 1, 2, 3, etc. The second should be the value you wish to assign to that instance. Thus, if the submodel has 4 instances, and you want to assign the values 4, 5, 6 and 9 to the 4 instances, then you should type in:
1 4 2 5 3 6 4 9
just like that (i.e. with no brackets, commas or whatever).
- Click Save if you wish to save this setting (along with any others), and specify a file to save it in.
- Click OK when you wish to proceed with the simulation.
In: Contents >> Working with external data >> Using scenario files