reset.model | R Documentation |
A Simile model instance must be reset before it is first run, whenever the parameters are changed, and in order to run it again with new values for random constants.
reset.model(instance.handle, depth, integration.method, starting.time)
instance.handle |
The handle returned by create.model(), identifying an executable model instance. |
depth |
Simile does a sort of 'lazy execution', with values being left untouched if they do not need to be recalculated for a given type of reset. This argument tells it what to reset, with each action including those that follow it:
|
integration.method |
One of "Euler" or "Runge-Kutta", the latter being 4th-order. Default is "Euler". |
starting.time |
Value for model time after resetting. Used for indexing time series, time plots etc in the model. Default is 0. |
None
Jasper Taylor
reset.model("dummy_ih", -2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.