top of page
Search


Using Design Patterns to Make Better Models: Decorator Pattern
The Decorator Pattern lets us dynamically add behaviour to objects without creating a new subclass for every possible combination. In this post, we build a vehicle-rental example in AnyLogic and discuss why, despite its flexibility, we don't tend to use this pattern in our own simulations.

Devon Cowling
Oct 205 min read


Collecting Simulation Data Using Datasets and Histograms
Learn how to collect simulation data in AnyLogic using DataSet and HistogramData, including event-driven sampling, recurrent sampling, queue measurements, and time-in-queue analysis.

Devon Cowling
Oct 139 min read


Using Design Patterns to Make Better Models: Observer
How should objects in a simulation respond when another object changes state? In this article, we use an AnyLogic armed-response model to explore the Observer pattern. We compare periodic polling with event-driven notifications and show how the Observer pattern can reduce detection delays, remove unnecessary checking events, and make simulation models easier to extend.

Devon Cowling
Oct 69 min read


Using Design Patterns to Streamline Model Development: Strategy
Learn how to apply the Strategy design pattern to AnyLogic simulation models. Using an inventory management example, this article shows how separating changing ordering behaviour can make simulation models easier to understand, maintain and adapt.

Devon Cowling
Sep 309 min read


Saving Java Objects As JSON and reading them back
Ever wondered whether you can save Java classes and load them again. For example, can you save scenarios and results to ensure reproducible, shareable results between users?

Selaelo Kgoale
Sep 164 min read


AnyLogic 9 Technology Preview Review: The Future Is Taking Shape!
AnyLogic 9 is more than a new interface. It is the process to turn AnyLogic into a browser-based, cloud-connected environment for the full simulation lifecycle. The direction is exciting, but the Technology Preview is not yet a replacement for AnyLogic 8.

Jaco-Ben Vosloo
Jul 3112 min read


Proper initialization of parameters in AnyLogic, don’t get caught off guard
Unexpected behavior in your AnyLogic model? It might be due to improper parameter initialization. This post explains why parameters don’t always behave like variables, how initialization timing affects your model, and what best practices to follow to keep your simulations running as intended. Don’t get caught off guard—initialize properly!

Augusto Pereira
Oct 22, 20253 min read


Using AI to help build AnyLogic Simulation Models
Discover how AI can accelerate AnyLogic model development. This post explores how intelligent assistants can suggest logic, generate code, and simplify complex modeling tasks—turning the model-building process into a faster, smarter, and more collaborative experience for simulation professionals.

Selaelo Kgoale
Oct 22, 20256 min read


Proper Code Formatting Saved Many a Simulation Modeller
Proper code formatting improves readability, debugging, and collaboration. Learn best practices to keep your code clean and efficient!

Selaelo Kgoale
Mar 13, 20256 min read


How to reduce multiple select output and service blocks into a single service block
Too often in AnyLogic we find ourselves creating multiple copies of the same objects instead of using code to to parameterise our logic
Aqeel Tariq
Mar 9, 20254 min read


Leveraging Project Lombok to reduce java boilerplate code for efficient model development in AnyLogic
Ever wondered if there was an easier or better way to write standard code or perhaps even not write it at all?

Selaelo Kgoale
Feb 17, 202510 min read


Using AnyLogic's traffic library to create a roundabout
A guest post from Sanchit Divadkar about creating a roundabout in AnyLogic.
Sanchit Divadkar
Jul 25, 20234 min read


Building a large scale traffic simulation in AnyLogic
Large scale traffic simulation to test the impact on traffic if access to a suburb is restricted through closing intersections.

Devon Cowling
Jul 14, 20238 min read


Comparing two manufacturing layouts using state-based behavior inside a simulation
We will look at a model where we compare two manufacturing layouts using state charts and organizing the components of the system as agents

Tellef Solberg
Jul 4, 20234 min read


Why TimeMeasure blocks don't work with Assembler and how to fix it
In this post Aqeel shares a simple trick, that has a number of applications, to measure the time an agent spent in an assembler block
Aqeel Tariq
Apr 11, 20236 min read


Using Lambdas and Streams in Java and AnyLogic to neaten and improve your code.
This is a special guest blog post by intern Devon Cowling. After some great feedback from readers on his previous blog posts on smart...

Devon Cowling
Mar 20, 20234 min read


Why does using the right probability distribution in a simulation model matter?
Choosing the right distribution for data generation can make or break your simulation model. How do you know if you are doing it right?
Agustin Olivares
Mar 13, 20236 min read


A stable connection for Python-Based reinforcement learning training on AnyLogic models
In this post, we introduce a new way to apply DRL to simulation models in AnyLogic using the Pypeline library in AnyLogic

Mingze Li
Mar 6, 202311 min read


Unlock Exclusive Benefits and Help Shape the Future of The AnyLogic Modeler with Patreon
Support The AnyLogic Modeler on Patreon you'll be helping us continue to create high-quality content and tutorials.

Jaco-Ben Vosloo
Feb 27, 20233 min read


Dynamically adding model presentations to make navigation during editing faster in AnyLogic.
A special guest blog post by Devon Cowling on how to prevent slow response time during model development caused by agent presentations.

Devon Cowling
Sep 11, 20223 min read
bottom of page
