AnyLogic Simulation Practice: Tips, Tricks, and Modeling Techniques

This page contains practical techniques, tips, and solutions for AnyLogic simulation modeling, covering useful approaches for building, debugging, optimizing, and improving simulation models.

First published: August 15, 2026

Hunting Down a Memory Leak in a Long-Running AnyLogic Simulation

This practical case study explores how a memory leak was identified and resolved in a long-running AnyLogic simulation. Using VisualVM and heap snapshot analysis, the investigation revealed unnecessary object retention and led to an architectural fix that stabilized memory consumption and simulation performance.

→ Continue reading


First published: September 24, 2026

Java Abstract Classes for Flexible Refinery Simulation in AnyLogic (part 3)

This article presents a Java interface architecture for separating physical flow connections from flow information in AnyLogic refinery simulation models. The FlowProvider hierarchy enables flexible statistics collection and preserves detailed flow information even when streams are physically aggregated, supporting loosely coupled and extensible Petroleum Refining Library components.

→ Continue reading


First published: October 06, 2026

Custom Flow Statistics in AnyLogic Refinery Simulation

This article presents a practical approach to extending refinery simulation statistics with custom flow breakdowns using the Petroleum Refining Library Exporter. It introduces FlowProvider and FlowSupplier as reusable interfaces for connecting product flows with both AnyLogic model statistics and Excel reports.

→ Continue reading