Running the model until specified moment or for specified time interval

You can:

Previously this required adding special events but now you can do the same using new handy toolbar controls.   

Running the model for the specified interval of model time

If required, you can simulate the model for some specified period of model time, and pause the execution after that. Having studied the model state at the particular moment of model lifetime (or having performed some interactive actions with the model), you can continue the model execution. Moreover, you can run it again for the same period of model time (or period of any other duration), and so on. 

 To run the model for the specified interval of model time

  1. Click the arrow in the right part of the  Run from the current state toolbar button.


  1. To the right of the option  Run for, define the interval of model time that you want to simulate until the model will be paused. Interval is defined as a number of model time units that should pass starting from the current model time. You can define the interval in different time units, choose them using the control on the right : .

    If there is a mapping of the model time to calendar dates (the Use calendar option is selected in the Model Time property section of the experiment), you can define the interval in milliseconds, seconds and so on up to several years. Otherwise, if there is no mapping to calendar, the maximum available time unit you can use here is week (since there is a uncertain number of days in a month and in a year).

  2. Click the button  Run for to run the model. The model execution will be paused when the specified model time interval will be simulated.

Please note that after invoking the command  Run for, the toolbar button  Run from the current state will also do this particular action - run the model for the time interval you have specified earlier (and the button icon will change correspondingly to ). This may be very convenient if you want to run the model step-by-step, puasing the execution after required model time intervals.

To run the model endlessly (in the regular mode), simply click the arrow on the right of the toolbar button  and then click the button  Run in the popup window.

Pausing the model execution at the specified moment of model time

The scenario varies a bit depending on the current state of the model: whether it is running currently, or not:

Running the model until the specified moment of model time

If the model is not running currently (its execution was not started yet, or it is paused currently):

 To run the model until the specified moment of model time

  1. Click the arrow in the right part of the  Run from the current state toolbar button.


  1. To the right of the option  Run until, define the moment of model time when you want to pause the model execution.

  2. You can define the pause time as a number of model time units starting from the model start time (usually 0), entering the corresponding value to the right of the button   Run until. This value should naturally be greater than the current model time value (it is displayed in the lower part of the popup window: ).
  3. If there is a mapping of the model time to calendar dates (the Use calendar option is selected in the Model Time property section of the experiment), you can define the pause moment as a calendar date. For that, switch to the date definition mode by clicking the button  Define the pause time as a calendar date. After that you will see the controls for date and time definition on the right of the option   Run until. Use them to define the pause time moment. This moment should naturally be in the future regarding the current model time (that is displayed at the bottom of the window with execution controls: .
  1. Having defined the pause time, run the model by clicking the button  Run until. The model execution will be paused at the specified moment of model time.

Pausing the running model at the specified moment of model time

If the model is running currently:

 To pause the model at the specified moment of model time

  1. Click the arrow in the right part of the  Pause toolbar button.


  1. On the right of the option  Pause at, define the moment of model time when you want to pause the model execution.

  2. You can define the pause time as a number of model time units starting from the model start time (usually 0), entering the corresponding value to the right of the button  Pause at. This value should naturally be greater than the current model time value (it is displayed in the lower part of the popup window: ).
  3. If there is a mapping of the model time to calendar dates (the Use calendar option is selected in the Model Time property section of the experiment), you can define the pause moment as a calendar date. For that, switch to the date definition mode by clicking the button  Define the pause time as a calendar date. After that you will see the controls for date and time definition on the right of the option   Pause at. Use them to define the pause time moment. This moment should naturally be in the future regarding the current model time (that is displayed at the bottom of the window with execution controls: .)
  4. Having defined the pause time, click the button  Pause at. The model execution will be paused at the specified moment of model time.

Related topics

     Controlling the model execution

    Controlling the model execution programmatically