Build your project by clicking the
Build Model
toolbar button. If there are some errors in your model, the building fails and the
Problems
view appears listing all the errors found in your model. Double-click
an error in the list to open the location of the error and fix it.
Problems view
After the model is successfully built, you can start it. Running the simulation, you automatically bring the current model up to date.
Start the model
Choose the experiment you want to run from the drop-down list of the
Run
toolbar button. Your simulation experiment is called
Bass Diffusion/Simulation.
Later on you can use the
Run
toolbar button to start the previously run experiment.
You can adjust the execution speed to your needs using
Slow down
and
Speed up
toolbar buttons.
AnyLogic supports various tools for collecting, displaying, and analyzing data during model execution. The simplest way to examine current state and history of a parameter or a variable during model simulation is to use inspect window. We want to inspect our variables AdoptionFromAd and AdoptionFromWOM to view the contribution of different adoption sources.
Inspect adoption sources
"Inspect" charts change scales automatically to embrace the plots, displaying the variables changing from the beginning to the end of simulation. We can easily see that when an innovation is introduced and the adopter population is zero, the only source of adoption will be advertising. The advertising effect is largest at the start of the diffusion process and steadily diminishes as the pool of potential adopters is depleted.
Reference model: Bass Diffusion - Phase 1