You can view current values of all parameters and variables at the model runtime (and optionally modify them, interactively affecting the model behavior).
At model runtime values of parameters and variables are displayed under their names (this requires the Show name option to be selected in properties of these parameters and variables).
You can not only view current values of your parameters and variables but also view the history of parameter/variable values using more visual plots and charts.
AnyLogic provides two ways of viewing charts:
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.
To perform more sophisticated statistical analysis, use charts and analysis data objects from the Analysis palette (they are described below). They allow visualizing variable trends using various charts and histograms and calculating statistical information on collected data, such as mean value, minimum, maximum, etc.
To view the plot of parameter/variable in the inspect window
The inspect plot is built upon data collected in the data sets automatically created for parameters and variables. New samples are added to these data sets with the specified recurrence time. If plot curves have some breaks and are not smooth enough, it may probably mean that these data sets are updated with new samples not enough frequently.
To change the update rate for data sets automatically created for variables
Collected statistics can be exported to external applications providing more comprehensive statistical analysis (e.g. MS Excel).
To copy data collected by the inspect window to the clipboard
Now you can paste data from the Clipboard.
To paste data, for example, in MS Excel, you should select the cell of the sheet where you want to start inserting values and press Shift Insert. If you are copying values of one variable/parameter, data will be copied in two columns: the first will contain model time samples, while the second one - the corresponding values of the variable/parameter in these time moments.
To add a chart displaying variable/parameter values
The history of parameter/variable samples collected for the chart can be exported to external applications providing more comprehensive statistical analysis (e.g. MS Excel).
To copy data collected by the chart to the Clipboard
Now you can paste the copied data in any external application.
To paste data, for example, in MS Excel, you should select the cell of the sheet, where you want to start inserting values, and press Shift Insert. If you are copying values of N variables, data will be copied in N 1 columns: the first column will contain model time samples, the second one - the corresponding values of the first variable in these time moments, the third one - values of the second variable and so on, see figure below.