For all parameters, variables, initial conditions etc. 20-sim supports the following data types:
1. | Boolean |
2. | Integer |
3. | Real |
4. | String |
The declaration of data types can be done in the constants, parameters and variables sections of the model. E.g.:
parameters
real a = 1;
integer B[2,2];
variables
string c;
boolean yesno;
Declaration of data types in equations is not allowed. E.g.:
real v = sin(t*a + b); // This is not allowed!
To prevent users from inspecting variables, parameters or constants (e.g. for encrypted models) or decreasing the list of parameters and variables, the keyword hidden can be applied. This keyword should follow the data type. For example:
parameters
real hidden a = 1;
integer hidden B[2,2];
variables
string hidden c;
boolean hidden yesno;
To allow for a quick selection of variables in the Variable Chooser, the keyword interesting can be applied for variables. This keyword should follow the data type. For example:
parameters
real a = 1;
integer B[2,2];
variables
string interesting c;
boolean interesting yesno;
Interesting variables are shown, even when all options are deselected in the Variable Chooser. This makes it possible to quickly select variables out of a large list.