With these two videos of a delivery network, you will see how to make your simulation model work well. Finding problems and examining how your model works is key to developing an effective solution.
These videos are part of our popular how-to video playlist. Remember, suggest a video in the comments if you think we are missing one!
Debugging an AnyLogic simulation model
It is really useful to check what is happening inside your simulation model as you develop it. This can be done with the help of the traceln() function.
In this video you will see how to get plain text and data fragment outputs from a model as the simulation runs. Feeding the data to both the console and a database is demonstrated.
A help file and example model for this function can be found in AnyLogic. Download it now, the Personal Learning Edition is free.
Understanding AnyLogic log files
When running a model, it is possible to collect execution logs. Examining these can provide valuable insight into the processes you have modeled.
This video explores some of the log files generated when you run a simulation as well as how to extract useful data from them. In addition, there are tips on restricting data collection to speed up model runtime.
If you liked these videos, give them a thumbs up! And don’t forget to check out the other videos on our YouTube channel!
Do you have any debugging or analysis tips, or even any video requests? Share them in the comments below!
How-to videos:
- Setting up parameters from the experiment page
- 3D animation
- Reading agent attributes from a database
- Converting GIS shapefiles to AnyLogic rail markup
- Placing agents on the GIS map
- Creating cars of different colors
- Navigating the model with view areas
- Compare Runs experiment
- Measuring time in a system
- Drawing curved walls
- Saving and restoring simulation state
- Setting up a freight train
- Simulating a shuttle train
- Preventing train collisions
- Importing models from Vensim
- AnyLogic Cloud
- Creating a custom flowchart block
- Taking GIS models offline
- Simulating a pedestrian crossing
- Optimization experiment
- Custom probability distributions
- Using agents in a process flow