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


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


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


Using Google OR-Tools to solve an LP problem in AnyLogic
Google OR-Tools is a super useful flexible lightweight tool that is used to solve a number of operations research-type problems.

Jaco-Ben Vosloo
Jul 18, 20224 min read


Analyzing CPU performance of AnyLogic models
This is part 2 of a 2 part series where we look at using a profiler to analyze model performance. This post focussed on CPU optimization

Jaco-Ben Vosloo
Jun 19, 20225 min read


Error|Exception handling in AnyLogic models
Yash gives a quick overview of you can manage errors inside an AnyLogic simulation model. Using standard Java functionality and an example.

Yash Mishra
Jun 7, 20227 min read


Detecting memory leaks in AnyLogic models
This is part 1 of a 2 part series where we look at using a profiler to analyze model performance. This post focussed on memory optimization

Jaco-Ben Vosloo
May 20, 20226 min read


Using Predicates in AnyLogic
There is a set of out-of-the-box functions in AnyLogic that makes our life easier! To use them you need to understand what a predicate is.

Vitor Lemos
May 10, 20222 min read


The Simulation Model Life Cycle (Part 5) - Experimentation
This post is part 5 of a 7 part series about the Simulation Model Life cycle. It focuses on the experimentation phase.

Jaco-Ben Vosloo
Apr 5, 202212 min read


Using @Override to make more robust models
Ever used inheritance in your AnyLogic models and also overridden one of the methods. Then you need to read this post.

Jaco-Ben Vosloo
Mar 25, 20225 min read
bottom of page
