Learn R Programming

Simile (version 1.3.4)

set.model.step: Sets the time step used to execute a model.

Description

The time step is the amount by which the model time advances each time the state variables are updated. A model may have more than one time step.

Usage

set.model.step(instance.handle,step.index,step.size)

Value

None

Arguments

instance.handle

The handle returned by create.model(), identifying an executable model instance.

step.index

The level of the time step to be set. If a model only has one time step, this is step 1. Higher levels are set to shorter steps.

step.size

The duration for the time step.

Author

Jasper Taylor

Examples

Run this code
set.model.step("dummy_ih", 1, 0.1)

Run the code above in your browser using DataLab