To run the model for the specified interval of model time
To do this, we need the run for advanced execution control, which is located in the developer panel. Open the developer panel by clicking the rightmost control Open developer panel in the model window.
By default, the enhanced model execution controls are hidden. To see them, click the show/hide run options control in the model execution section of the developer panel.
To the right of the run for option, define the interval of the model time that you want to simulate until the model will be paused. Interval is defined as a number of time units that should pass starting from the current model time. You can define the interval in different time units, from ms to years, choose them using the control on the right.
To run the model
until the specified moment of model time
By default, the enhanced model execution controls are hidden. To see them, click the show/hide run options control in the model execution section of the developer panel:
To the right of the run until option,
define the moment of
model time when you want to pause the model execution. You can
define the pause time as a number of model time units
from the model start time, entering the corresponding value
to the right of the run until button.
This value should naturally be greater than the current model time value (it is displayed in the upper line of the developer panel: ).
You can also define the pause moment as a calendar
date. For that,
switch to the date definition mode by clicking the toggle date/time units
button. After that you will see the
controls for date and time definition to the right of the run until option.
Use them to define the pause time moment.
This moment should naturally be in the future regarding the current model time (that is displayed in the upper line of the developer panel: .
Controlling the model execution programmatically