Simulation with AnyLogic/System Dynamics/Step 8. Configuring simulation
Step 8. Configuring Simulation
Model simulation has a set of specific settings. A group of model settings is called an experiment, and experiments are displayed at the bottom of the model branch in the workspace tree. You can create several experiments for the same model with alternative model settings. One experiment is created by default and named Simulation.
It is a simulation experiment, enabling model simulation with customized parameter values.
There are also other types of experiments (optimization, risk assessment, parameter variations experiment), used when the model parameters play a significant role and you need to analyze how they affect the model behavior, or when you want to find optimal parameters of your model.
If we start the model, it will work 100 time units and then will stop. Since we want to observe only how the model behaves when the adoption process takes place, we need to stop the model when the system comes to equilibrium. The adoption process in this model lasts something over 10 years.
- In the Project view, click the Simulation:Main experiment item.
- On the Model Time tab of the Properties window, choose Stop at specified time from the Stop drop-down list. In the edit box on the right, type 10. The model will stop after 10 model time units elapse.
Before running the model, we will set the real time mode to control the execution speed and, consequently, animation speed. In real time mode, the model is executed regarding the physical time.
- In the Project view, click the Simulation experiment.
- On the Presentation page of the Properties view, go to the Execution mode section and choose the Real time with scale option.
- Specify the model execution speed, i.e., how many model time units will be executed in one second. In the edit box to the right, type 2.