DetermTable
A DetermTable provides an input view like that of an edit table, allowing you to specify values or expressions in each cell for all index combinations; however, unlike a table, the evaluation of a determtable conditionally returns only selected values from the table. It is called a determtable because it acts as a deterministic function of one or more discrete-valued variables. You can conceptualize a determtable as a multi-dimensional generalization of a select-case statement found in many programming languages, or as a value that varies with the path down a decision tree.
To use a DetermTable, one or more of its table indexes should be dsicrete variables. These discrete variables must contain a domain attribute with a list of possible values. The domain can be either a List, List of Labels, or Index domain (in the case of an index domain, the possible values are taken from an index elsewhere in the model). These domain values serve as the index for the DetermTable's input view.
The value of the discrete variable specifies which slice of the DetermTable should be selected in the result. Only that row is returned. This can be contrasted to a normal edit table, in which the entire table (based on the discrete variable's domain) would be returned.
Example
Here Scenario is a discrete variable. Its domain specifies the possible values, while its actual value is just one of those possible values:
Because of the discrete domain, scenario can serve as both an index and value (its IndexValue is [1,2,3,4], while its value is 3). We can use it as an index for a DetermTable:
When viewed in input mode, the DetermTable Economic Outlook appears as above, and you can change the values in each cell. When evaluated, only the row selected by Scenario is returned:
Enable comment auto-refresher