Equations are the mathematical basis for simulating the behaviour of a model. All node-type elements with the exception of file parameters, and all flows, must have equations for the model to run. For compartments, the equation defines the initial value, and is applied when the model is first built, when it is reset, or when the submodel instance containing the compartment comes into existence (for instance, if it is in a population submodel). For other components, the equation defines their value at any time while the model is running.
Before its equation is entered, a model element is displayed in red. It is not possible to run the simulation whilst any model elements are still red. If you make a change to the model that causes a component's equation to become invalid, for instance deleting an influence going to that component, it will be displayed in red to indicate that its equation must be edited before the model can run. Simile has an equation language that allows great power and flexibility in specifying expressions, reading data from tables, or sketching semi-quantitative relationships by hand. For more information, see the Introduction to equations.
There are two ways to enter equations for calculating model element values. Either use:
The following topics provide detailed reference information on the parts that make up a complex expression, and on the mathematical functions available, both built-in and user-supplied. See:
Further information on variables and data types useful in understanding Simile.
In: Contents