A model is a set of equations that are supposed to be evaluated together. Those equations can be:
where expr is a valid python expression.
Examples
>>> model = Model('''dx/dt = 1.0 : float # differential equation
y = 1.0 : float # equation''')
Run the model model within the given namespace
Parameters
Examples
>>> model = Model('dx/dt = 1.0; y = 1.0')
>>> model.run({'x':0}, dt=0.01)
{'y': 1.0, 'x': 0.01}
Model declarations
Model equations
Model differental equations