Running the Model

To run the model, you actually should run one of its experiments. By default each model has one simulation experiment named Simulation.


Simulation experiment is the simplest type of experiment that enables to create animation for a model and simulate it for some time with the visualization.

 To run the model
  1. In the Projects view, right-click (Mac OS: Ctrl+click) the model you want to run (and in case it has several experiments, choose the experiment to be launched from the popup menu), or
    Right-click (Mac OS: Ctrl+click) the experiment, which settings you want to use, and choose Run from the popup menu, or
  2. Alternatively, choose Model > Run from the main menu, or click the arrow to the right of the Run toolbar button and choose the experiment you want to run from the drop-down list.

Running the simulation, you automatically bring the current model up to date.

 To run the previously launched experiment

  1. Click the Run  toolbar button, or
    Press F5.

Having launched the model, you will see the presentation window. It displays the presentation designed for your experiment.


By default the experiment presentation looks as shown on the figure above and contains Run button.


When you run the model, it is created but not run - it waits to be started. When the user clicks the Run button, the model is launched and the presentation of the top-level agent of this experiment (by default it is Main) is shown in the window.


This button is actually the button AnyLogic control element, which you can edit as you like: change its label, action, or even delete it and use the toolbar solely to control the model execution.


Related topics

     Presentation window

    Controlling the model execution programmatically