imit_model / AnyLogic / UsersManual(AnyLogic)
.pdf
AnyLogic V User’s Manual
Figure 150. Animation window
The animation window is automatically displayed when the model starts running. Sometimes you may need to close the window to reduce data display overhead. You can open it later when needed.
►To open an animation window
1.Click the Animation
toolbar button, or Choose View|Animation from the main menu.
12.5 Running 3D animation
AnyLogic 3D animation is run synchronously with the model simulation. 3D animation is displayed in the 3D animation window.
© 1992-2004 XJ Technologies http://www.xjtek.com |
327 |
AnyLogic V User’s Manual
Figure 151. Animation settings toolbar
12.6.1Setting up animation update rate
AnyLogic enables you to set up the animation update rate. The greater update rate you specify, the smoother animation will appear. However, animation rendering takes longer, and frequent animation update will slow the model simulation. So, choose between smooth animation and fast simulation and set up the animation update rate according to your needs.
You can explicitly specify fixed update rate in frames per second. Alternatively, you can specify adaptive update rate. Adaptive update rate will be recalculated during the model simulation to fix up the specified ratio between simulation speed and animation smoothness.
►To set up the animation update rate
1.Click the Animation Settings
toolbar button, or Choose Model|Animation Settings… from the main menu.
The Animation Settings dialog box is displayed, as shown in Figure 152.
2.To define the fixed update rate, choose the Fixed option and explicitly specify the update rate (in frames per second) with a slider.
3.Otherwise, to define adaptive update rate, choose the Adaptive option and specify the update rate with a slider. Choose between smooth animation (Smooth) and fast simulation (Fast).
4.Click Apply to apply changes.
The animation will appear with the specified update rate.
5.If needed, repeat steps 2-4 to specify another update rate and click OK when finished.
© 1992-2004 XJ Technologies http://www.xjtek.com |
329 |
AnyLogic V User’s Manual
13. Simulation settings
AnyLogic enables you to control model simulation.
You can set up model simulation speed, specifying the mapping between the model time units and seconds. This is frequently needed when you need your animation to appear as in real life. See section 13.1, “Simulation speed” for details.
You can define the number of model replications – single model runs the model simulation contains of. See section 13.2, “Model replications” for details.
You may also stop the simulation at some event (at specified model time, or simulation stop condition). See section 13.3, “Simulation stop conditions” for details.
All these settings are defined individually for each AnyLogic experiment. Thus you can simply control your model simulation by creating several experiments with different simulation settings and simulating your model with different current experiments.
13.1 Simulation speed
An AnyLogic model can be run either in real time or virtual time mode. In real time mode, the mapping of AnyLogic model time to the real time is made. It is frequently needed when you have developed some animation and want it to appear as in real life. In virtual time mode, the model runs at its maximum speed and no mapping is made between model time units and a second of astronomical time.
►To set virtual/real time mode
1.Click the Enable virtual time mode
toolbar button.
If virtual time mode is set, the button is shown pressed.
►To specify model simulation speed
1.In the Project window, click the experiment, for which you want to specify model simulation speed.
© 1992-2004 XJ Technologies http://www.xjtek.com |
331 |
AnyLogic V User’s Manual
13.2 Model replications
Model simulation contains of one or several single model runs – model replications. You can define how many replications to execute. Using several replications in one simulation, you can, for example, vary model parameters to plot a chart of output versus model parameter. Repetitive runs of a model are particularly useful for periodic models and for stochastic models where many runs are required to assess the effect of random factors.
►To define a number of model replications
1.In the Project window, click the experiment to set number of replications for.
2.Type the number of model replications in the Number of runs edit box in the Multiple runs section of the General page of the Properties window (see Figure 153).
13.3 Simulation stop conditions
Sometimes you need simulation stopped at some specific event.
You can set up your model to be stopped:
•At the specified model time.
•When the mean confidence of the specified dataset is less than the threshold.
•When the specified variable steps over the threshold.
•When the specified boolean condition becomes true. Expression can include checks of dataset mean confidence, variable values, etc.
If no stop condition is defined, model works until you stop it manually.
Simulation stop conditions for an experiment are defined in the Model stop condition section of the Additional page of experiment’s properties window (Figure 154).
© 1992-2004 XJ Technologies http://www.xjtek.com |
333 |
AnyLogic V User’s Manual
Additional stop conditions of an experiment are listed in the Additional stop conditions list on the experiment’s properties window. You define them in the Additional stop condition dialog box.
►To open the Additional stop condition dialog box
1.In the Project window, click the simulation experiment to define additional stop conditions for.
2.Click the Add button on the Additional page of the Properties window. The Additional stop condition dialog box is displayed, see Figure 155.
Figure 155. Additional stop condition dialog box
►To define a statistics confidence level as a stop condition
1.Open the Additional stop condition dialog box.
2.Choose the When dataset… option.
3.Specify the dataset in the combo box on the right.
4.Type the confidence level value in the edit box on the right.
© 1992-2004 XJ Technologies http://www.xjtek.com |
335 |

toolbar button, or Choose